Blame SOURCES/sendmail-redhat.mc

813923
divert(-1)dnl
813923
dnl #
813923
dnl # This is the sendmail macro config file for m4. If you make changes to
813923
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
813923
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
813923
dnl # installed and then performing a
813923
dnl #
813923
dnl #     /etc/mail/make
813923
dnl #
813923
include(`@@PATH@@/m4/cf.m4')dnl
813923
VERSIONID(`setup for linux')dnl
813923
OSTYPE(`linux')dnl
813923
dnl #
813923
dnl # Do not advertize sendmail version.
813923
dnl #
813923
dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl
813923
dnl #
813923
dnl # default logging level is 9, you might want to set it higher to
813923
dnl # debug the configuration
813923
dnl #
813923
dnl define(`confLOG_LEVEL', `9')dnl
813923
dnl #
813923
dnl # Uncomment and edit the following line if your outgoing mail needs to
813923
dnl # be sent out through an external mail server:
813923
dnl #
813923
dnl define(`SMART_HOST', `smtp.your.provider')dnl
813923
dnl #
813923
define(`confDEF_USER_ID', ``8:12'')dnl
813923
dnl define(`confAUTO_REBUILD')dnl
813923
define(`confTO_CONNECT', `1m')dnl
813923
define(`confTRY_NULL_MX_LIST', `True')dnl
813923
define(`confDONT_PROBE_INTERFACES', `True')dnl
813923
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
813923
define(`ALIAS_FILE', `/etc/aliases')dnl
813923
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
813923
define(`UUCP_MAILER_MAX', `2000000')dnl
813923
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
813923
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
813923
define(`confAUTH_OPTIONS', `A')dnl
813923
dnl #
813923
dnl # The following allows relaying if the user authenticates, and disallows
813923
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
813923
dnl #
813923
dnl define(`confAUTH_OPTIONS', `A p')dnl
813923
dnl #
813923
dnl # which realm to use in SASL database (sasldb2)
813923
dnl #
813923
define(`confAUTH_REALM', `mail')dnl
813923
dnl # 
813923
dnl # PLAIN is the preferred plaintext authentication method and used by
813923
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
813923
dnl # use LOGIN. Other mechanisms should be used if the connection is not
813923
dnl # guaranteed secure.
813923
dnl # Please remember that saslauthd needs to be running for AUTH. 
813923
dnl #
813923
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
813923
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
813923
dnl #
813923
dnl # Basic sendmail TLS configuration with self-signed certificate for
813923
dnl # inbound SMTP (and also opportunistic TLS for outbound SMTP).
813923
dnl #
813923
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
813923
define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
813923
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
813923
define(`confSERVER_KEY', `/etc/pki/tls/private/sendmail.key')dnl
813923
define(`confTLS_SRV_OPTIONS', `V')dnl
813923
dnl #
813923
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
813923
dnl # slapd, which requires the file to be readble by group ldap
813923
dnl #
813923
dnl define(`confDONT_BLAME_SENDMAIL', `groupreadablekeyfile')dnl
813923
dnl #
813923
dnl define(`confTO_QUEUEWARN', `4h')dnl
813923
dnl define(`confTO_QUEUERETURN', `5d')dnl
813923
dnl define(`confQUEUE_LA', `12')dnl
813923
dnl define(`confREFUSE_LA', `18')dnl
813923
define(`confTO_IDENT', `0')dnl
813923
dnl # If you're operating in a DSCP/RFC-4594 environment with QoS
813923
dnl define(`confINET_QOS', `AF11')dnl
813923
dnl FEATURE(delay_checks)dnl
813923
FEATURE(`no_default_msa', `dnl')dnl
813923
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
813923
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
813923
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
813923
FEATURE(redirect)dnl
813923
FEATURE(always_add_domain)dnl
813923
FEATURE(use_cw_file)dnl
813923
FEATURE(use_ct_file)dnl
813923
dnl #
813923
dnl # The following limits the number of processes sendmail can fork to accept 
813923
dnl # incoming messages or process its message queues to 20.) sendmail refuses 
813923
dnl # to accept connections once it has reached its quota of child processes.
813923
dnl #
813923
dnl define(`confMAX_DAEMON_CHILDREN', `20')dnl
813923
dnl #
813923
dnl # Limits the number of new connections per second. This caps the overhead 
813923
dnl # incurred due to forking new sendmail processes. May be useful against 
813923
dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address 
813923
dnl # limit would be useful but is not available as an option at this writing.)
813923
dnl #
813923
dnl define(`confCONNECTION_RATE_THROTTLE', `3')dnl
813923
dnl #
813923
dnl # The -t option will retry delivery if e.g. the user runs over his quota.
813923
dnl #
813923
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
813923
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
813923
FEATURE(`blacklist_recipients')dnl
813923
EXPOSED_USER(`root')dnl
813923
dnl #
813923
dnl # For using Cyrus-IMAPd as POP3/IMAP server through LMTP delivery uncomment
813923
dnl # the following 2 definitions and activate below in the MAILER section the
813923
dnl # cyrusv2 mailer.
813923
dnl #
813923
dnl define(`confLOCAL_MAILER', `cyrusv2')dnl
813923
dnl define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
813923
dnl #
813923
dnl # The following causes sendmail to only listen on the IPv4 loopback address
813923
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
813923
dnl # address restriction to accept email from the internet or intranet.
813923
dnl #
813923
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
813923
dnl #
813923
dnl # The following causes sendmail to additionally listen to port 587 for
813923
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
813923
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
813923
dnl # this useful.
813923
dnl #
813923
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
813923
dnl #
813923
dnl # The following causes sendmail to additionally listen to port 465, but
813923
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
813923
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
813923
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
813923
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
813923
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
813923
dnl #
813923
dnl # For this to work your OpenSSL certificates must be configured.
813923
dnl #
813923
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
813923
dnl #
813923
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
813923
dnl # device. Remove the loopback address restriction listen to the network.
813923
dnl #
813923
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
813923
dnl #
813923
dnl # enable both ipv6 and ipv4 in sendmail:
813923
dnl #
813923
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
813923
dnl #
813923
dnl # We strongly recommend not accepting unresolvable domains if you want to
813923
dnl # protect yourself from spam. However, the laptop and users on computers
813923
dnl # that do not have 24x7 DNS do need this.
813923
dnl #
813923
FEATURE(`accept_unresolvable_domains')dnl
813923
dnl #
813923
dnl FEATURE(`relay_based_on_MX')dnl
813923
dnl # 
813923
dnl # Also accept email sent to "localhost.localdomain" as local email.
813923
dnl # 
813923
LOCAL_DOMAIN(`localhost.localdomain')dnl
813923
dnl #
813923
dnl # The following example makes mail from this host and any additional
813923
dnl # specified domains appear to be sent from mydomain.com
813923
dnl #
813923
dnl MASQUERADE_AS(`mydomain.com')dnl
813923
dnl #
813923
dnl # masquerade not just the headers, but the envelope as well
813923
dnl #
813923
dnl FEATURE(masquerade_envelope)dnl
813923
dnl #
813923
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
813923
dnl #
813923
dnl FEATURE(masquerade_entire_domain)dnl
813923
dnl #
813923
dnl MASQUERADE_DOMAIN(localhost)dnl
813923
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
813923
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
813923
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
813923
MAILER(smtp)dnl
813923
MAILER(procmail)dnl
813923
dnl MAILER(cyrusv2)dnl