I couldn’t send email from MT to my email in spit of my many trials and reading related pots in that forum
I have Routerboard 333 . I didn’t get any error message
any help ?
thanks in advance
I couldn’t send email from MT to my email in spit of my many trials and reading related pots in that forum
I have Routerboard 333 . I didn’t get any error message
any help ?
thanks in advance
Welcome to the MT forum!
Do you have “/tool e-mail” set correctly?
The server should be the ip of the email server that handles the inbound email for your domain.
The from address needs to be a valid email address. Most email servers trash or refuse any email with a malformed from address, and in some cases (like my email server) the from address domain must exist or the email is refused.
ADD: And add the from address to your address book or friends list if your service filters spam for you. They could be ending up in your junk box!
I used the two scripts :
first script:
/system health
:if ([get voltage]<110) do={/tool e-mail send server=74.125.47.27:25 to=raed.xraed@gmail.com subject=[/system identity get name] from=“raididani@hotmail.com” body=(“Low voltage. Current voltage is :”.[/system health get voltage])} else {:log info “Voltage is ok.”}
second script:
:log info “backup beginning now”
:global backupfile ([/system identity get name] . “-” . [/system clock get time])
/system backup save name=$backupfile
:log info “backup pausing for 10s”
:delay 10s
:log info “backup being emailed”
/tool e-mail send to=“raed.xraed@gmail.com” subject=([/system identity get name] .
" Backup") from=raididani@hotmail.com file=$backupfile server=74.125.47.27:25 username= “” password= “”
:log info “backup finished”
BUT no luck till now even of many other script which I used
Have you tried just the email?
/tool e-mail
send to=raed.xraed@gmail.com subject=“Email test” body=“Email test”
FYI: The way you generated the variable backupfile creates an illegal file name in Windows. No colons allowed. The system time contains two.
yes I did and got no error but never received any email even of hundreds of trials
pls find the attached picture

After you send a test email, are there any messages in the log?
What version RouterOS are you using? May I suggest upgrading to at least V3.30.
There is no log message and no error message after sending emai
My Router OS version is 3.0rc13
and I’ll upgrade it
thanks
I sent you a test email with an RB433AH using V3.30. Did you get it?
yes I got an email from
test@wififoryou.com which contains
Email test using RouterOS V3.30
That was my email test, so the addresses are valid, and the gmail server (74.125.47.27) worked ok. Have you upgraded the router OS and tried it again?
I upgraded to v3.3 BUT didn’t receive the email. pls see the attachment and could you please send me the command that you have used in sending email exactly?
as in attachment two text box appeared after upgrading ( user and password) I left them empty, is it ok or should be filled?
best regards

/tool e-mail
set server=74.125.47.27
set from=test@wififoryou.com
*leave user and password blank.
Then
send to=raed.xraed@gmail.com subject=“SurferTim email test” body=“Email test with RouterOS V3.30”
ADD: If you still have trouble, check the email server connection with telnet
telnet 74.125.47.27 25
You should get the name of the server and a 220 response. “quit” will terminate the connection.
I didn’t recieve the email
I couldn’t connect to the server and got the following:
[admin@SOC-Fileds] /system> telnet
address: 74.125.47.27 25
Trying 67.215.65.132…
q
telnet: Unable to connect to remote host: Connection refused
Welcome back!
[admin@SOC-Fileds] /system>
this means your SMTP server doesn’t work
BUT I used GMAIL smtp whcih you have given to me!
Now how can I fix this problem? any other way?
I did not send another email. Just posted the entries I used on the first one. I can send another if you wish.
I did not use the telnet program in the router. I used it from my computer behind the router. The router’s telnet (mine anyway) would not take the port 25 parameter (V3.30). I should have been clearer on that. My bad.
Why is it redirecting the telnet request to 67.215.65.132? Something in your setup? Using http protocol, that ip loads OpenDNS. ADD: On my setup, I see if telnet doesn’t understand the ip address, it is trying to resolve the address using DNS.
ADD: I sent you an email with some other test info. If you have trouble connecting to that email server with the router, email me from your gmail account and let me know what ip your router is using, and I will let it through my spam filter.
One more thing. Your ISP is not blocking port 80 and 25, is it? That is why the telnet trial. If it refuses to connect to the email server, there is a good chance your ISP is blocking you. If it doesn’t respond with a server name that looks like a gmail server, you may be being redirected to a local email server. Here is what I get:
[tim@wifi03 ~]$ telnet 74.125.47.27 25
Trying 74.125.47.27…
Connected to 74.125.47.27 (74.125.47.27).
Escape character is ‘^]’.
220 mx.google.com ESMTP u24si5036634yba.89
I sent reply to your email
Thanks
Got your email, but I haven’t had a chance to do anything about allowing the ip through yet.
Did you try the telnet connection to the gmail server from a computer behind the router?
I got the attached rely from windows telnet
pls see the attachment
note this is the before the router
regards
