Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 1 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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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