I'm using Proxmox VE, and when I was moving to a different host, from renting a dedicated server to my own server, I moved the VMs that hosted my mail server, as well as PMG.
I updated the IP addresses, and updated PMG to forward email to the new server. That went well.
Except, now when I send email, I get an automatic reply saying "Relay access denied (in reply to RCPT TO command)"
After digging a little, I discovered that in the master.cf file for postfix on PMG, the "my_networks" line did not have the IP for my mail server. It has 127.0.0.1 and PMG public IP address.
I added my mail server's IP to the list, saved the file, restarted postfix, and I can send email.
Only, it doesn't stick for very long. I don't know how long until it's reverted, but it does remove the IP of my mail server, and I can't send emails again. In the GUI, I didn't recall setting up any IP in the Networks tab under Configuration->Mail Proxy, and it was blank before I added my mail server's IP on there.
Another quirk, when I scan and email from my scanner, now it marks them as SPAM before it leaves PMG. Never did that before...
I'm tempted to just reinstall it and reconfigure it, but I'd also like to make this issue a known issue and see if there is a fix.
Edit: a funny thing I also noticed. On the dashboard, the "Top receivers" shows that a receiver not in my domain.
2nd edit: I attempted a reinstall, and the issue remains. I also discovered that it removes my mail server's IP from postfix master.cf file when the VM is restarted. That's a pain because I have backup ran of the PMG VM once a week.
I updated the IP addresses, and updated PMG to forward email to the new server. That went well.
Except, now when I send email, I get an automatic reply saying "Relay access denied (in reply to RCPT TO command)"
After digging a little, I discovered that in the master.cf file for postfix on PMG, the "my_networks" line did not have the IP for my mail server. It has 127.0.0.1 and PMG public IP address.
I added my mail server's IP to the list, saved the file, restarted postfix, and I can send email.
Only, it doesn't stick for very long. I don't know how long until it's reverted, but it does remove the IP of my mail server, and I can't send emails again. In the GUI, I didn't recall setting up any IP in the Networks tab under Configuration->Mail Proxy, and it was blank before I added my mail server's IP on there.
Another quirk, when I scan and email from my scanner, now it marks them as SPAM before it leaves PMG. Never did that before...
I'm tempted to just reinstall it and reconfigure it, but I'd also like to make this issue a known issue and see if there is a fix.
Edit: a funny thing I also noticed. On the dashboard, the "Top receivers" shows that a receiver not in my domain.
2nd edit: I attempted a reinstall, and the issue remains. I also discovered that it removes my mail server's IP from postfix master.cf file when the VM is restarted. That's a pain because I have backup ran of the PMG VM once a week.
Last edited: