(4) 修改short cut
在sendmail.cf中寻找short cut字符串,你将会发现它建立了
对local的short cut,在local之前,请加入:
R$+.bbs<@ $=w .>$* <tab> $#bbsmail $:$1 <tab> bbs mail gateway
(5) 测试改好的sendmail.cf
执行测试命令:
/usr/lib/sendmail -bt
输入:
>3,0 loafer.bbs
如果你设置正确,则会在最后一行显示为:
rewrite: ruleset 0 returns: $# bbsmail $: loafer
其意义就是:
通过Mailer bbsmail,把信件发到用loafer手上
然后测试:
>3,0 loafer.bbs@bbs.whnet.edu.cn
如果设置正确,你用样会看到最后一行为
rewrite: ruleset 0 returns: $# bbsmail $: loafer
如果重写规则解析到最后没有指写bbsmail,则所做的配置可能有错。
--
FROM 166.111.142.18