NDR's for Non-Existent Addresses

eamon

New Member
Jun 27, 2024
5
0
1
Hello,

I am using PMG as a mail relay server. My exchange via send connector sends all mails to PMG and the PMG sends them to the world.

I set it with an internal port of 25.

Mails are sent out but if they bounce the sender does not get an NDR.

The exchange sees that he passed the mail to the PMG and he will not generate NDR. The PMG should be the one that generate an NDR email to the sender.




LOG :
2024-08-20T09:03:41.239417-04:00 mxout postfix/smtpd[665166]: connect from hx3.cloudwm.com[5.100.254.201]
2024-08-20T09:03:42.052992-04:00 mxout postfix/smtpd[665166]: 0CE696C865: client=hx3.cloudwm.com[5.100.254.201]
2024-08-20T09:03:42.186716-04:00 mxout postfix/cleanup[665169]: 0CE696C865: message-id=<9b6bcc19a1484e53968c02991647834f@caab.cloud>
2024-08-20T09:03:42.189111-04:00 mxout postfix/qmgr[564997]: 0CE696C865: from=<test@caab.cloud>, size=2516, nrcpt=1 (queue active)
2024-08-20T09:03:42.322655-04:00 mxout postfix/smtpd[665166]: disconnect from hx3.cloudwm.com[5.100.254.201] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
2024-08-20T09:03:42.358472-04:00 mxout pmg-smtp-filter[662424]: 6C86666C4942E549A9: new mail message-id=<9b6bcc19a1484e53968c02991647834f@caab.cloud>#012
2024-08-20T09:03:42.422919-04:00 mxout postfix/smtpd[665175]: connect from localhost.localdomain[127.0.0.1]
2024-08-20T09:03:42.425219-04:00 mxout postfix/smtpd[665175]: 67C886C86E: client=localhost.localdomain[127.0.0.1], orig_client=hx3.cloudwm.com[5.100.254.201]
2024-08-20T09:03:42.469992-04:00 mxout postfix/cleanup[665169]: 67C886C86E: message-id=<9b6bcc19a1484e53968c02991647834f@caab.cloud>
2024-08-20T09:03:42.471291-04:00 mxout postfix/qmgr[564997]: 67C886C86E: from=<test@caab.cloud>, size=3339, nrcpt=1 (queue active)
2024-08-20T09:03:42.473521-04:00 mxout pmg-smtp-filter[662424]: 6C86666C4942E549A9: accept mail to <djadljsdakljsklasjslakjsksljalksjkl@gmail.com> (67C886C86E) (rule: default-accept)
2024-08-20T09:03:42.475837-04:00 mxout postfix/smtpd[665175]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
2024-08-20T09:03:42.476839-04:00 mxout pmg-smtp-filter[662424]: 6C86666C4942E549A9: processing time: 0.125 seconds (0, 0.042, 0)
2024-08-20T09:03:42.477428-04:00 mxout postfix/lmtp[665170]: 0CE696C865: to=<djadljsdakljsklasjslakjsksljalksjkl@gmail.com>, relay=127.0.0.1[127.0.0.1]:10023, delay=0.43, delays=0.14/0.05/0.11/0.13, dsn=2.5.0, status=sent (250 2.5.0 OK (6C86666C4942E549A9))
2024-08-20T09:03:42.478757-04:00 mxout postfix/qmgr[564997]: 0CE696C865: removed
2024-08-20T09:03:43.264676-04:00 mxout postfix/smtp[665176]: 67C886C86E: to=<djadljsdakljsklasjslakjsksljalksjkl@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.128.26]:25, delay=0.84, delays=0.05/0.05/0.65/0.09, dsn=5.1.1, status=bounced (host gmail-smtp-in.l.google.com[74.125.128.26] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. For more information, go to 550 5.1.1 https://support.google.com/mail/?p=NoSuchUser a640c23a62f3a-a8383948de3si729379166b.509 - gsmtp (in reply to RCPT TO command))
2024-08-20T09:03:43.347856-04:00 mxout postfix/qmgr[564997]: 67C886C86E: removed
 
I didn't saw the NDR in PMG at the because I forgot to change the e-mail from the "from" field and change it to the "to" field and mark also include empty from.

After that it was easy to see the NDR was send but was blocked by the exchange and marked as spam.

I whitelisting the PMG at The exchange and all NDR arrived.
 

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!