Gmail smtp over sendmail

googlesendmailsmtp

I've setup my sendmail to send mail using Google SMPT. However, I keep getting this error.

Jun 20 11:35:24 server sendmail[2370]: p5KBZO3X002370: from=apache, size=1646, class=0, nrcpts=1, msgid=<1308569724029ade80ec0a5bf4a6186a0294c806b9@anuary.com>, relay=apache@localhost
Jun 20 11:35:24 server sendmail[2371]: p5KBZOal002371: from=<apache@server.hotelpublisher.com>, size=1755, class=0, nrcpts=1, msgid=<1308569724029ade80ec0a5bf4a6186a0294c806b9@anuary.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Jun 20 11:35:24 server sendmail[2370]: p5KBZO3X002370: to=g.kuizinas@gmail.com, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31646, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p5KBZOal002371 Message accepted for delivery)
Jun 20 11:35:24 server sendmail[2373]: STARTTLS=client: file /etc/mail/certs/sendmail.pem unsafe: Group readable file
Jun 20 11:35:25 server sendmail[2373]: STARTTLS=client, relay=smtp.gmail.com, version=TLSv1/SSLv3, verify=OK, cipher=RC4-SHA, bits=128/128
Jun 20 11:35:25 server sendmail[2373]: p5KBZOal002371: to=<g.kuizinas@gmail.com>, ctladdr=<apache@server.hotelpublisher.com> (48/48), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=121755, relay=smtp.gmail.com [74.125.39.109], dsn=5.0.0, stat=Service unavailable
Jun 20 11:35:25 server sendmail[2373]: p5KBZOal002371: p5KBZPal002373: DSN: Service unavailable
Jun 20 11:35:25 server sendmail[2373]: p5KBZPal002373: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33011, dsn=2.0.0, stat=Sent

If any more information is required, please ask.

Best Answer

dsn=5.0.0, stat=Service unavailable is generic error.

For details you should read DSN (Delivery Status Notification) email which was delivered to root mailbox.

Jun 20 11:35:25 server sendmail[2373]: p5KBZPal002373: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33011, dsn=2.0.0, stat=Sent

Related Topic