linux (如RHAS4) root帐号的邮件一般放在本地机器(/var/mail/root),可以通过Sendmail的别名列表实现转发,别名文件/etc/aliases中加入一行:
[code]root: root,user,xxx@xxx.com[/code]
除root外的其它用的邮件可以通过在用户/hoem/下建立一个.forward文件实现转发:
[code]
\\somebody
other1
other2
[/code]
文件权限设为600,作用一样,但.forward可以由用户自行维护,而aliases则只有管理员才能修改.
参考:
[url]http://fanqiang.chinaunix.net/a6/b3/20020624/060201256.html[/url]
[url]http://blog.wdicc.com/wordpress/howto-cc-an-email-to-others-in-sendmail/[/url]
[code]root: root,user,xxx@xxx.com[/code]
除root外的其它用的邮件可以通过在用户/hoem/下建立一个.forward文件实现转发:
[code]
\\somebody
other1
other2
[/code]
文件权限设为600,作用一样,但.forward可以由用户自行维护,而aliases则只有管理员才能修改.
参考:
[url]http://fanqiang.chinaunix.net/a6/b3/20020624/060201256.html[/url]
[url]http://blog.wdicc.com/wordpress/howto-cc-an-email-to-others-in-sendmail/[/url]