成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Sendmail 配置文件(二)

運維 系統運維
Sendmail是最重要的郵件傳輸代理程序。也是在Unix環境下使用最廣泛的實現郵件發送/接受的郵件傳輸代理程序。本文就帶大家看看Sendmail的配置文件。

Sendmail 配置文件如下:

  FEATURE(`no_default_msa',`dnl')dnl (允許MSA被DAMEMON_OPTION覆蓋的默認設置)

  FEATURE(`smrsh',`/usr/sbin/smrsh')dnl (設置郵件發送器smrsh的存放路徑)

  FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl (設置郵件發送器數據庫的存放路徑)

  FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl (設置虛擬郵件域數據庫的存放路徑)

  FEATURE(redirect)dnl (支持.redirect虛擬域)

  FEATURE(always_add_domain)dnl (增加主機名到所有本地發送的郵件)

  FEATURE(use_cw_file)dnl (裝載/etc/mail/local-host-names文件中定義的主機名)

  FEATURE(use_ct_file)dnl (裝載可信任用戶名單)

  dnl #

  dnl # The following limits the number of processes sendmail can fork to accept

  dnl # incoming messages or process its message queues to 12.) sendmail refuses

  dnl # to accept connections once it has reached its quota of child processes.

  dnl #

  dnl define(`confMAX_DAEMON_CHILDREN', 12)dnl

  dnl #

  dnl # Limits the number of new connections per second. This caps the overhead

  dnl # incurred due to forking new sendmail processes. May be useful against

  dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address

  dnl # limit would be useful but is not available as an option at this writing.)

  dnl #

  dnl define(`confCONNECTION_RATE_THROTTLE', 3)dnl

  dnl #

  dnl # The -t option will retry delivery if e.g. the user runs over his quota.

  dnl #

  FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl (使用procmail作為本地郵件發送者)

  FEATURE(`access_db',`hash -T -o /etc/mail/access.db')dnl (從/etc/mail/access.db裝載可以中繼的域)

  FEATURE(`blacklist_recipients')dnl (根據訪問數據庫的值過濾外來郵件)

  EXPOSED_USER(`root')dnl (禁止偽裝發送者地址中出現root用戶)

  dnl #

  dnl # The following causes sendmail to only listen on the IPv4 loopback address

  dnl # 127.0.0.1 and not on any other network devices. Remove the loopback

  dnl # address restriction to accept email from the internet or intranet.

  dnl #

  DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl (指定sendmail作為MTA運行時的參數)

  dnl #

  dnl # The following causes sendmail to additionally listen to port 587 for

  dnl # mail from MUAs that authenticate. Roaming users who can't reach their

  dnl # preferred sendmail daemon due to port 25 being blocked or redirected find

  dnl # this useful.

  dnl #

  dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl

  dnl #

  dnl # The following causes sendmail to additionally listen to port 465, but

  dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed

  dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't

  dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS

  dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps

  dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.

  dnl #

  dnl # For this to work your OpenSSL certificates must be configured.

  dnl #

  dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl

  dnl #

  dnl # The following causes sendmail to additionally listen on the IPv6 loopback

  dnl # device. Remove the loopback address restriction listen to the network.

  dnl #

  dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl

  dnl #

  dnl # enable both ipv6 and ipv4 in sendmail:

  dnl #

  dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')

  dnl #

  dnl # We strongly recommend not accepting unresolvable domains if you want to

  dnl # protect yourself from spam. However, the laptop and users on computers

  dnl # that do not have 24x7 DNS do need this.

  dnl #

#p#

  FEATURE(`accept_unresolvable_domains')dnl 設置可以接受不能由NDS主機所發送的郵件

  dnl #

  dnl FEATURE(`relay_based_on_MX')dnl

  dnl #

  dnl # Also accept email sent to "localhost.localdomain" as local email.

  dnl #

  LOCAL_DOMAIN(`localhost.localdomain')dnl 設置本地域

  dnl #

  dnl # The following example makes mail from this host and any additional

  dnl # specified domains appear to be sent from mydomain.com

  dnl #

  dnl MASQUERADE_AS(`mydomain.com')dnl

  dnl #

  dnl # masquerade not just the headers, but the envelope as well

  dnl #

  dnl FEATURE(masquerade_envelope)dnl

  dnl #

  dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well

  dnl #

  dnl FEATURE(masquerade_entire_domain)dnl

  dnl #

  dnl MASQUERADE_DOMAIN(localhost)dnl

  dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl

  dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl

  dnl MASQUERADE_DOMAIN(mydomain.lan)dnl

  MAILER(smtp)dnl (指定sendmail所有SMTP發送者,包括smtp,esmtp,smtp8,和replay)

  MAILER(procmail)dnl (指定使用procmail作為本地郵件的發送者)

看了上面的sendmail配置文件,怎么樣,對你有幫助吧,快點跟朋友分享吧!

【編輯推薦】

責任編輯:趙鵬 來源: 網絡轉載
相關推薦

2011-01-21 15:08:45

Sendmail

2011-01-19 10:48:38

sendmail配置

2010-06-03 13:44:35

Sendmail配置

2011-01-21 09:32:57

LinuxSendmail

2011-01-13 16:27:26

Linux配置文件

2011-01-21 15:40:56

Sendmail

2011-01-19 14:00:21

2011-01-21 10:58:57

sendmail流程

2010-12-28 16:35:32

Outlook 配置文

2011-01-19 10:57:54

sendmail配置

2010-05-25 15:43:07

Sendmail配置

2010-06-03 13:21:46

Sendmail 配置

2011-01-18 14:24:03

Linuxsendmail配置

2010-12-27 14:59:31

Outlook 配置文

2009-09-22 10:23:15

Hibernate配置

2010-05-05 16:14:09

Unix管理

2010-08-05 14:36:07

NFS服務

2009-06-17 14:10:30

Spring配置文件

2011-02-25 16:39:34

proftpd配置文件

2011-03-25 17:13:37

Nagios配置文件
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 青青草这里只有精品 | 福利在线观看 | 亚洲人成人一区二区在线观看 | 国产免费看 | www.中文字幕av| 国产精品久久久久久吹潮 | 一区中文 | 久久精品色视频 | 国产免费一区 | 色999视频 | 草草影院ccyy| 最近最新中文字幕 | 做a网站| 久草热8精品视频在线观看 午夜伦4480yy私人影院 | 亚洲小说图片 | 日韩欧美国产一区二区三区 | 午夜二区 | 日本不卡一区二区三区在线观看 | 中文字幕国产视频 | 色资源av| www.久| 99免费看| 爱操影视| 欧美一区二区成人 | 最新日韩av| 99热都是精品 | 人人爽人人爽 | 精品国产欧美日韩不卡在线观看 | 免费视频99 | 日本一区二区不卡视频 | 99日韩| 国产大片黄色 | 亚洲免费精品 | 99伊人网| 一级黄色绿像片 | 国产三级 | 伊人伊人 | 成人黄色电影在线观看 | 午夜视频在线观看一区二区 | 中国美女撒尿txxxxx视频 | 欧美日韩一卡二卡 |