Postfix, reject recipient without domain?

Discussion in 'Server Operation' started by kule, May 25, 2009.

  1. kule

    kule New Member

    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 "[email protected]" 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
  2. topdog

    topdog Active Member

    use this option reject_non_fqdn_sender in smtpd_recipient_restrictions
  3. kule

    kule New Member

    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

Share This Page