Blame SOURCES/sendmail-redhat.mc

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