I have a new instance with HestiaCP (Exim4) and I try to configure the email service with HestiaCP and Google Workspace
I have already configured the rules so that all the sendings are made to Google and Google is in charge of routing the email service
All emails I send to my domain from accounts on the HestiaCP server are delivered OK to Google and HestiaCP
However, the emails that I send from [email protected] (account that exists in HestiaCP) to a Google account, for example [email protected], are discarded, since the email account is not found within the Exim map
How can I make Exim4 try to deliver outgoing mail to the MX published on the internet and not try to do it directly on the local server?
You cant use two different servers for incoming mails, that’s not how mx records are designed. You can overwrite the handling of outgoing mails in exim configuration to skip local delivery part, but I dont think this will solve your issue.
You need to decide to use either google or hestia for your mails.
The solution I had was to change the mail provider to iRedMail and manually configure the Realy of the mail service to be able to deliver some mailboxes in Google Workspace and others in my local server simultaneously.
Since hestiaCP doesn’t allow doing it and exim doesn’t seem to either.