How to exclude a domain from beeing mail serviced?

gdns

Active Member
Feb 12, 2007
29
0
151
Hi

we have a few users that use a combination of our services.

mainly it's a combination of an advanced mailservice, and a cpanel webservice that gives us the problem.


We need to have cpanel to detect when it's NOT mailserver for a given hosted domain, or even to deselect mailservice for a hosted/addon/parked domain.

so... the magic could be, if the MX records is set to another server, have an optin option for mailservice for the given domainname.

right now, we have a problem that mails sent to "other server" is delivered locally, eg

domain.com IN A <webserverip>
domain.com IN MX <mailserver>.

if an email is sent by, eg smtp or php, it's delivered to <webserverip>, and not <mailserver>.. I want the server to respect the mx records, so all userdelivered email/mail from webserver/cpanel interface will be delivered useing MX records..


is this understandable/possible... ? :)


I used to fix this on my older plesk system by setting up an postfix to handle email sent from webserver.. Is there a better solution. eg an "main outgoing mailserver" setup sort of solution..
 

andyaav

Member
Jan 1, 2007
17
0
151
Hi,


I think you need to do it manually as follows.

Remove domain name from /etc/localdomains and add it in /etc/remotedomains

create the /etc/remotedomains if it not exist on server.



Anand
 
Last edited: