Script e-mail sending - It doesn't work!

How to send a message from the router (i.e. by script) to an external e-mail address?

I´ve been reading the ROS, the Wiki and the Forum and contacted my mail server provider. I have been given several advices, tried all the options, changed TO address, changed FROM address, changed server address, changed format of server address (name or IP) but nothing helps!
I made a script and I can run it (at least, the counter says it had run, it counts up). But torch doesn’t see any traffice created. (port 25) The smtp server also doesn’t recieve anything! I tried two different Mail providers but no luck on either of them!

So, outside a script, how to have the router send an e-mail? Just from the terminal screen?

How can I check if a script is running properly and performing the tasks it needs to do. The only sign I have is the counter running up if I manually run the script. But the result is zero!

Here are some of the scripts I tried:

1 name=“Home_ADSL_Down_Mail” owner=“adminrudy”
policy=ftp,reboot,read,write,policy,test,winbox,password
last-started=sep/05/2007 03:22:44 run-count=4
source=/tool e-mail send from=“PC-Gateway@fastmail.fm
server=“66.111.4.52:587” body=“The Home ADSL is down!” subject=“Home
ADSL Link down!” to=“marusol@fastmail.fm

2 name=“Test script” owner=“adminrudy”
policy=ftp,reboot,read,write,policy,test,winbox,password,sniff
last-started=sep/07/2007 01:51:34 run-count=33
source={/tool e-mail send from=“marusol@fastmail.fm” server=“66.111.4.72”
body=“The Home ADSL is down!” subject=“Home ADSL Link down!”
to=“marucom_net@fastmail.fm”}

6 name=“testscript2” owner=“adminrudy”
policy=ftp,reboot,read,write,policy,test,winbox,password,sniff
last-started=sep/07/2007 01:34:34 run-count=6
source={/tool e-mail send from=“marusol@fastmail.fm
server=“smtp.gmail.com” body=“The Home ADSL is down!” subject=“Home
ADSL Link down!” to=“marucom.net@gmail.com”}

#2 should work. this is what i get when i use that:

220 mx3.messagingengine.com ESMTP . No UCE permitted.
EHLO cip-office
250-mx3.messagingengine.com
250-PIPELINING
250-SIZE 71000000
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: <marusol@fastmail.fm>
250 2.1.0 Ok
RCPT TO: <marucom_net@fastmail.fm>
451 4.7.1 <marucom_net@fastmail.fm>: Recipient address rejected: Temporary deferral, try again soon
RSET
250 2.0.0 Ok
QUIT
221 2.0.0 Bye

It looks like they are greylisting your connections. Turn on DEBUG log topic and you can see Email Topic about invalid TO address.

RCPT TO: <marucom_net@fastmail.fm>
451 4.7.1 <marucom_net@fastmail.fm>: Recipient address rejected: Still temporary deferral, try again soon, 43 seconds to go
RSET

Well guys, I finally got it to work; :smiley: :smiley:

name=“AA-Working TEST Script!!!” owner=“adminrudy”
policy=ftp,read,policy,test,winbox,password,sniff
last-started=sep/08/2007 00:45:33 run-count=39
source={/tool e-mail send from=“marusol@fastmail.fm” server=“66.111.4.72”
body=“The Home ADSL is down! Test3” subject=“Home ADSL Link down!”
to=“xxxxxxxxxxxx@fastmail.fm”}

The xxxxxxxx in the ¨To¨ field is an alias mail addres. I use this with some forward rule in the smtp server to forward messages to my mobile as an sms (text) message.

There must have been a typo somewhere, together with a mentioning of my fixed WAN-IP addresses to the smtp-server whitelist that made it to work now.

Great tool now, monitor with Netwatch a router, if it fails I’m notified by sms message as well as e-mail and when it is back up I am notified again. :sunglasses: