E-mail Alert won't work using Gmail for Google Apps account on ReadyNAS OS 6
Issue description
When trying to set up the e-mail alert feature on ReadyNAS OS 6 using a Gmail for Google Apps account, you receive the error message: "Unable to send a test message. Cannot send a test message. Please check authentication settings".
ReadyNAS OS msmtp.log Log Errors:
Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 aCJzvsj2x89D6LmRPk_rOuTjrv7_FtLX6m8RaUmv8Gxuql0-N8pBnwvHdB75oaS9srC7Gx Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 kQJbo-Xo3GCmig-qRTd64_54Q1A2eg0bLfu9j4zDxGdKi9v1AphMiBV2us0Z-eHAHKBEnl Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 blUT3SMFUoHDehQ4QAe30Zlu21d9RTBnvLqi26O7SzWAlwe0dTOdHz8kTO0kuJhGGdERTx Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 BRDRUUg> Please log in via your web browser and then try again. Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 Learn more at Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: server message: 534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 ni1sm2516834pdb.69 - gsmtp Oct 13 13:49:43 Sup-104 readynasd[1956]: msmtp: could not send mail (account default from /etc/msmtprc) Oct 13 14:05:36 Sup-104 readynasd[1956]: DEBUG: NAS_SEND_MSMTP_RUN: Fail. (status=0. error_buf=msmtp: authentication failed (method LOGIN) Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 RU2I2kWgSRvpOkaFX--DXEfTUwmHkutSBWaaKnq5AxIymsBISfYv9WV3pf34taPtg_daQL Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 mL1QRgr_DgEkJPudDcWdgwN35RKyeFtqwjjJmJUtxXrbaecB1jjpIZdmG2vXCqXHkXQu6Z Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 arxNyPU52oq82LHhQ2i6k5waFG6YuieSkUgHHQvoDehwNpUak47TFH7Z0bZZ9F0UEs_zj8 Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 eWAApFg> Please log in via your web browser and then try again. Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: server message: 534-5.7.14 Learn more at Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: server message: 534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 b4sm10125139pdh.2 - gsmtp Oct 13 14:05:36 Sup-104 readynasd[1956]: msmtp: could not send mail (account default from /etc/msmtprc) |
Solution:
To solve this issue, we need to enable Outbound Relay using the Google Apps administrator. To do this:
Have the Google Apps administrator log into the control panel (admin.google.com)
Click Apps
Click Google Apps
Click Gmail
Click Advanced settings
Scroll to "Allow per-user outbound gateways" and select "Allow users to send mail through an external SMTP server when configuring a "from" address hosted outside your email domains"
Click Save changes