You are not logged in.
Hi,
I am trying to split an email setup between Google Apps (gmail) and a Postfix/Dovecot.
Users on gmail and postfix share a domain (mybusiness.com). The MX servers are set to gmail and, if google does not find a matching user with a gapps account it sends the email on to the postfix servers IP address.
The system is working well, but of course the problem is that users of the Postfix system cannot send email back to gmail users at the hosted mybusiness.com email addresses because postfix detects the mybusiness.com domain as the local domain and tries to deliver locally - but of course there is no matching local virtual user.
I have tried changing the configuration to use the gmail SMTP server as a relay, but of course this just creates a nasty email loop and doesn't result in delivered emails.
Is there a simple way to have postfix look first for a matching virtual user at mybusiness.com but if it doesn't find one that that email and relay it to the wider internet - at that point I don't think it matters if I use the gmail smtp servers or straight SMTP delivery rather than just throwing an "SMTP Error (550): Failed to add recipient "gmailuser@mybusiness.com" (5.1.1 <gmailuser@mybusiness.com>: Recipient address rejected: User unknown in virtual mailbox table).".
I'm pulling my hair out at the moment.
Dan
Last edited by DanGray (2015-11-03 15:41:04)
Offline