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用戶發信、收信







發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章