AIM:
We currently generate newsfeed email alerts to our subscribers when new news articles get published.
Our system generates numerous mails and via installed Postfix 2.2 this sends via our gateway mailserver smtp:mail2.example.com server for delivery.
We are wanting to remove the smtp:mail2.example.com server and thus now our MX records now specify google servers responsible for accepting email on behalf of example.com.
To remove smtp:mail2.example.com gateway server from this current architecture we want our mail to be passed to google for delivery.
ERROR:
postfix/qmgr[26846]: 0C1D626180D: from=<newsfeed@example.com>, size=451, nrcpt=1 (queue active)
postfix/qmgr[26846]: 85C40261811: from=<root@localhost.localdomain>, size=907, nrcpt=1 (queue active)
postfix/smtp[26916]: 85C40261811: to=<root@localhost.localdomain>, relay=smtp.gmail.com[173.194.67.109]:587, delay=324, delays=324/0.03/0.12/0.01, dsn=4.5.1, status=SOFTBOUNCE (host smtp.gmail.com[173.194.67.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/a...y?answer=14257 cw8sm2372621wib.7 - gsmtp (in reply to MAIL FROM command))
CONFIGURATION:
Our postix relay configuration on host server fronttest1:-
smtp passwords are stored in /etc/postfix/sasl_passwd
[smtp.gmail.com]
newsfeed@example.com:*****************************
[gmail-smtp.l.google.com]
newsfeed@example.com:*****************************
Postfix relay configuration are stored in /etc/postfix/main.cf
## Tells Postfix which host to use when relaying mail. Google's SMTP server
## name goes here, along with the correct SMTP port.
relayhost = [smtp.gmail.com]:587
relay_transport = relay
smtp_connection_cache_destinations = smtp.gmail.com
relay_destination_concurrency_limit = 1
default_destination_concurrency_limit = 5
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
smtp_tls_scert_verifydepth = 5
smtp_tls_CAfile=/etc/pki/CA/private/cakey.pem
smtp_tls_key_file=/etc/postfix/mail.example.key
smtp_tls_cert_file=/etc/postfix/mail.example.pem
smtp_tls_enforce_peername = no
smtpd_tls_req_ccert = no
smtpd_tls_ask_ccert = yes
smtp_tls_note_starttls_offer = yes
soft_bounce = yes
transport configuration for internal destinations are stored in /etc/postfix/transport
example.com smtp:[smtp.gmail.com]:587
I hope the information above is sufficient but I will be happy to answer any other questions that you have!
Thank you for reading and I hope that someone can help us find a solution!