I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2012-03-31 13:17:14.646003-07 by tanager
cannot get SMTP authentication to work

I've been pulling my hair out, trying to get svnnotify to authenticate.

I was using 2.82 first, and was getting an error complaining about Authen::NTLM not being installed, even though I had just installed it.

I moved to 2.83 and now I get this:

> /usr/bin/svnnotify -p /export/svnroot/merlin -r 71265 -D ddddd.com -t scriptauth@ddddd.com -- +smtp ussc-casht-p1.corp.ddddd.com --smtp-user me@corp.ddddd.com --smtp-pass 'mypassword' --smtp-po +rt 587 Unsupported Authentication mechanism
I've tried specifying the --smtp-authtype option, but there is nothing in the help that gives the valid values for this option. The error message complains about the TLS->new() below:
sub get_handle { my ($class, $notifier) = @_; # Load Net::SMTP::TLS. require Net::SMTP::TLS; require Sys::Hostname; my $smtp = Net::SMTP::TLS->new( $notifier->{smtp}, Hello => Sys::Hostname::hostname(), ( $notifier->{smtp_port} ? ( Port => $notifier->{smtp_port} ) : () ), ( $notifier->{smtp_tls} ? () : (NoTLS => 1) ), ( $notifier->{smtp_user} ? ( User => $notifier->{smtp_user} ) : () ), ( $notifier->{smtp_pass} ? ( Password => $notifier->{smtp_pass} ) : () ), ( $notifier->{verbose} ? ( Debug => 1 ) : () ) ) or die "Unable to create SMTP object: $!";
Any ideas? Thanks, David
Direct Responses: 13687 | Write a response
Posted on 2012-04-03 08:09:41.156543-07 by tanager in response to 13685
Re: cannot get SMTP authentication to work
Figured it out. I needed the --smtp-tls option, and I needed to drop the --smtp-authtype option, which has been deprecated by svnnotify.
It would be nice if someone could update the '--help' text to reflect these changes. Currently, the help text gives --smtp-authtype as a valid option (no mention of it being deprecated) and --smtp-tls is not mentioned in the help text at all. Thanks, David
Direct Responses: 13688 | Write a response
Posted on 2012-04-03 11:31:59.252944-07 by theory in response to 13687
Re: cannot get SMTP authentication to work
Oops, sorry, oversight. Fixed.
Direct Responses: Write a response