SENDMAIL   [一、]

            SENDMAIL

  [加密  認證  電子郵件服務器!]

一種強大的郵件傳輸代理程序,一般電子郵件的流程:用戶代理  傳輸和投遞代理

 

 

 

 

實驗步驟:

 

使用rpm或使用yum平臺安裝sendmail-8.13.8-2.el5及一些相關的相關程序和工具!(程序----sendmail-cf、工具---sendmail-docm4)

rpm  -ivh  sendmail-8.13.8-2.el5

rpm  -ivh  sendmail-cf-8.13.8-2.el5

rpm  -ivh  sendmail-doc-8.13.8-2.el5

rpm  -ivh  m4-1.4.5-3.el5.1

 

 

-----安裝之後主要的文件都在  /etc/mail目錄下;

[1]、其中sendmail的主配置文件是:  sendmail.mc然後修改配置文檔如下:

 

 

[2]、還有sendmail的數據庫文件access

[3]、修改本地計算機的別名;

   /etc/mail/目錄下中的  local-host-names文件中;

[4]、重啓sendmail服務;

[5]、創建幾個用戶;

 

[6]DNS服務器的配置

-----------(1)bind-chroot-9.3.6-4.P1.el5

-----------(2)bind-9.3.6-4.P1.el5

-----------(3)caching-nameserver-9.3.6-4.P1.el5

 

在目錄 /var/named/chroot/etc/  下:

cp   -p  named-localhostnamed-conf  named.conf

 

[配置文件:/var/named/chroot/etc/named.conf]

 

修改區域聲明文件:[named.rfc1912.zones]

生成數據庫

 

修改主機名:

vim  /etc/sysconfig/network

 

修改hosts文件:

vim  /etc/hosts

[7]、重啓系統在進行下面的操作!

 

    sendmail驗證服務之前安裝-------dovecot

 

[8]、配置證書服務!

[root@mail CA]# mkdir crl certs newcerts

[root@mail CA]# touch serical index.txt

[root@mail CA]# echo "01" >serical

 

[root@mail CA]#  openssl req -x509 -new -key private/cakey.pem -out cacert.pem -days 3650

You are about to be asked to enter information that will be incorporated

into your certificate request.

What you are about to enter is what is called a Distinguished Name or a DN.

There are quite a few fields but you can leave some blank

For some fields there will be a default value,

If you enter '.', the field will be left blank.

-----

Country Name (2 letter code) [GB]:CN

State or Province Name (full name) [Berkshire]:henan

Locality Name (eg, city) [Newbury]:zhengzhou

Organization Name (eg, company) [My Company Ltd]:zzu

Organizational Unit Name (eg, section) []:tec

Common Name (eg, your name or your server's hostname) []:hanyu

 

[root@mail mail]# mkdir /etc/mail/certs

[root@mail mail]# cd /etc/mail/certs/

[root@mail certs]# openssl genrsa 1024 >sendmail.key

[root@mail certs]# openssl req -new -key sendmail.key -out sendmail.csr

[root@mail certs]# openssl ca -in sendmail.csr -out sendmail.cert

[root@mail certs]# cp /etc/pki/CA/cacert.pem  .

[root@mail mail]# vim /etc/mail/sendmail.mc

 

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