logging external smtp mail sent via port 26

hvillemoes

Active Member
Dec 13, 2020
16
2
43
74
It seems, that external smtp mail sent via port 26 is not logged and cannot be displayed in the tracking center.

How do I enable that logging ?

Thanks

/ Harald
 
It seems, that external smtp mail sent via port 26 is not logged and cannot be displayed in the tracking center.
mails in pmg are logged for each port - and the tracking center takes its information from the logs - so mails received on both ports are normally logged.

external smtp mail sent via port 26
by default 26 is the internal port ? (as 25 is the port where email is sent to on the internet)
 
HI - I do not agree.
My pmg is configuret as I have read the manual, that is:
  • Mail from the internet to my domains are received by pmg on port 25 and after filtering relayed to my internal mailserver.
    These mails are logged and can be observed on the GUI.

  • Mail fron internal senders to external recipients are sent to pmg port 26, and after filtering by pmg relayed out to the internet.
    These mails are NOT logged and displayed on the GUI.
    I want to enable that logging - how ?
 
My pmg is configuret as I have read the manual, that is:
Thanks for the clarification !

could you please:
* send such a message from your internal sender to the external recipients
* share the journal or /var/log/syslog part that shows the timespan in which you sent the mail?
 
2026-02-06T16:50:37.933740+01:00 mailgw postfix/smtpd[194687]: connect from localhost.localdomain[127.0.0.1]
2026-02-06T16:50:37.935643+01:00 mailgw postfix/smtpd[194687]: E4674E174A: client=localhost.localdomain[127.0.0.1], orig_client=odysseus[10.9.10.32]
2026-02-06T16:50:37.977550+01:00 mailgw postfix/cleanup[194681]: E4674E174A: message-id=<9759fc50-686b-4f82-9c67-0caf3855768f@villemoes.dk>
2026-02-06T16:50:38.003745+01:00 mailgw postfix/qmgr[933]: E4674E174A: from=<harald@villemoes.dk>, size=3856, nrcpt=1 (queue active)
2026-02-06T16:50:38.003908+01:00 mailgw postfix/smtpd[194687]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
2026-02-06T16:50:38.004245+01:00 mailgw pmg-smtp-filter[193755]: E05F669860DCD0768F: accept mail to <haraldvillemoes@gmail.com> (E4674E174A) (rule: Whitelist out)
2026-02-06T16:50:38.008857+01:00 mailgw pmg-smtp-filter[193755]: E05F669860DCD0768F: processing time: 0.973 seconds (0.845, 0.041, 0)
2026-02-06T16:50:38.009324+01:00 mailgw postfix/lmtp[194682]: EAE42E04AD: to=<haraldvillemoes@gmail.com>, relay=127.0.0.1[127.0.0.1]:10023, delay=1, delays=0.03/0/0.04/0.98, dsn=2.5.0, status=sent (250 2.5.0 OK (E05F669860DCD0768F))
2026-02-06T16:50:38.009685+01:00 mailgw postfix/qmgr[933]: EAE42E04AD: removed
2026-02-06T16:50:38.341562+01:00 mailgw postfix/smtp[194688]: connect to gmail-smtp-in.l.google.com[2a00:1450:4010:c0e::1b]:25: Network is unreachable
2026-02-06T16:50:38.479143+01:00 mailgw postfix/smtp[194688]: Trusted TLS connection established to gmail-smtp-in.l.google.com[74.125.131.27]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519
2026-02-06T16:50:39.565288+01:00 mailgw postfix/smtp[194688]: E4674E174A: to=<haraldvillemoes@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.131.27]:25, delay=1.6, delays=0.07/0/0.55/1, dsn=2.0.0, status=sent (250 2.0.0 OK 1770393041 38308e7fff4ca-386b6244641si9043171fa.13 - gsmtp)
2026-02-06T16:50:39.565580+01:00 mailgw postfix/qmgr[933]: E4674E174A: removed
2026-02-06T16:50:41.998101+01:00 mailgw postfix/smtpd[194715]: disconnect from odysseus[10.9.10.32] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
 
Oh, I rest my case - this mail was actually logged.
I'm sorry for the disturbance.

Maybe the mails missing from the pmg logging was sent around pmg and directly to the recipient domain.
I will look into that.
I might close port 25 outgoing in my firewall :-)
 
  • Like
Reactions: Stoiko Ivanov