error sending e-mail, Invalid TO Addressin MT ROS 3.20

Dear all,

I have got an error running the scripts to send system backup from mikrotik. my script is:

/system backup save name=proroute_sustgw
/tool e-mail send to=“support@sol-bd.com” subject=([/system identity get name] . “RouterBackup”) file=proroute_sustgw.backup

Error message i have got in log is:

“system e-mail error Error sending e-mail: invalid TO address”

I am running MT ROS 3.20

Any idea ?

Regards,
Litu

Greetings!
Did you enter the email server ip and from address in “/tool e-mail”?

Yes,

I have enter the server ip & from address in /tools e-mail.

Litu

Is this address “support@sol-bd.com” a local address at the email server in “/tools e-mail”? Or will it need to be forwarded to another email server for delivery?

Its not a local address, it has to be forwared to another mail server for delivery.

Regards,

Litu

That is called a relay. Does the email server you have entered allow relaying from the ip address of your router?

ADD: The best way is to use the ip of the email server that handles the email (has the email account) for support@sol-bd.com. Your dns record (nslookup) shows that you do have an email exchange for that domain.

thanks. I will do that soon.