Tags:
create new tag
view all tags

SID-01498: Mail authentication and smtp port

Status: Answered Answered TWiki version: 5.1.1 Perl version: 5.12.2
Category: CategoryEmail Server OS: OpenBSD 5.1 Last update: 13 years ago

I've set up a Wiki but outgoing email is not getting through. Use an external ISP's mailbox for our mail. Set up the user login and password. Mail is basically refused by the mail server.

After supplying the ISP with the log dump (using debug option) he had two recommendations:

a) the outgoing port needs to be set to 587

b) disable SSL in the authentication.

Don't see any configuration option to set the port (I assume if defaults to 25 for SMTP) and don't see any controls on what kind of connection.

For my own email client (Thunderbird) I can use either port 25 or 587 but I have secure connection = NONE (as opposed to TLS or SSL)

Any advice on how to change the outgoing port and change the connection type?

-- SteveDiBartolomeo - 2012-07-06

Discussion and Answer

TWiki currently does not support a port number for sending mail. Instead of the internal SMTP you could use the external sendmail program and configure sendmail accordingly.

-- PeterThoeny - 2012-07-08

TWiki could be enhanced to optionally use CPAN:Net::SMTP::SSL. TWiki is open source software. I invite you to get involved, fix/enhance part of TWiki, and contribute it back to the community. If inclined, hire a TWiki consultant to do that for you.

-- PeterThoeny - 2012-07-08

It seems that Twiki uses Net::SMTP by default if present and ignores the mail directive in the configuration. Does that mean I must remove the CPAN Net:SMTP module in order to force it to use sendmail?

Also, I believe our ISP is telling me not to use any secure connection ... so it is not clear what benefit modifying Twiki to use CPAN:Net::SMPT::SSL would achieve in this case.

-- SteveDiBartolomeo - 2012-07-08

No, just empty out the {MAIL_HOST} setting.

-- PeterThoeny - 2012-07-08

The problem has been solved. Two Perl modules, apparently which are required for proper authentication between Net::SMTP and the mail server, were not installed on my system:

perl-authen-sasl (Authen::SASL) and perl-GSSAPI

This was actually previously mentioned in a TWiki article that I had not detected but which my ISP (got.net) found and forwarded to me:

http://twiki.org/cgi-bin/view/Support/SMTPandRelayAccessDenied

Once installed mail is successfully sent and accepted by the mail server on the standard port 25.

-- SteveDiBartolomeo - 2012-07-17

Thanks for reporting back Steve.

-- PeterThoeny - 2012-07-18

      Change status to:
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.
SupportForm
Status Answered
Title Mail authentication and smtp port
SupportCategory CategoryEmail
TWiki version 5.1.1
Server OS OpenBSD 5.1
Web server Apache
Perl version 5.12.2
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2012-07-18 - PeterThoeny
 
  • 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.