procmail
[Top] [All Lists]

Anti spamming

1997-04-09 09:04:00
I want to write a rule that behaves like the following.

1. Any mail that is sent to me must pass either of the two conditions to
get through.

        1.match the approved recipients list.
        2.contain the correct code in the subject header to be submitted
        for entry into the approved recipients list. This means that this
        message will be read by myself and I shall manually add that user
        to the list.

any other mail I want discarded and resent back to the recipient with
instructions on how to get added to the approved recipients list. I also
want to return the original message back to the recipient.

I plan to randomize the code necessary to get approved which means I'll
retain a record of which code is expected by which recipient.

I'll handle mailing list mail a little differently :-)

Some questions.

1. How do I capture the text of the original message? Do I have to archive
it in a temporary file for my reply recipe to use later?

2. I'm ok with if then's wit the use of :e but I don't know abut doing
complex logic. I think it probably requires more nesting. Does anybody
have any examples using complex logic?

3. I'm tempted to write the majority of the logic in a perl script and
just use that as a filter. However my ISP will only let me use Perl 5
Alpha 5 circa 1992 and procmail 

procmail v3.10 1994/10/31

Anybody see any benefit in upgrading to a later procmail? 

Also, if anybody knows of a good national ISP that allows shell account
access and will mx record my domain into a shell accounts mailbox I'd be
very interested in hearing about it.

<Prev in Thread] Current Thread [Next in Thread>