I have a server which is running a social network PHP app. This app needs to send Email notifications to users and also to me (as the admin) when certain actions take place on the app. Let's say that the server's domain name is mydomain.com
I have mail for "mydomain.com" being handled by "Google Mail for Domains", so the MX records of mydomain.com points to Google servers. Thus when people send emails to "admin@mydomain.com" those emails are entirely handled by Google.
I have Postfix setup on the server to handle Email notifications sent by the PHP app. I'm not using Google's SMTP server for sending those notifications because they have a 500 Email/day limit.
So... when the PHP app sends Email notifications through the local Postfix service to users with Emails like "user@whatever.com" it works pefectly and mails are delivered, but when the PHP app tries to send an Email notification to myself at "admin@mydomain.com" it gives this error on the maillog file:
Quote:
May 3 04:20:51 mydomain postfix/smtpd[11180]: NOQUEUE: reject: RCPT from mydomain.com[xx.xxx.xxx.xxx]: 550 5.1.1 <admin@mydomain.com>: Recipient address rejected: User unknown in local recipient table; from=<notification@mydomain.com> to=<admin@mydomain.com> proto=SMTP helo=<mydomain.com>
|
I suppose that Postfix understands that since the recipient is located at "mydomain.com" it needs to deliver that Email to a local account, but obviously not Email account exist locally on the server since the
admin@mydomain.com account is actually at Google Mail.
What can I do on this case?. How can I tell Postfix to handle that Email being sent to "admin@mydomain.com" as any other Email and route it through the Internet to the servers on the MX record (Google's).
Thanks in advance,
George