日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

Sendmail郵件服務(wù)器快速指(2)_Mail服務(wù)器教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!
二、工作環(huán)境

  本文假設(shè)用戶希望在園區(qū)網(wǎng)環(huán)境中架設(shè)一個電子郵件服務(wù)器,為本單位用戶提供郵件服務(wù)。該服務(wù)器擁有一個合法的IP地址202.99.11.200和一個合法的域名mail.linuxaid.com.cn,并且DNS的MX記錄也指向該域名(注:這里示例域名和IP地址均為偽造域名和地址)。為了滿足域名需求,DNS的域數(shù)據(jù)文件應(yīng)該包含以下內(nèi)容:

  IN MX 10 mail
  mail IN A 202.99.11.200

  試驗環(huán)境為:redhat6.2、sendmail.8.11.4、qpopper4.0.3。

  三、軟件下載

  分別從以下地址下載sendmail和qpopper:

  sendmail.8.11.4.tar.gz http://www.sendmail.org/current-release.html
  qpopper4.0.3.tar.gz http://www.eudora.com/qpopper_general/

  四、Sendmail的配置和安裝

  Sendmail是目前使用最為廣泛的一種E-Mail服務(wù)器。當前其最新的穩(wěn)定版本為8.11.4。下載得到tar.gz格式的壓縮包以后,將其存放在/usr/src目錄下。

  解壓軟件包:

  [root@email src]# tar xvfz sendmail.8.11.4.tar.gz
  [root@email src]# cd sendmail-8.11.4

  編譯安裝:

  [root@email sendmail-8.11.4]# cd sendmail
  [root@email sendmail]# sh Build

  生成配置文件:

  [root@email sendmail]#cd /usr/src/sendmail-8.11.4/cf/cf/

  一般該目錄下應(yīng)該有config.mc的文件,如果沒有則創(chuàng)建新文件config.mc,內(nèi)容為:

  divert(-1)
  dnl This is the macro config file used to generate the /etc/sendmail.cf
  dnl file. If you modify thei file you will have to regenerate the
  dnl /etc/sendmail.cf by running this macro config through the m4
  dnl preprocessor:
  dnl m4 /etc/sendmail.mc > /etc/sendmail.cf
  dnl You will need to have the Sendmail-cf package installed for this to work.
  include(`/usr/src/sendmail-8.11.4/cf')
  define(`confDEF_USER_ID',`8:12')
  OSTYPE(`linux')
  undefine(`UUCP_RELAY')
  undefine(`BITNET_RELAY')
  define(`confAUTO_REBUILD')
  define(`confTO_CONNECT', `1m')
  define(`confTRY_NULL_MX_LIST',true)
  define(`confDONT_PROBE_INTERFACES',true)
  define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
  FEATURE(`smrsh',`/usr/sbin/smrsh')
  FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
  FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
  FEATURE(redirect)
  FEATURE(always_add_domain)
  FEATURE(use_cw_file)
  FEATURE(local_procmail)
  MAILER(smtp)
  MAILER(procmail)
  FEATURE(`access_db')
  FEATURE(`blacklist_recipients')
  dnl We strongly recommend to comment this one out if you want to protect
  dnl yourself from spam. However, the laptop and users on computers that do
  dnl not hav 24x7 DNS do need this.
  FEATURE(`accept_unresolvable_domains')
  dnl FEATURE(`relay_based_on_MX')

來源:網(wǎng)絡(luò)搜集//所屬分類:Mail服務(wù)器教程/更新時間:2011-12-08
相關(guān)Mail服務(wù)器教程