由 arbor 在 01-19-2003 16:13 发表:
RH 8.0 sendmail 8.12 无法发信,急!
此系统基本上为默认服务器安装模式,25、110端口均已经打开,可以接收外面发来的邮件,但是自己发不出去,从客户端用foxmail发信,提示:
The server reply:
550 5.7.1
1<[email protected]>...Relaying denied.IP name lookup failed [192.168.70.253 ]
2
3
4
5Continue?
6
7
8
9foxmail加上SMTP认证也不行,OUTLOOK express同样不行。在access文件里面已经添加了客户端所在的IP地址段,即使添加客户端的IP也不行,用db_dump命令显示如下:
10
11[root@mail arbor]# db_dump -p /etc/mail/access.db
12
13VERSION=3
14
15format=print
16
17type=hash
18
19h_nelem=3
20
21HEADER=END
22
23localhost.localdomain
24
25RELAY
26
27localhost
28
29RELAY
30
31127.0.0.1
32
33RELAY
34
35
36
37以上做了改动后均重启了sendmail。从db_dump命令显示的结果看好象无法转发其他IP的信件,可是从服务器本机也无法发信到外部。哪里有问题,db_dump命令是干什么的?重新启动sendmail时提示有点错误:
38
39[root@mail mail]# /etc/init.d/sendmail restart
40
41Shutting down sendmail: [ OK ]
42
43Shutting down sm-client: [ OK ]
44
45Starting sendmail: make: *** Warning: File `access.db' has modification time in the future (2003-01-19 17:13:00 > 2003-01-19 16:16:27)
46
47make: warning: Clock skew detected. Your build may be incomplete.
48
49[ OK ]
50
51Starting sm-client: [ OK ]
52
53
54
55
56* * *
57
58
59_由 arbor 在 01-19-2003 17:54 发表:_
60
61
62
63**我自己解决了!!!**
64
65
66
67
68
69正确修改access文件后,如下:
70
71[root@mail mail]# vi access
72
73
74
75# Check the /usr/share/doc/sendmail/README.cf file for a description
76
77# of the format of this file. (search for access_db in that file)
78
79# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
80
81# package.
82
83#
84
85# by default we allow relaying from localhost...
86
87localhost.localdomain RELAY
88
89localhost RELAY
90
91127.0.0.1 RELAY
92
93yourdomain.com.cn RELAY
94
95192.168 RELAY
96
97
98
99运行:
100
101[root@mail mail]# makemap hash /etc/mail/access.db < /etc/mail/</[email protected]>