< Previous Page Return to Title Page Next Page >

A sample .mc File

divert(-1)
# Comments written like this can be dangerous
divert(0)
dnl This is a safer way to write a comment in a .mc file.
VERSIONID(`$Id$')dnl
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
MASQUERADE_AS(`foobar.com')dnl
FEATURE(always_add_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(allmasquerade)dnl
FEATURE(`local_procmail')dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(dnsbl,`blackholes.mail-abuse.org',`RBLed! see http://www.mail-abuse.org/rbl/')dnl
FEATURE(dnsbl,`dialups.mail-abuse.org',`Dialup! see http://www.mail-abuse.org/dul/')dnl
FEATURE(dnsbl,`relays.mail-abuse.org',`Open relay! See http://www.mail-abuse.org/rss/')dnl
FEATURE(dnsbl,`inputs.ordb.org',`Open relay! See http://www.ordb.org/')dnl
MAILER(local)dnl
MAILER(smtp)dnl
define(`confSMTP_LOGIN_MSG',`$j server ready at $b')dnl
define(`confREFUSE_LA',8)dnl
define(`confQUEUE_LA',6)dnl
define(`confCONNECTION_RATE_THROTTLE',3)dnl
define(`confCW_FILE', `-o /etc/sendmail.cw')dnl
define(`confPRIVACY_FLAGS',`goaway')dnl
define(`confTO_QUEUERETURN',`5d')dnl
define(`confMAX_HEADERS_LENGTH',16384)dnl
define(`confMAX_MESSAGE_SIZE',2097152)dnl
define(`confMAX_RCPTS_PER_MESSAGE,25)dnl