bot47 Asked: 2011-06-04 07:17:34 +0800 CST2011-06-04 07:17:34 +0800 CST 2011-06-04 07:17:34 +0800 CST Postfix/Rejecting mails [duplicate] 772 How do I make Postfix to reject all mails if the client is not authenticated and to sender is @mydomain? Is the an easy way to do this? Max email spam smtp postfix 1 Answers Voted Best Answer mailq 2011-06-10T03:45:53+08:002011-06-10T03:45:53+08:00 Your main.cf should contain this line: smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, permit But make sure that the "client" is not in the network defined by mynetworks=. Otherwise it will bypass the authentication test.
Your main.cf should contain this line:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, permit
But make sure that the "client" is not in the network defined by
mynetworks=
. Otherwise it will bypass the authentication test.