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

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.