[root@ser ~]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [root@ser ~]# chkconfig postfix on [root@ser ~]# chkconfig dovecot on
[root@ser ~]# service iptables restart Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK Applying iptables firewall rules: [ OK ] Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]ntrack_ftp [root@ser ~]# chkconfig saslauthd on
修改 /etc/sysconfig/saslauthd.
1 2 3 4 5 6 7 8 9 10
[root@ser ~]# vim /etc/sysconfig/saslauthd # Directory in which to place saslauthd's listening socket, pid file, and so # on. This directory must already exist. SOCKETDIR=/var/run/saslauthd # Mechanism to use when checking passwords. Run "saslauthd -v" to get a list # of which mechanism your installation was compiled with the ablity to use. MECH=shadow # Additional flags to pass to saslauthd on the command line. See saslauthd(8) # for the list of accepted flags. FLAGS=
修改 /usr/lib/sasl2/smtpd.conf.
1 2
[root@ser ~]# vim /usr/lib64/sasl2/smtpd.conf pwcheck_method: saslauthd
测试 saslauthd.
1 2 3
[root@ser ~]# service saslauthd restart [root@ser ~]# testsaslautd -u yjw -p '020304' 0: OK "Success."
echo "this is a test mail !"|mail -s mailname root
输入mail查看是否成功.也可给给QQ邮箱发,将root修改成QQ邮箱地址就可以了.
第四步:安装openwebmail.
1 2 3 4 5 6 7 8 9 10
[root@ser ~]# vim /etc/yum.repos.d/openwebmail.repo [openwebmail] ## Thomas Chung ## 2008.05.29 name=Openwebmail for Fedora or Enterprise Linux baseurl=http://openwebmail.org/openwebmail/download/redhat/rpm/release/ enabled=1 gpgcheck=1 gpgkey=http://openwebmail.org/openwebmail/download/redhat/rpm/release/RPM-GPG-KEY-openwebmail #metadata_expire=0