Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10492102
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:07:49

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 ple
auth on
user joe.smith
password secret

# A second mail address at the same freemail service
account freemail2 : freemail
from ple


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

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

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

阅读(811) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~