目的:有一台openmail主机(HP-UX),它的出口是教育网,
另有一台普通sun solaris主机,它的出口是chinanet,
由于教育网出口小,想在不改动Openmail网络位置的前提下,
实现当用户发邮件时,实际上邮件的出口走的是sun这台主机。
CERNET
|
A -> B ---------> CHINANET
sendmail
听说有一种功能是relay,在双方的sendmail.cf里配置,
但不知道怎么配置,请问哪们大侠配置过,能帮帮我吗?
比较急,请大家帮忙。
D****N 发帖数: 430
2
1st setup the chinanet machine to accept relay for hp-ux
in /etc/mail/access add:
chinanetHostName RELAY
Then setup the hp-ux machine to relay mail to the chinanet one
in /etc/sendmail.cf add or change:
DR hp-uxHostName
CR hp-uxHostName
# forward mail to relay host
This for sending mail. For receiving mails i think you'll need to
set up a virtual domain for sendmail which is beyond sendmail.cf..
Tho there're instructions in http://www.sendmail.org/virtual-hosting.html
you can checkout.