I am trying to get e-mail from a wordpress site to send e-mail to our local exchange server. currently, with the default configured settings, the e-mails will be sent to an outside e-mail provider eg. gmail, yahoo, outlook.com but not to our hosted server.
if i change postfix setting ‘Send outgoing mail via host’ to the exchange servers specific ip address, instead of the default setting, the mail will then be delivered to internally hosted exchange server, but no longer delivering to external providers.
i’ve tried setting up an MX record, because the internal site (hosted by virtualmin) is a different FQDN than the internal hosted exchange, however that didn’t work either.
any input will be greatly appreciated.
i should note that i would much prefer it work for both, instead of one or the other. so if you have ideas please share them!