postfix + dovecot + squirrelmail

#################    DNS此处略   ##################


1.安装 postfix、dovecot、 squirrelmail

rpm -ivh epel-release-6-8.noarch.rpm        //EPEL源

yum install postfix dovecot squirrelmail -y


2.配置postfix:

2.1

postconf -e 'inet_interfaces = all'

postconf -e 'myorigin = $mydomain'

postconf -e 'mydestination = $myhostname,$mydomain'

postconf -e 'mynetworks = 127.0.0.0/8'

postconf -e 'myorigin = $mydomain'

postconf -e 'relay_domains = hash:/etc/postfix/relay'

2.2

vim /etc/postfix/relay

example.com    ok

qq.com    ok

163.com    ok

postmap /etc/postfix/relay

2.3

postconf -e 'home_mailbox = Maildir'


3.配置dovecot

3.1

cd /etc/dovecot/

vim dovecot.conf

protocols = imap pop3 lmtp        //默认注释,删除#

3.2

cd conf.d/

vim 10-auth.conf

auth_mechanisms = plain login

vim 10-mail.conf

mail_location = maildir:~/Maildir    //默认注释,删除#

vim 10-master.conf

unix_listener auth-userdb {
   mode = 0600                       //默认注释,删除#                                
   user = postfix
   group = postfix


4.配置squirrelmail

4.1

cd /usr/share/squirrelmail/config/

./conf.pl

输入2选择Server Settings

输入10选择Languages

4.2

vim /etc/httpd/conf.d/squirrelmail.conf

Allow from all        //默认拒绝所有,把Deny改成Allow

最下面5行可注释


5.测试

service postfix restart

chkconfig postfix on

service dovecot restart

chkconfig dovecot on

service httpd restart

chkconfig httpd on


访问squirrelmail

http://www.example.com/webmail

给qq.com或163.com用户发信、收信







你可能感兴趣的:(+,+,postfix,Dovecot,SquirrelMail)