No mail is Accepted on localhost
This is an entry for an existing PR.
When using the role we get errors in the logs:
Jan 02 12:00:29 theHostName postfix/smtpd[133726]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destinat>
Jan 02 12:00:30 theHostName postfix/master[133716]: warning: process /usr/lib/postfix/sbin/smtpd pid 133726 exit status 1
Jan 02 12:00:30 theHostName postfix/master[133716]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
Research result: Apparently somewhere in the Postfix config
mynetworks = 127.0.0.0/8 [::1]/128
and
smtpd_relay_restrictions = permit_mynetworks, reject
or similar are required to allow relaying on localhost.
@andanotheruser has submitted a PR https://github.com/Oefenweb/ansible-postfix/pull/143
Apparently somewhere in the Postfix config (...) or similar ARE REQUIRED to allow relaying on localhost.
Looks like the two words "are required" are missing :)
(Luckily I still had some spare words lying around :D)
Which OS, postfix version are you running?
Related #122
Which OS, postfix version are you running?
Version needs to be looked up, but it is always Debian.