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

This question is an exact duplicate of:

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

marked as duplicate by masegaloeh, Katherine Villyard, mdpc, HBruijn, Sven Jan 17 at 9:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new 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

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