Postfix(二):为邮件服务器配置收件服务器----dovecot
2011-08-16 23:42
555 查看
上一篇文章我们搭建了postfix搭建了SMTP服务器(MTA),SMTP邮件服务器已经ok,但是光发送邮件还满足不了我们的邮件服务器的需求,我们还需要一个能够接受邮件的POP3/IMAP服务器(MUA)
我们使用dovecot构建我们的收件服务器
依赖
下载
安装
配置
测试:
# telnet localhost 110
出现+Ok Dovecot ready.则正确
还记得我们上一篇发的一个测试邮件吧… 这里我们就收到了
![](http://img1.51cto.com/attachment/201108/234049871.jpg)
错误总结
1、
错误:
dovecot 启动时 显示 ssl_cert_file:Can't use /etc/ssl/certs/dovecot.pem
解决
// 创建两个文件夹
mkdir –p /etc/ssl/certs/
mkdir –p /etc/ssl/private
进入到源码包解压目录
cd doc
sh mkcert.sh
错误:
telnet 110端口的时候停在Escape character is ‘^]’.
不出现+Ok Dovecot ready.
日志信息:
Aug 4 16:52:35 localhost dovecot: auth: Fatal: Support not compiled in for passdb driver 'pam'
Aug 4 16:52:35 localhost dovecot: master: Error: service(auth): command startup failed, throttling
Aug 4 16:53:17 localhost dovecot: master: Warning: Killed with signal 15 (by pid=17402 uid=0 code=kill)
Aug 4 16:53:18 localhost dovecot: pop3-login: Error: auth: connect(login) failed: Connection refused
Aug 4 16:53:54 localhost dovecot: pop3-login: Disconnected: Shutting down (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
解决:
预编译时加入参数 –with-pam
yum –y install pam-devel
./configure –sysconfdir=/etc –with-pam –with-mysql
make && make install
本文出自 “cold night” 博客,转载请与作者联系!
我们使用dovecot构建我们的收件服务器
依赖
# yum -y install pam-devel
下载
# wget http://www.dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz
安装
# useradd -M -s /sbin/nologin dovecot # 创建dovecot的运行账户 # useradd –M –s /sbin/nologin dovenull # tar zxvf dovecot-2.0.13.tar.gz # cd dovecot-2.0.13.tar.gz # ./configure --sysconfdir=/etc --with-mysql –with-pam # make && make install # cd doc # mkdir /etc/ssl/certs –p # mkdir -p /etc/ssl/private # sh mkcert.sh
配置
# cp /usr/local/share/doc/dovecot/example-config/dovecot.conf /etc/dovecot/ # 建立dovecot配置文件 # cp -r /usr/local/share/doc/dovecot/example-config/conf.d /etc/dovecot/ # 建立dovecot配置文件的需求文件 # vi /etc/dovecot/dovecot.conf 20 protocols = imap pop3 lmtp # 支持邮局协议 # vi /etc/dovecot/conf.d/10-auth.conf 9 disable_plaintext_auth = no#允许明文密码验证 # vi /etc/dovecot/conf.d/10-ssl.conf 6 ssl = no # 禁用s # vi /etc/dovecot/conf.d/10-mail.conf 24 mail_location = maildir:~/Maildir # 邮件存储格式及位置 // 创建PAM认证文件 # vi /etc/pam.d/dovecot auth required pam_nologin.so auth include system-auth account include system-auth sesssion include system-auth # dovecot # 启动服务
测试:
# telnet localhost 110
出现+Ok Dovecot ready.则正确
还记得我们上一篇发的一个测试邮件吧… 这里我们就收到了
![](http://img1.51cto.com/attachment/201108/234049871.jpg)
错误总结
1、
错误:
dovecot 启动时 显示 ssl_cert_file:Can't use /etc/ssl/certs/dovecot.pem
解决
// 创建两个文件夹
mkdir –p /etc/ssl/certs/
mkdir –p /etc/ssl/private
进入到源码包解压目录
cd doc
sh mkcert.sh
错误:
telnet 110端口的时候停在Escape character is ‘^]’.
不出现+Ok Dovecot ready.
日志信息:
Aug 4 16:52:35 localhost dovecot: auth: Fatal: Support not compiled in for passdb driver 'pam'
Aug 4 16:52:35 localhost dovecot: master: Error: service(auth): command startup failed, throttling
Aug 4 16:53:17 localhost dovecot: master: Warning: Killed with signal 15 (by pid=17402 uid=0 code=kill)
Aug 4 16:53:18 localhost dovecot: pop3-login: Error: auth: connect(login) failed: Connection refused
Aug 4 16:53:54 localhost dovecot: pop3-login: Disconnected: Shutting down (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
解决:
预编译时加入参数 –with-pam
yum –y install pam-devel
./configure –sysconfdir=/etc –with-pam –with-mysql
make && make install
本文出自 “cold night” 博客,转载请与作者联系!
相关文章推荐
- Postfix(二):为邮件服务器配置收件服务器----dovecot
- Ubuntu 服务器管理员手记(二):快速安装配置邮件服务器(详解 Postfix + Dovecot)
- CentOS 5.5 下Postfix和Dovecot 配置邮件服务器
- centos 邮件服务器postfix,saslauthd,dovecot安装配置.
- 如何利用Postfix、Dovecot、MySQL与SpamAssassin配置一套邮件服务器
- Liunx服务器上编辑邮件系统postfix配置文件和安装dovecot
- RHEL6.0配置postfix+dovecot服务器收发邮件
- 邮件服务器postfix,saslauthd,dovecot安装配置提供SMTP服务
- CentOS 64位下安装Postfix+Dovecot 配置邮件服务器笔记
- 用Postfix + Dovecot 搭建的邮件服务器被垃圾邮件当中转服务器的处理
- Postfix+Dovecot邮件服务器配置指南,Postfix使用Dovecot认证,配置环境CentOS5.5
- 邮件服务器搭建之:详解Dovecot配置
- Postfix邮件系统安装与配置:Postfix,Cyrus-IMAP,Cyrus-sasl,Dovecot和SPF
- Ubuntu 16.04上安装并配置Postfix作为只发送SMTP服务器
- Linux系统下邮件服务器的搭建(Postfix+Dovecot)
- postfix+ dovecot搭建邮件服务器
- Postfix 配置邮件服务器
- 邮件服务/Sendmail/Dovecot/Postfix的配置与应用
- 简单配置PostFix服务器
- shell script自动搭建简单的mail服务器(postfix+dovecot)