-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
EmailOperator is not working on Mac with Postfix : expecting TLS #50
Comments
@r39132, we mostly use Amazon Simple Email. We might introduce a way not to force STARTTLS while making sure it still works with our current setup. That said, messages sent with local postfixes usually end up in spam folders when sent to a more mainstream mail server... You prod server should probably support STARTTLS (http://switch.richard5.net/isp-in-a-box-v2/configuring-the-mail-server-components/configure-postfix-to-use-tls/). |
How hard would it be to switch to using SNS rather than SES? We currently use SNS for our internal alerting so that users can subscribe / maintain their own alerts. |
Thanks @artwr SES should work, though now that @martingrayson mentions it, SNS would also work, though probably with its own operator, e.g. SNSOperator. Do you folks have a simple version with some simple templated html content? That would be very helpful. |
I don't know much about smtp authentication protocols, but it should be very easy to fix make work with other standard configuration supported by the python smtp lib. There's already an [smtp] section in the cfg file, you just need to add support for your protocol. Squeeze in an That's the kind of things that we have to rely on the community to come up with since we can't set this up and test it. |
We also already rely on boto for our s3 hooks and operators, and it seems boto has the ability to talk to SNS. This could be something to consider. Unfortunately, I have little experience with this service, and I don't have access to that infra at work to test an operator... |
Boto makes communicating with AWS so easy. Here are examples using both SES and SNS. I send email via SES and SNS as steps 4a and 4b, respectively, once the "wait_for_empty_queue" task completes.
|
Co-authored-by: Vishesh Jain <visheshj@twitter.com>
Why do I need TLS? This requires setting it up for any smtp server, even one I run locally.
I also tested this out with our production postfix server, and that didn't work for a different reason, which is not apparent yet. Which email SMTP servers have you tried this out with? Examples would be very helpful.
The text was updated successfully, but these errors were encountered: