在CentOS 7系统里如何使用465端口发送邮件
环境:CentOS 7准备产品:阿里云服务器 (https://www.aliyun.com/product/ecs)阿里云企业邮箱账户( https://wanwang.aliyun.com/mail/) 过程: 1.编辑 /etc/mail.rc 文件内容,追加以下内容(请替换其中的登录用户和密码值): set smtp="smtps://smtp.mxhichina.com:465" set smtp-auth=login set smtp-auth-user="sales@vfutai.xxx" set smtp-auth-password="Ni-De-Mi-Ma" set ssl-verify=ignore set nss-config-dir=/etc/pki/nssdb 2.发信测试(请替换其中的回信、收信地址和标题): echo message3 | mail -v -r "sales@vfutai.xxx" -s "This is the subject" dongshan3@foxmail.xxx 3.执行命令后,显示发信成功。收件人邮箱中,有信 看到上图,说明已经成功了