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

Sendmail 配置文件(二)

運維 系統(tǒng)運維
Sendmail是最重要的郵件傳輸代理程序。也是在Unix環(huán)境下使用最廣泛的實現(xiàn)郵件發(fā)送/接受的郵件傳輸代理程序。本文就帶大家看看Sendmail的配置文件。

Sendmail 配置文件如下:

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

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

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

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

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

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

  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作為本地郵件發(fā)送者)

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

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

  EXPOSED_USER(`root')dnl (禁止偽裝發(fā)送者地址中出現(xiàn)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運行時的參數(shù))

  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 設(shè)置可以接受不能由NDS主機所發(fā)送的郵件

  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 設(shè)置本地域

  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發(fā)送者,包括smtp,esmtp,smtp8,和replay)

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

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

【編輯推薦】

責任編輯:趙鵬 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

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-21 15:40:56

Sendmail

2011-01-19 14:00:21

2011-01-13 16:27:26

Linux配置文件

2011-01-21 10:58:57

sendmail流程

2011-01-19 10:57:54

sendmail配置

2010-12-28 16:35:32

Outlook 配置文

2010-12-27 14:59:31

Outlook 配置文

2010-05-25 15:43:07

Sendmail配置

2010-06-03 13:21:46

Sendmail 配置

2011-01-18 14:24:03

Linuxsendmail配置

2010-06-03 13:56:54

Sendmail 配置

2010-06-07 10:01:26

Linux sendm

2011-01-18 16:23:23

2010-06-07 10:41:25

2009-07-09 15:55:18

WebWork配置文件

2011-03-28 09:07:26

Nagios配置文件
點贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 日韩小视频在线 | 九九九国产 | 国产一区二区影院 | 91久久国产综合久久 | 中文字幕电影在线观看 | 久久99精品久久久久子伦 | 中文一区二区视频 | xxxxxx国产| 国产精品一区二区三区四区 | 亚洲国产成人精 | 99久久成人 | 亚洲欧美精品国产一级在线 | 天天影视亚洲综合网 | 国产一区二区三区四区五区加勒比 | 91干b| 成人综合视频在线 | 欧美日韩在线免费观看 | 亚洲中国字幕 | 成人一区二区三区在线 | 色婷婷av99xx | 一区二区三区在线播放 | 中文字幕在线中文 | 国产又色又爽又黄又免费 | 久久国产综合 | 91爱爱·com | 国产精品国产精品国产专区不片 | 一区二区精品视频 | 亚洲国产精品网站 | 精品国产欧美一区二区三区不卡 | 国产精品久久久久久久午夜片 | 精品亚洲一区二区三区四区五区高 | 超碰伊人久久 | 欧美女优在线观看 | 国产精品精品 | 久久国产成人午夜av影院武则天 | 国产视频久久 | 欧美v在线 | 日本五月婷婷 | 国产精品久久久久久久午夜 | 一区福利视频 | 久久久久国产一区二区 |