Dual delivery Google Apps and Postifx (server reject mail from my domain on google)

This is the scenario:

I have a server with Postfix and some domains, and now, one of this domains want to use Gmail Google Apps only in a couple of accounts.

The end-user configure the domain with Google MX registrys, configure the mail accounts in Google and the other accounts points to my server.

I've configured the external accounts with transport to the MX.

When I send an email for example, from Hotmail, if the account is configured in Google Apps, google keep the mail, and if the account is in my server, then google transport the email to my server.

When internal accounts from my server send mails, I can decide what I do with it and transport to local account or to google.

The problem is:

When the accounts in Google Apps with my client domain try to send mails to same domain accounts, but in my server, my postfix reject this emails with the next message:

30 14:00:28 ***** postfix/smtpd[13400]: NOQUEUE: reject: RCPT from mail-la0-f43.google.com[209.85.215.43]: 553 5.7.1 <[email protected]>: Sender address rejected: not logged in; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-la0-f43.google.com>

This is normal, but... how I can permit relay from google to this users/domain only?

I call to Google Apps support, and they say they don't permit smtp auth on my server to send this mails.

Another solution?


Solution 1:

I solve it with Postfix white list managed by ISPConfig:

Mail -> Global filters -> Postfix Whitelist Just add a new mail with the filter type "Sender".

This permit all the traffic from the mail/domain specified.