Verify Receivers and bounce message

piromax

New Member
Oct 17, 2019
3
0
1
44
Hello,
I use proxmox mail gateway as a relay server. The final mail server is a exchange server. I enabled the verify receivers and set it to Yes (550) on PMG.

Question:
Is it possible set PMG to response said 550 (User unknown) directly sender server? Without accept message and send undelivery notification?

My exchange server is set to response 550 User unknown. The PMG is NOT configured for use LDAP or AD.
Regards

Thanks
 
Question:
Is it possible set PMG to response said 550 (User unknown) directly sender server? Without accept message and send undelivery notification?
That should be what happens (if you've correctly configured the relay-domains and transports)
could you post some anonymized logs of where things go wrong ?
 
Thanks for fast reply

Set No verify receivers
Code:
Nov 7 10:03:29 PMG postfix/smtpd[27585]: connect from xxxxxxx.google.com[xx.xx.xx.xx]
Nov 7 10:03:29 PMG postfix/smtpd[27585]: C3DEB44148: client=xxxxxxx.google.com[xx.xx.xx.xx]
Nov 7 10:03:29 PMG postfix/cleanup[27577]: C3DEB44148: message-id=<xxxxxxx@mail.gmail.com>
Nov 7 10:03:29 PMG postfix/qmgr[24465]: C3DEB44148: from=<xxxxxxx@gmail.com>, size=2814, nrcpt=1 (queue active)
Nov 7 10:03:29 PMG pmg-smtp-filter[27417]: 4594D5DC3EBF1CF949: new mail message-id=<xxxxxxx@mail.gmail.com>#012
Nov 7 10:03:29 PMG postfix/smtpd[27582]: connect from localhost.localdomain[127.0.0.1]
Nov 7 10:03:29 PMG postfix/smtpd[27582]: D5D0F4597B: client=localhost.localdomain[127.0.0.1], orig_client=xxxxxxx.google.com[xx.xx.xx.xx]
Nov 7 10:03:29 PMG postfix/cleanup[27593]: D5D0F4597B: message-id=<xxxxxxx@mail.gmail.com>
Nov 7 10:03:29 PMG postfix/qmgr[24465]: D5D0F4597B: from=<xxxxxxx@gmail.com>, size=3032, nrcpt=1 (queue active)
Nov 7 10:03:29 PMG postfix/smtpd[27582]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Nov 7 10:03:29 PMG pmg-smtp-filter[27417]: 4594D5DC3EBF1CF949: accept mail to <falseuser@mydomain.com> (D5D0F4597B) (rule: default-accept)
Nov 7 10:03:29 PMG pmg-smtp-filter[27417]: 4594D5DC3EBF1CF949: processing time: 0.074 seconds (0, 0.012, 0)
Nov 7 10:03:29 PMG postfix/lmtp[27594]: C3DEB44148: to=<falseuser@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.41, delays=0.29/0/0.04/0.08, dsn=2.5.0, status=sent (250 2.5.0 OK (4594D5DC3EBF1CF949))
Nov 7 10:03:29 PMG postfix/qmgr[24465]: C3DEB44148: removed
Nov 7 10:03:30 PMG postfix/smtpd[27585]: disconnect from xxxxxxx.google.com[xx.xx.xx.xx] ehlo=1 mail=1 rcpt=1 bdat=1 quit=1 commands=5
Nov 7 10:03:34 PMG postfix/smtp[27583]: D5D0F4597B: to=<falseuser@mydomain.com>, relay=myexchange.com [xx.xx.xx.xx]:25, delay=5.1, delays=0.05/0/0/5, dsn=5.1.1, status=bounced (host myexchange.com[xx.xx.xx.xx] said: 550 5.1.1 User unknown (in reply to end of DATA command))
Nov 7 10:03:34 PMG postfix/qmgr[24465]: D5D0F4597B: removed

Set Yes verify receivers 550
Code:
Nov 7 10:26:15 PMG postfix/smtpd[714]: connect from xxxxxxx.google.com[xx.xx.xx.xx]
Nov 7 10:26:15 PMG postfix/smtpd[714]: 8A4EC43B65: client=xxxxxxx.google.com[xx.xx.xx.xx]
Nov 7 10:26:15 PMG postfix/cleanup[1863]: 8A4EC43B65: message-id=<xxxxxxx@mail.gmail.com>
Nov 7 10:26:15 PMG postfix/qmgr[581]: 8A4EC43B65: from=<xxxxxxx@gmail.com>, size=2813, nrcpt=1 (queue active)
Nov 7 10:26:15 PMG pmg-smtp-filter[28631]: 459785DC3F14797E42: new mail message-id=<xxxxxxx@mail.gmail.com>#012
Nov 7 10:26:15 PMG postfix/smtpd[1868]: connect from localhost.localdomain[127.0.0.1]
Nov 7 10:26:15 PMG postfix/smtpd[1868]: A01EA4597B: client=localhost.localdomain[127.0.0.1], orig_client=xxxxxxx.google.com[xx.xx.xx.xx]
Nov 7 10:26:15 PMG postfix/cleanup[1863]: A01EA4597B: message-id=<xxxxxxx@mail.gmail.com>
Nov 7 10:26:15 PMG postfix/qmgr[581]: A01EA4597B: from=<xxxxxxx@gmail.com>, size=3031, nrcpt=1 (queue active)
Nov 7 10:26:15 PMG pmg-smtp-filter[28631]: 459785DC3F14797E42: accept mail to <falseuser@mydomain.com> (A01EA4597B) (rule: default-accept)
Nov 7 10:26:15 PMG postfix/smtpd[1868]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Nov 7 10:26:15 PMG pmg-smtp-filter[28631]: 459785DC3F14797E42: processing time: 0.081 seconds (0, 0.012, 0)
Nov 7 10:26:15 PMG postfix/lmtp[1864]: 8A4EC43B65: to=<falseuser@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.44, delays=0.3/0.01/0.04/0.09, dsn=2.5.0, status=sent (250 2.5.0 OK (459785DC3F14797E42))
Nov 7 10:26:15 PMG postfix/qmgr[581]: 8A4EC43B65: removed
Nov 7 10:26:15 PMG postfix/smtpd[714]: disconnect from xxxxxxx.google.com[xx.xx.xx.xx] ehlo=1 mail=1 rcpt=1 bdat=1 quit=1 commands=5
Nov 7 10:26:20 PMG postfix/smtp[1869]: A01EA4597B: to=<falseuser@mydomain.com>, relay=myexchange.com [xx.xx.xx.xx]:25, delay=5.1, delays=0.05/0.01/0/5, dsn=5.1.1, status=bounced (host myexchange.com[xx.xx.xx.xx] said: 550 5.1.1 User unknown (in reply to end of DATA command))
Nov 7 10:26:20 PMG postfix/qmgr[581]: A01EA4597B: removed

there are no differences

Is it possible set PMG to response directly (similar)
Code:
Nov 7 10:26:20 PMG postfix/smtp[1869]: A01EA4597B: to=<falseuser@mydomain.com>, relay=mypmg.com [xx.xx.xx.xx]:25, delay=5.1, delays=0.05/0.01/0/5, dsn=5.1.1, status=bounced (host mypmg.com[xx.xx.xx.xx] said: 550 5.1.1 User unknown (in reply to end of DATA command))

Thanks
 

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!