Tell Postfix not to manage local domains

Discussion in 'Installation/Configuration' started by Sebastos, Jan 21, 2008.

  1. Sebastos

    Sebastos New Member

    Hi everybody,

    First, sorry for my English but i'm french...

    I've a ISPConfig to manage my server. It works well but i've a little problem.
    The DNS of my domain are managed by my server but by my provider, and i've config the MX to be used by Google Apps...

    So, all email sent to my domains are received by my Google Apps account.

    My problem is that if I send a mail by exemple(via the PHP function mail()), to an email of the domain of my server, my server think that it manage this domain and his MX, so it send to localhost or something else and I never receive the mail ... :(

    I found the problem : ISPConfig write all domains in the file /etc/postfix/local-host-names ...

    If I put an "#" at the end of the domain, it works, I can receive mails that are sent by the server...

    But when i config ISPConfig, it erease this file and so the config no longer works ...

    So, how can I tell ISPConfig or PostFix not to manage my local domains for emails ?

    Thanks a lot.
  2. Sebastos

    Sebastos New Member

Share This Page