Jan 131999
divert(-1)
#
# majordomo alias file
# Copyright 1999-2003 DVL Software Limited
#
# Available from http://www.freebsddiary.org/samples/hendrix.mc
#
#
# Copyright (c) 1998 Sendmail, Inc. All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
#
# This is the sendmail config file for hendrix.triax.com
# Author: Jim Mock [jim@corp.au.triax.com | jim@phrantic.phear.net]
# Last modified: Thu Jan 7 1999 17:04:38
#
divert(0)dnl
VERSIONID(`@(#)hendrix.mc 1.2 (hendrix.triax.com) 1/7/99′)
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
FEATURE(virtusertable, hash -o /etc/mail/virtusers)dnl
FEATURE(nouucp)dnl
FEATURE(access_db, hash -o /etc/mail/access)dnl
FEATURE(rbl)dnl
FEATURE(blacklist_recipients)dnl
LOCAL_CONFIG
#
# Regular expression to reject:
# * numeric-only localparts from aol.com and msn.com
# * localparts starting with a digit from juno.com
# * localparts longer than 10 characters from aol.com
#
Kcheckaddress regex -a@MATCH
^([0-9]+<@(aol|msn)\.com|[0-9][^<]*<@juno\.com|.{10}[^<]+<@aol\.com)\.?>
#
# Names that won’t be allowed in a To: line (local-part and domains)
#
C{RejectToLocalparts} friend you
C{RejectToDomains} public.com
LOCAL_RULESETS
HTo: $>CheckTo
SCheckTo
R$={RejectToLocalparts}@$* $#error $: “553 Header error”
R$*@$={RejectToDomains} $#error $: “553 Header error”
HMessage-Id: $>CheckMessageId
SCheckMessageId
R< $+ @ $+ > $@ OK
R$* $#error $: “553 Header error”
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex checks
R$* $: $>Parse0 $>3 $1
R$+ $: $(checkaddress $1 $)
R@MATCH $#error $: “553 Header error”