PDA

View Full Version : DNS and mail setting question.


renders
25th January 2008, 18:48
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 emailusers@www.domain.com or addressed to emailusers@www.domain.com returning to the webserver postfix BUT I want any mail addressed to emailusers@domain.com 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

till
26th January 2008, 10:57
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.

renders
10th October 2008, 21:44
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

till
11th October 2008, 12:00
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.

renders
12th October 2008, 20:09
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