How to disable automatic email records update with external MX
-
Hi gang,
I want to move my Cloudron email onto the premises and use a third-party MX service like Spam Hero, which will route de-spammed emails to my mail server.
This works quite well, but occasionally Cloudron sets up the DNS records for email again and overrides the external MX server entries.
It also keeps showing an error, which, as far as it is concerned, is valid yet annoying
And finally, I would like only to accept mail from Spam Heroes IP ranges to avoid anyone coming directly during port snooping. Perhaps that's my pfSense job, though and not Cloudron's.
Is there a way to tell Cloudron everything is fine and stop overriding things?
-
Does Clodron complain if the MX record does not list your server as the primary mailserver for the domain? If not, you could just set it with a lower priority in the DNS settings. If it does complain (which I actually suspect it will) then I think this is something that should be a per-domain setting - "Cloudron is the prmary mailserver for this domain (yes/no)". Otherwise there is no way to use Cloudron servers as either a secondary mailserver or as the primary mailserver behind a gateway (as you are trying to do).
Cloudron only has IP blacklisting and no whitelisting at the moment, so you would probably need to block other IPs from connecting to the mailserver ports at the firewall level.