Blacklist for recipients

Discussion in 'Installation/Configuration' started by NathanEBO, Mar 21, 2025.

  1. NathanEBO

    NathanEBO New Member

    Hi
    I cannot get the blacklist to work when sending to blacklisted recipients. I have checked the mysql db and it has the correct entries in it as displayed in ISPCONFIG.
    The main.cf file of postfix is:
    ```smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, reject_unlisted_recipient, check_recipient_access proxy:mysql:/etc/postfix/mysql-virtual_recipient.cf, permit_sasl_authenticated, reject_non_
    fqdn_recipient, reject_unauth_destination, check_policy_service unix:private/quota-status```

    I have also checked the file: /etc/postfix/mysql-virtual_recipient.cf
    This is all correct and the select statement responds with REJECT as it should.
    There are no errors in mail.err or mail.log BUT the email is still sent to my blacklisted email address.
    I'm at the end of the tunnel now..... help needed thanks in advance
     
  2. NathanEBO

    NathanEBO New Member

    Sorry forgot to add the following test results in REJECT

    "postmap -q rejectatoutlook.com mysql:/etc/postfix/mysql-virtual_recipient.cf"

    REJECT
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    It might be that you have to enter @rejectatoutlook.com and not rejectatoutlook.com in the blacklist.
     
  4. NathanEBO

    NathanEBO New Member

    Ok so further investigation shows that my h application using php mail bypasses SMTPD and uses the sendmail function, so this will not work. Apparently virtual alias maps might work.....
     

Share This Page