PMG outgoing mail: connection timed out.

dreadnaut

New Member
Jun 5, 2023
7
0
1
Sorry this is a similar post to a lot out there. I've read them and still stuck. Not sure where to go from here.

I've been trying to get postfix mail server up and running past couple days and pointed at PMG and this morning I finally got that piece of the puzzle solved.

Now the mail is going from the server to the queue in PMG but it after a minute or so after saying it it 'queued/accepted' with a green check, it goes back to 'queued/deferred'. My internal port is 26, external is 25. I can telnet from PMG to the server and get the ESMTP message. I can

Code:
traceroute -n -T -p 26 alt2.gmail-smtp-in.l.google.com

but not

Code:
traceroute -n -T -p 25 alt2.gmail-smtp-in.l.google.com

Port 25 stops at the SmartNID/modem gateway. I cannot turn it to transparent mode like previous models.

Quantum C6500XK is the model.

I've had 4 different Quantum reps tell me that they do not have a block on port 25. I've had the SmartNID firewall turned off, but I then turned it on to explicitly allow port 25. Still same errors.

Code:
2024-03-22T14:35:32.801374-05:00 mail postfix/smtpd[10156]: connect from unknown[10.100.100.1]
2024-03-22T14:35:32.809059-05:00 mail postfix/smtpd[10156]: C5814E0B28: client=unknown[10.100.100.1]
2024-03-22T14:35:32.809972-05:00 mail postfix/cleanup[10159]: C5814E0B28: message-id=<20240322193532.B3689200042@serv1.somedomain.com>
2024-03-22T14:35:32.815216-05:00 mail postfix/smtpd[10156]: disconnect from unknown[10.100.100.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
2024-03-22T14:35:32.815357-05:00 mail postfix/qmgr[9920]: C5814E0B28: from=<root@somedomain.com>, size=558, nrcpt=1 (queue active)
2024-03-22T14:35:32.862925-05:00 mail pmg-smtp-filter[5572]: E0B3965FDDD84D23BA: new mail message-id=<20240322193532.B3689200042@serv1.somedomain.com>#012
2024-03-22T14:35:32.878193-05:00 mail postfix/smtpd[10164]: connect from localhost.localdomain[127.0.0.1]
2024-03-22T14:35:32.878954-05:00 mail postfix/smtpd[10164]: D691DE0B3A: client=localhost.localdomain[127.0.0.1], orig_client=unknown[10.100.100.1]
2024-03-22T14:35:32.921082-05:00 mail postfix/cleanup[10159]: D691DE0B3A: message-id=<20240322193532.B3689200042@serv1.somedomain.com>
2024-03-22T14:35:32.926828-05:00 mail postfix/qmgr[9920]: D691DE0B3A: from=<root@somedomain.com>, size=771, nrcpt=1 (queue active)
2024-03-22T14:35:32.926890-05:00 mail pmg-smtp-filter[5572]: E0B3965FDDD84D23BA: accept mail to <someemail@proton.me> (D691DE0B3A) (rule: default-accept)
2024-03-22T14:35:32.927071-05:00 mail postfix/smtpd[10164]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
2024-03-22T14:35:32.929535-05:00 mail pmg-smtp-filter[5572]: E0B3965FDDD84D23BA: processing time: 0.065 seconds (0, 0.01, 0)
2024-03-22T14:35:32.929770-05:00 mail postfix/lmtp[10160]: C5814E0B28: to=<someemail@proton.me>, relay=127.0.0.1[127.0.0.1]:10023, delay=0.12, delays=0.01/0/0.04/0.07, dsn=2.5.0, status=sent (250 2.5.0 OK (E0B3965FDDD84D23BA))
2024-03-22T14:35:32.929987-05:00 mail postfix/qmgr[9920]: C5814E0B28: removed
2024-03-22T14:38:03.205015-05:00 mail postfix/smtp[10141]: D691DE0B3A: to=<someemail@proton.me>, relay=none, delay=150, delays=0.05/0/150/0, dsn=4.4.1, status=deferred (connect to mailsec.protonmail.ch[185.70.42.129]:25: Connection timed out)
2024-03-22T14:43:27.325727-05:00 mail postfix/qmgr[9920]: D691DE0B3A: from=<root@somedomain.com>, size=771, nrcpt=1 (queue active)
2024-03-22T14:45:57.640997-05:00 mail postfix/smtp[10227]: D691DE0B3A: to=<someemail@proton.me>, relay=none, delay=625, delays=474/0.01/150/0, dsn=4.4.1, status=deferred (connect to mailsec.protonmail.ch[185.205.70.129]:25: Connection timed out)

Same for gmail servers

Code:
2024-03-22T14:07:30.595686-05:00 mail postfix/error[9889]: 812F5E0B29: to=<someemail@gmail.com>, relay=none, delay=0.07, delays=0.05/0/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[172.253.62.27]:25: Connection timed out)
2024-03-22T14:08:36.270030-05:00 mail postfix/qmgr[9920]: 812F5E0B29: from=<root@somedomain.com>, size=771, nrcpt=1 (queue active)
2024-03-22T14:09:36.520917-05:00 mail postfix/smtp[9956]: 812F5E0B29: to=<someemail@gmail.com>, relay=none, delay=126, delays=66/0.01/60/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4004:c07::1a]:25: Network is unreachable)
 
Time
Log comp
Log subtype
Username
Firewall rule
Firewall rule name
NAT rule
NAT rule name
In interface
Out interface
Src IP
Dst IP
Src port
Dst port
protocol
Rule type

2024-03-22 15:48:03Firewall RuleAllowed26MAIL to LAN2Default SNAT IPv...Port3Port210.100.100.10142.251.166.275214925TCP


I think I have eliminated the ISP as blocking. Maybe it could be traceroute issue to 25. It is being allowed through my FW.
 
The logs simply say, that PMG cannot connect to port 25 on both protonmail server and gmail servers.
As it's really unlikely that both are down - my guess is that your ISP simply does not allow connections on port 25 from your IP
(This is not uncommon, as it is quite an effective way to prevent spam from the customer IPs)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!