Disable certificate verification until it can be turned on/off from the console.
This commit is contained in:
parent
0e281c7a0a
commit
274b6b9327
|
@ -379,7 +379,7 @@ sub sendmail {
|
|||
$S = new IO::Socket::INET(PeerPort => $port, PeerAddr => $server, Proto => 'tcp');
|
||||
}
|
||||
else {
|
||||
$S = new IO::Socket::SSL(PeerPort => $port, PeerAddr => $server, Proto => 'tcp', SSL_verify => 0, Domain => AF_INET);
|
||||
$S = new IO::Socket::SSL(PeerPort => $port, PeerAddr => $server, Proto => 'tcp', SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), Domain => AF_INET);
|
||||
}
|
||||
if ( $S ) {
|
||||
print STDERR "- connected to $server\n" if $mailcfg{'debug'} > 9;
|
||||
|
|
Loading…
Reference in New Issue