I have a SMTP server that needs to authenticate with extended smtp (esmtp) and i can’t find a way to make my rails app to authenticate with EHLO instead of HELO.
any ideas ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you sure that Rails isn’t already doing this? Digging through the source, Rails delegates to the Mail gem which delegates to
Net::SMTP. If you look at the Ruby source for lib/net/smtp.rb, you’ll see that at some point it calls a privatedo_helomethod which checks the@esmtpvariable and if true, does ehlo instead of helo. Looking back up at the initialize, it sets@esmtpto true by default. I don’t see anywhere that it’s getting unset.Perhaps it’s something else?
For the reference
do_heloinNet::SMTP