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.
elnino
5
6/8/2011 11:54 pm
I transfered karma, but please do this rfe!!
elnino
0
8/9/2011 3:17 pm
just wondering if this is being planned for wg8
perlDreamer
0
8/20/2011 9:38 pm
The core development team has no plans to add this to WebGUI 8 in time for the beta release.  However, we'd accept a patch with tests anytime it's written.
sysred
5
11/24/2015 2:56 am
my sendmail path is /usr/sbin/sendmail (runs ok from a console). I changed the spectre port from 80 to 8081 in /data/WebGUI/sbin/spectre.conf and now it works fine. smtp didn't work for me, but I can get rid off the mail queue


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