Portion of main.cf not evaluated

Discussion in 'Installation/Configuration' started by todgerme, Mar 26, 2015.

  1. todgerme

    todgerme Member

    Hi,

    I am finding no-matter what you add into the Postfix global white/blacklist - it get's ignored:

    The lines:
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf

    My other config:

    smtpd_recipient_restrictions =
    reject_invalid_hostname,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unknown_sender_domain,
    reject_unknown_recipient_domain,
    permit_mynetworks,
    permit_sasl_authenticated,
    check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf
    reject_unauth_destination,
    reject_rbl_client bl.spamcop.net,
    reject_rbl_client sbl-xbl.spamhaus.org,
    reject_rbl_client cbl.abuseat.org,
    reject_rbl_client b.barracudacentral.org,
    reject_rbl_client combined.rbl.msrbl.net,
    reject_rbl_client cidr.bl.mcafee.com,
    reject_rbl_client ix.dnsbl.manitu.net,
    reject_rbl_client hostkarma.junkemailfilter.com=127.0.0.2,
    reject_rbl_client bl.spameatingmonkey.net,
    reject_rbl_client smtp.dnsbl.sorbs.net,
    reject_rbl_client web.dnsbl.sorbs.net,
    reject_rbl_client zombie.dnsbl.sorbs.net,
    reject_rbl_client cidr.bl.mcafee.com,
    reject_rbl_client bl.mailspike.net,
    reject_rbl_client spamsources.fabel.dk,
    reject_rbl_client bl.score.senderscore.com,
    reject_rbl_client new.spam.dnsbl.sorbs.net,
    reject_rhsbl_sender dsn.rfc-ignorant.org,
    check_policy_service unix:private/tumgreyspf
    permit

    If I move check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf into the "smtpd_recipient_restrictions =" it will happily work, but surely that can't be the best solution?

    Keith
     

Share This Page