I would like to setup a script that automatically emails out usage stats.
but I get the following error when the script tries to email it.
Error sending email: Auth Failed
I have checked the email settings, and all the settings seem fine, yet it still does not authenticate?
ROS v3.30
I had it working previously on another router that no longer boots[dead]
[edit]
08:50:10 e-mail,debug debug: recv: 220 hostname ESMTP Exim 4.72 Wed, 02 Feb 2011 10:50:09 +0200
08:50:10 e-mail,debug debug: send EHLO [168.167.xxx.xxx]
08:50:10 e-mail,debug debug: recv: 250-[hostname] Hello [168.167.xxx.xxx] [168.167.xxx.xxx]
08:50:10 e-mail,debug debug: recv: 250-SIZE 31457280
08:50:10 e-mail,debug debug: recv: 250-ETRN
08:50:10 e-mail,debug debug: recv: 250-PIPELINING
08:50:10 e-mail,debug debug: recv: 250-AUTH LOGIN PLAIN
08:50:10 e-mail,debug debug: recv: 250 HELP
08:50:10 e-mail,debug debug: send AUTH PLAIN [pswd hash string removed]
08:50:10 e-mail,debug debug: recv: 501 Invalid base64 data
08:50:10 e-mail,debug debug: send RSET
08:50:10 e-mail,debug debug: recv: 250 Reset OK
08:50:10 e-mail,debug debug: send QUIT
08:50:10 e-mail,debug debug: recv: 221 [hostname remove] closing connection
08:50:10 system,e-mail,error Error sending e-mail: AUTH failed
08:50:10 system,e-mail,error debug: Error sending e-mail: AUTH failed
Email settings on router:
/tool e-mail
set from=noreply@domain.ext password=pwdhere server=41.20x.xxx.xxx:587 username=noreply@domain.ext
Port 587 is normally used when the email server requires TLS security, like Gmail. Are you including “tls=yes” in the send?
Hi, thanks for the reply.
The port is used as an alternative to port 25, and does not require tls or ssl.
Configuring an email client with the same username, password and other settings, and it works, although I have to select server requires authentication for smtp.
I used these exact same settings on a previous router with no problems.
I don’t know what Mikrotik will say about V3.30, except recommend an upgrade, but you might try the email send, then immediately generate a supout.rif file and email it to support(at)mikrotik.com. I would include the log text above also.
I tried emailing support for another problem that I was having with radius and user-manager, included the supout file, and to this day have not received a reply.
I managed to get the radius working properly without their help.
I will generate another supout, and see if I get any reponse.
I don’t know which side of the connection the posts I found are discussing, but I recommend doing a Google search for
exim 501 Invalid base64 data
It is definitely not an uncommon problem.
I have this same problem.
Im using mk-3.30 version and MTA exim4
But problem do not is for exim
The mikrotik send the first action a extra character \177 end of line.
AUTH PLAIN [pswd hash string removed]\177
the second action, run the script manualy, sent mail normaly.
this is a bug ???.
Thanks in advance
my english is very poor.