Install Dovecot2014/08/22 |
Install Dovecot to configure POP/IMAP server. POP uses 110/TCP, IMAP uses 143/TCP.
|
|
[1] | Install Dovecot. |
[root@mail ~]# yum -y install dovecot
|
[2] | This example shows to configure to provide SASL function to Postfix. |
[root@mail ~]#
vi /etc/dovecot/dovecot.conf # line 26: change ( if not use IPv6 ) listen = *
[root@mail ~]#
vi /etc/dovecot/conf.d/10-auth.conf # line 9: uncomment and change ( allow plain text auth ) disable_plaintext_auth = no
# line 97: add auth_mechanisms = plain login
[root@mail ~]#
vi /etc/dovecot/conf.d/10-mail.conf # line 30: uncomment and add mail_location = maildir:~/Maildir
[root@mail ~]#
vi /etc/dovecot/conf.d/10-master.conf # line 88-90: uncomment and add # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0666
user = postfix group = postfix } /etc/rc.d/init.d/dovecot start Starting Dovecot Imap: [ OK ] [root@mail ~]# chkconfig dovecot on |
[3] | If IPTables is running, allow POP/IMAP port. POP uses 110/TCP, IMAP uses 143/TCP. For "-I INPUT 5" section below, Replace it to your own environment. |
[root@dlp ~]# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 110 -j ACCEPT [root@dlp ~]# iptables -I INPUT 6 -p tcp -m state --state NEW -m tcp --dport 143 -j ACCEPT |
Sponsored Link |
|