Loading ...
Sorry, an error occurred while loading the content.

Re: How to customize $rbl_reason

Expand Messages
  • Greg Hackney
    ... See the rbl_reply_maps feature Reference: man 5 postconf
    Message 1 of 3 , Jun 1, 2006
    • 0 Attachment
      Kai Wang wrote:
      >
      > We are using the default_rbl_reply for rbl rejections. We want to have
      > our own $rbl_reason for each rbl we are using. Can anybody give me
      > some advice?
      >
      > default_rbl_reply = $rbl_code Service unavailable; $rbl_class
      > [$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason}
      >
      > Thanks
      >
      See the "rbl_reply_maps" feature

      Reference: man 5 postconf
    • Kai Wang
      It works. Thanks a lot. [root@mhub3 ~]# tail -2 /etc/postfix/main.cf # 2006-06-01 KW changed the rbl rejection message. rbl_reply_maps =
      Message 2 of 3 , Jun 1, 2006
      • 0 Attachment
        It works. Thanks a lot.

        [root@mhub3 ~]# tail -2 /etc/postfix/main.cf
        # 2006-06-01 KW changed the rbl rejection message.
        rbl_reply_maps = hash:/etc/postfix/rbl_reply_maps

        [root@mhub3 ~]# cat /etc/postfix/rbl_reply_maps
        rbl-plus.mail-abuse.org 522 blocked by RBL-plus spam filter: see
        http://www.ucalgary.ca/it/email/spamfiltering.html
        bl.spamcop.net 526 blocked by Spamcop spam filter: see
        http://www.ucalgary.ca/it/email/spamfiltering.html
        cbl.abuseat.org 523 blocked by CBL spam filter: see
        http://www.ucalgary.ca/it/email/spamfiltering.html
        dnsbl.njabl.org 524 blocked by NJABL spam filter: see
        http://www.ucalgary.ca/it/email/spamfiltering.html
        blackhole.ucalgary.ca 527 blocked by IT spam filter: see
        http://www.ucalgary.ca/it/email/spamfiltering.html
        dul.dnsbl.sorbs.net 529 blocked by DULSORBS spam filter: see
        http://www.ucalgary.ca/it/email/spamfiltering.html

        [root@mhub3 ~]# postmap
        /etc/postfix/rbl_reply_maps
        [root@mhub3 ~]#

        Jun 1 17:57:01 mhub3 postfix/smtpd[3400]: NOQUEUE: reject: RCPT from
        24.115.68.73.res-cmts.brh.ptd.net[24.115.68.73]: 522 bl
        ocked by RBL-plus spam filter: see
        http://www.ucalgary.ca/it/email/spamfiltering.html;
        from=<896deepak@...> to=<student@u
        calgary.ca> proto=SMTP helo=<24.115.68.73.res-cmts.brh.ptd.net>

        Greg Hackney wrote:
        > Kai Wang wrote:
        >>
        >> We are using the default_rbl_reply for rbl rejections. We want to
        >> have our own $rbl_reason for each rbl we are using. Can anybody give
        >> me some advice?
        >>
        >> default_rbl_reply = $rbl_code Service unavailable; $rbl_class
        >> [$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason}
        >>
        >> Thanks
        >>
        > See the "rbl_reply_maps" feature
        >
        > Reference: man 5 postconf

        --
        Kai Wang
        System Services
        Information Technologies, University of Calgary,
        2500 University Drive, N.W.,
        Calgary, Alberta, Canada T2N 1N4
        Phone (403) 220-2423, Fax (403) 282-9361
      Your message has been successfully submitted and would be delivered to recipients shortly.