Browse Source

server: require fully-qualified domain form for MAIL FROM addrs

motivation:
- RFC requirement
- won't be able to deliver bounce messages otherwise
  (assuming we haven't extended our /etc/hosts or DNS table)

http://www.postfix.org/postconf.5.html#reject_non_fqdn_sender
Fabian Peter Hammerle 5 years ago
parent
commit
a8c1828fe5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main.cf

+ 1 - 0
main.cf

@@ -2,6 +2,7 @@
 inet_interfaces = all
 # $myhostname is as prefix is a RFC requirement
 smtpd_banner = $myhostname ESMTP $mail_name quid agis?
+smtpd_sender_restrictions = reject_non_fqdn_sender
 # RCPT TO matches $relay_domains => !reject_unauth_destination
 smtpd_relay_restrictions = reject_non_fqdn_recipient, reject_unauth_destination
 # include TLS protocol & cipher in 'Received' header