LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 713|回复: 1

rh8下postfix+sasl配置疑问

[复制链接]
发表于 2003-4-14 17:14:17 | 显示全部楼层 |阅读模式
目的只是想能够用客户端通过smtp验证使用学校的邮箱发邮件就可以里了.系统用的rh8.0,postfix和sasl都是安装时自带的.postfix版本是1.1.11,cyrus-sasl版本是2.1.7,客户端用的mutt也是自带的.
机器是在局域网里通过一台tubor7.0简体版的gate上校园网.其他人用windows+foxmail同样用学校邮箱发信没问题.
本机main.cf按postfix.org上howto的介绍和系统自带文档的介绍加上相应配制不起作用,用check没有语法错.加上或者不加上smtp验证发送国内信件都可以,在收到信的信箱查看信头都是一样的,如下:
Received: from unknown (unknown [202.108.44.208])
by mx7.163.com (Postfix) with SMTP id 6EB015
for <xxxx@163.com>; Fri, 11 Apr 2003 15:23:20 +0800 (CST)
Received: from xxx(我的主机名).localhost.localdomain (unknown [xxx(连校园网的ip)])
by 192.168.1.208 (Coremail:www.163.com) with SMTP id nCAAAGptlj5mARsj.1
for <xxx@163.com>; Fri, 11 Apr 2003 15:23:23 +0800 (CST)
Received: by xxx(我的主机名).localhost.localdomain (Postfix, from userid 504)
id F31187666B; Fri, 11 Apr 2003 03:31:39 -0400 (EDT)
Date: Fri, 11 Apr 2003 15:31:39 +0800
From: xxx
To: xxx@163.com
Cc:
Message-ID: <20030411073139.GA1113@wangkun>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Sender: xxx(我的主机名)@localhost.localdomain
这好像是说这封信是直接从我的机器postfix发到163的,没有经过邮箱,但我这时已经加上了smtp验证了.
而我登录到邮箱再发信信头是这样的:
Received: from unknown (unknown [202.108.44.210])
by mx0.163.com (Postfix) with SMTP id 1B6BF20
for <xxx@163.com>; Fri, 11 Apr 2003 10:46:24 +0800 (CST)
Received: from mail.xjtu.edu.cn (unknown [61.185.217.53])
by 192.168.1.210 (Coremail:www.163.com) with SMTP id UgsAAH0slj5fBNk1.1
for <xxx@163.com>; Fri, 11 Apr 2003 10:46:24 +0800 (CST)
Received: (eyou gateway send program); Fri, 11 Apr 2003 09:59:54 +0800
X-EYOU-ORIGINAL-IP: xxx(学校邮箱网页)
X-EYOU-ENVELOPE-MAILFROM: xxx@xxx(学校的邮箱)
Received: from unknown (HELO xxx(学校的邮箱) (unknown@xxx(学校邮箱网页))
by 202.117.1.21 with ; Fri, 11 Apr 2003 09:59:54 +0800
Received: (eyou send program); Fri, 11 Apr 2003 11:04:07 +0800
Received: from xxx(连校园网的ip) by xxx(学校邮箱网页) with HTTP; Fri, 11 Apr 2003 11:04:07 +0800
X-WebMAIL-MUA: [xxx(连校园网的ip)]
postfix的main.cf如下:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = xxx(我的主机名).localhost.localdomain
mydomain = localhost.localdomain
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain
mydestination = $myhostname, localhost.$mydomain $mydomain
alias_maps = hash:/etc/postfix/aliases
mail_spool_directory = /var/mail
mail_spool_directory = /var/spool/mail
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-1.1.11/samples
readme_directory = /usr/share/doc/postfix-1.1.11/README_FILES
alias_database = hash:/etc/postfix/aliases
#add by myself to allow auth
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
以上是按postfix.org上howto和系统文档设置的,同时也设置了sasl_passwd文件,并转成了db格式sasl_passwd中
server user:password的中间不知道空处是用空格还是tab,都试过,没用.
后来看到有人说还要加上relayhost=server,发现加上后国内信件也发不出了,返回到mutt信箱的错误码是553,please auth first
以上就是问题的描述了,还请大虾们指教,谢谢
发表于 2003-4-16 12:10:56 | 显示全部楼层
请精通此术的支持一下。多谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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