Draco - Sendmail config files


/etc/sendmail/spade.mc

This is the 'm4' source file for my sendmail.cf configuration file.

I keep all sendmail config files in /etc/sendmail, with symbolic links where other software requires a file in another location. For instance, sendmail expects to see /etc/sendmail.cf, which is a symlink to /etc/sendmail/sendmail.cf.

include(`/usr/local/src/sendmail-8.8.7/cf/m4/cf.m4')
VERSIONID(`@(#)spade.mc')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
define(`confDOMAIN_NAME',`spade.com')dnl
define(`confTRUSTED_USERS',`majordom')dnl
define(`confCW_FILE',`/etc/sendmail/sendmail.cw')dnl
define(`ALIAS_FILE', `/etc/sendmail/aliases')dnl
MASQUERADE_AS(spade.com)dnl
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(always_add_domain)dnl
FEATURE(`virtusertable',`dbm -o /etc/sendmail/virtusertable')dnl
FEATURE(`genericstable',`dbm -o /etc/sendmail/genericstable')dnl
MAILER(local)dnl
MAILER(smtp)dnl


/etc/sendmail/aliases

The alias file contains the normal set of standard and personal aliases, and, as a helper for fetchmail, any mailing list that any of my users is subscribed to gets an aliase to the list of subscribers.

# Put any sendmail aliases in here
# Standard aliases...
postmaster: root
# Personal aliases...
The_Nice_guy: spade
bspade: spade
# Any subscribed mailing lists, with their subscribers...
ex_adac: spade, ada
linux-diald: spade
pilot-unix: spade
svlug: spade


/etc/sendmail/virtusertable

@spade.com	spade
spade@spade.com	spade
ada@spade.com	ada


/etc/sendmail/genericstable

ben	spade@spade.com


Index, Back On to Fetchmail
Copyright ©, 1997, Ben Spade. Permission is given to copy or link to this document, as long as this notice remains intact.