Juanjo Ciarlante wrote:
> I'm using sendmail (sorry I must ;) for internal mail server and MTA.
> There's a group of POP3 mail accounts that are fetchmail-ed from
> outside and inyected to.
> I need to BLOCK outgoing mails with bad addresses (eg @intranet);
> but I cannot just block relaying because there are
> some clients that send true from-addressed mails.
You should be able to use the check_compat ruleset for this:
5.1.4.4. check_compat
The check_compat ruleset is passed
sender-address $| recipient-address
where $| is a metacharacter separating the
addresses. It can accept or reject mail trans
fer between these two addresses much like the
checkcompat() function.
e.g. the following
Scheck_compat
R$+ @ intranet $| $+ @ intranet $@ OK
R$+ @ intranet $| $+ $#error $@ 5.5.4 $: "553 Real domain
name required"
will allow mail from one @intranet address to another, but reject
anything else with an @intranet sender address.
Note that this ruleset is applied when the message is received, so it
won't take into account any address translations which are performed
by other rulesets.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]