#1 2018-01-10 22:14:03

douglasg14b
Member
Registered: 2018-01-10
Posts: 3

"SMTP protocol violation, see RFC 2821" when sending mail

I'm setting up the email alerts, and am using smtp-relay.gmail.com, when the script goes to test (./xsibackup --check-smtp=myemail@mydomain.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, [209.126.235.43]
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?

Offline

#2 2018-01-11 11:24:55

admin
Administrator
Registered: 2017-04-21
Posts: 1,366

Re: "SMTP protocol violation, see RFC 2821" when sending mail

Have you enabled "less secure apps" in your GMail profile?
https://support.google.com/a/answer/6260879?hl=en

Offline

#3 2018-01-11 17:38:19

douglasg14b
Member
Registered: 2018-01-10
Posts: 3

Re: "SMTP protocol violation, see RFC 2821" when sending mail

admin wrote:

Have you enabled "less secure apps" in your GMail profile?
https://support.google.com/a/answer/6260879?hl=en

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)

Offline

#4 2018-01-11 23:16:35

admin
Administrator
Registered: 2017-04-21
Posts: 1,366

Re: "SMTP protocol violation, see RFC 2821" when sending mail

XSIBackup does not support you product. Use a regular GMail account or other regular SMTP server with authentication.

Offline

#5 2018-01-12 00:04:43

douglasg14b
Member
Registered: 2018-01-10
Posts: 3

Re: "SMTP protocol violation, see RFC 2821" when sending mail

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)

Offline

#6 2018-01-13 09:43:19

admin
Administrator
Registered: 2017-04-21
Posts: 1,366

Re: "SMTP protocol violation, see RFC 2821" when sending mail

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.

Offline

Board footer