Open smallnewer opened 9 years ago
MAILTO=你的邮箱地址 CONTENT_TYPE=text/plain; charset=utf-8
vi /etc/aliases
root: root,xxx@163.com
vi /etc/postfix/main.cf
inet_protocols = all
inet_protocols = ipv4
/etc/init.d/postfix restart
mail -s "123" xxx@163.com
vi /etc/aliases
,最后的# Person who should get root's mail后面加入:vi /etc/postfix/main.cf
,修改其中的:inet_protocols = all
为inet_protocols = ipv4
/etc/init.d/postfix restart
可能关闭失败mail -s "123" xxx@163.com
然后ctrl+d发送