Disable certificate verification until it can be turned on/off from the console.

This commit is contained in:
Ramon Novoa 2019-09-19 15:27:46 +02:00
parent 0e281c7a0a
commit 274b6b9327
1 changed files with 1 additions and 1 deletions

View File

@ -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;