Tool Email setup/troubleshooting

From MikroTik Wiki
Revision as of 16:38, 31 August 2010 by SurferTim (talk | contribs) (Setup and troubleshooting RouterOS email function)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setup and troubleshooting RouterOS email function

Insure you have the basic router setup complete. Ip address, default route, and DNS. NTP client is recommended.

Go to "/system logging".
add topic=e-mail action=memory
This will put e-mail messages in the system log, and makes troubleshooting easier.


Go to "/tool e-mail".

Enter the email server ip. If your email service allows you to send email with a username and password, you may use the email server ip provided by your ISP. If not, use the ip of the email server that handles the domain for the destination email address. No user or password entered for this.

Enter the from address. This must be a valid format and domain. Insure you enter this from address in your address book or friends list in your email reader and provider, or it could be mistaken for spam.

Enter a username and password only if the email server requires it. If you are using the destination email address email server, leave the user and password blank


Try a test email.
send to=you@yourdomain.com subject="test" body="test"
or
send to=you@yourdomain.com subject="test" body="test" tls=yes
ir your email server requires a secure connection

Check "/system log", then your email account, for the result.


If you need to check a non-secure connection to the email server from the router:
/tool telnet xx.xx.xx.xx 25
Replace x's with the email server ip in "tool e-mail", and the server should respond with
220 server.domain.com ESMTP xxxxxxxxxx
Type 'quit' to terminate the telnet connection from the email server.

If the connection fails, it may be due to your ISP blocking port 25, or the server requires a secure connection.
If the connection is refused, it may be the email server not accepting email from your ip, either temporarily or permanently.
If the server responds with a domain name that is not what you would expect from that server, your ISP may be redirecting your outbound email, or the dns setting is incorrect.