Simple Mail Example

This is a simple mail server configuration. The machine is threering.clowns.org, but it is the mail server for clowns.org. In addition, is acts as a mail server for three domains and allows relay for a domain that people use for POP access.

divert(0)
VERSIONID(`@(#)threering.clowns.org.mc 8.10 (Berkeley)5/19/1998')

OSTYPE(`linux')


DOMAIN(`generic')


FEATURE(dnsbl)


FEATURE(`virtusertable',`/etc/mail/virtusertable');


FEATURE(`genericstable',`/etc/mail/genericstable');


GENERICS_DOMAIN_FILE(`/etc/mail/sendmail.cw');


MASQUERADE_AS(`clowns.org')


FEATURE(masquerade_envelope)


MAILER(local) MAILER(smtp)



The /etc/mail/relay-domains File

This file contains the incoming mail domains that need to be relayed to locally hosted domains.

bigtop.org
retired-clowns.org
circus.com
bigisp.com



The /etc/mail/sendmail.cw File

This file contains the local mail domains that are hosted by this host. to locally hosted domains.

bigtop.org
retired-clowns.org
circus.com



The /etc/mail/genericstable File

This file contains the local users that need to be rewritten when sent. Only this file controls the rewriting of both domain names and user names.

oldbozo bozo@retired-clowns.org
ptbarnum  owner@circus.com
bailey  bossman@bigtop.com
patriciap tickets@bigtop.com



The /etc/mail/virtusertable File

This file controls the conversion of incoming addresses to local users. Also, it allows the opportunity to handle some multiplexing of addresses and to handle address changes in a more friendly manner.

@retired-clowns.org       oldbozo
owner@circus.com          ptsecretary
bossman@bigtop.com        baileysecretary
tickets@bigtop.com        patriciap
clownapp@clowns.org       bozo
selzerwater@clowns.org    winkydinky@bigtop.com
bignose@clowns.org        error:User has moved



The /etc/mail/aliases File

The aliases file can be used to set up mailing lists and to perform some of the functions that are performed by the virtusertable.

help: sweetieface
webmaster: admin,ringmaster
clowns-list: :include:/usr/local/lists/allclowns
stooges: larry,moe,curly



The /etc/mail/access File

The access file is used to limit access to the sendmail capabilities. In this case, there are some domains that we don't want to accept mail from as well as some specific users.

publishersclearinghouse.com   DISCARD
bigbird@sesamestreet.com      REJECT
bigtop.org                    RELAY
retired-clowns.org            RELAY
circus.com                    RELAY
bigisp.com                    RELAY