Dave H wrote:
> We have a problem using the access db. We want to reject all mail with a
> From: address of @domain.com unless it is recieved from host 1.2.3.4. Have
> tried this:
>
> Connect:1.2.3.4 RELAY
> From:domain.com REJECT
>
> but it is rejected with this:
>
> ruleset=check_mail, arg1=test@domain.com, relay=[1.2.3.4], reject=550 5.7.1
> test@domain.com... Access denied
>
> I believe this is because the check_mail ruleset is called after the
> check_relay one and the fact you pass the first doesn't excuse you from
> having to pass the second.
>
> Anyone know how we can resolve this?
Why not use:
Connect:1.2.3.4 RELAY
Connect:domain.com REJECT
or with from on both lines.
--
René Berber