Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Undocumented ActionMailer openssl_verify_mode option #892

Closed
lighthouse-import opened this Issue May 16, 2011 · 2 comments

Comments

Projects
None yet
1 participant

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6508
Created by Florent Piteau - 2011-03-02 18:07:34 UTC

In the mail lib used by ActionMailer, there is a really usefull option for people using wildcard and/or self-signed ssl certificates for their mail server : openssl_verify_mode which can take a string value (none, peer, client_once, fail_if_no_peer_cert) or OpenSSL verify mode constant (OpenSSL::SSL::VERIFY_NONE, OpenSSL::SSL::VERIFY_PEER, ...)

This is how i'm using it :

ActionMailer::Base.smtp_settings = {  
  :address              => 'mail.mydomain.net',
  :port                 => 587,  
  :domain               => 'mydomain.net',  
  :user_name            => 'user@mydomain.net',  
  :password             => 'thatsasecret',  
  :authentication       => :login,  
  :enable_starttls_auto => true,  
  :openssl_verify_mode  => 'none' # Only use this option for a self-signed and/or wildcard certificate
}  

I think this should be mentioned in the "Configuration options" section of ActionMailer::Base documentation. Some people could really use it and shouldn't have to go in to the mail lib documentation to find it.

Imported from Lighthouse.
Comment by Vijay Dev - 2011-03-02 19:54:06 UTC

Hi Florent,

If you can do the documentation, you can make it directly in docrails. That repo has public commit access. You can make the changes and push it there. Thanks!

Imported from Lighthouse.
Comment by Florent Piteau - 2011-04-19 18:47:19 UTC

Finally wrote it : rails/docrails@a1639ad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment