文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>postfix邮件服务器架设历程

postfix邮件服务器架设历程

时间:2006-12-05  来源:scream

本人正在学习postfix邮件服务器,把过程记录下来,备忘。 一、邮件服务器操作系统为Centos 4.4 只安装开发工具 二、邮件服务器软件是postfix:yum install postfix 版本是2.2.10 三、pop3是采用的dovecot :yum install dovecot 版本是0.99.11 完成最基本的邮件功能,就需要这两个软件就可以。 四、安装过程     1、安装postfix:

                     /etc/init.d/sendmail stop

                     yum install postfix

                     rpm -e sendmail

                     /etc/init.d/postfix start      2、修改/etc/postfix/main.cf                      

                     myhostname = 你的域名

                     myorigin = $myhostname

                     inet_interfaces = all

                     mydestination = $myhostname, localhost.$mydomain, localhost,

                     mynetworks = 127.0.0.0/8, 192.168.1.0/24, hash:/etc/postfix/access

                     relay_domains = $mydestination

    3、运行 postfix check 如果没有任何提示说明设置准确。     4、运行yum install dovecot     5、        vi /etc/dovecot.conf樣子:

                protocols = pop3的位址,將他改成底下這個樣子:

                pop3_listen = *      6、/etc/init.d/dovecot start      7、到现在就可以使用FOXMAIL完成收发邮件的工作了。   五、SMTP认证机制              1、要完成SMTP认证需要Cyrus-SASL软件      2、Centos默认安装就有      3、

        vi /etc/sysconfig/saslauthd

        MECH=shadow

     4、

        /etc/init.d/saslauthd start

        chkconfig saslauthd on      5、

        vi /usr/lib/sasl2/smtpd.conf

        log_level: 3

        pwcheck_method: saslauthd

        mech_list: PLAIN LOGIN
     6、

        [root@linux ~]# vi /etc/postfix/main.cf

在末尾增加

        smtpd_sasl_auth_enable = yes

        smtpd_sasl_security_options = noanonymous

        broken_sasl_auth_clients = yes

        然后找到relay 一段增加如下设置

        smtpd_recipient_restrictions =

        permit_mynetworks

        permit_sasl_authenticated

        reject_unauth_destination

        reject_rbl_client relays.ordb.org

        reject_rbl_client cbl.abuseat.org

        reject_rbl_client bl.spamcop.net

        check_policy_service unix:/var/spool/postfix/postgrey/socket

        [root@linux ~]# /etc/init.d/postfix restart
     7、至此邮件服务器初步已经完成建设 foxmail必须设置smtp认证,才能正常收发邮件                      
相关阅读 更多 +
排行榜 更多 +
风度

风度

游戏工具 下载
大姨妈月经提醒

大姨妈月经提醒

健康医疗 下载
海岸线小说网

海岸线小说网

浏览阅读 下载