Sendmail 設定檔(一)(1)

來源:互聯網
上載者:User

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包含進來)

VERSIONID(`setup for Red Hat Linux')dnl (定義版本資訊)

OSTYPE(`linux')dnl (選擇包含作業系統指定屬性的檔案)

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 (設定等待串連的最大時間為1分鐘)

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

define(`confDONT_PROBE_INTERFACES',true)dnl (sendmial不會自動將伺服器的網路介面視為有效地址)

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

define(`ALIAS_FILE', `/etc/aliases')dnl (設定郵件暱稱存放路徑)

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

define(`UUCP_MAILER_MAX', `2000000')dnl (設定處理資訊的最大限制為2M)

define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl (設定使用者資料庫檔案路徑)

define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl (設定限制某些郵件命令的標誌)

define(`confAUTH_OPTIONS', `A')dnl 僅在授權成功時。將AUTH參數加到郵件的訊息頭中


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.