SID-01438: ERROR: Can't send mail using Net::SMTP.
Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
5.10.1 |
Category: |
CategoryRegistration |
Server OS: |
CentOS 6.2 Kernel 2.6.32-220.4.1.el6.x86_64 |
Last update: |
10 years ago |
I just setup Twiki 5.1.1 on
CentOS 6.2 X64 machine. I'm trying to get the user registration email to function properly, but I can't. Every time I register a new user, I get the following error:
ERROR: Can't send mail using Net::SMTP. Can't connect to 'my.smtp.server' at /var/www/html/twiki/lib/TWiki/Net.pm line 501. Too many failures sending mail
I wrote a script that sends mail using the Net::SMTP module, so I know that part of it is working. I've also wrote a test script using sendmail, which also works. This confirms that nothing is wrong with my infrastructure.
I've tried both the Net::SMTP and sendmail configurations within the Twiki configure page, but I get the same exact error, every time.
Any help that can be provided would be greatly appreciated. Thanks in advance for any suggestions.
--
MitchSpacone - 2012-03-28
Discussion and Answer
Things to check:
- Is DNS working? To test try using the IP address instead of the domain name of your SMTP server.
- Specify {SMTP}{Username} and {SMTP}{Password} if required by your SMTP server
- Specify {SMTP}{SENDERHOST} if required by your SMTP server
--
PeterThoeny - 2012-03-28
I gave up. Installed the VM which works fine.
--
MitchSpacone - 2012-03-28
Having the same problem with Centos 6.3. Tried several things but still getting this error.
--
MarkGreenway - 2012-09-04
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2012-10-24
I am having this problem as well.
CentOS 6.4, X86_64. TWiki 5.1.1.
The error I received is:
Error sending mail forf
WebAdmin: ERROR: Can't send mail using Net::SMTP. Can't connect to 'mailserver.example.com' at /var/www/html/twiki/lib/TWiki/Net.pm line 513.
--
Simon Gao - 2013-06-04
The TWiki version is 5.1.4.
--
Simon Gao - 2013-06-04
Best to open a new support question with platform and setting details. Try also "localhost" for {SMTP}{MAILHOST} setting.
--
Peter Thoeny - 2013-06-06
I had this problem and setting {SMTP}{MAILHOST} to localhost did the trick. worked instantly !
--
Alistair Revell - 2013-11-15
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.