Thứ Sáu, 29 tháng 9, 2017

IO::Socket::SSL breaks sendEmail

Line 1907 needs to be modifed from:
1907: if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3 TLSv1')) {
to something like:
1907: if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv23:!SSLv2')) {
Note that the "SSLv23:!SSLv2" string is the default in IO::Socket::SSL, and inherently includes TLSv1. There may be better/alternative specifications that can be used, but the current string is syntactically invalid, which now causes IO::Socket::SSL to fail (previously, this would have been ignored).
I hope this helps.
# yum install perl-Net-SSLeay perl-IO-Socket-SSL -y


Line 1907 needs to be modifed from:

1907: if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3 TLSv1')) {

to something like:

1907: if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv23:!SSLv2')) {

./sendEmail -o tls=yes -f fromemail@gmail.com -t toemail@gmail.com -s smtp.gmail.com:587 -xu fromemail@gmail.com -xp 'PASSWORD' -u "Hello from sendEmail" -m "How are you? I'm testing sendEmail from the command line."

Share This!


Không có nhận xét nào:

Đăng nhận xét