Only allow ASCII for email password
I've had this issue ever since installing my freenas 11.1; I just recently upgraded to 11.1.u6 (which listed an fix for emails), and then latest 11.2, but the same issue occurs.
My SMTP details are correct (I've tested them with regular email client).
When I click Send test email, the following error displays in Freenas UI:
[EFAULT] 'ascii' codec can't encode character '\xe9' in position 37: ordinal not in range(128)
Thanks for any help/assistance on how to get my freenas to send me mails :)
When sending this report via Freenas UI's Support (so as to attach debug info), for some reason, the initial password I set for my account was refused and it would say my my login/password were incorrect...
I simplified the password...3 times. So there has to be some limitation on the Freenas side, as Redmine itself was happy with the different passwords (in lowering length & complexity) that I used.
Should I report a bug for that?
#5 Updated by William Grzybowski over 1 year ago
- Status changed from Unscreened to Blocked
- Reason for Blocked set to Need additional information from Author
I am unable to reproduce the issue and I cant find anything useful in the debug.
Are you using non-ascii in anything? Email, names, headers?
Are you available for a TeamViewer session to debug?
#6 Updated by Anonymous over 1 year ago
I don't have access to my freenas ATM, however, from top of my head, the only odd/special character(s) in the SMTP setup are in the password. I have habit of throwing in sort of the following:
à, á, ä, â
Funny, I hadn't thought of checking and changing that earlier -- but now with the issue of Freenas/Support not liking my Redmine password here, and finally working when I "drastically" shortened it & removed any accents.. I'm guessing that maybe the same/similar sort of problem arose.
Otherwise, if it's still not that, yes, should be able to do a teamviewer -- let me know what time/day(s) -- I live in Europe GMT+1
#9 Updated by Anonymous over 1 year ago
I just tested, and the following steps should reproduce the error
Without modifying your SMTP account's actual password, you can put an incorrect password in the FreeNAS UI, Save it, and click to Send test email:
1. incorrect plain ascii password
[EAUTH] Authentication error (535): b'5.7.8 Error: authentication failed: authentication failure'
Normal, makes sense
2. incorrect utf8 password
[EFAULT] 'ascii' codec can't encode character '\xe7' in position 21: ordinal not in range(128)
#10 Updated by William Grzybowski over 1 year ago
- Target version changed from Backlog to 11.2-U2
- Reason for Blocked deleted (
Need additional information from Author)
Thanks, this seems to be an underlying issue in python library, so unfortunately there isnt anything we can do at this moment other than disallow non-ascii passwords
#16 Updated by Timothy Moore II over 1 year ago
- File fn-email-smtp-error.png fn-email-smtp-error.png added
- Status changed from Ready for Testing to Passed Testing
- Needs QA changed from Yes to No
Tested with FreeNAS VM installed with FreeNAS-11.2-INTERNAL63:
Go to System/Email and configure root address with SMTP password containing UTF-8 character "õ". Clicking "Save" returns error message "Only plain text characters (8-bit ASCII) are allowed in passwords. UTF or composed characters are not allowed.".
#25 Updated by Bonnie Follweiler over 1 year ago
- File Screen Shot 2019-02-05 at 11.04.42 AM.png Screen Shot 2019-02-05 at 11.04.42 AM.png added
- Status changed from Ready for Testing to Failed Testing
This was on FreeNAS-11.2-U2-INTERNAL83. It did give the error message so that passed testing:
[EINVAL] mail-config.pass: Only plain text characters (7-bit ASCII) are allowed in passwords. UTF or composed characters are not allowed.
It failed since the tooltip doesn't mention using the ascii caharcters