Using DNS Blacklists (dnsbl) - not working

Discussion in 'Server Operation' started by HackerJL, Nov 8, 2006.

  1. HackerJL

    HackerJL New Member

    There are a few posts around here about using dnsbl's so I figured I would add what I needed on the config files and see what happens.

    So here is a snip of what I am using (its the /etc/postfix/main.cf):

    ----
    smtpd_recipient_restrictions = permit_sasl_authenticated,
    permit_mynetworks,
    check_relay_domains,
    reject_rbl_client sbl-xbl.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    permit
    ----

    But when I do the sbl test it says its going through perfectly fine.

    Am I missing something?

    I am using input from this post:
    http://www.howtoforge.com/forums/showthread.php?t=7802&highlight=smtpd_recipient_restrictions
     
  2. falko

    falko Super Moderator ISPConfig Developer

    It must be

    Code:
    smtpd_recipient_restrictions = permit_sasl_authenticated,
          permit_mynetworks,
          check_relay_domains,
          reject_rbl_client sbl-xbl.spamhaus.org,
          reject_rbl_client bl.spamcop.net,
          permit
    (note the whitespace at the beginning of lines 2 - 6)

    instead of

    Code:
    smtpd_recipient_restrictions = permit_sasl_authenticated,
    permit_mynetworks,
    check_relay_domains,
    reject_rbl_client sbl-xbl.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    permit
     
  3. HackerJL

    HackerJL New Member

    Whitespace is created with what...tab? space?
     
  4. sjau

    sjau Local Meanie Moderator

    yes, you can use tabs for that...
     
  5. HackerJL

    HackerJL New Member

    Nope... that didnt work. The only way I can get it to work is by adding the reject_rbl_client to the smtp_sender_restrictions and then it works.

    that make sense?

    Here is what I tried:

    Code:
    smtpd_recipient_restrictions = permit_sasl_authenticated,
            permit_mynetworks,
            check_relay_domains,
            reject_rbl_client sbl-xbl.spamhaus.org,
            permit
    When I do that, and do the sbl test, it says its not working. But when i have it in the smtp_sender_restrictions it works...like this:

    Code:
    smtpd_sender_restrictions = reject_rbl_client sbl-xbl.spamhaus.org,
           reject_rbl_client bl.spamcop.net,
           reject_rbl_client relays.ordb.org,
           permit
     
    Last edited: Nov 10, 2006
  6. falko

    falko Super Moderator ISPConfig Developer

    That's strange. Are there any errors in your mail log? Which Postfix version do you use? You can find out by running
    Code:
    postconf -d | grep mail_version
     

Share This Page