日度归档:2020年12月6日

Centos8配置Mail

配置mail

明白了基本概念,接下来配置mail使用SMTP对外发送邮件。mail命令的系统级配置文件是/etc/mail.rc,用户级别的默认配置文件是~ /.mailrc,也可以通过MAILRC环境变量设置配置文件路径。作为普通用户,我们在本地的~/.mailrc文件进行配置,SMTP的主要配置如下:

set from=346010975@sohu.com smtp=smtps://smtp.sohu.com:465
set smtp-auth-user="****@****.com" smtp-auth-password="******"
set smtp-auth=login

原文链接: https://blog.csdn.net/raymond_d/article/details/104152933