ORF反垃圾邮件系统

邮件服务器-邮件系统-邮件技术论坛(BBS)

 找回密码
 会员注册
查看: 9531|回复: 2
打印 上一主题 下一主题

[求助] postfix+dovecot+sasl2能发不能收!

[复制链接]
跳转到指定楼层
顶楼
发表于 2007-7-27 17:21:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
系统fc5 x86-64,参照http://www.extmail.org/forum/thread-1188-1-1.html,FC4+postfix+sasl2+dovecot+MailScaner+SA+ClamAv_yum快速安装.的文章安装。
因为是新手所以想简单的来,所以我没准备用数据库。用的rpm包安装。
yum install postfix dovecot cyrus-sasl
下面是main.cf

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail2.$mydomain,transport_maps
mydomain = busytrade.com
myhostname = hkweb1.busytrade.com
mynetworks = 127.0.0.0
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
relay_domains = mail2.busytrade.com
sample_directory = /usr/share/doc/postfix-2.2.8/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions =permit_sasl_authenticated,reject_non_fqdn_sender,reject_unknown_sender_domain,reject_unknown_recipient_domain,reject_non_fqdn_recipient,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
这是smtp.conf
pwcheck_method: saslauthd
log_level:3
mech_listLAIN LOGIN
这是saslauthd
MECH=pam
这是dovecot.conf
protocols = imap imap3 pop3 pop3s
然后start三个服务以后,建立test用户,远程用telnet测试25,110端口都正常。用test用户可以给自己发和接收正常,给gmail,163,sina发都正常,可就是不能接收gmail,163,sina它们发的邮件。下面是maillog
Jul 27 14:43:10 hkweb1 postfix/smtpd[24078]: disconnect from unknown[124.128.248.250]
Jul 27 14:43:11 hkweb1 postfix/smtpd[24233]: 96AE069E85C: client=unknown[58.56.77.168]
Jul 27 14:43:11 hkweb1 postfix/cleanup[24085]: 96AE069E85C: message-id=<200707270700.l6R70FLZ026949@sdweb4.busytrade.com>
Jul 27 14:43:11 hkweb1 postfix/qmgr[24076]: 96AE069E85C: from=<>, size=3227, nrcpt=1 (queue active)
Jul 27 14:43:11 hkweb1 postfix/local[24086]: 96AE069E85C: to=<root@busytrade.com>, relay=local, delay=0, status=sent (delivered to maildir)
Jul 27 14:43:11 hkweb1 postfix/qmgr[24076]: 96AE069E85C: removed
Jul 27 14:43:12 hkweb1 postfix/smtpd[24233]: disconnect from unknown[58.56.77.168]
Jul 27 14:43:23 hkweb1 postfix/smtpd[24078]: connect from unknown[58.56.77.168]
Jul 27 14:43:24 hkweb1 postfix/smtpd[24078]: B2A7A69E85C: client=unknown[58.56.77.168]
Jul 27 14:43:24 hkweb1 postfix/cleanup[24085]: B2A7A69E85C: message-id=<200707270700.l6R70SVC026956@sdweb4.busytrade.com>
Jul 27 14:43:25 hkweb1 postfix/qmgr[24076]: B2A7A69E85C: from=<>, size=33471, nrcpt=1 (queue active)
Jul 27 14:43:25 hkweb1 postfix/local[24198]: B2A7A69E85C: to=<root@busytrade.com>, relay=local, delay=1, status=sent (delivered to maildir)
Jul 27 14:43:25 hkweb1 postfix/qmgr[24076]: B2A7A69E85C: removed
Jul 27 14:43:25 hkweb1 postfix/smtpd[24078]: disconnect from unknown[58.56.77.168]
Jul 27 14:43:45 hkweb1 postfix/smtpd[24233]: connect from unknown[210.245.206.86]
Jul 27 14:43:45 hkweb1 postfix/smtpd[24233]: AB83769E85C: client=unknown[210.245.206.86]
Jul 27 14:43:45 hkweb1 postfix/cleanup[24085]: AB83769E85C: message-id=<200707270708.l6R78CSB022782@hkweb4.busytrade.com>
Jul 27 14:43:45 hkweb1 postfix/qmgr[24076]: AB83769E85C: from=<>, size=2958, nrcpt=1 (queue active)
Jul 27 14:43:45 hkweb1 postfix/local[24086]: AB83769E85C: to=<root@busytrade.com>, relay=local, delay=0, status=sent (delivered to maildir)
Jul 27 14:43:45 hkweb1 postfix/qmgr[24076]: AB83769E85C: removed
Jul 27 14:43:45 hkweb1 postfix/smtpd[24233]: disconnect from unknown[210.245.206.86]
Jul 27 14:43:53 hkweb1 postfix/smtpd[24078]: connect from unknown[58.56.77.167]
Jul 27 14:43:55 hkweb1 postfix/smtpd[24078]: 0204F69E85C: client=unknown[58.56.77.167]
Jul 27 14:43:55 hkweb1 postfix/cleanup[24085]: 0204F69E85C: message-id=<200707270700.l6R70BKM001907@sdweb3.busytrade.com>
Jul 27 14:43:55 hkweb1 postfix/qmgr[24076]: 0204F69E85C: from=<>, size=3327, nrcpt=1 (queue active)
Jul 27 14:43:55 hkweb1 postfix/local[24198]: 0204F69E85C: to=<root@busytrade.com>, relay=local, delay=1, status=sent (delivered to maildir)
Jul 27 14:43:55 hkweb1 postfix/qmgr[24076]: 0204F69E85C: removed



