尝试发送邮件时Postfix超时

我刚刚在一台CentOS VPS上安装了Dovecot和Postfix,现在正试图让它工作。 接收邮件工作正常,就像在Windows上使用Thunderbird获取邮箱一样(使用SASL进行身份validation),但是当我尝试发送邮件(再次使用Thunderbird)时,它几乎会立即出现一条关于SMTP连接超时的消息。 如果我尝试其他端口(除了465为SSL / TLS安全连接),它需要更长的时间,但仍然超时(所以我认为端口是正确的,但有些东西是拒绝我的连接)。

结果postfix -n

 alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases body_checks = regexp:/etc/postfix/body_checks broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 disable_dns_lookups = no header_checks = regexp:/etc/postfix/header_checks home_mailbox = Maildir/ html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 104857600 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = miikkavirtanen.net myhostname = miikkavirtanen.net mynetworks = 192.168.0.0/24, 127.0.0.0/8, 10.0.0.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relay_domains = sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt smtpd_tls_key_file = /etc/pki/tls/certs/server.key smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache smtpd_use_tls = yes unknown_local_recipient_reject_code = 550 

一个下跪的反应:检查(用telnet)如果你的ISP不阻止传出的邮件端口(25和465)。

确保您的防火墙允许传出连接到TCP端口25和465。