use external mailserver for one of domain

Discussion in 'Installation/Configuration' started by pine1455, Dec 12, 2008.

  1. pine1455

    pine1455 New Member

    hello all,
    Is it possible to config only one of my domain in ispconfig to use external mail server ?! I set mail server to external in that domain and co-domain settings and then create a MX record that points to external mail server.But it does not work. I use dig tools and it return correct answer but it seems that ispconfig should remove my domain name form "/etc/postfix/local-host-names".because when i try to mail from other domains to that domain(with external mail server) it(postifx) try to deliver it locally....
    Any Idea?!
    TNX
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes. Just select "External Mailserver" for the domain in question. If it's a Co-Domain, you can find that setting on the Co-Domains tab > select Co-Domain > Options.
    For the web site's main domain it's on the Options tab of the web site.
     
  3. pine1455

    pine1455 New Member

    I done that before but no use! ...
    When I try to send mail my MTA try to send that locally and I got 'unknown user ' error from postfix!
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Do you use that domain as the hostname for the server? Do you see it somewhere in /etc/postfix/main.cf or /etc/mailname?
     
  5. pine1455

    pine1455 New Member

    No, There is nothing about that domain in main.cf file ... :confused:
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Do you see the domain in the output of
    Code:
    telnet localhost 25
    ?
     
  7. pine1455

    pine1455 New Member

    no,another domain shown there !! but sth that may helps.. in the case my specefix domain that I wants to use other mail server is domain.com i have host1.mydomain.com in /etc/hosts ... and
     
    Last edited: Dec 16, 2008
  8. falko

    falko Super Moderator Howtoforge Staff

    What happens when you remove host1.mydomain.com from /etc/hosts?
     
  9. pine1455

    pine1455 New Member

    no use... still have a problem ...
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Do you see that domain in /etc/postfix/main.cf or any of the file included in main.cf?
     
  11. pine1455

    pine1455 New Member

    I have many subdomains(x.domain.com,y.domain.com,...) of that domain (domain.com) in local-host-names file but no in main.cf.
    can't I exclude domain.com manually??!!
     
  12. falko

    falko Super Moderator Howtoforge Staff

    But domain.com itself is not listed anywhere?
     
  13. pine1455

    pine1455 New Member

  14. falko

    falko Super Moderator Howtoforge Staff

    And what's the output of
    Code:
    postconf -d | grep domain.com
    ?
     
  15. pine1455

    pine1455 New Member

    Code:
    postconf -d | grep domain.com
    mydomain = domain.com
    myhostname = host1.domian.com
    
    I added mydomain= host1.domain.com to main.cf but have the same output! how i can change that?!!
     
  16. falko

    falko Super Moderator Howtoforge Staff

    What are the values of mydomain and myhostname in /etc/postfix/main.cf?
     
  17. pine1455

    pine1455 New Member

    sorry to be late !!!
    ...
    I have only 'myhostname = host1.domian.com' in main.cf
     

Share This Page