Setup is a Prefect multiserver, ISPC 3.1.10. We have a few domains on my email server, domain1 domain2, domain3. I moved mail.domain1 to G Suite, so now Google is the mail server for that domain1 and that works great from the outside. NOte: I'm still keeping all the old email records on the server due to random email migration issues so that users can reference old emails via server webmail if they need. Issue: Now, when someone on domain2 sends an email through the server to user@domain1, the server fir st looks internally, finds that email address, and delivers that email to the "old" server/email and not out the MX records to Google. Of course anybody else outside of the server can send to the correct emailbox @ Google since the MX records are correct. So the question is, how to I tell the internal server domains to look outside for those domain1 email records.?
Did you uncheck the 'active' checkbox of the email domain and did you disable receiving for the mailboxes in ISPConfig?
If I make the email domain Inactive, then my users can't access their old emails via webmail (using sogo)
Then there is probably no solution for your problem. Postfix must deliver mails for an active local domain locally.
Till, figured out a workaround. In postfix/mysql-virtual_domains.cf append " and domain != 'domain.com' " to the additional_conditions and it worked. I imagine I have to keep an eye on that for any postfix and ispc updates.