From: VileSYN on
I've been trying to setup an older Sendmail server (8.12.11), to only allow
a group of internal users to only receive internal mail. I'm using the
following to accomplish this task:


LOCAL_CONFIG
F{Internal}/etc/mail/internal

LOCAL_RULESETS
LOCAL_RULE_0

Scheck_rcpt

R$+ $: <@> $>3 $1
R<@> $={Internal}<@$=w.> $: <$1@$2>
R<@> $={Internal} $: <$1@$j>

# no internal alias
R<@>$+ $@ OK

# check to see if the sender is local
R$* $: $>3 $&f
R$+<@$=w.> $@ OK

After I compile it into the config, the rules work to keep the "internal"
users from receiving anything from the outside. There is only one drawback,
if I use this ruleset, it turns the server into an open relay. Without the
above compiled into the cf, all is fine, except for lacking the purpose of
the custom ruleset.

I'm not sure what else I should provide to help diagnose this issue. The
rest of the setup is pretty vanilla. Any ideas why this ruleset would cause
such? If you need more info, let me know. Thanks in advance.

From: Claus Aßmann on
VileSYN wrote:
> I've been trying to setup an older Sendmail server (8.12.11), to only allow

You certainly want to consider upgrading.

> LOCAL_RULESETS

Remove this:
> LOCAL_RULE_0

> Scheck_rcpt

That broke it...

Do NOT override the default ruleset (unless you really know
what you are doing). See cf/README about Local_check_rcpt
(as well the original webpage from where you might have
gotten that ruleset).