Community discussions

MUM Europe 2020
 
firebat
Member
Member
Topic Author
Posts: 390
Joined: Mon Apr 11, 2005 8:38 am

error sending email: error talking to server ??

Mon Nov 06, 2006 5:32 am

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:

send to="xxx@yahoo.com" subject="test" body="test"


How do I tell what the error is? The log doesn't tell me much.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Mon Nov 06, 2006 2:38 pm

maybe try to fill more fields like to, from, server, subject, body.

check if you can ping server from router, check if you have no firewall filters
 
firebat
Member
Member
Topic Author
Posts: 390
Joined: Mon Apr 11, 2005 8:38 am

Mon Nov 06, 2006 10:29 pm

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?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Tue Nov 07, 2006 10:08 am

if you havent changed logs - then id router relay tries to send e-mail but fails log says why. it is very brief, but still a message.

you could try sending mail through any other smtp server (atleast try)

and post - what log say if you have info topic (alone) enabled after your attempt fail.
 
firebat
Member
Member
Topic Author
Posts: 390
Joined: Mon Apr 11, 2005 8:38 am

Wed Nov 08, 2006 8:42 am

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.
 
firebat
Member
Member
Topic Author
Posts: 390
Joined: Mon Apr 11, 2005 8:38 am

Fri Nov 10, 2006 10:39 am

APC UPSs in my network can send mail to the SMTP server that is running on the DUDE machine so I know it is accepting mail.

Miktrotik folks: Can you suggest how to debug this issue?
 
reliableComputer
just joined
Posts: 8
Joined: Tue Sep 12, 2006 8:51 pm

Email Problem - Error talking to Server

Mon Jan 22, 2007 5:46 pm

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.

Thanks for the help.

-Keith-
 
reliableComputer
just joined
Posts: 8
Joined: Tue Sep 12, 2006 8:51 pm

Mon Jan 22, 2007 6:05 pm

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.

Hope that helps somebody.

-Keith-
 
firebat
Member
Member
Topic Author
Posts: 390
Joined: Mon Apr 11, 2005 8:38 am

Wed Jan 24, 2007 7:04 am

Still doesn't work. I still get the same system error. Can you post the script that you use? I'm using the following for a test:

/tool e-mail send from="xxxxx@comcast.net" server="192.168.x.x" body="Router down" subject="Router at second floor is down" to="xxxxx@yahoo.com"


Dude has no issue using the same server.

Who is online

Users browsing this forum: normis, Tonete and 108 guests