由 blueeyes 在 04-14-2003 17:14 发表:
rh8下postfix+sasl配置疑问
目的只是想能够用客户端通过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
1<[email protected]>; Fri, 11 Apr 2003 15:23:20 +0800 (CST)
2
3Received: from xxx(我的主机名).localhost.localdomain (unknown [xxx(连校园网的ip)])
4
5by 192.168.1.208 (Coremail: www.163.com ) with SMTP id nCAAAGptlj5mARsj.1
6
7for <[email protected]>; Fri, 11 Apr 2003 15:23:23 +0800 (CST)
8
9Received: by xxx(我的主机名).localhost.localdomain (Postfix, from userid 504)
10
11id F31187666B; Fri, 11 Apr 2003 03:31:39 -0400 (EDT)
12
13Date: Fri, 11 Apr 2003 15:31:39 +0800
14
15From: xxx
16
17To: [email protected]
18
19Cc:
20
21Message-ID: <20030411073139.GA1113@wangkun>
22
23Mime-Version: 1.0
24
25Content-Type: text/plain; charset=us-ascii
26
27Content-Disposition: inline
28
29User-Agent: Mutt/1.4i
30
31Sender: xxx(我的主机名)@localhost.localdomain
32
33这好像是说这封信是直接从我的机器postfix发到163的,没有经过邮箱,但我这时已经加上了smtp验证了.
34
35而我登录到邮箱再发信信头是这样的:
36
37Received: from unknown (unknown [202.108.44.210])
38
39by mx0.163.com (Postfix) with SMTP id 1B6BF20
40
41for <[email protected]>; Fri, 11 Apr 2003 10:46:24 +0800 (CST)
42
43Received: from mail.xjtu.edu.cn (unknown [61.185.217.53])
44
45by 192.168.1.210 (Coremail: www.163.com ) with SMTP id UgsAAH0slj5fBNk1.1
46
47for <[email protected]>; Fri, 11 Apr 2003 10:46:24 +0800 (CST)
48
49Received: (eyou gateway send program); Fri, 11 Apr 2003 09:59:54 +0800
50
51X-EYOU-ORIGINAL-IP: xxx(学校邮箱网页)
52
53X-EYOU-ENVELOPE-MAILFROM: xxx@xxx(学校的邮箱)
54
55Received: from unknown (HELO xxx(学校的邮箱) (unknown@xxx(学校邮箱网页))
56
57by 202.117.1.21 with ; Fri, 11 Apr 2003 09:59:54 +0800
58
59Received: (eyou send program); Fri, 11 Apr 2003 11:04:07 +0800
60
61Received: from xxx(连校园网的ip) by xxx(学校邮箱网页) with HTTP; Fri, 11 Apr 2003 11:04:07 +0800
62
63X-WebMAIL-MUA: [xxx(连校园网的ip)]
64
65postfix的main.cf如下:
66
67queue_directory = /var/spool/postfix
68
69command_directory = /usr/sbin
70
71daemon_directory = /usr/libexec/postfix
72
73mail_owner = postfix
74
75default_privs = nobody
76
77myhostname = xxx(我的主机名).localhost.localdomain
78
79mydomain = localhost.localdomain
80
81myorigin = $mydomain
82
83inet_interfaces = all
84
85mydestination = $myhostname, localhost.$mydomain
86
87mydestination = $myhostname, localhost.$mydomain $mydomain
88
89alias_maps = hash:/etc/postfix/aliases
90
91mail_spool_directory = /var/mail
92
93mail_spool_directory = /var/spool/mail
94
95debug_peer_level = 2
96
97debugger_command =
98
99PATH=/usr/bin:/usr/X11R6/bin
100
101xxgdb $daemon_directory/$process_name $process_id & sleep 5
102
103sendmail_path = /usr/sbin/sendmail.postfix
104
105newaliases_path = /usr/bin/newaliases.postfix
106
107mailq_path = /usr/bin/mailq.postfix
108
109setg</[email protected]></[email protected]></[email protected]></[email protected]>