Dovecot服务器(邮件接收服务器)

 

 

下载地址:http://syksy.dovecot.org/releases/1.1/dovecot-1.1.4.tar.gz


# useradd -M -s /sbin/nologin dovecot
# tar zxf dovecot-2.1.3.tar.gz
# cd dovecot-2.1.3
# ./configure --sysconfdir=/etc  --with-mysql
# make
# make install
# cp /etc/dovecot-example.conf  /etc/dovecot.conf
# vi /etc/dovecot.conf
 
ssl_disable = yes
protocols = pop3 imap
disable_plaintext_auth = no
mail_location = maildir:~/Maildir


# vi /etc/pam.d/dovecot

#%PAM-1.0
auth   required     pam_nologin.so
auth   include      system-auth
account   include      system-auth
session   include      system-auth

 

# cd
# /usr/local/sbin/dovecot -c  /etc/dovecot.conf
# netstat -nutpl | grep dovecot
# telnet 192.168.1.2 110

user lisi
pass 123
list
retr 1                            (查看第1封邮件)
quit