免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2079 | 回复: 9
打印 上一主题 下一主题

[Mail] 求助,postfix 问题,版大请进 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-10-29 11:07 |只看该作者 |倒序浏览
环境:rh as 5  cyrus-sasl     服务器内部帐号互发没有剖问题,外发也没有问题,但不能接收。外部发过去的邮件收到如下回信:

test@mail.******.com.cn>: host mail.******.com.cn[/var/lib/imap/socket/lmtp]
    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)

是验证上出问题了吗?怎么处理呀?

论坛徽章:
0
2 [报告]
发表于 2009-10-29 11:42 |只看该作者

回复 #1 qditnet 的帖子

未知用户。检查配置。

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
3 [报告]
发表于 2009-10-29 13:13 |只看该作者
用什么做MDA?
你的黄精都没说清楚呀


main.cf先贴出来吧

论坛徽章:
0
4 [报告]
发表于 2009-10-29 13:30 |只看该作者

回复 #3 ruochen 的帖子

黄精??

论坛徽章:
0
5 [报告]
发表于 2009-10-29 14:10 |只看该作者
#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 = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# 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 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2009-10-29 14:21 |只看该作者
俺新手,第一次配置这个东西。呵呵,MYSQL都是RH5自带的,
:wink: :wink:

最后那些代码是按网上写的加上去的。

[ 本帖最后由 qditnet 于 2009-10-29 14:31 编辑 ]

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
7 [报告]
发表于 2009-10-29 15:54 |只看该作者
原帖由 scyzxp 于 2009-10-29 13:30 发表
黄精??



环境

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
8 [报告]
发表于 2009-10-29 15:58 |只看该作者
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的存放位置
新手还是先多学习下吧

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
9 [报告]
发表于 2009-10-29 15:59 |只看该作者
还有用的什么MDA?

mail账户用的是系统账户?

论坛徽章:
0
10 [报告]
发表于 2009-10-30 13:56 |只看该作者

回复 #9 ruochen 的帖子

已经解决,谢谢版主!!!

找到了POSTFIX的安装说明文档和查了CYRUS的相关文件解决了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP