procmail
[Top] [All Lists]

/etc/procmailrc and Unix limits

1997-10-05 20:19:18
Hi there

I  decided to use /etc/procmailrc to pre-filter the entire system's mail
accounts for spam (all I do is add a new header - noone actually looses
mail directly). It was all working grand until someone received a 90Mb mail
message - at that point the system basically ran out of memory and crashed
(well, I had to push the Big Button).

The /etc/procmailrc file doesn't do too much (a few header searches) - but
I wondered if the reason why it fell over was because /etc/procmailrc is
run as root instead of a normal user? As root it would have access to all
the memory on the system - as well as most of the spare disk :-) I assume 
it would of been better to run this as the user it was meant for instead 
of root.

Could someone spell out to me how to get procmail to run with a limit on
how much memory it can use, and how to force it to run as the end-user?
That'd help things immensely :-)


-- 
Jason Haar, Unix/Networking Specialist, Trimble Navigation New Zealand
Phone: +64 3 3391377    Fax: +64 3 3391417


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