Skip to content
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

SMTP authentication error (doh?) #59

Open
Rggb opened this issue Jul 8, 2020 · 2 comments
Open

SMTP authentication error (doh?) #59

Rggb opened this issue Jul 8, 2020 · 2 comments

Comments

@Rggb
Copy link

Rggb commented Jul 8, 2020

I'm trying to configure a local Postfix installation to deliver mails.

All things work fine with an external service (eg. Google). After setting up the parameters needed by postfix for a particular organization:

image

mail delivery fails due to Net::SMTPAuthenticationError (in this example, using a newsletter):

E, [2020-07-07T17:21:43.722460 #15284] ERROR -- : [ActiveJob] [Decidim::Admin::NewsletterDeliveryJob] [4fc8365c-26bb-4745-9a76-558349a53097] Error performing Decidim::Admin::NewsletterDeliveryJob (Job ID: 4fc8365c-26bb-4745-9a76-558349a53097) from Async(newsletter) in 2058.78ms: Net::SMTPAuthenticationError (503 5.5.1 Error: authentication not enabled
):
/var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:981:in check_auth_response' /var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:736:in auth_plain'
/var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:728:in authenticate' /var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:565:in do_start'
/var/www/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/smtp.rb:518:in `start'

Of course I don't need authentication using local Postfix server, while I (others) need it for external services.

I tried to play with config, without success. Suggestions?

@microstudi
Copy link
Contributor

If you are using postfix, simply use sendmail as delivery method and comment everything else. This values won't be used (leave them empty)

In config/environments/production.rb:

imatge

@Rggb
Copy link
Author

Rggb commented Jul 28, 2020

Thanks for your reply.

This will affect the entire environment afaik. so every organization will use sendmail method (in my config, the local Postfix), that's not what I'm trying to do.

By now I configured authentication for Postfix. I need an hack, will play with the code again in the future when worktime < lifetime ;)

Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants