Help - Search - Members - Calendar
Full Version: Mail and DNS
The Planet Forums > Control Panels > Plesk
bza99
Hello,

I have a server that is hosting a domain but we are also using an MS Exchange server for our email which is through another company.

On our server we have the domain working fine. Echange is also working well.

I have one problem...

When using PHP to mail() from the domain to an email account on that domain, the messages are not being delivered. It looks like Qmail is trying to deliver the mail locally, but the mail boxes obviously do not exist becasue they are with the Exchange Server.

I'm getting this error:
"delivery 21: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)"

How can I tell Qmail to deliver the mail for that domain to our Exchange server?

Here is my DNS setup in Plesk:

DOMAIN.com. NS ns1.DOMAIN.com.
DOMAIN.com. NS ns2.DOMAIN.com.
DOMAIN.com. A 207.44.XX.XX
ftp.DOMAIN.com. CNAME DOMAIN.com.
www.DOMAIN.com. CNAME DOMAIN.com.
207.44.XX.XX / 24 PTR DOMAIN.com.

Thanks,

Bza
bza99
As a test, I removed the hosting for the domain via Plesk and now mail is delivered with no problems to the exchange server. The trick is to get the domain hosted on the machine and be able to mail to the domain away from the machine.

Thoughts?

Thanks,

Bza
LadyHawk
You aren't telling it where the mail has to go, so it is going to assume it must deliever it to the local box. If you tell it in the dns to deliver it somewhere else it will:

mail.domain.com A (IP of your exchange server)
domain.com MX (10) mail.domain.com
bza99
I have my domain hosted and working fine, but I still can't get email to leave the server. I'm still getting a triple bounce message from qmail.

Within PLESK, I have deleted all my DNS records for this domain. So you know, I use Godaddy as my DNS and I just point the domain to the PLESK Server using an A Record.

Now all I have is this...

mail.mydomain.com. A 64.78.20.xxx
mydomain.com. MX (0) smtp12.myexchangeserver.net.

Is this correct? Can you tell me what I am missing?

Thanks,

Ben
Av4t4r
Hi bza99,

I've had this exact same problem before. The solution is to fully disable email for the domain in Plesk. If you do this it will work fine. Hope this is helpful.

Tom
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.