歡迎您光臨本站 註冊首頁

求助,postfix 問題,版大請進

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

求助,postfix 問題,版大請進

環境:rh as 5  cyrus-sasl     伺服器內部帳號互發沒有剖問題,外發也沒有問題,但不能接收。外部發過去的郵件收到如下回信:

test@mail.******.com.cn>: host mail.******.com.cn
    said: 550-Mailbox unknown.  Either there is no mailbox associated with this
    550-name or you do not have authorization to see it. 550 5.1.1 User unknown
    (in reply to RCPT TO command)

是驗證上出問題了嗎?怎麼處理呀?
《解決方案》

回復 #1 qditnet 的帖子

未知用戶。檢查配置。
《解決方案》

用什麼做MDA?
你的黃精都沒說清楚呀


main.cf先貼出來吧
《解決方案》

回復 #3 ruochen 的帖子

黃精??:luya: :luya: :luya: :luya:
《解決方案》

#soft_bounce = no

# LOCAL PATHNAME INFORMATION
#
#
queue_directory = /var/spool/postfix
#
command_directory = /usr/sbin
#
daemon_directory = /usr/libexec/postfix
# QUEUE AND PROCESS OWNERSHIP
#
mail_owner = postfix
#
#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
#
myhostname = mail.*******.com.cn
#myhostname = virtual.domain.tld
#
mydomain =*******.com.cn

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
#
#myorigin = $myhostname
myorigin = $mydomain

# RECEIVING MAIL
#
inet_interfaces = all

#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
        mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown local users. This parameter is defined by default.
#
# To turn off local recipient checking in the SMTP server, specify
# local_recipient_maps = (i.e. empty).
#
#
# Details are described in the LOCAL_RECIPIENT_README file.
#
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

# The default setting is 550 (reject mail) but it is safer to start
# with 450 (try again later) until you are certain that your
# local_recipient_maps settings are OK.
#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
#
#mynetworks = 168.100.189.0/28,localhost,10.55.0.0/16, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

#
#
#
#
relay_domains = $mydestination

# INTERNET OR INTRANET

# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost =
#relayhost =
#relayhost = uucphost
#relayhost =

# REJECTING UNKNOWN RELAY USERS
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s

# ADDRESS REWRITING
#
#
# ALIAS DATABASE
#
#
#
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)
#
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

#

mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

# mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#
# local_destination_recipient_limit = 300
# local_destination_concurrency_limit = 5
#
#
# To use the old cyrus deliver program you have to set:
#mailbox_transport = cyrus

#
#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =

#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
  
# JUNK MAIL CONTROLS
#
#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE
#
#
#fast_flush_domains = $relay_domains

#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
#
#

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
#
debug_peer_level = 2
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

#
#
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5

#
# debugger_command =
#        PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
#        echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
#        >$config_directory/$process_name.$process_id.log & sleep 5
# debugger_command =
#        PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
#        -dmS $process_name gdb $daemon_directory/$process_name
#        $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

#
mailq_path = /usr/bin/mailq.postfix

#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.3.3/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES



data_directory = /var/lib/postfix

smtpd_sasl_auth_enable = yes

smtpd_sasl_local_domain =

smtpd_recipient_restrictions = permit_mynetworks

                            permit_sasl_authenticated

                            reject_unauth_destination

                            reject_unauth_pipelining

                            reject_invalid_hostname

                            reject_rbl_client

                            cbl.anti-spam.org.cn

smtpd_client_restrictions = permit_sasl_authenticated

smtpd_sasl_security_options = noanonymous

[ 本帖最後由 qditnet 於 2009-10-29 14:43 編輯 ]
《解決方案》

俺新手,第一次配置這個東西。呵呵,MYSQL都是RH5自帶的,
:wink: :wink:

最後那些代碼是按網上寫的加上去的。

[ 本帖最後由 qditnet 於 2009-10-29 14:31 編輯 ]
《解決方案》

原帖由 scyzxp 於 2009-10-29 13:30 發表 http://bbs2.chinaunix.net/images/common/back.gif
黃精??:luya: :luya: :luya: :luya:


環境

:luya: :luya: :luya:
《解決方案》

mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
        mail.$mydomain, www.$mydomain, ftp.$mydomain


                            cbl.anti-spam.org.cn

smtpd_client_restrictions = permit_sasl_authenticated


上面的配置都有些問題,另外沒看到mailbox的存放位置
新手還是先多學習下吧
《解決方案》

還有用的什麼MDA?

mail賬戶用的是系統賬戶?
《解決方案》

回復 #9 ruochen 的帖子

已經解決,謝謝版主!!!

找到了POSTFIX的安裝說明文檔和查了CYRUS的相關文件解決了

[火星人 ] 求助,postfix 問題,版大請進已經有600次圍觀

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