歡迎您光臨本站 註冊首頁

我內網的extmail做了映射,能收信但不能發信,說smtp 25 timeout

:30 mail postfix/smtp: connect to mxnew-b.126.com:25: Connection timed out
Apr 28 08:51:30 mail postfix/smtp: connect to mxnew-b.126.com:25: Connection timed out
Apr 28 08:51:30 mail postfix/smtp: connect to mxw.idccenter.net:25: Connection timed out
Apr 28 08:52:00 mail postfix/smtp: connect to mxnew-b.126.com:25: Connection timed out
Apr 28 08:52:00 mail postfix/smtp: connect to mxnew-a.126.com:25: Connection timed out
Apr 28 08:52:00 mail postfix/smtp: connect to mxw.idccenter.net:25: Connection timed out
《解決方案》

我的系統是用EMOS_1.5_i386裝的,postfix+extmail+mysql5+sasl2+pop3+courier+amavisd

有防火牆iptables,搞了兩天了,這個發信,腦袋都發毛了。。

請高手指點下。謝謝:P
《解決方案》

本帖最後由 yangbosos 於 2010-04-28 09:18 編輯

這裡是postfix的配置文件
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop

# hostname
mynetworks = 127.0.0.1,192.168.16.0
#mynetworks = 127.0.0.1
myhostname = host.mail1.ff.cn
mydomain = mail1.ff.cn
mydestination = $mynetworks, $myhostname

# banner
mail_name = EMOS V1.5 (Postfix)
smtpd_banner = $myhostname ESMTP $mail_name

# response immediately
smtpd_error_sleep_time = 0s
unknown_local_recipient_reject_code = 550

# extmail config here
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop:

# maildrop setting
maildrop_destination_recipient_limit = 1

# smtpd related config
smtpd_recipient_restrictions =
permit_mynetworks,
        permit_sasl_authenticated,
        reject_non_fqdn_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unauth_destination,
        reject_unauth_pipelining,
        reject_invalid_hostname,
        check_policy_service inet:127.0.0.1:10030

header_checks = regexp:/etc/postfix/dspam_header_checks

# SMTP sender login matching config
smtpd_sender_restrictions =
        permit_mynetworks,
        reject_sender_login_mismatch,
        reject_authenticated_sender_login_mismatch,
        reject_unauthenticated_sender_login_mismatch

smtpd_sender_login_maps =
        mysql:/etc/postfix/mysql_virtual_sender_maps.cf,
        mysql:/etc/postfix/mysql_virtual_alias_maps.cf
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous

# Content-Filter
#content_filter = smtp-amavis::10024
#receive_override_options = no_address_mappings

# Message and return code control
message_size_limit = 1048576000
mailbox_size_limit = 1048576000
show_user_unknown_table_name = no

# Queue lifetime control
bounce_queue_lifetime = 1d
maximal_queue_lifetime = 1d

# Other settings
# TLS configuration
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtp_tls_CAfile = /etc/postfix/tls/smtpd.pem
smtp_tls_cert_file = /etc/postfix/tls/smtpd.pem
smtp_tls_key_file = /etc/postfix/tls/smtpd.pem
smtpd_tls_CAfile = /etc/postfix/tls/smtpd.pem
smtpd_tls_cert_file = /etc/postfix/tls/smtpd.pem
smtpd_tls_key_file = /etc/postfix/tls/smtpd.pem
smtpd_tls_received_header = yes
smtpd_tls_loglevel = 0
smtpd_starttls_timeout = 60s
《解決方案》

這和映射沒關係,自己的伺服器連不到別人的伺服器25埠而已。應該查防火牆規則,郵件伺服器iptables規則之類和郵件伺服器上嘗試telnet 外網看看。
《解決方案》

回復 4# 劉五十三


    兄弟,我把iptables停了,可是伺服器上還是不可以telnet 出去,,可以telnet 127.0.0.1
《解決方案》

回復  劉五十三


    兄弟,我把iptables停了,可是伺服器上還是不可以telnet 出去,,可以telnet 127 ...
yangbosos 發表於 2010-04-28 10:53 http://bbs.chinaunix.net/images/common/back.gif

那就不是郵件伺服器iptables的問題,找找上網網關或防火牆的問題吧。試一下拔掉郵件伺服器網線,拿台筆記本插上這條拔掉的網線,ip設置為郵件伺服器的ip.
然後 筆記本上 telnet 220.181.15.192 25 看看是否可以連上就知道是郵件伺服器的問題還是網關的問題了。
《解決方案》

只對本地開放 ?:luya:
《解決方案》


[火星人 ] 我內網的extmail做了映射,能收信但不能發信,說smtp 25 timeout已經有1042次圍觀

http://coctec.com/docs/service/show-post-18065.html