How to change the respond with error code 450 to 550

CHARLE

New Member
Jun 21, 2023
3
0
1
I enable the Reject Unknown Clients to YES.


postfix/smtpd[12695]: NOQUEUE: reject: RCPT from unknown[172.xx.xx.xx]: 450 4.7.25 Client host rejected: cannot find your hostname,


I already Verify receivers to YES (550) but issue is the same.

my goal is to block all incoming domain and whitelist the trusted domain


Thank you.
 
These mails are rejected because they don't have a matching forward and reverse DNS entry (or because your PMG's DNS setup is broken)
In general a temporary error makes sense in this case (as the admin of the remote system could fix their configuration in the meantime)

But you can adapt the postfix configuration to send a permanent error in those cases.

The settings are `reject_unknown_client_hostname` and `reject_unknown_sender_domain` - and the postfix documentation on those settings:
https://www.postfix.org/postconf.5.html#reject_unknown_client_hostname
points to https://www.postfix.org/postconf.5.html#unknown_client_reject_code
see 4.7.4 in https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_mail_proxy_configuration

To adapt the postfix configuration in PMG you need to use the templateing system:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

I hope this helps!
 
Thank you for response.

But if the Reject Unknown Clients is disable. All email is fine can send and receive with no block.

1689125134275.png
Our email server is MS exchange.

Thank you.
 

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!