I tried correcting e-mail settings yesterday, but seems the situation got worse. mail.log shows lots of stuff similar to these: Code: Apr 14 10:02:00 posti amavis[29612]: (29612-12-8) Blocked MTA-BLOCKED {TempFailedInbound}, [178.33.154.99]:43926 [37.33.107.99] <[email protected]> -> <[email protected]>, Queue-ID: 81AC6A00FA, Message-ID: <[email protected]>, mail_id: oEhuErZY-P3k, Hits: -0.1, size: 5435, dkim_sd=default:mydomain.fi, 23583 ms Apr 14 10:02:01 posti postfix/smtp[30095]: 81AC6A00FA: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, conn_use=8, delay=52598, delays=52446/129/0/24, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=29612-12-8 - Temporary MTA failure on relaying, From MTA() during fwd-connect (No greeting, dt: 20.198 s): id=29612-12-8 (in reply to end of DATA command)) I have not figured out why the mail does not get delivered. I changed stuff to comply what howto and manual said. Code: root@posti:~# postconf -n | grep mynetwork mynetworks = 127.0.0.0/8 12.34.567.192/27 [::1]/128 There I had forgot to add my subnet. I tried also the IP-address of web server, where I expect to receive e-mails.
Maybe a part of the amavis related config in master.cf is missing: https://www.howtoforge.com/community/threads/solved-postfix-cant-send-and-recieve-mails.70782/ The relevant part is towards the end of the file. I've attached a master.cf file from a Debian system, maybe you can compare it with your master.cf, the relevant part is from line 130 to end.
I compared the master.cf files, only diffs are on the mynetworks -lines, where in addition to localnet I have my subnet where this multiserver setup is. The setup is ISPConfig 3.1.11, Debian Stretch, hosts Web with everything except mail and DNS, host posti which does the e-mail and two name servers. While I was out of office, the web managed to send mails in it's mail queue. I had 480 mails before noon. Maybe they moved to posti, since it suddenly went from 120 mails in queue to now 691.
Following http://www.postfix.org/DEBUG_README.html I did Code: root@posti:/etc/postfix# date ; time /usr/sbin/sendmail -v [email protected] la 14.4.2018 16.33.13 +0300 Root does not get any mail, at least not yet.
Seems I finally found the mistake I had made. The mynetworks-setting is also in Postfix master.cf, the lines look exactly the same as in main.cf. I had added my subnet also in master.cf, which seems quite fatal to Postfix. What I do not understand is that I am sure I grepped fatal already this morning from mail.log. Somehow I have botched that and did not discover the fatal error messages.