PDA

View Full Version : Subdomain MX and mail handling



pandymic
02-04-2009, 11:37 AM
I've recently switched my site over to Google Apps for all of my e-mail management. Thus I've updated my main MX records for domain.com to point to the Google Mail servers.

What I'd like to do, however, is set up a subdomain that will still handle incoming e-mails on my local server. I've set up an MX record on apps.domain.com which points to domain.com.

While the e-mail is reaching my server, delivery to the specified user is unsuccessul. The bounce message outlines that there's an MX error and bounces the e-mail. I'd appreciate if anyone could point out what I'm doing wrong, and any way I could resolve the issue. Below are a copy of the bounce message:



----- The following addresses had permanent fatal errors -----
<test@apps.domain.com>

----- Transcript of session follows -----
554 5.0.0 MX list for apps.domain.com. points back to domain.com
554 5.3.5 Local configuration error
550 5.1.1 <mike@domain.com>... User unknown

Final-Recipient: RFC822; test@apps.domain.com
Action: failed
Status: 5.5.0
Remote-MTA: DNS; apps.domain.com
Last-Attempt-Date: Wed, 4 Feb 2009 11:32:10 -0700


---------- Forwarded message ----------
From: Mike <mike@domain.com>
To: test@apps.domain.com
Date: Wed, 4 Feb 2009 10:32:07 -0800
Subject: The time is 10:31
Wednesday, February 4th, 2009. 10:31
----- The following addresses had permanent fatal errors -----
<test@apps.domain.com>

----- Transcript of session follows -----
554 5.0.0 MX list for apps.domain.com. points back to domain.com
554 5.3.5 Local configuration error

Final-Recipient: RFC822; test@apps.domain.com
Action: failed
Status: 5.5.0
Remote-MTA: DNS; apps.domain.com
Last-Attempt-Date: Wed, 4 Feb 2009 11:40:48 -0700


---------- Forwarded message ----------
From: Mike <me@gmail.com>
To: test@apps.domain.com
Date: Wed, 4 Feb 2009 10:40:47 -0800
Subject: The time is 10:40
Please arrive. Thank you.


The user "test" DOES exist, and while I expect the message to appear in /var/spool/mail/test, it does not work as desired.

Any insight would be greatly appreciated. Thanks in advance.

Mike

pandymic
02-05-2009, 07:42 PM
I've resolved this issue.

It was as easy as adding "apps.domail.com" to the /etc/mail/sendmail.cw file.