From 657617d637cb3ff7517b773ec04e9008c768bf92 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sat, 28 Dec 2013 19:35:28 +0000 Subject: [PATCH] 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 --- VIRTUAL_VACATION/vacation.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 2f1eb67c..2df306a5 100644 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -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 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',