把给root 用户的系统邮件转发的管理员的gmail 邮箱
虽然可以登陆到系统去看系统邮件,但显然能用gmail 查看是更方便的选择.
1.安装sendmail 邮件转发要用到sendmail.
yum install sendmail
/etc/intit.d/sendmail start (sendmail服务)
2.设置转发,编辑/etc/aliases
,在文件最后加入:
root: [email protected]
然后运行:
newaliases
更新aliases.
这样系统就会把给root 的邮件转发的你gmail 邮箱里去了.
如若转载,请注明出处:https://www.ozabc.com/jianzhan/24917.html