修改/etc/mail.rc最后一行加入
set from=xiaxia_5321@163.com smtp=smtp.163.com smtp-auth-user=xiaxia_5321 smtp-auth-password=shani123 smtp-auth=login
set from=xiaxia_5321@163.com smtp=smtp.163.com smtp-auth-user=xiaxia_5321 smtp-auth-password=shani123 smtp-auth=login
mail -s "ningpengju" 13161863330@163.com < /etc/passwd