连接失败:IO::套接字::INET:连接:在/usr/share/perl 5/Net/SMTP/ www.example.com第TLS.pm109行超时。这是我在109行的代码
sub new {
my $pkg = shift;
my $host= shift;
my %args= @_;
$args{Host} = $host;
$args{Hello}= "localhost" if not $args{Hello};
# make the non-SSL socket that will later be
# transformed
$args{sock} = new IO::Socket::INET(
PeerAddr => $host,
PeerPort => $args{Port} || 25,
Proto => 'tcp',
Timeout => $args{Timeout} || 5)
or croak "Connect failed :$@\n";
1条答案
按热度按时间ewm0tg9j1#
您到端口25的传出连接可能会被阻止(防火墙),以防止传出垃圾邮件。
当您从命令行telnet主机上的smtp端口时,是否收到smtp问候消息?
smtp服务器是否处理MSP(587)端口?[通过smtp协议提交邮件的端口]