Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d9a39044
Commit
d9a39044
authored
Aug 16, 2011
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 466419: Add SSL support for SMTP
r/a=mkanat
parent
3a8142ae
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
1 deletion
+25
-1
Common.pm
Bugzilla/Config/Common.pm
+9
-1
MTA.pm
Bugzilla/Config/MTA.pm
+6
-0
Requirements.pm
Bugzilla/Install/Requirements.pm
+6
-0
Mailer.pm
Bugzilla/Mailer.pm
+1
-0
mta.html.tmpl
template/en/default/admin/params/mta.html.tmpl
+2
-0
strings.txt.pl
template/en/default/setup/strings.txt.pl
+1
-0
No files found.
Bugzilla/Config/Common.pm
View file @
d9a39044
...
...
@@ -51,7 +51,7 @@ use base qw(Exporter);
check_user_verify_class
check_mail_delivery_method check_notification check_utf8
check_bug_status check_smtp_auth check_theschwartz_available
check_maxattachmentsize check_email
check_maxattachmentsize check_email
check_smtp_ssl
)
;
# Checking functions for the various values
...
...
@@ -350,6 +350,14 @@ sub check_smtp_auth {
return
""
;
}
sub
check_smtp_ssl
{
my
$use_ssl
=
shift
;
if
(
$use_ssl
&&
!
Bugzilla
->
feature
(
'smtp_ssl'
))
{
return
"SSL support is not available. Run checksetup.pl for more details"
;
}
return
""
;
}
sub
check_theschwartz_available
{
my
$use_queue
=
shift
;
if
(
$use_queue
&&
!
Bugzilla
->
feature
(
'jobqueue'
))
{
...
...
Bugzilla/Config/MTA.pm
View file @
d9a39044
...
...
@@ -81,6 +81,12 @@ sub get_param_list {
default
=>
''
},
{
name
=>
'smtp_ssl'
,
type
=>
'b'
,
default
=>
0
,
checker
=>
\&
check_smtp_ssl
},
{
name
=>
'smtp_debug'
,
type
=>
'b'
,
default
=>
0
...
...
Bugzilla/Install/Requirements.pm
View file @
d9a39044
...
...
@@ -261,6 +261,12 @@ sub OPTIONAL_MODULES {
feature
=>
[
'smtp_auth'
],
},
{
package
=>
'Net-SMTP-SSL'
,
module
=>
'Net::SMTP::SSL'
,
version
=>
1.01
,
feature
=>
[
'smtp_ssl'
],
},
{
package
=>
'RadiusPerl'
,
module
=>
'Authen::Radius'
,
version
=>
0
,
...
...
Bugzilla/Mailer.pm
View file @
d9a39044
...
...
@@ -164,6 +164,7 @@ sub MessageToMTA {
username
=>
Bugzilla
->
params
->
{
"smtp_username"
},
password
=>
Bugzilla
->
params
->
{
"smtp_password"
},
Hello
=>
$hostname
,
ssl
=>
Bugzilla
->
params
->
{
'smtp_ssl'
},
Debug
=>
Bugzilla
->
params
->
{
'smtp_debug'
};
}
...
...
template/en/default/admin/params/mta.html.tmpl
View file @
d9a39044
...
...
@@ -63,6 +63,8 @@
smtp_password => "The password to pass to the SMTP server for SMTP authentication. " _
"This field has no effect if the smtp_username parameter is left empty.",
smtp_ssl => "Enable SSL support for SMTP.",
smtp_debug => "If enabled, this will print detailed information to your" _
" web server's error log about the communication between" _
" $terms.Bugzilla and your SMTP server. You can use this to" _
...
...
template/en/default/setup/strings.txt.pl
View file @
d9a39044
...
...
@@ -106,6 +106,7 @@ END
feature_moving
=>
'Move Bugs Between Installations'
,
feature_patch_viewer
=>
'Patch Viewer'
,
feature_smtp_auth
=>
'SMTP Authentication'
,
feature_smtp_ssl
=>
'SSL Support for SMTP'
,
feature_updates
=>
'Automatic Update Notifications'
,
feature_xmlrpc
=>
'XML-RPC Interface'
,
feature_detect_charset
=>
'Automatic charset detection for text attachments'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment