when trying to send e-mail, the following error is occuring :
[ERROR] [rg.openhab.action.mail.internal.Mail] - Could not send e-mail to ‘toaddress@domain.tld’.
org.apache.commons.mail.EmailException: javax.mail.internet.AddressException: Missing final ‘@domain’ in string ``“fromaddress@domain.tld”’’
when I change the e-mail address in mail.cfg to fromaddress2@domain.tld, in the openhab.log the same error with the same original e-mail address (fromaddress1@domain.tld) occurs.
this means that mail.cfg is not used, and because there is an e-mail address that i recognize (something that I did put in somewhere), another configuration file is used.
that lead me to /userdata/config/org/openhab/mail.config.
whatever I put i the mail.config or mail.cfg (with or without quotes), in the log, there is always the same from address (fromaddress1@domain.tld).
What could be another location where that is configured ?
Like I said,
there is /conf/services/mail.cfg
there is /userdata/config/org/openhab/mail.config.
changing either of them (with or without quotes), openhab.log always gives the same error :
Missing final ‘@domain’ in string ``“fromaddress@domain.tld”’’
Stop openHAB. Delete mail.config. This is an auto generated “cached” version. Get your mail.cfg the way you want it, then reboot. (mail.config will be recreated)
I always forget this .cfg / .config issue, good job that you found the clues. It usually seems to be behind any configuration weirdness in 1.x services & bindings.