-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications via e-mail not working? #24
Comments
OK, after doing some additional research I found a solution for using aexternal smtp-host with ssl/starttls:
I added these two lines at the code after line 521/522
So code from line 519 looks like this now:
|
Added my modifications to the code. I would like to pull.. |
That's indeed needed if you are requires to authenticate to connect to an SMTP with that requirement. Have you tried using the password encryption mechanism built in to try to obfuscate the password information? |
Hi, Regards |
For now, to clarify, we do not have the means to handle SMTP password authentication. We can put it on the long-term desired features list. Looksclike you'd need to use an s.login mechanism, such as discussed here: http://stackoverflow.com/questions/14196581/python-smtp-requires-authentication |
The more conventional code would look something like this. Port 587 is preferred for SMTP/TLS authentication: server = smtplib.SMTP(MAIL_SMTP_SERVER:587) and so on. In any case, it's on the list of things to strongly consider building in since it's not hard to do, but ould take some work to incorporate the logic to support both it and the conventional means with minimal code disruption. Different mail gateways also require different username conventions, some, for example, require the domain be included, some the email address, others just th esimple username, etc. so there is more to go wrong when setting things up. |
Hello,
I tried different configurations for sending automated notification after backup.
When configuring
MAIL_SMTP_SERVER = 'smtp.myserver.de'
then I get
smtplib.SMTPSenderRefused: (550, '5.7.1 Authentication Required','')
and when I configure
MAIL_SMTP_SERVER = 'localhost'
(with working ssmtp.config) there is an error like "Network is unreachable".
So where do I set config parms for authentication with external smtp-hosts or how to get in touch with my local ssmtp-host in a working manner?
Thanks!
The text was updated successfully, but these errors were encountered: