Could accept any domain filter spam mail?

akong

Well-Known Member
Oct 15, 2018
87
1
48
47
Hello,
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.