e-mail tool authentication error/bug?

Hello,

I have set up email with the following settings:

server: mail server ip
port: 25
from: network@mydomain.com

I can send e-mail to anything@mydomain.com fine as expected using:

/tool e-mail send to=sean@mydomain.com body="Testing" subject="Testing"

E-mail to external domains fail as expected, because relay access is denied. No problem.

However, when adding authentication into the mix to allow sending of mail to external domains, I get the following error message in my mailserver log:

Oct 3 16:11:53 mail postfix/smtpd[26154]: connect from unknown[1.2.3.4]
Oct 3 16:11:53 mail postfix/smtpd[26154]: setting up TLS connection from unknown[1.2.3.4]
Oct 3 16:11:54 mail postfix/smtpd[26154]: TLS connection established from unknown[1.2.3.4]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Oct 3 16:11:54 mail postfix/smtpd[26154]: warning: unknown[1.2.3.4]: SASL PLAIN authentication failed: bad protocol / cancel
Oct 3 16:11:54 mail postfix/smtpd[26154]: disconnect from unknown[1.2.3.4]

I am using Zimbra mailserver with “TLS auth only” unchecked in the MTA section.

Latest RouterOS 3.x series.

Yes, in my opinion, this is a bug.

You can retry execute after 10 secs the same command and it maybe send succesfully the email.

I dont know why this behaviour, but I put my script to retry after 15 secs and the first time I obtain a ERROR SENDING EMAIL: AUTH failed.

After 15 secs the email is going out without problems.

Hi, looks like I have the same problem, on RoS 4.1 and postfix on my mail-server.
My script on the RoS-Box (PC) fails, when trying to send an email.
Then, in my logs from postfix on my mail-server I can see
SASL PLAIN authentication failed: bad protocol / cancel

However, same user/pwd from a MT-client machine (Windows ) works with Thunderbird.

Did anybody file a bug report already ?

P.S.: Will try a delayed retry in the script after some some sleep

Hi, my very last idea was a success:

Because I have a second mail server (both servers running OpenSuSE), I compared the setups, and found out, that on the server, which gave me the problem with the authorization with RoS-tool-email, I had 3 modules installed:

cyrus-sasl - Implementation of Cyrus SASL API !!!YES

cyrus-sasl-saslauthd - The SASL Authentication Server !!!YES !!!

But on my other mail server the followingi module was NOT installed:

cyrus-sasl-plain - cyrus-sasl plugin for the PLAIN !NO !!!

So I removed the last one, and RoS-tool-email now works for me.