mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
vacation.pl:
- disable TLS by default due to a bug in Mail::Sender 0.8.22 (https://rt.cpan.org/Public/Bug/Display.html?id=85438) Actually, due to a bug in Mail::Sender 0.8.21, it was never enabled ;-) - add new config option $smtp_tls_allowed to allow enabling TLS git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1615 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
1 parent
2e3998c14c
commit
657617d637
1 file changed
+6
@@ -154,6 +154,7 @@ our $smtp_client = 'localhost';
|
||||
|
||||
# SMTP authentication protocol used for sending.
|
||||
# Can be 'PLAIN', 'LOGIN', 'CRAM-MD5' or 'NTLM'
|
||||
# see "perldoc Mail::Sender" (search for "auth") for more options and details
|
||||
# Leave it blank if you don't use authentication
|
||||
our $smtp_auth = undef;
|
||||
# username used to login to the server
|
||||
@@ -168,6 +169,10 @@ our $smtp_authpwd = 'somepass';
|
||||
# From: Some Friendly Name <original@recipient.domain>
|
||||
our $friendly_from = '';
|
||||
|
||||
# use TLS for the SMTP connection?
|
||||
# while in general this would be a good idea, TLS with Mail::Sender 0.8.22 is buggy - https://rt.cpan.org/Public/Bug/Display.html?id=85438
|
||||
our $smtp_tls_allowed = 0;
|
||||
|
||||
# Set to 1 to enable logging to syslog.
|
||||
our $syslog = 0;
|
||||
|
||||
@@ -521,6 +526,7 @@ sub send_vacation_email {
|
||||
'auth' => $smtp_auth,
|
||||
'authid' => $smtp_authid,
|
||||
'authpwd' => $smtp_authpwd,
|
||||
'tls_allowed' => $smtp_tls_allowed,
|
||||
'smtp_client' => $smtp_client,
|
||||
'skip_bad_recipients' => 'true',
|
||||
'encoding' => 'Base64',
|
||||
|
||||
Reference in new issue
Block a user