/tool e-mail

  1. routeros-7.0beta1-arm.npk
  2. RB4011iGS+5HacQ2HnD-IN
  3. /tool e-mail Error sending email <>:invalid From address.

What is the full command you used, including the from address ?

send from=antoniob@msn.com to=aboiles@hotmail.com subject=“email test” body=“email test”
works in 6.46b38 not in v7 though

If Youre using “from=” variable in /tool e-mail send , You need to also specify “user=” and “password=”, i.e

/tool e-mail send from=antoniob@msn.com to=aboiles@hotmail.com subject="email test" body="email test"  user="username" password="password"

or set everything up under “/tool e-mail” and only use “to=” variable in “/tool e-mail send”

So under v7 it no longer uses the settings saved in /tool e-mail?
All scripts now have to use user and password?

Updated my previous post, but if You have everything saved under “/tool e-mail” it should work without needing “from=” parameter under “/tool e-mail send”

Same error with from or without.
Same error with user and password.
Also if Start TLS is set to yes, you get TLS handshake failed.

Please post the output from “/tool e-mail export hide-sensitive”

[admin@RB4011] > /tool e-mail export hide-sensitive

sep/11/2019 00:20:25 by RouterOS 7.0beta1

software id = 0BHM-Y5B5

model = RB4011iGS+5HacQ2HnD

serial number = 96B00AAFF9D5

/tool e-mail
set address=smtp.live.com from=antoniob@msn.com user=antoniob@msn.com

Youre missing these 2 things: port=587 tls=starttls

no change in results,
without tls - Invalid From
with tls - TLS handshake failed.
Do you want a supout sent to support?

Yes, please send us supout.rif file to support@mikrotik.com referencing this topic.

Why would that be? Setting a sender address is completely unrelated to authentication when sending mail, isn’t it?

With most services these days, from addresses must match authentication to prevent address spoofing.

Sent from my SM-A520W using Tapatalk

Well, not with my server. It requires proper from address but it allows unauthenticated SMTP from the local subnet.
(it does not even implement authentication so requiring that and enforcing it on connect would mean /tool e-mail would become unusable with this bog-standard server)