I am not receiving emails (reply from 127.0.0.1)

WebGreg

New Member
Mar 11, 2023
6
0
1
Hi.

Most emails arrive, but unfortunately not all. When I checked the sender's domain in the logs - I have all accepted and none rejected. However, the sender uses different servers to send e-mails and this may be a problem.
He showed me the return email he gets:

"This is the mail system at host mx.my.domain.com.

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. (...)

<me@my.domain.com>: host 127.0.0.1[127.0.0.1] said: 554 5.7.1 Rejected for policy reasons (209D....111) (in reply to end of DATA command)
"


Since I saw the address of the local host, I told the sender that the problem was on his side and he should check with himself what the policy is. He replied that it was a response from my server, not his.

Where is the real problem?
I had a similar situation with another sender - he also had a local address and policy number in the return, but I identified that policy number in the syslog and was able to fix it. When I was looking for the policy number from the return message quoted above - I was not able to find it at home.

Please give me a hint where the problem could be and how can I identify policies by their number in proxmox?
 
I guess mx.my.domain.com is the PMG instance and that you don't have 'Before Queue Filtering' enabled, but do have 'Send NDR on Blocked E-Mails' enabled in the mail proxy options?

the 'Rejected for policy reasonse...' then would come from pmg-smtp-filter - which in turn blocked a mail because your configured rules blocked it
You will find the rule's name which did the blocking in your PMG's mail.log (or journal or syslog)
 

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!