在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<menu id="6qfwx"><li id="6qfwx"></li></menu>
    1. <menu id="6qfwx"><dl id="6qfwx"></dl></menu>

      <label id="6qfwx"><ol id="6qfwx"></ol></label><menu id="6qfwx"></menu><object id="6qfwx"><strike id="6qfwx"><noscript id="6qfwx"></noscript></strike></object>
        1. <center id="6qfwx"><dl id="6qfwx"></dl></center>

            新聞中心

            EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 在Linux系統(tǒng)下面架設(shè)Sendmail服務(wù)器

            在Linux系統(tǒng)下面架設(shè)Sendmail服務(wù)器

            作者: 時(shí)間:2016-09-12 來(lái)源:網(wǎng)絡(luò) 收藏

            這次我們來(lái)學(xué)習(xí)系統(tǒng)中的Sendmail的配置。(郵件的IP192.168.1.2 主機(jī)域名為mail.ltest.com)

            本文引用地址:http://www.biyoush.com/article/201609/304249.htm

            前提:首先我們 把DNS安裝OK 能夠解析,不明白的看http://www.cublog.cn/u/21675/showart_263507.html

            1,首先安裝Sendmail所需軟件

            [root@localhost ~]# rpm -q sendmail m4

            sendmail-8.13.1-2

            m4-1.4.1-16 已經(jīng)默認(rèn)安裝了,還需掛載第4張光盤,安裝與sendmail相關(guān)的軟件

            [root@localhost RPMS]# rpm -ivh sendmail-*

            warning: sendmail-cf-8.13.1-2.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

            Preparing... ########################################### [100%]

            1:sendmail-doc ########################################### [ 33%]

            2:sendmail-cf ########################################### [ 67%]

            3:sendmail-devel ########################################### [100%]

            2.修改/etc/mail/local-hosts-name文件。

            增加本地域和主機(jī)的FQDN,記住只是本地主機(jī)的FQDN和域名FQDN,不要添加其他域的,否則向外域發(fā)送郵件的時(shí)候會(huì)出現(xiàn)user unknown的錯(cuò)誤:

            [root@localhost named]# cat /etc/mail/local-host-names

            # local-host-names - include all aliases for your machine here.

            ltest.com

            3, 更改/etc/mail/sendmail.mc文件,修改下列地方:

            DaemonPortsOptions=Port=smtp,Addr=127.0.0.1, Name=MTA 更改為:

            DaemonPortsOptions=Port=smtp,Addr=yourip或者0.0.0.0, Name=MTA

            然后m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

            4, 用戶管理

            認(rèn)證的配置:修改/etc/mail/sendmail.mc中的字段,取消“TRUST_AUTH_MECH”一行和下一行“define”處的注釋。(于sendmail.mc文件的第48、49)然后m4 /etc/ mail/sendmail.mc>/etc/mail/sendmail.cf。

            [root@localhost named]# chkconfig --list saslauthd 開(kāi)啟認(rèn)證

            saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

            [root@localhost named]# chkconfig --level 35 saslauthd on

            建立用戶帳號(hào)

            [root@localhost named]# groupadd mailuser

            [root@localhost named]# adduser -g mailuser -s /sbin/nologin mike

            [root@localhost named]# adduser -g mailuser -s /sbin/nologin john

            [root@localhost named]# passwd mike

            [root@localhost named]# passwd john 密碼都是123

            設(shè)置郵件別名和郵件群發(fā)

            修改/etc/aliases文件實(shí)現(xiàn)郵件轉(zhuǎn)發(fā)和郵件列表:

            admin: mike 為郵件用戶mike設(shè)置別名admin

            testgroup: mike,john 實(shí)現(xiàn)群發(fā) 發(fā)給testgroup的郵件發(fā)給mike 和 john 以上2個(gè)可以分別測(cè)試

            #newaliases

            5,訪問(wèn)控制設(shè)置

            更改/etc/mail/accesss文件,增加:

            [root@localhost named]# cat /etc/mail/access

            # Check the /usr/share/doc/sendmail/README.cf file for a description

            # of the format of this file. (search for access_db in that file)

            # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc

            # package.

            #

            # by default we allow relaying from localhost...

            localhost.localdomain RELAY

            localhost RELAY

            127.0.0.1 RELAY

            ltest.com RELAY

            完成后makemap hash /etc/mail/access.db /etc/mail/access進(jìn)行數(shù)據(jù)庫(kù)更新。

            6,#service sendmail restart

            [root@localhost named]# service sendmail restart 啟動(dòng)服務(wù)

            Shutting down sendmail: [FAILED]

            Starting sendmail: [ OK ]

            Starting sm-client: [ OK ]

            [root@localhost named]# telnet localhost 25

            Trying 127.0.0.1...

            Connected to localhost.localdomain (127.0.0.1).

            Escape character is '^]'.

            220 localhost.localdomain ESMTP Sendmail 8.13.1/8.13.1; Sat, 17 Mar 2007 12:54:47 +0800

            ehlo localhost

            250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you

            250-ENHANCEDSTATUSCODES

            250-PIPELINING

            250-8BITMIME

            250-SIZE

            250-DSN

            250-ETRN

            250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN ---認(rèn)證應(yīng)該生效

            250-DELIVERBY

            250 HELP

            quit

            221 2.0.0 localhost.localdomain closing connection

            Connection closed by foreign host.

            7,安裝郵局服務(wù)

            [root@localhost RPMS]# rpm -ivh dovecot-0.99.11-2.EL4.1.i386.rpm --aid

            warning: dovecot-0.99.11-2.EL4.1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e

            Preparing... ########################################### [100%]

            1:perl-DBI ########################################### [ 20%]

            2:postgresql-libs ########################################### [ 40%]

            3:mysql ########################################### [ 60%]

            4:dovecot ########################################### [ 80%]

            5:perl-DBD-MySQL ########################################### [100%]

            把1-5這些軟件都安裝完畢才可以繼續(xù)下去呢,,,,

            [root@localhost /]# vi /etc/dovecot.conf在protocols = imap imaps 后添加pop3 pop3s

            啟動(dòng)dovecot服務(wù)

            [root@localhost /]# service dovecot restart

            Stopping Dovecot Imap: [FAILED]

            Starting Dovecot Imap: [ OK ]

            [root@localhost /]# chkconfig --level 35 dovecot on


            上一頁(yè) 1 2 下一頁(yè)

            評(píng)論


            相關(guān)推薦

            技術(shù)專區(qū)

            關(guān)閉