ansible-postfix icon indicating copy to clipboard operation
ansible-postfix copied to clipboard

No mail is Accepted on localhost

Open rainerrose opened this issue 11 months ago • 4 comments

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

rainerrose avatar Jan 10 '25 14:01 rainerrose

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)

andanotheruser avatar Jan 16 '25 08:01 andanotheruser

Which OS, postfix version are you running?

tersmitten avatar Feb 27 '25 12:02 tersmitten

Related #122

tersmitten avatar Feb 27 '25 12:02 tersmitten

Which OS, postfix version are you running?

Version needs to be looked up, but it is always Debian.

andanotheruser avatar Feb 27 '25 12:02 andanotheruser