- 论坛徽章:
- 0
|
配置文件中的行 移至
其他 divert(-1)dnl
其他 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
其他 VERSIONID(`setup for Red Hat Linux')dnl
操作系统类型 OSTYPE(`linux')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 #
定义 define(`')
其他 dnl #
定义 define(`confDEF_USER_ID',``8:12'')dnl
其他 dnl define(`confAUTO_REBUILD')dnl
定义 define(`confTO_CONNECT', `1m')dnl
定义 define(`confTRY_NULL_MX_LIST',true)dnl
定义 define(`confDONT_PROBE_INTERFACES',true)dnl
定义 define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
定义 define(`ALIAS_FILE', `/etc/aliases')dnl
其他 dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
定义 define(`UUCP_MAILER_MAX', `2000000')dnl
未定义 undefine(`confUSERDB_SPEC')
定义 define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
定义 define(`confAUTH_OPTIONS', `A')dnl
其他 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 #
其他 TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
定义 define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
其他 dnl #
其他 dnl # Rudimentary information on creating certificates for sendmail TLS:
其他 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 #
定义 define(`confTO_QUEUEWARN', `2h')dnl
定义 define(`confTO_QUEUERETURN', `4h')dnl
其他 dnl define(`confQUEUE_LA', `12')dnl
其他 dnl define(`confREFUSE_LA', `18')dnl
定义 define(`confTO_IDENT', `0')dnl
其他 dnl FEATURE(delay_checks)dnl
功能 FEATURE(`no_default_msa',`dnl')dnl
功能 FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
功能 FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
功能 FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
功能 FEATURE(redirect)dnl
功能 FEATURE(always_add_domain)dnl
功能 FEATURE(use_cw_file)dnl
功能 FEATURE(use_ct_file)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
功能 FEATURE(`access_db',`hash -T<TMPF>; -o /etc/mail/access.db')dnl
功能 FEATURE(`blacklist_recipients')dnl
其他 EXPOSED_USER(`root')dnl
其他 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=0.0.0.0, Name=MTA')dnl
其他 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 # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
其他 dnl # a kernel patch
其他 dnl #
其他 dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
其他 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 #
功能 FEATURE(`accept_unresolvable_domains')dnl
其他 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
定义 define(`confMAX_MESSAGE_SIZE',20000000)
邮件程序 MAILER(smtp)dnl
邮件程序 MAILER(procmail)dnl
定义 define(`confTRUSTED_USER',`smmsp') |
|