|
|

楼主 |
发表于 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. ****
.......
出现错误!收不到信,从服务器发信到客户机也是如此。
请高手指点,我得配置哪里错了,还是有什么地方漏了! |
|