Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question

marked as duplicate by masegaloeh, Katherine Villyard, mdpc, HBruijn, Sven Jan 17 '15 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.

up vote 1 down vote accepted

Your 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.