I have an Ubuntu VPS that is using exim4 as a satellite email server set up to send mail through Google Apps.
Mail meant to go to an address hosted by Google gets delivered. This means that things like a "contact us" webform is working because it delivers to the domain hosted on Google Apps.
Incoming and outgoing email from the Google web interface works fine and all of the MX records appear to be in order.
However, for some reason, sending outgoing email from the server to a non-Google-hosted address (as in, one that ASPMX.L.GOOGLE.COM doesn't know about).
Here's exim4 log message I get:
2009-05-19 13:25:54 1M6PKM-0008UQ-KL <= firstname.lastname@example.org U=user P=local S=1129 2009-05-19 13:25:58 1M6PKM-0008UQ-KL ** email@example.com R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<firstname.lastname@example.org>: host gmail-smtp-in.l.google.com [126.96.36.199]: 550-5.1.1 The email account that you tried to reach does not exist. Please try\n550-5.1.1 double-checking the recipient's email address for typos or\n550-5.1.1 unnecessary spaces. Learn more at\n550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 1si10609358gxk.44 2009-05-19 13:25:58 1M6PKQ-0008UU-Bh <= <> R=1M6PKM-0008UQ-KL U=Debian-exim P=local S=2354 2009-05-19 13:25:58 1M6PKM-0008UQ-KL Completed
Is there some setting I might have missed, either on the server or in Google Apps itself?
It's obvious that I need to tell a config somewhere that "no, this isn't for you, just send it along". Any suggestions? (And I'd be happy to post any configs)
I've Googled extensively without finding anything specific to my issue.
EDIT: I'll also add that I'm getting this (in the spam folder) in my Google email account:
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: email@example.com SMTP error from remote mail server after RCPT TO:<firstname.lastname@example.org>: host gmail-smtp-in.l.google.com [188.8.131.52]: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 1si10609358gxk.44 ------ This is a copy of the message, including all the headers. ------ Return-path: <email@example.com> Received: from zeta by example.com with local (Exim 4.69) (envelope-from <firstname.lastname@example.org>) id 1M6PKM-0008UQ-KL for email@example.com; Tue, 19 May 2009 13:25:54 +0000 To: firstname.lastname@example.org Subject: Account details for Test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8Bit X-Mailer: Drupal Errors-To: email@example.com Sender: firstname.lastname@example.org Reply-To: email@example.com From: firstname.lastname@example.org Message-Id: <E1M6PKM-0008UQ-KL@example.com> Date: Tue, 19 May 2009 13:25:54 +0000 Test, Thank you for registering...<snip>