歡迎您光臨本站 註冊首頁

postfix收不到郵件

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix收不到郵件

我用AS4安裝包里的包安裝了POSTFIX   安裝好以後可以發,但是就是不能收
我看日誌好象說是因為DNS解析錯誤,或者找不到主機  但是我用sendmail同樣的配置就可以收到郵件
如日誌
Jul 29 16:52:50 gaosheng postfix/smtpd: disconnect from unknown
Jul 29 16:52:50 gaosheng postfix/qmgr: E1B07910198: from=<[email protected]>, size=1408, nrcpt=1 (queue active)
Jul 29 16:52:50 gaosheng postfix/smtp: warning: no MX host for gaosheng.com has a valid address record
Jul 29 16:52:50 gaosheng postfix/smtp: E1B07910198: to=<[email protected]>, relay=none, delay=1, status=bounced (Host or domain name not found. Name service error for name=gaosheng.com type=A: Host found but no data record of requested type)
Jul 29 16:52:50 gaosheng postfix/cleanup: B769491019D: message-id=<[email protected]>
Jul 29 16:52:50 gaosheng postfix/qmgr: B769491019D: from=<>, size=3287, nrcpt=1 (queue active)
Jul 29 16:52:50 gaosheng postfix/qmgr: E1B07910198: removed
Jul 29 16:52:50 gaosheng postfix/smtp: warning: no MX host for gaosheng.com has a valid address record
Jul 29 16:52:50 gaosheng postfix/smtp: B769491019D: to=<[email protected]>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=gaosheng.com type=A: Host found but no data record of requested type)
Jul 29 16:52:50 gaosheng postfix/qmgr: B769491019D: removed
Jul 29 16:52:54 gaosheng pop3-login: Login: gaosheng
《解決方案》

原帖由 wenqiang2009 於 2008-7-29 17:18 發表 http://bbs.chinaunix.net/images/common/back.gif
我用AS4安裝包里的包安裝了POSTFIX   安裝好以後可以發,但是就是不能收
我看日誌好象說是因為DNS解析錯誤,或者找不到主機  但是我用sendmail同樣的配置就可以收到郵件
如日誌
Jul 29 16:52:50 gaosheng po ...


這樣的問題我不想解決了,這麼容易的都解決不了
《解決方案》

俗話說越容易的問題越不容易發現 當亂者迷呀  還是解答以下吧
《解決方案》

原帖由 wenqiang2009 於 2008-7-29 17:48 發表 http://bbs.chinaunix.net/images/common/back.gif
俗話說越容易的問題越不容易發現 當亂者迷呀  還是解答以下吧
Host or domain name not found. Name service error for name=gaosheng.com type=A: Host found but no data record of requested type

你把你的main.cf中的發送限制的相關參數貼出來.
《解決方案》

檢查你的DNS
《解決方案》

DNS是沒問題的  因為我的sendmail原來就可以收發
我覺得應該是postfix的配置問題 但是第一次配置postfix所以不太明白
main.conf 配置如下2bounce_notice_recipient = postmaster
access_map_reject_code = 554
address_verify_default_transport = $default_transport
address_verify_local_transport = $local_transport
address_verify_map =
address_verify_negative_cache = yes
address_verify_negative_expire_time = 3d
address_verify_negative_refresh_time = 3h
address_verify_poll_count = 3
address_verify_poll_delay = 3s
address_verify_positive_expire_time = 31d
address_verify_positive_refresh_time = 7d
address_verify_relay_transport = $relay_transport
address_verify_relayhost = $relayhost
address_verify_sender = postmaster
address_verify_service_name = verify
address_verify_transport_maps = $transport_maps
address_verify_virtual_transport = $virtual_transport
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_mail_to_commands = alias, forward
allow_mail_to_files = alias, forward
allow_min_user = no
allow_percent_hack = yes
allow_untrusted_routing = no
alternate_config_directories =
always_bcc =
anvil_rate_time_unit = 60s
anvil_status_update_time = 600s
append_at_myorigin = yes
append_dot_mydomain = yes
application_event_drain_time = 100s
#myhostname = host.domain.tld
myhostname = mail.gaosheng.com

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
mydomain = gaosheng.com

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites.  If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# [email protected]
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
myorigin = gaosheng.com
#myorigin = $mydomain

# RECEIVING MAIL

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.  By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to [email protected]
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = 192.168.0.160

# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
# the address list specified with the inet_interfaces parameter.
#
# You must specify your proxy/NAT addresses when your system is a
# backup MX host for other domains, otherwise mail delivery loops
# will happen when the primary MX host is down.
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

--More--
《解決方案》

這個是你的postfix發送給[email protected]的時候
發送失敗的記錄哦
《解決方案》

no MX host for gaosheng.com has a valid address record
《解決方案》

dns里沒有mx記錄
《解決方案》

warning: no MX host for gaosheng.com has a valid address record


這個提示樓主解決了嗎?

[火星人 ] postfix收不到郵件已經有897次圍觀

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