In the process of writing this email, I found the root cause of my problem :) , but anyway if anybody suffers similarly, and Just For The Record, I'll send it anyway, including the solution(s).

I have a multi-instance setup to do spam-filtering before I expand aliases for a mailing-list. Mail submittet from MUA to internal users is supposed to go postfix-external-submit -> postfix-relay -> postfix-local-deliver.

I very rarely send mail internally, but today I got this error:

2025-04-14T13:04:17.489875+02:00 garbo postfix-external-submit/qmgr[3582]: 6069A4848F08: from=<ha...@alstadheim.priv.no>, size=1089, nrcpt=1 (queue active) 2025-04-14T13:04:17.498316+02:00 garbo postfix-external-submit/local[21039]: 6069A4848F08: passing <ha...@alstadheim.priv.no> to transport=smtp 2025-04-14T13:04:17.516132+02:00 garbo postfix-external-submit/smtp[21040]: connect to localhost[148.252.106.155]:10029: Connection refused 2025-04-14T13:04:17.522798+02:00 garbo postfix-external-submit/smtp[21040]: 6069A4848F08: to=<ha...@alstadheim.priv.no>, orig_to=<famil...@alstadheim.priv.no>, relay=none, delay=0.13, delays=0.1/0.01/0.02/0, dsn=4.4.1, status=deferred (connect to localhost[148.252.106.155]:10029: Connection refused)

148.252.106.155 is the outside interface on my router.  I have NO idea how that address got picked up. postfix-external-submig had:

mailbox_transport = smtp:[localhost]:10029

When I changed it to:

mailbox_transport = smtp:[127.0.0.1]:10029

The mail went through. Still, I'm concerned how [localhost] got translated to the outside interface. If I do "dig alstadheim.priv.no" on my mailserver, I get that wrong address, from the global DNS-system, but that should have no bearing on looking up "localhost" however, and this is THE SOLUTION:

i had this in /etc/hosts:

127.0.0.1    localhost

Changed to

127.0.0.1    localhost localhost.alstadheim.priv.no

Problem fixed, I believe.

So, evidently localhost gets looked up as localhost.alstadheim.priv.no when connecting to the mailbox transport.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to