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[]: 553 5.7.1 <client-on-google@domain.com>: Sender address rejected: not logged in; from=<client-on-google@domain.com> to=<client-on-my-server@domain.com> 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?

  • You probably have something mis-configured on postfix, postfix won't normally reject mail to local users, unless you give it specific reasons to do so. Posting your main.cf might help, as would the logs from your postfix server where postfix says why it rejected the message.
    – NickW
    Jan 2, 2014 at 15:35
  • Hi,I think this is the normal postfix process. If i recieve a mail from another server who claim be a domain.com, but i have configured this domain in the server, Postfix reject this, beacuse he don't send the mail. I'm running Ubuntu and ISPConfig with ClamAV, Postfix and Dovecot.
    – Jovi
    Jan 2, 2014 at 17:06
  • While I believe I understood what you are asking for, it is going to be very hard to diagnose your problem without knowing how you configured postfix, and also what the postfix server says when it rejects mail from google apps.
    – NickW
    Jan 2, 2014 at 17:08
  • Thanks Nick. I think this is easier, at least is than i want to believe :D Just i want to know the way to permit only a couple of users like "mynetworks" do for all the users. Postfix must do that, or not?
    – Jovi
    Jan 2, 2014 at 17:18
  • What I am saying is that postfix should not reject messages from outside to users on the postfix machine. If it is, there are a few possibilities. 1. misconfiguration (does the postfix server know that it is responsible for that domain?) 2. the server on the other side is doing something wrong (google tends not to do that).
    – NickW
    Jan 2, 2014 at 17:29

1 Answer 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.