Hey all
I have a server running CentOS 6.3, Virtualmin 3.98 GPL and Webmin 1.620 GPL. Postfix 2.9.6 is installed and all is running smoothly.
I’ve fllowed the guide here: http://www.virtualmin.com/documentation/email/dependent to configure sender dependant IP mapping so that emails originate from the domain’s IP rather than default. This works absolutely fine, I just wondered if there was a way to make this the default option for newly created domains?
Also, to make this task a little more complicated, mail isn’t handled locally on this server - it’s handled by a combination of Google Apps, Outlook.com and external (unrelated) MS Exchange systems. So, as a result I’ve disabled the Mail for domain enabled?
option for all virtual servers and this removes the menu entry at Server Configuration > Email Settings
.
I noticed on the page linked above, that there’s an API call to set modify-mail
with the –outgoing-ip
flag. Can I use this API to force this option to be enabled once the virtual server is created?
Any ideas would be greatly appreciated.