URGENT: Google Apps, Postfix and strange forwarding

5 posts / 0 new
Last post
#1 Fri, 02/08/2013 - 14:05
VirtualNoob

URGENT: Google Apps, Postfix and strange forwarding

Hey all

I've just had to migrate from my existing server to a backup box due to hardware failure. After doing so, I am unable to get the config quite right with Google Apps and Postfix, here are my symptoms:

I host many websites, around 50 or so at present, most of which use Google Apps, or some other off-site service - all of these work fine.

I have a single client who uses the local mail system on this server, but for some reason the mail intended for them gets redirects off to a Google Apps account.

The server's mailname as configured in /etc/mailname is mydomain.co.uk (obfuscated), and the client's domain who requires local delivery is theirdomain.co.uk. mydomain.co.uk has mail for its domain handled by Google Apps.

What happens is that mail intended for user@theirdomain.co.uk (or user.theirdomain) is redirected to user.theirdomain@mydomain.co.uk and therefore delivered via Google Apps rather than to the local user.theirdomain.co.uk mailbox.

After a few hours of searching, I can't seem to find the issue. I'd really appreciate a little help from you guys.

Cheers.

Fri, 02/08/2013 - 14:26
andreychek

Howdy,

Well, no email should ever be directed to a remote system unless either the DNS MX record points to the remote system, or their email accounts/aliases have forwarding setup that point to the remote location.

You could always try going to intodns.com to see where the MX records currently point for that domain.

-Eric

Fri, 02/08/2013 - 14:39
VirtualNoob

Hey Eric, DNS is all fine - DiG and intodns.com both return suitably correct results for MX records for both domains.

The logs indicate the default user for theirdomain.co.uk (ie default-theirdomain) is being correctly identified for the destination, but then the mydomain.co.uk part is being suffixed prior to final destination. Because mydomain.co.uk uses Google Apps, the relay kicks in and the final destination email address is delivered through to Google Apps.

Essentially, the final part of the process is correct - anything@mydomain.co.uk should be delivered from the local mail server through to Google Apps. However, the bit where it appends the mydomain.co.uk shouldn't happen.

Do you have any other ideas that I could try?

Fri, 02/08/2013 - 22:18
tpnsolutions
tpnsolutions's picture

Hi,

If you'd like, I can offer a "screen-sharing" session either this evening, or tomorrow to help find and fix the problem you're facing.

*** this offer is for FREE remote assistance, no strings attached. ***

Drop me an email if you'd like to setup some time.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 02/13/2013 - 15:19
selvanair

Post your postfix config and o/p of $ hostname and $ hostname -f

You need mydomain.co.uk in mydestination for those users to get email locally. But if you need user@mydomain.co.uk delivered to google apps you cannot have it in mydestination. What is your hostname and what is set as myhostname in postfix?

Topic locked