Chinaunix首页 | 论坛 | 博客
  • 博客访问: 399791
  • 博文数量: 76
  • 博客积分: 3016
  • 博客等级: 中校
  • 技术积分: 782
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-27 12:05
文章分类

全部博文(76)

文章存档

2017年(1)

2015年(1)

2009年(2)

2008年(28)

2007年(44)

我的朋友

分类:

2007-04-27 15:06:23

今天用msmtp给自己发了封测试邮件,成功了!配置如下:
以后还是应该多看看系统文档,然后再上网找答案。
$msmtp --host=smtp.gmail.com --serverinfo    测试gmail是否支持TLS加密

#Set default values for all following accounts
defaults
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/Mail/msmtplog

# Gmail service
account gmail
host smtp.gmail.com
from myaccountname@gmail.com
auth on
user myaccountname
password mypassword
#port 587                 #可要可不要的

# A freemail service
#account freemail
#host smtp.freemail.example
#from joe_smith@freemail.example
#auth on
#user joe.smith
#password secret

# A second mail address at the same freemail service
#account freemail2 : freemail
#from joey@freemail.example

# The SMTP server of the provider.
#account provider
#host mail.provider.example
#from smithjoe@provider.example
#auth on
#user 123456789
#password my_password
# Set a default account
account default : gmail

至此,msmtp配置完成了。要更复杂的配置,请参考msmtp manual
阅读(3009) | 评论(2) | 转发(0) |
0

上一篇:没有了

下一篇:如何订阅Debian 的邮件列表

给主人留下些什么吧!~~

amberprice2011-12-15 16:40:50

chinaunix网友2008-01-20 22:28:04

请问一下发送邮件的命令是什么? msmtp -t -d -C d:\.msmtprc -a gmail *****@hotmail.com 然后我回车输入发送内容!但是一直退出不了!我只好ctrl+C退出!