DNS and mail setting question.

Discussion in 'Installation/Configuration' started by renders, Jan 25, 2008.

  1. renders

    renders New Member

    I have installed ISPCONFIG on a debian etch machine.. Everything works well..

    I want to run our websites with all email originating from the web server with an address of [email protected] or addressed to [email protected] returning to the webserver postfix BUT I want any mail addressed to [email protected] to goto an external mail server.

    The name server for domain.com is not running on the webserver. It does however point www.domain.com to the new webserver.

    Is this possible?

    Thanks

    Rob
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Set the mailserver setting in ispconfig for the co-domain of the site www.domain.com to external, but not the site itself. Then create a mx record on the dns server which is authoritive for domain.com for www.domain.com pointing to this server and a mx record for domain.com pointing to the other mailserver.
     
  3. renders

    renders New Member

    Relay access denied

    The server is setup as suggested with the main machine name as www.domain.com. The codomain is set to domain.com with an external mail server. There are several other www.otherdomains.com on this machine with the same setup.. ie codomain mail server is external. Mail to codomains is routing correctly.
    When I send an email from the external domain.com mail server to www.domain.com, it works. BUT if I send to www.otherdomains.com on same ispconfig server, I get a bounce from the postfix server 'Relay access denied'. I have tried adding the ip's of the mail server for domain.com to the 'Are emails sent from other IP addresses' field on dns settings for domain.com but still no go.

    Suggestions?

    Thanks

    Rob
     
    Last edited: Oct 10, 2008
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Just set the website to external mailserver too, so the ispconfig server will not accept mails for www.domain.com anymorte too and the emails get routed to the external server.
     
  5. renders

    renders New Member

    Hi Tim.. Thanks for the suggestion.. The reason I am trying to set it up as described is so that a newsletter app running on www.domain.com can access the local imap server directly rather than connecting to the external server.. What you suggest will work fine though..

    Thanks again.

    :confused:
    Rob
     

Share This Page