php mail () dns issues?
Me again.Here's the situation
Have a few servers and with one main server that has about 50 accounts on it and hosts the main site/nameservers. Whenever an account is built on another servers - we add the DNS zone to the main server - that way the nameservers for all clients no matter what server are the same..right?
(long story on that one - it got real ugly there for a bit before we settled on that solution)
anyways.
here's the problem
Theres a php newsletter and forums on the main server - and the forums want to send mail to people that register right? And the newsletter - same thing..Need to verify email addresses by sending an email etc.,etc. Both use the php mail() function..or some such.
However - If the email address is on any of the domains that are on any other server BUT the main server - they dont get it. If the email/domain account is on the main server then it does work. Vice versa as well...if the domain/email account on any other server but the main one with all the DNS zones ..sends an email to an email account on the main server - it doesnt get there...
Bah. Thats confusing again.
Basically -
1. Server 1 has main domain and all dns zones are added to it for nameserver routing for all accounts built on other servers.
2. Server 1 can send mail to anywhere including itself except to accounts on other servers - for eg Server 2.
3. Server 2 cant send mail to Server 1 but can send mail anywhere else.
Any ideas?
TIA