divert(-1) # #Here's what I did: # I use smrsh instead of /bin/sh as the "shell" invoked by sendmail # when (say) interpreting .forward files (security). # I weed out spam using RBL, DUL, and RSS. # The `delay checks' FEATURE ensures that the antispam checks # are done at the check_rcpt stage. More information about the - alleged- # spam (eg, the intended recipient) are logged this way. # I also consult my own access database, /etc/mail/access (for various # purposes). # I disable expn (security). # Finally, a very simple ruleset to reject obviously munged # MessageID's (spam). divert(0)dnl VERSIONID(`@(#)mynext.mc Jacques Distler 4/10/2000') OSTYPE(nextstep)dnl DOMAIN(generic)dnl FEATURE(nouucp,`reject')dnl FEATURE(smrsh, /usr/etc/smrsh)dnl FEATURE(access_db, dbm MAIL_SETTINGS_DIR`access')dnl FEATURE(dnsbl,`blackholes.mail-abuse.org',`Mail from $&{client_addr} " rejected; see http://www.mail-abuse.org/rbl/"')dnl FEATURE(dnsbl,`relays.mail-abuse.org',`Mail from open relay $&{client_addr} " rejected; see http://www.mail-abuse.org/rss/"')dnl FEATURE(dnsbl,`dialups.mail-abuse.org',`Mail from dialup IP $&{client_addr} " rejected; see http://www.mail-abuse.org/dul/enduser.htm"')dnl FEATURE(`delay_checks')dnl define(`confPRIVACY_FLAGS', `noexpn')dnl define(`DATABASE_MAP_TYPE', `dbm')dnl MAILER(local)dnl MAILER(smtp)dnl LOCAL_RULESETS HMessage-Id: $>CheckMessageId SCheckMessageId R< $+ @ $+ > $@ OK R$* $#error $: 553 Header Error