I'm setting up the email alerts, and am using smtp-relay.gmail.com, when the script goes to test (./xsibackup --email@example.com --use-smtp=1) I get the following output:
Using stored SMTP server info... Found conf/smtpsrvs file... Firewall rule SMTPout-587 added... 220 smtp-relay.gmail.com ESMTP y200sm4420039itc.8 - gsmtp 250 smtp-relay.gmail.com at your service 250-smtp-relay.gmail.com at your service, [188.8.131.52] 250-SIZE 157286400 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 503 5.5.1 bad sequence of commands y200sm4420039itc.8 - gsmtp 502 5.5.1 Unrecognized command. y200sm4420039itc.8 - gsmtp 502 5.5.1 Unrecognized command. y200sm4420039itc.8 - gsmtp 451 4.5.0 SMTP protocol violation, see RFC 2821 y200sm4420039itc.8 - gsmtp Firewall rule SMTPout-587 closed. Killed
Any idea why this might be happening, and how to fix it?
Have you enabled "less secure apps" in your GMail profile?
Thanks for the reply, I should have clarified that I'm using the GSuite SMTP relay. I don't need to provide authentication as it authenticates me automatically based on a static IP. The "Allow or disallow less secure apps to access accounts" won't apply. I have enabled it anyways to test, and received the same results.
I am sending mail from other services successfully using the same method (sending mail to the smtp relay with no auth details).
Last edited by douglasg14b (2018-01-11 17:39:47)
XSIBackup does not support you product. Use a regular GMail account or other regular SMTP server with authentication.
I see. There is no way to send an email to an SMTP server without auth with XSIBackup, does the pro version support this? Are there any future plans to support such a thing?
It is a bit confusing since the docs for the --smtp-auth say
You can choose plain text authentication or no authentication for SMTP servers configured as open relays inside a controlled LAN. Use at your own risk.
Last edited by douglasg14b (2018-01-12 05:24:27)
GMail SMTP client has been custom programmed, as GMail has some special requirements. We cannot develop something for a small base of users, but you can use any other SMTP server, including some free options like regular GMail. You can also program it on your own and keep your personalized src/sendmail module.