On Jun 26, Alan S. Harrell threw electrons at [EMAIL PROTECTED]:
>What you need is a UNIX shell account where the host allows you to
>run the program Procmail. You can set up a procmail script to
>determine the size of incoming messages; send the "too large"
>messages into dev/null (delete); and then send a pre-written
>autoresponse bounce message to the sender.
Err, /dev/null actually.
>Here is the procmail home page where you will find faqs, tips, sample
>scripts, etc. There is also a mailing list you can join to help you.
>http://www.procmail.org/
Another good place to look up docs on Procmail is on the shell account
itself, through the Unix man(ual) pages. When logged in, type "man
procmail" (without the quotes) and press enter, and you will have the
man page. (press "q" to get out of the man page reader).
Once you have read the man page for procmail, move on to the man pages
for "procmailex" and "procmailrc".
>I've never used or worked with procmail, so my help with this is
>limited. You might see if Brian can help you with this if he is
>reading this now. I think, he said, he has used procmail before.
>I think. :-)
Well, Procmail is an ultra-powerful mail filtering system, capable of
carrying out any action, based on any condition or conditions (or not)
of the email. However, just like the Unix systems it runs on, that
superflexibility comes at the price of complexity. Procmail can be a
beast to figure out...
This is an example of a Procmail "recipe" that goes in the file
.procmailrc (note the leading dot in the filename) in the home
directory:
:0
* ^From:.*[\t <]?majordomo@*
/home/blj8/mail/app
The first line, I'm not sure what it is, but it's gotta be there.
The second line is the filtering criteria
The third line is the destination of the email
So this "recipe" directs mail from majordomo@(anywhere) to the mail
folder "app" (short for approval)...
And Procmail can get a LOT more complex than that one simple example...
(for example, multiple nesting of recipes... Does your brain hurt yet?
<g>)
I tell ya tho, I've been using Linux for over two years now, and
Procmail still makes my brain glaze over and whimper, so really, you
ought to find a easier-to-use tool than Procmail.
BTW, yea, I use Procmail every day as my mail filtering and routing
system... Have 121 filtering rules (recipes) and growing :-/
-=Brian=-