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參數加到郵件的訊息頭中