文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>linux console下的使用SMTP发送邮件

linux console下的使用SMTP发送邮件

时间:2009-03-23  来源:sjhf

Linux中的邮件程序很多。pine, mutt是著名的邮件客户端程序,postfix, sendmail是邮件代理。但是postfix, sendmail都太大,使用起来要看大堆的文档,才能用得上。

这里要推荐的是pine + msmtp的组合。

msmtp是SMTP客户端,安装之后,在home目录中建立.msmtprc配置文件, 下面是一个例子:

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

# A freemail service
account freemail
host smtp.freemail.example
from [email protected]ple
auth on
user joe.smith
password secret

# A second mail address at the same freemail service
account freemail2 : freemail
from [email protected]ple

这样就配置好了msmtp。然后只要在把pine的sendmail-path改为msmtp的程序即可。如:

sendmail-path = /usr/bin/msmtp -t

本文出自 “techlife” 博客,谢绝转载!

相关阅读 更多 +
排行榜 更多 +
rento大富翁手游

rento大富翁手游

休闲益智 下载
冲撞赛车3无限金币版

冲撞赛车3无限金币版

赛车竞速 下载
电动火车模拟器内置菜单

电动火车模拟器内置菜单

赛车竞速 下载