On 17 November 2011 01:13, Dilip Mishra // Viva
<dilip.mis...@vivainfomedia.com> wrote:
> Hello Group,
> I want to implement some restrictions on postfix by which it would reject
> domains without mx records, as well as those specified in access table.
> These are some domains to I do not want to send mails at all. My problem is
> that, this setting does not work at all, since the sending IPs are specified
> in mynetworks. The moment I change the order of the parameters, it starts to
> reject all mails from all the IPs. Please help me to set the correct order
> of the parameters in main.cf:
> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
> permit_inet_interfaces, check_recipient_access hash:/etc/postfix/access,
> reject_unauth_destination, reject_rbl_client list.dsbl.org,
> reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-xbl.spamhaus.org,
> reject_rhsbl_sender dsn.rfc-ignorant.org, check_relay_domains


I would also suggest that you need permit_sasl_authenticated before
permit_mynetworks.  And reject_unauth_destination should maybe also be
higher up.  And what purpose does your relay_domains server at the
end?

Simon

Reply via email to