自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Sendmail 配置文件(一)

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

Sendmail 配置文件如下:

  /etc/mail/sendmail.mc

  dnl #

  dnl # This is the sendmail macro config file for m4. If you make changes to

  dnl # /etc/mail/sendmail.mc, you will need to regenerate the

  dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is

  dnl # installed and then performing a

  dnl #

  dnl # make -C /etc/mail

  dnl #

  include(`/usr/share/sendmail-cf/m4/cf.m4')dnl (將sendmail-cf/m4/cf.m4包含進(jìn)來(lái))

  VERSIONID(`setup for Red Hat Linux')dnl (定義版本信息)

  OSTYPE(`linux')dnl (選擇包含操作系統(tǒng)指定屬性的文件)

  dnl #

  dnl # default logging level is 9, you might want to set it higher to

  dnl # debug the configuration

  dnl #

  dnl define(`confLOG_LEVEL', `9')dnl

  dnl #

  dnl # Uncomment and edit the following line if your outgoing mail needs to

  dnl # be sent out through an external mail server:

  dnl #

  dnl define(`SMART_HOST',`smtp.your.provider')

  dnl #

  define(`confDEF_USER_ID',``8:12'')dnl (指定使用的用戶ID為8,組ID為12)

  dnl define(`confAUTO_REBUILD')dnl

  define(`confTO_CONNECT', `1m')dnl (設(shè)置等待連接的最大時(shí)間為1分鐘)

  define(`confTRY_NULL_MX_LIST',true)dnl (若MX記錄指向本機(jī),則sendmail直接連接到遠(yuǎn)程主機(jī))

  define(`confDONT_PROBE_INTERFACES',true)dnl (sendmial不會(huì)自動(dòng)將服務(wù)器的網(wǎng)絡(luò)接口視為有效地址)

  define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl(設(shè)置procmail的存放路徑)

  define(`ALIAS_FILE', `/etc/aliases')dnl (設(shè)置郵件別名存放路徑)

  define(`STATUS_FILE', `/var/log/mail/statistics')dnl

  define(`UUCP_MAILER_MAX', `2000000')dnl (設(shè)置處理信息的最大限制為2M)

  define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl (設(shè)置用戶數(shù)據(jù)庫(kù)文件路徑)

  define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl (設(shè)置限制某些郵件命令的標(biāo)志)

  define(`confAUTH_OPTIONS', `A')dnl 僅在授權(quán)成功時(shí)。將AUTH參數(shù)加到郵件的消息頭中

#p#

  dnl #

  dnl # The following allows relaying if the user authenticates, and disallows

  dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links

  dnl #

  dnl define(`confAUTH_OPTIONS', `A p')dnl

  dnl #

  dnl # PLAIN is the preferred plaintext authentication method and used by

  dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do

  dnl # use LOGIN. Other mechanisms should be used if the connection is not

  dnl # guaranteed secure.

  dnl # Please remember that saslauthd needs to be running for AUTH.

  dnl #

  dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

  dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

  dnl #

  dnl # Rudimentary information on creating certificates for sendmail TLS:

  dnl # cd /usr/share/ssl/certs; make sendmail.pem

  dnl # Complete usage:

  dnl # make -C /usr/share/ssl/certs usage

  dnl #

  dnl define(`confCACERT_PATH',`/usr/share/ssl/certs')

  dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')

  dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')

  dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem')

  dnl #

  dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's

  dnl # slapd, which requires the file to be readble by group ldap

  dnl #

  dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl

  dnl #

  dnl define(`confTO_QUEUEWARN', `4h')dnl

  dnl define(`confTO_QUEUERETURN', `5d')dnl

  dnl define(`confQUEUE_LA', `12')dnl

  dnl define(`confREFUSE_LA', `18')dnl

  define(`confTO_IDENT', `0')dnl

  dnl FEATURE(delay_checks)dnl

一口氣看完sendmail的配置文件,那就不簡(jiǎn)單了,我會(huì)在后面文章給大家介紹下半部分。

【編輯推薦】

  1. 用sendmailanalyzer來(lái)監(jiān)控自己的Sendmail服務(wù)器
  2. Solaris 10下可以用Sendmail發(fā)送郵件
  3. 怎樣用Sendmail發(fā)送HTML格式的郵件
  4. Sendmail的安全篇之限制權(quán)限、文件修改
  5. Sendmail的安全篇之未授權(quán)人非法濫用
  6. Sendmail簡(jiǎn)單介紹
  7. 圖文并茂 講解Sendmail工作環(huán)境

 

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

2011-01-21 15:27:10

Sendmail

2011-01-19 10:48:38

sendmail配置

2010-06-03 13:44:35

Sendmail配置

2011-01-13 16:27:26

Linux配置文件

2011-01-19 14:00:21

2011-01-21 09:32:57

LinuxSendmail

2010-12-28 16:35:32

Outlook 配置文

2011-01-21 15:40:56

Sendmail

2010-12-27 14:59:31

Outlook 配置文

2011-01-19 10:57:54

sendmail配置

2011-03-25 17:13:37

Nagios配置文件

2010-08-05 14:36:07

NFS服務(wù)

2010-05-05 16:14:09

Unix管理

2009-09-22 10:23:15

Hibernate配置

2009-06-17 14:10:30

Spring配置文件

2011-02-25 16:39:34

proftpd配置文件

2011-04-01 16:30:49

Nagios

2011-03-28 15:52:16

Nagios配置文件

2011-03-03 09:14:38

PureFTPd

2009-07-09 15:55:18

WebWork配置文件
點(diǎn)贊
收藏

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