Tags:
create new tag
, view all tags

Question

Hi there,

I'm having a problem with the registration of new users on my TWiki. I've just installed and configured it but am getting a Mail Error when new users try to register.

The error is:


Errors: ERROR: Can't send mail using Net::SMTP. <my_address@mailworks.org>: Sender address rejected: You must be authenticated to use this service. at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314
CGI::Carp::realdie('ERROR
Can\'t send mail using Net::SMTP. <my_address@mail...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 385

CGI::Carp::die('ERROR
Can\'t send mail using Net::SMTP. <my_address@mail...') called at /var/www/twiki/lib/TWiki/Net.pm line 318 TWiki::Net::_sendEmailByNetSMTP('TWiki::Net=HASH(0x1143a80)', 'Date: Sun, 05 Nov 2006 15:26:18 GMT\x{a}From: Shareef Jalloq <my_...') called at /var/www/twiki/lib/TWiki/Net.pm line 197 TWiki::Net::__ANON__() called at /var/www/twiki/lib/CPAN/lib///Error.pm line 379 eval {...} called at /var/www/twiki/lib/CPAN/lib///Error.pm line 371 Error::subs::try('CODE(0x156e710)', 'HASH(0x16f5700)') called at /var/www/twiki/lib/TWiki/Net.pm line 213 TWiki::Net::sendEmail('TWiki::Net=HASH(0x1143a80)', 'From: Shareef Jalloq <my_address@mailworks.org>\x{a}To: TempU?...') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 1142 TWiki::UI::Register::_sendEmail('TWiki=HASH(0x78b650)', 'registerconfirm', 'HASH(0x1509790)') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 428 TWiki::UI::Register::_requireVerification('TWiki=HASH(0x78b650)', '/var/www/twiki/data/RegistrationApprovals') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 375 TWiki::UI::Register::registerAndNext('TWiki=HASH(0x78b650)', '/var/www/twiki/data/RegistrationApprovals') called at /var/www/twiki/lib/TWiki/UI/Register.pm line 90 TWiki::UI::Register::register_cgi('TWiki=HASH(0x78b650)') called at /var/www/twiki/lib/TWiki/UI.pm line 109 TWiki::UI::__ANON__() called at /var/www/twiki/lib/CPAN/lib///Error.pm line 379 eval {...} called at /var/www/twiki/lib/CPAN/lib///Error.pm line 371 Error::subs::try('CODE(0x1518de0)', 'HASH(0x6b28f0)') called at /var/www/twiki/lib/TWiki/UI.pm line 158 TWiki::UI::run('CODE(0x7b93a0)') called

Too many failures sending mail


I'm running Fedora, Perl 5.8.8 and I've just updated Net::SMTP to the latest.

I'm new to Linux so am not sure if the problem is something to do with TWiki, Net::SMTP or with something I've not set up in my distro.

During configuration I updated the Mail and Proxies settings so that they mirrored my Outlook settings. I set SMTPMAILHOST to the SMTP server I connect to and I set the Username and Password fields appropriately. The only field I was unsure about was SMTPSENDERHOST which I set to 'localhost'.

If anyone wants to see error logs or my full config then please ask and I'll email. I wasn't sure how to attach all my logs and configs.

Thanks, Shareef.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Core Rel 5 , kernel 2.6.17
Web server: Apache 2.2.2
Perl version: 5.8.8
Client OS: WinXP, SP2
Web Browser: Mozilla Firefox
Categories: Registration, Authentication

-- ShareefJalloq - 05 Nov 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I'd suppose that the error message is telling the truth: You must be authenticated to use this service.

You need to specify a user id and a password to be allowed to send mail, and you can do so using TWiki's bin/configure interface, by setting the values {SMTP}{Username} and {SMTP}{Password} in the "Mail and Proxies" section.

-- HaraldJoerg - 06 Nov 2006

Hi Harald,

thanks for the comment but I was already doing this. I managed to get round the problem by using Net::SMTP::TLS which provides a better authentication service. Using the same Username and Passwork I was able to send mail.

The ISP I was using was FastMail so it may just have been the way they expected authenticated requests?

Shareef.

-- ShareefJalloq - 22 Nov 2006

Net::SMTP needs yet another CPAN module, Authen::SASL, to do authentication, maybe that is missing in your TWiki environment? As far as I can see from the FastMail FAQ, they offer SMTP and SMTP over SSL, but do not mention a need for TLS. Anyway, it is good to know that Net::SMTP::TLS is an alternative, if the problem pops up again. Thanks for the hint!

-- HaraldJoerg - 22 Nov 2006

 
Change status to:
Topic revision: r4 - 2006-11-22 - HaraldJoerg
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.