Mail configuration question

Discussion in 'Installation/Configuration' started by wowwen, Apr 12, 2010.

  1. wowwen

    wowwen New Member

    Hello again.

    Iam a bit confused about my setup and i need some suggestions.

    Iam using ISP Config for handling a few domains. One of my domain, i use an external mailserver for my mail which is working with no problem at all. But now i have encounter a small trouble. On the same domain, i use a webbased script which sends mail to a specified mailadress at the same domain. But when i do this, the mail doesnt go to the external mailserver, it goes to the local one. Ive created an identical address on the ispconfig server and when i manually connects to that account, all my mails that are generated through my script are here. So, it seems like the mail doesnt read the domain mx record when i send a mail from Ispconfig smtp.

    Is there anyway i can solve this?
     
  2. falko

    falko Super Moderator

    Please delete the mail domain in ISPConfig, and the mails will go to the other server.
     
  3. wowwen

    wowwen New Member

    Hello.

    Thanks for the quick response.

    I have now tried to delete the email domain with success, but now the mails get stuck in the mail queue.

    Do i need to restart anything for the changes to take place?

    When i look at the queue now i see the following

    mail for mydomain.com loops back to myself
     
    Last edited: Apr 12, 2010
  4. till

    till Super Moderator

    Looks as if you used mydomain.com as hostname for the server. You can not use a email domain as hostname for a postfix mailserver. Please change mydomain.com in postfix main.cf to something like server1.mydomain.com and restart postfix.
     
  5. wowwen

    wowwen New Member

    That was what i thought to, but when i check my config the server name is:
    ns1.mydomain.com, and this is also the server hostname.

    The email server iam trying to reach is mail.mydomain.com which points to an other server.
     
  6. till

    till Super Moderator

    Please post the contents of the poastfix main.cf file, comments stripped.
     

Share This Page