Tags:
create new tag
view all tags

Question

Though I successfully installed the Net::SMTP 2.29 and CGI::Carp 1.29 modules, I still got this mail configuration error after trying to register a new user.

My mail config is :

{NotifyTopicName} 'WebNotify'

{RemoveImgInMailnotify} 'TRUE'

{MailProgram} 'Net::SMTP'

{SMTP}{MAILHOST} 'mail.ssbg.com.cn'

{SMTP}{SENDERHOST} 'twiki.ssbg.com.cn'

{SMTP}{Username} 'fabien@prestige-voyages.com'

{SMTP}{Password} '********'

{SMTP}{Debug} 'TRUE'

{PROXY}{HOST} ''

{PROXY}{PORT} ''

Error logs


Mail Error
An e-mail could not be delivered. Please notify your TWiki administrator

Mail to: fabien@passeport-chine.com

Errors: ERROR: Can't send mail using Net::SMTP. not local host passeport-chine.com, not a gateway at c:/usr/lib/CGI/Carp.pm line 319

CGI::Carp::realdie('ERROR
    Can\'t send mail using Net::SMTP. not local host passe...') called at c:/usr/lib/CGI/Carp.pm line 394 
CGI::Carp::die('ERROR
    Can\'t send mail using Net::SMTP. not local host passe...') called at /twiki/lib/TWiki/Net.pm line 312 TWiki::Net::_sendEmailByNetSMTP('TWiki::Net=HASH(0x154ec40)', 'Date: Tue, 03 Oct 2006 09:14:17 GMT\x{a}From: Fabien Barbet <fabi...') called at /twiki/lib/TWiki/Net.pm line 197 TWiki::Net::__ANON__() called at /twiki/lib/CPAN/lib///Error.pm line 379 eval {...} called at /twiki/lib/CPAN/lib///Error.pm line 371 Error::subs::try('CODE(0x2185ce4)', 'HASH(0x22e1478)') called at /twiki/lib/TWiki/Net.pm line 213 TWiki::Net::sendEmail('TWiki::Net=HASH(0x154ec40)', 'From: Fabien Barbet <fabien@passeport-chine.com>\x{a}To: FabienBa?...') called at /twiki/lib/TWiki/UI/Register.pm line 1142 TWiki::UI::Register::_sendEmail('TWiki=HASH(0x1715cec)', 'registerconfirm', 'HASH(0x216e818)') called at /twiki/lib/TWiki/UI/Register.pm line 428 TWiki::UI::Register::_requireVerification('TWiki=HASH(0x1715cec)', '/twiki/data/RegistrationApprovals') called at /twiki/lib/TWiki/UI/Register.pm line 375 TWiki::UI::Register::registerAndNext('TWiki=HASH(0x1715cec)', '/twiki/data/RegistrationApprovals') called at /twiki/lib/TWiki/UI/Register.pm line 90 TWiki::UI::Register::register_cgi('TWiki=HASH(0x1715cec)') called at /twiki/lib/TWiki/UI.pm line 109 TWiki::UI::__ANON__() called at /twiki/lib/CPAN/lib///Error.pm line 379 eval {...} called at /twiki/lib/CPAN/lib///Error.pm line 371 Error::subs::try('CODE(0x21942d0)', 'HASH(0x168aaa0)') called at /twiki/lib/TWiki/UI.pm line 158 TWiki::UI::run('CODE(0x1e36864)') called 

Too many failures sending mail 

The server error log reads this:

[Tue Oct 03 17:13:53 2006] [error] [client 192.168.1.252] , referer: http://192.168.1.201/
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP>>> Net::SMTP(2.29), referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP>>>   Net::Cmd(2.26), referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP>>>     Exporter(5.58), referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP>>>   IO::Socket::INET(1.29), referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP>>>     IO::Socket(1.29), referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP>>>       IO::Handle(1.25), referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 220 SSBG Mail Server X1, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)>>> EHLO twiki.ssbg.com.cn\r, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250-ssbg.com.cn says hello, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250-SIZE 0, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250-8BITMIME, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250-DSN, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250-ETRN, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250-AUTH LOGIN CRAM-MD5, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250-AUTH=LOGIN, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250 EXPN, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)>>> MAIL FROM:<fabien@passeport-chine.com>\r, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 250 ok, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)>>> RCPT TO:<fabien@passeport-chine.com>\r, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 550 not local host passeport-chine.com, not a gateway, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)>>> RCPT TO:<fabien@passeport-chine.com>\r, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration
[Tue Oct 03 17:14:19 2006] [error] [client 192.168.1.252] Net::SMTP=GLOB(0x22e1898)<<< 550 not local host passeport-chine.com, not a gateway, referer: http://192.168.1.201/bin/view/TWiki/TWikiRegistration

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: CommentPlugin,EditTablePlugin,InterwikiPlugin,PreferencesPlugin,SlideShowPlugin,SmiliesPlugin,SpreadSheetPlugin,TablePlugin
Server OS: Windows Server 2003 SE SP1
Web server: Apache/2.2.3 (Win32)
Perl version: 5.8.8, build 819 (ActiveState)
Client OS: WinXP Pro SP2
Web Browser: Firefox 1.5.0.7
Categories: Installation, Registration

-- FabienBarbet - 03 Oct 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

The error suggests the host you have identified to SMTP is not in fact an SMTP mail host. Either find an SMTP mail host (why are you trying to use a host in China?) or switch to using sendmail.

-- CrawfordCurrie - 11 Oct 2006

Thanks but...

Net::SMTP was working, but effectively the SMTP parameters were different than this one. I have two mail host providers for my company - based in china -, the other has a more traditional mail.domain.com smtp configuration without authentication. And this latest one worked properly, here is my final config:

{MailProgram} Net::SMTP

{SMTP}{MAILHOST} mail.oo.nu

{SMTP}{SENDERHOST} mail.oo.nu

{SMTP}{Username} [left blank]

{SMTP}{Password} [left blank]

...but I have now an Invalid Activation Code

I successfully received the confirmation email:

Thank you for registering in the TWiki collaboration platform. Your verification code is username.2179565429.

You now need to verify your e-mail address. 
You can do so by entering 'username.2179565429' in the form presented to you when this e-mail was sent, or by visiting
http://192.168.1.201/bin/register?action=verify;code=username.2179565429

But whatever I tried - click on the link, copy and paste username.2179565429 code or even only the number 2179565429 - nothing seems to work, I still get :

Invalid Activation Code

The activation code username.2179565429 is invalid. .

Please try again. 

Any hints on this?

Nothing seem to have been published and answered yet...

-- FabienBarbet - 26 Oct 2006

The chances are good that the user is actually registered and you have encountered a bug where the browser sends the same activation request twice.

-- CrawfordCurrie - 28 Nov 2006

Change status to:

Effectively, plus correcting this bug and everything works fine !

Thanks a lot ;o)

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2006-12-12 - FabienBarbet
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.