[svlug] Sendmail - Aliases and virtual domains

Marc MERLIN marc_merlin at magic.metawire.com
Fri Nov 20 14:35:03 PST 1998


On 20 Nov 1998 13:03:26 -0800, Hans Cathcart <hans at itavera.com> wrote:
>Thanks Robert,
>I figured it out, reading pages 274 of the Sendmail book.

Jeez...

>I hate m4... it totally screws me up. So I just use existing .cf files and

It really is _much_ easier, especially if you have a good template.

# Written by Marc Merlin (marcsoft at magic.metawire.com) 09/04/98
divert(-1)
#
# Use m4 redhat.mc > sendmail.cf to generate file
#
# Remember that order is important in this file.
#

divert(0)
include(`m4/cf.m4')dnl
OSTYPE(linux)dnl
divert(-1)


# Features
divert(0)
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(always_add_domain)dnl
FEATURE(redirect)dnl
FEATURE(local_procmail)dnl
FEATURE(`domaintable',`btree /etc/mail/domaintable')dnl
FEATURE(`genericstable',`btree /etc/mail/genericstable')dnl
FEATURE(`mailertable',`btree /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`btree /etc/mail/virtusertable')dnl
divert(-1)


# Linux/installation specific options
divert(0)
define(`LOCAL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`LOCAL_MAILER_FLAGS', `ShPfn')dnl
define(`LOCAL_MAILER_ARGS', `procmail -a $h -d $u')dnl
define(`STATUS_FILE', `/var/log/sendmail.st')dnl
define(`confCT_FILE', `/etc/mail/sendmail.ct')dnl
define(`confCW_FILE', `/etc/mail/sendmail.cw')dnl
define(`confSTATUS_FILE',`/var/run/sendmail.st')dnl
define(`ALIAS_FILE',`/etc/mail/aliases')dnl
define(`HELP_FILE',`/etc/mail/sendmail.hf')dnl
define(`confDEF_USER_ID', `mail:mail')dnl
divert(-1)


# Spam handling
# See http://www.sendmail.org/m4/anti-spam.html
divert(0)
dnl #define(`_IP_LOOKUP_',1)dnl
dnl #define(`_DNSVALID_',1)dnl
dnl #FEATURE(relay_hosts_only)
dnl #FEATURE(relay_entire_domain)
dnl #FEATURE(relay_based_on_MX)
dnl #FEATURE(accept_unresolvable_domains)
dnl #FEATURE(accept_unqualified_senders)
FEATURE(`access_db', `btree /etc/mail/access')dnl
FEATURE(blacklist_recipients)dnl
define(`confCR_FILE', `/etc/mail/relay-domains')dnl
FEATURE(rbl)
divert(-1)


# Masquerading
dnl #divert(0)
dnl #MASQUERADE_AS(magic.metawire.com)dnl
dnl #MASQUERADE_DOMAIN_FILE(`/etc/mail/masquerade-domains')dnl
dnl #dnl #FEATURE(limited_masquerade)dnl
dnl #FEATURE(masquerade_envelope)dnl
dnl #FEATURE(masquerade_entire_domain)dnl
dnl #EXPOSED_USER(`MAILER-DAEMON')dnl
dnl #EXPOSED_USER(`postmaster')dnl
dnl #EXPOSED_USER(`uucp')dnl
dnl #EXPOSED_USER(`news')dnl
divert(-1)


# Misc Options
divert(0)
define(`UUCP_MAILER_MAX', `10000000')dnl
define(`confMATCH_GECOS', `True')dnl
define(`confPRIVACY_FLAGS', `authwarnings, needmailhelo, needexpnhelo, needvrfyh
elo')dnl
define(`confCOPY_ERRORS_TO', `postmaster')dnl
define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z/Marc v3.1 (09/04/98); $b')dnl
define(`confQUEUE_LA', 8)dnl
define(`confREFUSE_LA', 12)dnl
define(`confSAFE_QUEUE', `True')dnl
define(`confSMTP_MAILER', `smtp8')dnl
define(`confTO_QUEUEWARN', `12h')dnl
define(`confTO_QUEUERETURN', `10d')dnl
define(`confAUTO_REBUILD', `True')dnl
define(`confSEPARATE_PROC', `True')dnl
divert(-1)

# Add anti-mime buffer overflow protection (for MUAs)
divert(0)
LOCAL_CONFIG
O MaxMimeHeaderLength=256/128
divert(-1)

# Mailers (they should be last so that their options are taken into account
divert(0)
MAILER(procmail)dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(uucp)dnl
divert(-1)

-- 
"Microsoft is to software what McDonalds is to gourmet cooking"
 
Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc at merlins.org for PGP key and other contact information

--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.



More information about the svlug mailing list