linux设置mail邮件服务器
在linux下设置SMTP服务器并用mail命令发邮件精解步骤:
1.vi /etc/mail.rc
set [email protected] #默认对外发送邮件的用户邮箱地址
set smtp=aa.smtp.xx.cn #选用默认发送邮件的公共邮件域名
set [email protected] #默认对外发邮件的用户
set smtp-auth-password=123456 #对应默认用户的密码
set smtp-auth=login #默认使用login
2.vi /etc/hosts 添加邮箱地址对应的ip
10.0.0.123 [email protected]
3.测试邮件发送
echo “"邮箱测试test" | mail -s "邮箱测试test" [email protected]
可以正常接收邮件!
相关推荐
bluecarrot 2020-11-23
Attend 2020-11-17
ZHAICAN 2020-11-16
codedecode 2020-11-14
zhangbingb 2020-11-12
ykmail 2020-11-11
futurezone 2020-11-06
rikeyone 2020-11-04
橄榄 2020-11-04
WenCoo 2020-10-31
liuyuchen 2020-10-27
ROES 2020-10-24
Gexrior 2020-10-22
ZHAICAN 2020-10-20
风语者 2020-10-16
zhongguomin 2020-10-16
净无邪 2020-10-15