Menu

recipient access list results in no emails

LDK
2013-09-06
2013-09-06
  • LDK

    LDK - 2013-09-06

    Hi.

    I am trying to block only specific addresses.

    The Hash file only contains this
    someaddress.domain.com REJECT Reason

    My main.cf looks like this

    smtpd_client_restrictions =
    smtpd_helo_restrictions =
    smtpd_sender_restrictions =
    smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces check_recipient_access hash:/etc/postfix/BlockingList reject rbl_client zen.spamhaus.org permit

    The above config allows nothing to come through

    But it sends email fine if i use the following main.cf

    smtpd_client_restrictions = permit_mynetworks permit_inet_interfaces reject_rbl_client zen.spamhaus.org

    Could someone please assist on how i can block just a specific recipient.
    Im sure im missing something simple.

    Thank you

     
    • Lewis Butler

      Lewis Butler - 2013-09-06

      On 06 Sep 2013, at 07:36 , LDK ljdk@users.sf.net wrote:

      I am trying to block only specific addresses.

      The Hash file only contains this
      someaddress.domain.com REJECT Reason

      My main.cf looks like this

      smtpd_client_restrictions =
      smtpd_helo_restrictions =
      smtpd_sender_restrictions =
      smtpd_recipient_restrictions = permit_mynetworks permit_inet_interfaces check_recipient_access hash:/etc/postfix/BlockingList reject rbl_client zen.spamhaus.org permit

      I use a pcre table instead of a hash (much easier to maintain manually). The format is:

      /^www\@mail.example.com/ 550 Invalid Webmail return address
      /^www$/ 550 Invalid Webmail return address

      (Please subscribe to postfix-users http://www.postfix.org/lists.html to ask questions about postfix).

      --
      ɹןʇnqן
      lbutler@covisp.net
      303.219.0564

       
  • Christian Boltz

    Christian Boltz - 2013-09-06

    Do you really have

    reject rbl_client zen.spamhaus.org
    

    as in "reject space rbl_client"?

    If yes, this would explain it - it should be recect_rbl_client (with underscores)

     

Log in to post a comment.