我按照这个指南行: https : //www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql
最后收到邮件,但我不能发送他们,我得到的是连接到邮件..我使用Claws邮件客户端,它可以让我login和接收电子邮件,但只是不发送它们。 我把它设置为使用端口587,但它只是在发送时挂起连接
这是我的master.cf:
## # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.postfix.org/master.5.html). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd #smtp inet n - - - 1 postscreen #smtpd pass - - - - - smtpd #dnsblog unix - - - - 0 dnsblog #tlsproxy unix - - - - 0 tlsproxy submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_reject_unlisted_recipient=no -o smtpd_client_restrictions=$mua_client_restrictions -o smtpd_helo_restrictions=$mua_helo_restrictions -o smtpd_sender_restrictions=$mua_sender_restrictions -o smtpd_recipient_restrictions= -o smtpd_relay_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_reject_unlisted_recipient=no -o smtpd_client_restrictions=$mua_client_restrictions -o smtpd_helo_restrictions=$mua_helo_restrictions -o smtpd_sender_restrictions=$mua_sender_restrictions -o smtpd_recipient_restrictions= -o smtpd_relay_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup unix n - - 60 1 pickup
而且在日志/var/log/mail.log中看不到任何内容,这说明发生了什么事情。 端口587,465和25也在防火墙中打开。
我从哪里去debugging呢?
更新:我可以通过端口587服务器上的telnet进行连接,postfix正在运行,但发送时我不能使用Claws Mail客户端连接,即使我从Gmail帐户发送电子邮件,它也会收到邮件。
您的路由器或您的isp阻止传出连接到端口587.正如你做“iptables -P OUTPUT ACCEPT”,它不是当地的防火墙肯定。 我不认为禁用selinux可能会有所帮助,即使telent返回连接超时。