Re: [Exim] restricting access to local aliases

Top Page
Delete this message
Reply to this message
Author: Dr Yann Golanski
Date:  
To: Ian D Crorie
CC: exim-users
Subject: Re: [Exim] restricting access to local aliases
On Wed, Apr 26, 2000 at 03:55:10PM +0100, Ian D Crorie wrote:
> Spam that goes to a few users we can live with, but I'd like to
> stop spam to dozens or hundreds of users at a time. What I want
> is to restrict access to certain aliases to senders from our local
> domain(s) only.


IMNSHO, spam should be stoped at all costs. No matter if it's one
message or 100000.

> Having been through the Exim Specification, I envisage a director
> just before our normal aliasfile ones. It will have verify_only
> set and then some test for a non-local sender (either using
> senders = !... or by testing the value of $sender_host_name).
> Then I'll do an lsearch of a file that will alias to :fail:
> those aliases that we only want local users to be able to send to.
> Because we have receiver_verify set this rejection will happen during
> the SMTP dialogue and I can set an appropriate failure message to
> go with the 550 fail code.


ICK! don't do that, your system will die.

A better way is to freeze messages with filter files -- assuming you pay
someone to check whether those are spam or not. So if your message has
more than 30 rcpts, then freeze it. etc...

> But maybe someone has done this already and wouldn't mind sharing
> their configuration file? Or can point out what I'm about to do
> wrong above?


Hope this helps.

-- 
Dr Yann Golanski                            Internet Systems Developer
PGP: www.kierun.org/pgp/key                 Mailmaster for the Planet Online