Skip internal email domain

Discussion in 'Installation/Configuration' started by Turbanator, Jan 8, 2018.

  1. Turbanator

    Turbanator Member HowtoForge Supporter

    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 [email protected], 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.?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you uncheck the 'active' checkbox of the email domain and did you disable receiving for the mailboxes in ISPConfig?
     
  3. Turbanator

    Turbanator Member HowtoForge Supporter

    If I make the email domain Inactive, then my users can't access their old emails via webmail (using sogo)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then there is probably no solution for your problem. Postfix must deliver mails for an active local domain locally.
     
  5. Turbanator

    Turbanator Member HowtoForge Supporter

    That's what I was afraid of. Thank you for trying Till.
     
  6. Turbanator

    Turbanator Member HowtoForge Supporter

    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.
     

Share This Page