mialx配置qq邮箱发送邮件
2017-01-08 09:05
429 查看
#send mail use mailx(v12.0.4)
#edit configure file
set smtp-use-starttls
set from=xxxxxxxxx@qq.com
set smtp=smtp://smtp.qq.com:587
set smtp-auth-user=xxxxxxxxx@qq.com
set smtp-auth-password=xxxxxxxxxxxx
set smtp-auth=login
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb/
#can send,but cause a error that "Error in certificate: Peer's certificate issuer is not recognized."So change a method that don't know why,but it works:
mkdir /root/.certs/
echo -n | openssl s_client -connect smtp.qq.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/qq.crt
certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crt
certutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crt
certutil -L -d /root/.certs
cd .certs
certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ./ -i qq.crt
vim /etc/mail.rc
set nss-config-dir=/root/.certs/
最后,好像使用crond执行定时任务时,程序里都需要使用绝对路径。
#edit configure file
set smtp-use-starttls
set from=xxxxxxxxx@qq.com
set smtp=smtp://smtp.qq.com:587
set smtp-auth-user=xxxxxxxxx@qq.com
set smtp-auth-password=xxxxxxxxxxxx
set smtp-auth=login
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb/
#can send,but cause a error that "Error in certificate: Peer's certificate issuer is not recognized."So change a method that don't know why,but it works:
mkdir /root/.certs/
echo -n | openssl s_client -connect smtp.qq.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/qq.crt
certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crt
certutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/qq.crt
certutil -L -d /root/.certs
cd .certs
certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ./ -i qq.crt
vim /etc/mail.rc
set nss-config-dir=/root/.certs/
最后,好像使用crond执行定时任务时,程序里都需要使用绝对路径。
相关文章推荐
- inotify + msmtp + mutt 监控文件变化并发送邮件的配置实例-msmtp的QQ邮箱配置
- Java mail使用QQ邮箱发送邮件配置方案及异常处理
- Java mail使用QQ邮箱发送邮件配置方案
- CentOS7 配置sendmial + PHP mail函数发送邮件
- Jenkins:配置qq邮箱作为发送邮件的邮箱服务器
- wordpress配置SMTP服务发送邮件(qq邮箱)
- Laravel5使用QQ邮箱发送邮件配置
- PHPMailer配置QQ邮箱163邮箱和谷歌邮箱发送邮件
- jenkins配置QQ邮箱自动发送RF测试构建结果通知邮件
- flask配置qq邮箱发送邮件
- [原创]在Managed Code通过Google Gmail发送邮件以及如何通过Outlook配置Gmail
- apache james发送邮件的配置
- IIS配置SMTP服务器,ASP.net发送邮件
- 【转蝈蝈俊.net 】SQL Server 2005 配置发送邮件
- 配置SQL2000数据库发送邮件
- 在Managed Code通过Google Gmail发送邮件以及如何通过Outlook配置Gmail
- 使用JBoss配置发送邮件
- Log4j发送需SMTP认证邮件的配置方法
- 邮件发送程序的WebConfig配置
- 配置2005数据库发送邮件