Error e-mail sending: invalid TO address

Greetings forumers,
although I have found few old topics concerning this, I have no success resoving it. So rather than
resurrect many years old topics I make new one.

Trouble is:
There are about 40 routerboards in network (mibsbe/mibsleRB4xx/7xx) with different OS versions (4.17 and newer).
When making script backups via email, 80% of them are fine and work properly.
The rest 20% types “Error e-mail sending: invalid TO address” in log. Settings is identical in all
mikrotiks. No idea where the dead dog is burried…

Settings:
Tools/email:
server xx.xx.xx.xx
port: 25
from mikrotikname@mydomain.com

Script:
/export file=mikrotikname;
/tool e-mail send to=“backup@mydomain.com” subject=([/system identity get name]." backup") file=mikrotikname.rsc;
:log info “Backup e-mail sent.”;

Any idea appreciated - thanks a lot.

Do you have verbose logging set for email? That may help determine the problem.

/system logging
add topics=e-mail,debug action=memory

Try sending again and check the log.

Hi - this is result of your script addon:

this is on well-working mikrotik
Jan/15/2013 11:01:02 changed script settings by admin
Jan/15/2013 11:01:08 Backup e-mail sent.
Jan/15/2013 11:01:08 recv: 250 2.1.0 Ok
Jan/15/2013 11:01:08 send RCPT TO: <backup@myemail.com>
Jan/15/2013 11:01:08 log rule added by admin
Jan/15/2013 11:01:08 recv: 250 2.1.5 Ok
Jan/15/2013 11:01:08 send DATA
Jan/15/2013 11:01:08 recv: 354 End data with
Jan/15/2013 11:01:08 send.
Jan/15/2013 11:01:08 recv: 250 2.0.0 Ok: queued as 2FB331FA08E
Jan/15/2013 11:01:08 send QUIT
Jan/15/2013 11:01:08 recv: 221 2.0.0 Bye

this one on failing one:
Jan/15/2013 11:02:42 changed script settings by admin
Jan/15/2013 11:02:45 Backup e-mail sent
Jan/15/2013 11:02:45 log rule added by admin
Jan/15/2013 11:02:45 recv: 250 OK
Jan/15/2013 11:02:45 send RCPT to: <backup@myemail.com>
Jan/15/2013 11:02:45 recv: 530 SMTP authentication is required.
Jan/15/2013 11:02:45 send RSET
Jan/15/2013 11:02:45 recv: 250 OK
Jan/15/2013 11:02:45 send QUIT
Jan/15/2013 11:02:45 recv: 221 goodbye
Jan/15/2013 11:02:45 Error sending e-mail <mikrotik44 + 45 backup>: invalid TO address

So there is trouble with authentication… but I am not sure why with same settings?

Greetings - thanks to Surfer - error was revealed.
By some accident few mikrotiks were unidentified on central router firewall’s address list.

Thanks for help once more and very much. :smiley: C.