14 lines
734 B
Diff
14 lines
734 B
Diff
Description: Fix ssl enabled bug.
|
|
Bug-Debian: http://bugs.debian.org/679911
|
|
Author: Alejandro Garrido Mota <alejandro@debian.org>
|
|
--- a/sendEmail
|
|
+++ b/sendEmail
|
|
@@ -1903,7 +1903,7 @@
|
|
if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) {
|
|
printmsg("DEBUG => Starting TLS", 2);
|
|
if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); }
|
|
- if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3 TLSv1')) {
|
|
+ if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv23:!SSLv2')) {
|
|
quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1);
|
|
}
|
|
printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);
|