[Cruisecontrolrb-users] Can't authenticate with mail server
Alexey Verkhovsky
alexey.verkhovsky at gmail.com
Wed Feb 27 16:20:08 EST 2008
On Tue, Feb 26, 2008 at 3:16 PM, Jerry Seutter <jseutter at gmail.com> wrote:
> I am having difficulty sending notification emails through a mail server.
> <- "AUTH PLAIN AGRoZW1haWwAfng2PGo8Xxx=\r\n"
> -> "504 5.7.4 Unrecognized authentication type.\r\n"
Awesome. The way I read it, your Microsoft Exchange Server is
configured to not accept AUTH PLAIN. Try to add :authentication =>
:login to ActionMailer::Base.smtp_settings hash. If I read the
ActionMailer and Net::SMTP code correctly, this should make CC.rb use
AUTH LOGIN instead of AUTH PLAIN.
Re STARTTLS. CC.rb (trunk) monkey-patches Net::SMTP to try and open a
TLS connection. If server responds with an error code, CC.rb restarts
the SMTP conversation from scratch (literally, closes the socket,
opens another one, says EHLO again etc).
Reasons:
1. We want to TLS because GMail SMTP server requires it.
2. Some old SMTP servers that don't have TLS drop the connection after
rejecting STARTTLS.
--
Alexey Verkhovsky
CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com]
RubyWorks [http://rubyworks.thoughtworks.com]
More information about the Cruisecontrolrb-users
mailing list