这里是退回的邮件
Return-Path: <roslb.liu@gmail.com>
Received: (qmail 30403 invoked by uid 898); 27 Jul 2007 14:18:08 +0800
Received: from 209.85.132.243 by mail (envelope-from <roslb.liu@gmail.com>, uid 889) with qmail-scanner-1.25
(clamdscan: 0.88.2/1428.  
Clear:RC:0(209.85.132.243):.
Processed in 0.117117 secs); 27 Jul 2007 06:18:08 -0000
Received: from unknown (HELO an-out-0708.google.com) (209.85.132.243)
  by 0 with SMTP; 27 Jul 2007 14:18:08 +0800
Received: by an-out-0708.google.com with SMTP id c23so163728anc
        for <test@busytrade.com>; Fri, 27 Jul 2007 00:10:22 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;
       b=atUjC04i7ky8TJRvgbBzOUcjHQFgy7y0b/kUBTVWztLgF1Wm8qwDtTHZW5v/C1YPp21EvHXY/r3r/NXfbPbHaOdvHHUBkCfIBFBo3R8HDfBYi2UDF0OarzTZKX9dI9xZ7Wq4XjXZtY2rbdvj3bpyf/jOyxI7KDSHbzkoHhNeWiA=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:mime-version:content-type;
       b=pWZTyrxwl5uW6c7QXpKGbjGv/ncvRtGfK2n3dKFyFeLviV3AuFf4/zDTPMkqb40g75O2EBeX8RdGqDsXVJDXq78k51O+KtiuLv9Nq2qAM5hJZ8wLPxffCUF8pclga96F5SDGY8tctDGsktiECHoaxQH4nkx6YBtXdrihBiSbo08=
Received: by 10.100.7.18 with SMTP id 18mr2275661ang.1185520222747;
        Fri, 27 Jul 2007 00:10:22 -0700 (PDT)
Received: by 10.100.178.11 with HTTP; Fri, 27 Jul 2007 00:10:22 -0700 (PDT)
Message-ID: <bfb1c1e70707270010t1bdb2b86i94aa51778fb1adf8@mail.gmail.com>
Date: Fri, 27 Jul 2007 15:10:22 +0800
From: "roslb liu" <roslb.liu@gmail.com>
To: test <test@busytrade.com>
Subject: test
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_Part_2096_22861470.1185520222708"

------=_Part_2096_22861470.1185520222708
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

test

------=_Part_2096_22861470.1185520222708
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

test

------=_Part_2096_22861470.1185520222708--


麻烦各位大哥帮我看看谢谢了!
沙发
发表于 2007-8-3 15:24:07 | 只看该作者
/etc/mail/local-host-name加上你的邮件域名
藤椅
发表于 2007-10-24 16:52:46 | 只看该作者
把你收信时的错误信息贴上来
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

小黑屋|手机版|Archiver|邮件技术资讯网

GMT+8, 2024-11-18 07:25

Powered by Discuz! X3.2

© 2001-2016 Comsenz Inc.

本论坛为非盈利中立机构,所有言论属发表者个人意见,不代表本论坛立场。内容所涉及版权和法律相关事宜请参考各自所有者的条款。
如认定侵犯了您权利,请联系我们。本论坛原创内容请联系后再行转载并务必保留我站信息。此声明修改不另行通知,保留最终解释权。
*本论坛会员专属QQ群:邮件技术资讯网会员QQ群
*本论坛会员备用QQ群:邮件技术资讯网备用群

快速回复 返回顶部 返回列表