#
# Check that user has per-domain maildrop include,
# and allow per-user to override. if not check if $DEFAULT is set
# (newer maildrop gets that from the DB and updates
# it) and deliver or fail temporarily if not available
#
`test -f $VMAILROOT/.mailfilters/user/$LOGNAME`
if ( $RETURNCODE == 0 )
{
include "$VMAILROOT/.mailfilters/user/$LOGNAME"
}
else
{
`test -f $VMAILROOT/.mailfilters/domain/$DOMAIN`
if ( $RETURNCODE == 0 )
{
include "$VMAILROOT/.mailfilters/domain/$DOMAIN"
}
else
{
if ( "$DEFAULT" ne "" )
{
to "$DEFAULT"
}
else
{
EXITCODE=75
exit
}
}
}