Postfix+Cyrus-SASL+dovecot搭建POP3/SMTP邮件服务器
2012-04-23 17:50
731 查看
安装
需要安装以下组件:postfix
cyrus_sasl
dovecot
为了省事,我是直接yum install的。
配置
postfix
1
sudo
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+Dovecot+cyrus-sasl搭建个人局域网邮件服务器(测试使用)
- Centos7搭建邮件服务器-Postfix+Cyrus-sasl+Courier-authlib+Dovecot+ExtMail+Centos7
- postfix+dovecot+Cyrus-sasl+postfixadmin 邮件服务器设置
- CentOS6.5上简易搭建Postfix、Dovecot、Sasl、OPenwebmail局域网邮件服务器以及DNS服务器
- RedHat Linux+Postfix+Cyrus-sasl+Dovecot+Stunnel收藏
- 简单邮件服务器postfix+dovecot搭建
- 搭建自己的邮件服务器(postfix devocot cyrus-sasl) centos7 系统下配置
- Postfix+Cyrus-sasl+Dovecot(AS4)
- RHEL6.4 postfix+dovecot搭建邮件服务器
- postfix courier-imap maildrop cyrus-sasl extman搭建mail服务器
- 搭建邮件服务器 Postfix + Dovecot (CentOS)
- postfix+dovecot搭建邮件服务器
- Centos7.1下用Postfix和Dovecot搭建邮件服务器
- postfix+ dovecot搭建邮件服务器
- 用Postfix + Dovecot 搭建的邮件服务器被垃圾邮件当中转服务器的处理
- postfix+mysql+extmail+dovecot虚拟域名邮件服务器搭建
- LAMP+Postfix+Dovecot+SquirrelMail邮件服务器搭建
- linux 下 搭建邮件邮件服务器(Postfix+Dovecot)(三) 使用 maildrop 投递邮件
- Postfix+Dovecot+MySQL搭建邮件服务器