First off... thanks for all the help appreciate it. I've made some
adjustments, no more file locks, fgrep vs egrep, etc based on all the
suggestions. Unfortunately I can't just send emails to /dev/null as much
as I'd want to. There seems to be somewhat of a speed increase, but I
still have some procmail processes that run for up to a minute before
exiting... That portion of the script now looks like this:
# Test if the email's sender is in user defined whitelist, if so
deliver it.
:0
* ? formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:"
-x"Return-Path:" -x"To:" | fgrep -is -f
/usr/local/apache/htdocs/secure/usermaint/
nobounce/${USER}
${MY_MAILDIR}
# Test if the email's sender is in user definded blacklisted
# if so, send it to back to sender w/ bogus user unknown
# remark subject with "Recipient Refusal" so it can be traced back
:0
* ? formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:"
-x"Return-Path:" -x"To:" | fgrep -is -f /usr/local/apac
he/htdocs/secure/usermaint/blacklist/${USER}
* ! ^X-Loop: postmaster(_at_)mydomain\(_dot_)com
* ! FROM_ ?? mydomain\.com
| (formail -r \
-I"From: ${ALTFROM}" \
-I"Return-Path: noreply(_at_)mydomain(_dot_)com" \
-A"X-Loop: postmaster(_at_)mydomain(_dot_)com" ; \
echo "" ; \
echo " This user has chosen not to receive emails from this
address." ; \
echo " If you feel this email was rejected in error, please" ; \
echo " contact them in a different manner and let them know.
(#5.1.1)" ; \
echo " ") \
| /usr/sbin/sendmail -t
Here's a quick look at top:
last pid: 90700; load averages: 12.60, 12.52,
12.27 up
6+20:19:11 12:25:39
160 processes: 13 running, 146 sleeping, 1 zombie
CPU states: 81.6% user, 0.0% nice, 18.4% system, 0.0% interrupt,
0.0% idle
Mem: 207M Active, 146M Inact, 77M Wired, 22M Cache, 60M Buf, 48M Free
Swap: 1028M Total, 60M Used, 967M Free, 5% Inuse
Username to show: vmail
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
86971 vmail 62 0 1272K 856K RUN 0:20 7.91% 7.91% procmail
84475 vmail 62 0 1292K 884K RUN 0:37 7.81% 7.81% procmail
90470 vmail 10 0 1316K 900K wait 0:01 10.49% 4.74% procmail
90529 vmail 62 0 1316K 900K RUN 0:01 11.65% 4.59% procmail
90401 vmail 62 0 1316K 900K RUN 0:01 7.77% 4.10% procmail
90402 vmail 62 0 1316K 900K RUN 0:01 7.67% 4.05% procmail
90540 vmail 62 0 1316K 900K RUN 0:01 10.63% 3.86% procmail
90325 vmail 62 0 1316K 900K RUN 0:01 5.94% 3.76% procmail
90561 vmail 62 0 1316K 900K RUN 0:01 8.21% 2.98% procmail
90664 vmail 63 0 1316K 900K RUN 0:01 20.66% 2.88% procmail
90697 root 30 0 2100K 1248K RUN 0:00 6.00% 0.29% top
233 qmails 2 0 1140K 340K select 57:10 0.20% 0.20%
qmail-send
97601 root 28 0 2788K 832K RUN 0:04 0.00% 0.00% sshd
90699 root 63 0 868K 128K RUN 0:00 0.00% 0.00% supervise
90700 vmail 62 0 624K 256K RUN 0:00 0.00% 0.00% sh
Thanks again
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail