Our website uses the wordpress contact forms 7 plugin to send emails. These are for people who want us to contact them.
This just uses the default MTA on our server which is exim.
Everything worked great and then we migrated our mail servers to exchange on a different server.
Our MX record is pointing to the new server and incoming and outgoing email works great.
But the contact forms on the website still send the emails to the localhost.
Which makes sense. That is what it did in the past. But I need to change it so users still get their emails.
How do I change exim to not accept mail locally but just relay it on to the mx record for the domain?
I tried adding the text at Exim: how to deliver locally and send a copy to another server but it gives me an error
Exim configuration error in line 1343 of /etc/exim.conf missing error type.
do I need to put the text
smarthost: driver = manualroute domains = currentdomain.com transport = remote_smtp route_data = "mxrecordofdomain"
at a certain place in the file.