[postfix] How to remove a domain in 'local-host-names' ?

Discussion in 'General' started by itwillcome, Feb 19, 2010.

  1. itwillcome

    itwillcome New Member


    I want to remove a domain (actually two entries: dummy.com & www.dummy.com) in the /etc/postfix/local-host-names.

    [My server only host the website of this dummy.com. The DNS and email of this dummy.com will be handled by external servers.]

    I manually edit the files 'local-host-names' and 'local-host-names~' under /etc/postfix . After removing the domain entries, the system work
    as my expect, the emails for dummy.com are sent to the external email server.

    But after serval minutes, the deleted domain entries are recovered in the
    files again. :(:(:(

    How to solve it? Many thanks.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just set the website and co-domain to external mailserver.
  3. itwillcome

    itwillcome New Member

    Thanks for replying.

    I shall explain more.
    The case is that my server will only host the webpages for dummy.com .
    The DNS and mail server for dummy.com are already handled by the external servers.

    The problem is that, in the webpages, there is an email form. When someone
    submits this email form, it will be sent to [email protected] .
    The postfix server thinks dummy.com is a local host name and talks to . The email is rejected because this is no such [email protected] a/c in my server. :(
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    And the solution is what I told you above. Just set the website and domain to external mailserver, its on the options tab of the co-domain and the website.
  5. itwillcome

    itwillcome New Member

    Thanks. It works perfect now. :D

Share This Page