Postfix+Cyrus-SASL+dovecot搭建POP3/SMTP邮件服务器
2011-03-27 16:57
543 查看
安装
需要安装以下组件:postfix
cyrus_sasl
dovecot
为了省事,我是直接yum install的。
配置
postfix
1sudo
vi
/etc/postfix/main.cf
设置
1
myhostname = mail.lzhaohao.info
2
mydomain = lzhaohao.info
3
myorigin = $myhostname
然后设置
1
inet_interfaces = all
2
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain,
ftp
.$mydomain
其中,inet_interfaces指定可以连接邮件服务器的网卡界面;mydestination指定本邮件服务器会收下的信件的域名。
SMTP密码验证
安装好cyrus-sasl后1
sudo
vi
/etc/sysconfig/saslauthd
设置
1
MECH = shadow
shadow的意思是使用系统自带的/etc/passwd,/etc/shadow进行密码验证,也就是系统用户名和密码就是邮箱的用户名和密码。cyrus-sasl还可以使用LDAP等验证方式,此处使用shadow作为例子。
然后设置cyrus使用saslauthd这个服务来验证:
1
sudo
vi
/usr/lib/sasl2/smtpd.conf
2
log_level: 3
3
pwcheck_method: saslauthd
4
mech_list: PLAIN LOGIN
再告诉postfix使用smtp验证:
1
sudo
vi
/etc/postfix/main.cf
增加以下内容
1
smtpd_sasl_auth_enable =
yes
2
smtpd_sasl_security_options = noanonymous
3
broken_sasl_auth_clients =
yes
4
smtpd_recipient_restrictions =
5
permit_mynetworks
6
permit_sasl_authenticated
7
reject_unauth_destination
验证:
1
telnet localhost 25
2
ehlo localhost
看到250-AUTH LOGIN PLAIN字样即表示配置成功。
POP3配置
安装好dovecot后,修改配置项为:1
protocols = pop3
2
listen = *
相关文章推荐
- Postfix+Cyrus-SASL+dovecot搭建POP3/SMTP邮件服务器
- Centos7搭建邮件服务器-Postfix+Cyrus-sasl+Courier-authlib+Dovecot+ExtMail+Centos7
- Centos7下postfix+Dovecot+cyrus-sasl搭建个人局域网邮件服务器(测试使用)
- CentOS6.5上简易搭建Postfix、Dovecot、Sasl、OPenwebmail局域网邮件服务器以及DNS服务器
- postfix+dovecot+Cyrus-sasl+postfixadmin 邮件服务器设置
- CentOS 5.5 x64上使用Postfix + Dovecot + MySQL搭建邮件服务器
- 用Postfix + Dovecot 搭建的邮件服务器被垃圾邮件当中转服务器的处理
- LAMP+Postfix+Dovecot+SquirrelMail邮件服务器搭建
- linux 下 搭建邮件邮件服务器(Postfix+Dovecot)(三) 使用 maildrop 投递邮件
- Postfix+Dovecot+MySQL搭建邮件服务器
- dnsmasq+postfix+sasl+tls+dovecot(邮件服务器)
- RHEL6.4 postfix+dovecot搭建邮件服务器
- 邮件服务器 Postfix+ Cyrus-SASL+cyrus-IMAPD+日常维护
- 邮件系统服务器搭建记录(四)(Postfix+Cyrus-sasl+Courier-authlib+Dovecot+ExtMail+MySQL)
- Postfix邮箱(四):安装Cyrus-SASL使Postfix支持SMTP认证
- 在Lamp平台上基于postfix+mysql+dovecot+sasl+courier-authlib+extmail+extman搭建企业级邮件系统
- Postfix,dovecot邮件服务器搭建
- postfix + dovecot + cyrus-sasl
- postfix+dovecot+maildrop+mailscanner+clamav+spamassassin搭建rhel6平台邮件服务器
- Ubuntu 12.04安装配置Postfix dovecot cyrus sasl(mysql虚拟用户)