PDA

View Full Version : Postfix, reject recipient without domain?


kule
25th May 2009, 13:29
I've used the postfix, mysql, dovecot, virtual users howto which has worked great over the last few months.

I have one minor query:

Occasionally I have users messing up and sending emails without a domain name e.g. "jill". What happens is it then gets converted to "jill@mydomain.com" and I get the email sent to me via my catch all.

Instead; Is it possible to reject emails that don't have the domain specified and bounce a message back to the sender and, if so, how do I do it?

Many Thanks
Luke

topdog
25th May 2009, 17:31
use this option reject_non_fqdn_sender in smtpd_recipient_restrictions

kule
25th May 2009, 17:57
Thanks for the reply I tried your suggestion (and restarted postfix) using reject_non_fqdn_sender & also tried reject_non_fqdn_recipient but neither worked.

Would this be something to do with having virtual users setup or am I missing something obvious?


smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender