I've got an odd situation with a client. They prefer to use gmail for their email because in their opinion, Google obviously must be more robust/reliable than any webhosting company. So we've set up their MX records to use gmail as their email server.
But they have a mailing list on our server which is populated by a web-based script on their site on our server. They can send to the mailing list by using our webmail or the script's web interface since that is routed internally.
The problem now is, they cannot receive any emails sent from within the server. E.g. alerts and notifications because exim routes it internally.
The normal workaround is to remove their domain from exim's domains file. Then exim will route their emails externally. However, doing so will break the mailing list because exim will similarly route emails meant for the mailing list to gmail as well.
Is there a way to configure exim to internal route certain addresses or external route addresses not found locally?
But they have a mailing list on our server which is populated by a web-based script on their site on our server. They can send to the mailing list by using our webmail or the script's web interface since that is routed internally.
The problem now is, they cannot receive any emails sent from within the server. E.g. alerts and notifications because exim routes it internally.
The normal workaround is to remove their domain from exim's domains file. Then exim will route their emails externally. However, doing so will break the mailing list because exim will similarly route emails meant for the mailing list to gmail as well.
Is there a way to configure exim to internal route certain addresses or external route addresses not found locally?