LinuxSir.cn,穿越时空的Linuxsir!

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

一个奇怪的sendmail问题,请大家帮忙

[复制链接]
发表于 2005-1-11 20:31:32 | 显示全部楼层 |阅读模式
我作sendmail实验,一台服务器,一台客户机,服务器能发也能收,客户机能发信给服务器,服务器也能收到,但客户机不能收信,自己发给自己也收不到,发完后客户机用qmial检查为空,就是说发出去了,但收不到,客户机的/var/mail/root文件提示如下:
From: root@xxxx.net (Anacron)
To: root@xxxx.net
Subject: Anacron job 'cron.daily'
Status: RO

/etc/cron.daily/tripwire-check:

**** Error: Tripwire database for test.linux.net not found. ****
**** Run /etc/tripwire/twinstall.sh and/or tripwire --init. ****

我不知道问题出在哪里,客户机的hosts,local-hoat-names都配置了,服务器的access也有客户机,DNS也没问题,请教高手我哪里配错了,还是有其他问题。谢谢!
 楼主| 发表于 2005-1-13 11:41:12 | 显示全部楼层
我的配置如下:

服务器(server1):

/etc/sysconfig/network-scripts/ifcfg-eth0
device=eth0
bootproto=none
onboot=yes
ipaddr=192.168.100.10
netmask=255.255.255.0

/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.100.10 server1.example1.com

/etc/resolv.conf
nameserver 192.168.100.10

/etc/sysconfig/network
networking=yes
hostnames=server1.example1.com

/etc/mail/local-host-names
server1.example1.com

/etc/mail/sendmail.cf
......
O DaemonPortOptions=Port=smtp,addr=192.168.100.10,Name=MTA
.......

/etc/mail/access
localhost.localdomain relay
localhost relay
127.0.0.1 relay
example1.com relay
station1.example1.com relay

客户机(station1):
/etc/sysconfig/network-scripts/ifcfg-eth0
device=eth0
bootproto=none
onboot=yes
ipaddr=192.168.100.20
netmask=255.255.255.0

/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.100.20 station1.example1.com

/etc/resolv.conf
nameserver 192.168.100.10

/etc/sysconfig/network
networking=yes
hostnames=station1.example1.com

/etc/mail/local-host-names
station1.example1.com

客户机的sendmail.cf,access没有改动(会不会有问题?)

配置后,服务器能发也能收信,但客户机只能发不能收:

用客户机给服务器发信:

telnet 192.168.100.10 25
.......
mail from:root@station1.example1.com
rcpt to:root@server1.example1.com
data
hello
........
在服务器收信:
more /var/mail/root
.....
hello
......
能收到

用客户机给自己发信
telnet 192.168.100.10 25
.......
mail from:root@station1.example1.com
rcpt to:root@station1.example1.com
data
hello
........
在客户机收信:
more /var/mail/root
.......
From: root@xxxx.com (Anacron)
To: root@xxxx.com
Subject: Anacron job 'cron.daily'
Status: RO

/etc/cron.daily/tripwire-check:

**** Error: Tripwire database for test.linux.net not found. ****
**** Run /etc/tripwire/twinstall.sh and/or tripwire --init. ****

.......

出现错误!收不到信,从服务器发信到客户机也是如此。
请高手指点,我得配置哪里错了,还是有什么地方漏了!
 楼主| 发表于 2005-1-13 21:01:15 | 显示全部楼层
那位朋友知道怎么回事,给点建议啊!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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