I’m getting the following message when trying to send an email to my PostCase SMTP server running on the same machine as DUDE. Dude can send emails without an issue:
error sending email: error talking to server
I have the SMTP IP address and the from address set in tool e-mail> . I try a simple email like and get the error. I tried specifying the server and from address directly as well:
Yep, tried all of that (I even diabled the firewall on the PC). There server is pingable as it is directly attached to the mikrotik’s interface. I’m hoping there is some more logs somewhere that can tell me what the issue is. Is there a logging verbosity setting available?
Which log are you referring to? The Router event log just prints out:
error sending email: error talking to server
Is there another log? Since RouterOS doesn’t do SMTP authenication, I can’t send mail to other servers as well. My SMTP server is attached directly to a router interface and nothing is being blocked on that interface.
I’m curretnly running 2.9.35, with all settings pointing to my SMTP server, and yet it still doesn’t go.
No firewalls between the two, and the SMTP relay doesn’t require authentication.
I assume other people have had luck in getting the email feature to work. Did you need to have a real dumb smtp server to do it? Currently running RedHat Sendmail.
Answered my own question, and wanted to let everybody else know, in case you have the same problem.
Apparently, when MikroTik talks to the SMTP server it sends the radio name as its EHLO request.
In my case, this was causing sendmail to say it was an invalid domain, and killing the connection.
The “fix” is to change the identity to radioname.yourdomain giving your actual domain name. Then is sent right on through. My script will merely change the identity before & after sending the message.