Thanks guys. The first I received worked as it's own ACL..
deny
sender_domains = lsearch;/etc/protecteddomains
!condition = ${lookup{$sender_host_address}lsearch{/etc/allowedips}
{yes}{no}}
log_message = $sender_host_address is not allowed to act as MX record for
$sender_address_domain
message = $sender_host_address is not allowed to send mail directly to
$sender_address_domain
Sorry for the double send, I sent the first one but it errored out locally,
didn't think it got sent..
Thanks again.
On 2/21/07, Magnus Holmgren <holmgren@???> wrote:
>
> On Tuesday 20 February 2007 22:57, Nick Nelson wrote:
> > There's certain domains where all mail would be relayed through another
> > host, for these domains I do not want to accept mail from any IP that
> isn't
> > listed in /etc/allowedips, the domains that relay through this host are
> > listed in /etc/protecteddomains.
> >
> > Can anyone provide some insight on this?
>
> This in a suitable place in your RCPT ACL should work:
>
> deny domains = /etc/protecteddomains
> ! hosts = /etc/allowedips
>
> --
> Magnus Holmgren holmgren@???
> (No Cc of list mail needed, thanks)
>
> "Exim is better at being younger, whereas sendmail is better for
> Scrabble (50 point bonus for clearing your rack)" -- Dave Evans
>
>