rip_curl

Well-Known Member
Jan 30, 2005
82
1
158
Hello, I have a question for u dear cpanel\s GURU's!

I have 2 customers: aaa.com & bbb.com
Customer aaa.com has a hosting at cpanel and using a mai services at this server. all working fine!!!
Custromer bbb.com has a DNS at this server only, his mail server is in another country, all working fine, but when user aaa.com sends mail to bbb.com his mails rejected.
Question: WHY?
Answer: when user aaa.com sends mail to bbb.com, exim searching [email protected] at local machine, and when user is not found letter rejects.

Quesion: How to setup exim to work fine? Exim must not search domains at local machine!
Help, please I think it's actual question.
Thank U very much, my friends =)
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
You would need to remove it from the local domains and also add a remote domain entry.

Remove the remote MX domain from
/etc/localdomains

Then add the remote domain on its own line in here
/etc/remotedomains (create the file if it doesnt exist)

Those adjustments will prevent the local lookup of the remote domains mx.

cheers
 

rip_curl

Well-Known Member
Jan 30, 2005
82
1
158
If I'll remove domain from local domains, will it recreate automaticaly?
If so, thats bad :(
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
No, any domain updates or anything like that will not recreate the entry. That is part of the reason to remove it as well.
 

rip_curl

Well-Known Member
Jan 30, 2005
82
1
158
Thax a lot!
thats helps.

One question more, earlier I didn't know this feature, and when I wanted to wright domain bbb.com to the remotedomains file, there was some domains allready, It must be the was writed there automaticaly? and it means that there is another way to make this modifications...
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
when you change the mx entry for a domain it is suposed to do this automaticly but not allways best to check it manually