下: Cw games.net.cn
那我将无法使用这个地址:
username@games.net.cn
而只能用
username@ftp.games.net.cn 否则将出现上述错误。
如果发现了错误,那再加上去也就可以了。
3.如果一台机器有多interface ,各interface有其本身的名字,且要收信。
这个情况也要在Cw之後写明所有要收信的hostname。
ok!一个标准的sendmail.cf文件就设置完了!
4.2 设置access
打开/etc/mail/access,你会看到 (注意一些系统的access文件不再/etc/mail下,如找不到
请用whereis查找或检查是否安装正常)
# Check the /usr/doc/sendmail-8.9.3/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/doc/sendmail-8.9.3/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
如果您的IP地址是192.168.25.11的话,这样请在最后一行加上192.168.25.11 RELAY
其文件的最后三行应是:
localhost.localdomain RELAY
localhost RELAY
192.168.25.11 RELAY
加上这句话您就可以用sendmail发送接收mail了!但是如果您想让别人也可以使用sendmail的
话,他的IP是202.168.25.22,这样就在在最后一行加入202.168.25.22 RELAY
其文件的最后四行应是:
localhost.localdomain RELAY
localhost RELAY
192.168.25.11 RELAY
192.168.25.22 RELAY
我想,您现在一定有个疑问是,如果我想设置50个人用sendmail是不是需要加50个IP啊!?
嘿嘿,不用啦,是这样,sendmail考虑到多用户的时候,它准许你添入整个C类地址,(B类好
像也可以,我没try过!)
其格式如下:
localhost.localdomain RELAY
localhost RELAY
192.168.25 RELAY
这样,您就是把192.168.52这整个C都加入的sen
那我将无法使用这个地址:
username@games.net.cn
而只能用
username@ftp.games.net.cn 否则将出现上述错误。
如果发现了错误,那再加上去也就可以了。
3.如果一台机器有多interface ,各interface有其本身的名字,且要收信。
这个情况也要在Cw之後写明所有要收信的hostname。
ok!一个标准的sendmail.cf文件就设置完了!
4.2 设置access
打开/etc/mail/access,你会看到 (注意一些系统的access文件不再/etc/mail下,如找不到
请用whereis查找或检查是否安装正常)
# Check the /usr/doc/sendmail-8.9.3/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/doc/sendmail-8.9.3/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
如果您的IP地址是192.168.25.11的话,这样请在最后一行加上192.168.25.11 RELAY
其文件的最后三行应是:
localhost.localdomain RELAY
localhost RELAY
192.168.25.11 RELAY
加上这句话您就可以用sendmail发送接收mail了!但是如果您想让别人也可以使用sendmail的
话,他的IP是202.168.25.22,这样就在在最后一行加入202.168.25.22 RELAY
其文件的最后四行应是:
localhost.localdomain RELAY
localhost RELAY
192.168.25.11 RELAY
192.168.25.22 RELAY
我想,您现在一定有个疑问是,如果我想设置50个人用sendmail是不是需要加50个IP啊!?
嘿嘿,不用啦,是这样,sendmail考虑到多用户的时候,它准许你添入整个C类地址,(B类好
像也可以,我没try过!)
其格式如下:
localhost.localdomain RELAY
localhost RELAY
192.168.25 RELAY
这样,您就是把192.168.52这整个C都加入的sen
| 对此文章发表了评论 |
