修改/etc/nail.rc (/etc/mail.rc)
set from=user@163.com smtp=smtp.163.com
set smtp-auth-user=user smtp-auth-password=XXX smtp-auth=login
保存就可以了。测试一下,给otheruser@sina.com发信。
mail -s "onlytest" otheruser@sina.com <file
set from=user@163.com smtp=smtp.163.com
set smtp-auth-user=user smtp-auth-password=XXX smtp-auth=login
保存就可以了。测试一下,给otheruser@sina.com发信。
mail -s "onlytest" otheruser@sina.com <file
本文介绍如何配置Linux系统使用163邮箱的SMTP服务来发送邮件。通过编辑/etc/nail.rc文件设置发件人地址、SMTP服务器及认证信息,实现从Linux系统向外部邮箱发送测试邮件。
1676

被折叠的 条评论
为什么被折叠?



