1divert(-1)dnl 2dnl # 3dnl # This is the sendmail macro config file for m4. If you make changes to 4dnl # /etc/mail/sendmail.mc, you will need to regenerate the 5dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is 6dnl # installed and then performing a 7dnl # 8dnl # make -C /etc/mail 9dnl # 10include(`../m4/cf.m4')dnl 11VERSIONID(`setup for Red Hat Linux')dnl 12OSTYPE(`linux')dnl 13dnl # 14dnl # Uncomment and edit the following line if your outgoing mail needs to 15dnl # be sent out through an external mail server: 16dnl # 17define(`SMART_HOST', ffx:morannon.fido.de) 18dnl # 19define(`confCF_VERSION', `redhat9-orodruin-1.3') 20define(`confMIME_FORMAT_ERRORS', `False') 21define(`confDEF_USER_ID',``8:12'')dnl 22define(`confTRUSTED_USER', `smmsp')dnl 23dnl define(`confAUTO_REBUILD')dnl 24define(`confTO_CONNECT', `1m')dnl 25define(`confDONT_PROBE_INTERFACES',true) 26define(`confTRY_NULL_MX_LIST',true)dnl 27define(`confDONT_PROBE_INTERFACES',true)dnl 28define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl 29define(`ALIAS_FILE', `/etc/aliases')dnl 30dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl 31define(`UUCP_MAILER_MAX', `2000000')dnl 32define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl 33define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl 34define(`confAUTH_OPTIONS', `A')dnl 35dnl # 36dnl # The following allows relaying if the user authenticates, and disallows 37dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links 38dnl # 39dnl define(`confAUTH_OPTIONS', `A p')dnl 40dnl # 41dnl # PLAIN is the preferred plaintext authentication method and used by 42dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do 43dnl # use LOGIN. Other mechanisms should be used if the connection is not 44dnl # guaranteed secure. 45dnl # 46TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl 47define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl 48dnl # 49dnl # Rudimentary information on creating certificates for sendmail TLS: 50dnl # make -C /usr/share/ssl/certs usage 51dnl # 52dnl define(`confCACERT_PATH',`/usr/share/ssl/certs') 53dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt') 54dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem') 55dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem') 56dnl # 57dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's 58dnl # slapd, which requires the file to be readble by group ldap 59dnl # 60dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl 61dnl # 62dnl define(`confTO_QUEUEWARN', `4h')dnl 63dnl define(`confTO_QUEUERETURN', `5d')dnl 64dnl define(`confQUEUE_LA', `12')dnl 65dnl define(`confREFUSE_LA', `18')dnl 66define(`confTO_IDENT', `0')dnl 67dnl FEATURE(delay_checks)dnl 68FEATURE(`no_default_msa',`dnl')dnl 69FEATURE(`smrsh',`/usr/sbin/smrsh')dnl 70FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl 71FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl 72FEATURE(redirect)dnl 73FEATURE(always_add_domain)dnl 74FEATURE(use_cw_file)dnl 75FEATURE(use_ct_file)dnl 76dnl # 77dnl # The -t option will retry delivery if e.g. the user runs over his quota. 78dnl # 79FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl 80FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl 81FEATURE(`blacklist_recipients')dnl 82EXPOSED_USER(`root')dnl 83 84dnl # DNS not always online 85FEATURE(nocanonify) 86define(`confDIRECT_SUBMISSION_MODIFIERS', `C') 87define(`confBIND_OPTS', `-DNSRCH -DEFNAMES') 88 89dnl # 90dnl # The following causes sendmail to only listen on the IPv4 loopback address 91dnl # 127.0.0.1 and not on any other network devices. Remove the loopback 92dnl # address restriction to accept email from the internet or intranet. 93dnl # 94dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl 95dnl # 96dnl # The following causes sendmail to additionally listen to port 587 for 97dnl # mail from MUAs that authenticate. Roaming users who can't reach their 98dnl # preferred sendmail daemon due to port 25 being blocked or redirected find 99dnl # this useful. 100dnl # 101dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl 102dnl # 103dnl # The following causes sendmail to additionally listen to port 465, but 104dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed 105dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't 106dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS 107dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps 108dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1. 109dnl # 110dnl # For this to work your OpenSSL certificates must be configured. 111dnl # 112dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl 113dnl # 114dnl # The following causes sendmail to additionally listen on the IPv6 loopback 115dnl # device. Remove the loopback address restriction listen to the network. 116dnl # 117dnl # NOTE: binding both IPv4 and IPv6 daemon to the same port requires 118dnl # a kernel patch 119dnl # 120dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl 121dnl # 122dnl # We strongly recommend not accepting unresolvable domains if you want to 123dnl # protect yourself from spam. However, the laptop and users on computers 124dnl # that do not have 24x7 DNS do need this. 125dnl # 126FEATURE(`accept_unresolvable_domains')dnl 127dnl # 128dnl FEATURE(`relay_based_on_MX')dnl 129dnl # 130dnl # Also accept email sent to "localhost.localdomain" as local email. 131dnl # 132LOCAL_DOMAIN(`localhost.localdomain')dnl 133dnl # 134dnl # The following example makes mail from this host and any additional 135dnl # specified domains appear to be sent from mydomain.com 136dnl # 137MASQUERADE_AS(`m-j-s.net') 138dnl # 139dnl # masquerade not just the headers, but the envelope as well 140dnl # 141FEATURE(masquerade_envelope) 142dnl # 143dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well 144dnl # 145FEATURE(masquerade_entire_domain) 146dnl # 147MASQUERADE_DOMAIN(localhost) 148MASQUERADE_DOMAIN(localhost.localdomain) 149MASQUERADE_DOMAIN(m-j-s.net) 150MASQUERADE_DOMAIN(mjsb.net) 151MASQUERADE_DOMAIN(orodruin.mjsb.net) 152 153dnl # For masquerading 154FEATURE(`genericstable') 155FEATURE(`generics_entire_domain') 156GENERICS_DOMAIN(mjsb.net) 157 158 159MAILER(smtp) 160MAILER(procmail) 161MAILER(ftn) 162MAILER(ffx) 163 164 165LOCAL_CONFIG 166# More trusted users 167Tnews 168Tmajordomo 169Tmj 170Tsb 171