Could accept any domain filter spam mail?


Well-Known Member
Oct 15, 2018
I know proxmox mail gateway can set what domain need relay. But I want allow any domain to filter mail if mx is set to my mail gateway domain. Could I set * in relay domain?
This seems like it could lead to you creating an open relay, which everyone (including spammers) can use to send spam.
e.g. a spammer buys a domain and sets the MX-record to your PMG-instance - with this config you would happily forward their spam to the world.

if you need to enter many domains at once - you can use the REST-API, or even add them to the config-files (/etc/pmg/domains, /etc/pmg/transports (make sure to run the appropriate postmap afterwards) )

Hope this helps!
Because our mail host provides the user to open the domain itself, if he does not set the relay domain in the mail gateway after opening the domain, the external mail cannot be sent in.


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!