Hey everyone,
I've setup Proxmox Mail Gateway as a relay mail server with the intent of using it to filter both incoming and outgoing messages for spam. Currently, I have it working correctly with all my outgoing messages by using the smarthost setting in exim.
I can not get the incoming to work correctly. This is what I've tried:
- Set PMG to proxy via the "Relay Domains"
- Setup a transport for the same domain to the correct cPanel server (on its public IP)
- Changed the MX record of the domain I'm testing with to point at my PMG server
- Added the IP of my server into the /etc/alwaysrelay and /etc/trustedmailhosts files
- Disabled CXS
- Added the IP to the exim config via Trusted SMTP IP addresses
- Possibly more, I feel like I've tried so many things and none has worked.
The result I see with every config change is the message is bounced back to the sender email (a gmail account if that matters) immediately, then shortly after a second message.
The first message says:
I haven't been able to find much in the logs that I've found helpful, but one message I see is
No matter what I've tried I don't receive the message in the final domain and it's bounced back.
Does anybody have any thoughts?
Cheers,
Eric
I've setup Proxmox Mail Gateway as a relay mail server with the intent of using it to filter both incoming and outgoing messages for spam. Currently, I have it working correctly with all my outgoing messages by using the smarthost setting in exim.
I can not get the incoming to work correctly. This is what I've tried:
- Set PMG to proxy via the "Relay Domains"
- Setup a transport for the same domain to the correct cPanel server (on its public IP)
- Changed the MX record of the domain I'm testing with to point at my PMG server
- Added the IP of my server into the /etc/alwaysrelay and /etc/trustedmailhosts files
- Disabled CXS
- Added the IP to the exim config via Trusted SMTP IP addresses
- Possibly more, I feel like I've tried so many things and none has worked.
The result I see with every config change is the message is bounced back to the sender email (a gmail account if that matters) immediately, then shortly after a second message.
The first message says:
The second message has a LOT of header info added indicating it's been received by both my mail gateway and cPanel, but cPanel has sent it back.This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed
I haven't been able to find much in the logs that I've found helpful, but one message I see is
Counting the duplicate subject lines it looks like the message is processed 10 times.** [email protected]: Too many "Received" headers - suspected mail loop
No matter what I've tried I don't receive the message in the final domain and it's bounced back.
Does anybody have any thoughts?
Cheers,
Eric