CentOS 7 下sendEmail发邮件失败,提示invalid SSL_version specified at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 415.
2017-04-27 15:07
676 查看
系统环境
CentOS Linux release 7.2.1511 (Core)
sendEmail发送邮件是出现以下报错:
*******************************************************************
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set
SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
*******************************************************************
at /usr/bin/sendEmail line 1906.
invalid SSL_version specified at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 415.
问题原因:
SSL.pm文件415行
${*$self}{'_SSL_ctx'} = IO::Socket::SSL::SSL_Context->new($arg_hash) || return;
# perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 29 registered patches, see perl -V for more detail)
由于在CentOS 7下perl的版本为5.16,而centos6.5的是5.10,版本不兼容
解决方法:
a、卸载现有的perl版本,安装老版本(不推荐)
b、增加参数-o tls=no 选项
# /usr/local/bin/sendEmail -f kogcenter@163.com -s smtp.163.com -xu kogcenter@163.com -xp 123456 -t jacket@qq.com -u "test mail" -m "test mail" -o tls=no
Apr 27 14:55:16 server sendEmail[185679]: Email was sent successfully!
CentOS Linux release 7.2.1511 (Core)
sendEmail发送邮件是出现以下报错:
*******************************************************************
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set
SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
*******************************************************************
at /usr/bin/sendEmail line 1906.
invalid SSL_version specified at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 415.
问题原因:
SSL.pm文件415行
${*$self}{'_SSL_ctx'} = IO::Socket::SSL::SSL_Context->new($arg_hash) || return;
# perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 29 registered patches, see perl -V for more detail)
由于在CentOS 7下perl的版本为5.16,而centos6.5的是5.10,版本不兼容
解决方法:
a、卸载现有的perl版本,安装老版本(不推荐)
b、增加参数-o tls=no 选项
# /usr/local/bin/sendEmail -f kogcenter@163.com -s smtp.163.com -xu kogcenter@163.com -xp 123456 -t jacket@qq.com -u "test mail" -m "test mail" -o tls=no
Apr 27 14:55:16 server sendEmail[185679]: Email was sent successfully!
相关文章推荐
- sendEmail invalid SSL_version at SSL.pm
- sendEmail报错:at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm
- sendEmail报错:at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm
- CentOS6.4 利用sendEmail发邮件
- 实现发邮件方法,随机返回失败成功,50个线程同时调用sendEmail发送1000封邮件,统计发送失败和成功的个数
- An attempt was made to send an email when no email session has been established,SSIS用sql2008发邮件失败
- PowerShell中两种发邮件方法Send-EasyEmail和Send-MailMessage的用法
- Send feedback in socket.on() in socket.io
- OUTLOOK2010 只能收邮件不能发邮件,提示原因:操作失败,找不到某个对象
- perl_IO::Socket简介
- Python+sendEmail发邮件
- Perl IO:Socket IO:Select server client
- Perl Socket模块和IO::SOCKET模块的网络编程
- centos加入windows域提示NT_STATUS_INVALID_COMPUTER_NAME错误解决
- Invalid version format (non-numeric data) at Bugzilla/Install/Requirements.pm line 717.
- Perl发邮件 Nnt::SMTP::SSL
- SendEmail命令行下发邮件的小工具
- centOS下通过NPM安装和配置node.js+socket.io+connect在线聊天的详细教程
- socket send latency (from email)
- perl_IO::Socket模块简单实例