plainblack.com
Username Password
search
Bookmark and Share
SMTP authentication missing  (#28)
Issue
Most SMTP servers today requires authentication when connecting to them. I miss a user/pword field for this in the mail settings and that WebGUI utilize theese field when sending
Comments
koen
0
4/1/2008 4:54 pm

package WebGUI::Mail::Send uses Net::SMTP or the sendmail command to actually send the mail (from 7.5.8 beta)  see: /data/WebGUI/lib/WebGUI/Mail/Send.pm.

If you are using the sendmail command (or script), then obviously authentication is not needed.

In case you are using Net::SMTP then auth could be used:

[code]

auth ( USERNAME, PASSWORD )

Attempt SASL authentication. 

[/code]

So the these things would have to be done to implement this:

  1. Edit the Settings form to have fields to add smtpAuthUser and smtpAuthPassword to the settings table.
  2. Edit WebGUI::Mail::Send to insert this (starting at line 463) of /data/WebGUI/lib/WebGUI/Mail/Send.pm :  

[code] 

if ($self->session->setting->get("smtpAuthUser")) {

$smtp->auth( $self->session->setting->get("smtpAuthUser"), $self->session->setting->get("smtpAuthPassword") ) or $self->session->errorHandler->error("Couldn't authenticate user:$self->session->setting->get("smtpAuthUser")  to mail server: ".$self->session->setting->get("smtpServer") );
 

[/code] 

Koen de Jonge - ProcoliX
http://www.procolix.com
Hosting - WebGUI - Virtualization

koen
0
4/1/2008 4:55 pm

Oh, and ofcourse you would need the perl Authen::SASL module.

Koen de Jonge - ProcoliX
http://www.procolix.com
Hosting - WebGUI - Virtualization

koen
4
5/26/2009 3:54 am
A post about this has been placed in the discussion section of webgui.org http://www.webgui.org/install/upgrade_help/smtp-authentication
JT
0
6/5/2009 9:51 am
approved
christian_g
0
6/14/2010 6:18 am
There should also be a field for the port number, because some providers closed port 25 to prevent spam.

Christian
ehab
0
7/26/2010 2:10 pm
If you want ports other than 25 for example 465 then you will also need ssl support and the abillity to set ignoring of incorrect ssl certificate.
perlDreamer
0
7/27/2010 5:50 pm
Please remember that adding more functions to the RFE will increase its complexity, which increases the difficulty, which lowers the rank of the RFE.

It's better to file a separate RFE for new features, like port number and SSL support.


                       
Details
Ticket Status Pending  
Rating4.0 
Submitted By Visitor  
Date Submitted2006-05-26 
Assigned To unassigned  
Date Assigned 2010-07-31  
Assigned By  
What to improve? Change
URLrfe/request-for-enhancement/smtp-authentication-missing
Karma
Difficulty 8  
Karma So Far8607
Karma Rank1075.88
Keywords
Related Files
Ticket History
7/26/2010
3:04 PM
99 karma transfered Klaus
6/22/2010
10:07 AM
500 karma transfered Klaus
6/14/2010
7:37 AM
1000 karma transfered Klaus
2/9/2010
10:06 AM
1000 karma transfered bartjol
1/18/2010
8:41 AM
1000 karma transfered bartjol
12/4/2009
7:33 AM
500 karma transfered Klaus
11/6/2009
6:14 PM
500 karma transfered sbaur
6/15/2009
11:49 AM
8 karma transfered Klaus
6/15/2009
11:48 AM
415 karma transfered Klaus
6/5/2009
9:52 AM
732 karma transfered JT
5/26/2009
11:51 AM
500 karma transfered sbaur
5/26/2009
3:54 AM
35 karma transfered koen
12/11/2008
1:16 PM
500 karma transfered sbaur
11/11/2008
11:50 AM
100 karma transfered patora
© 2010 Plain Black Corporation | All Rights Reserved