scott wrote:
Wow thats awesome! How do you do that so fast?
At the moment, I have the 2 modules done (ASL, and yum), and ideas for lots of other ones. Like backups for example, or cluster management.
great project
btw I just came to idea of building interface for spamassain per-user configuration for plesk. I assume it could be done easily using this approach. Anyone interested in sharing ideas and working on this with me?
I'm currently using this approach:
cat .qmail
| /usr/local/psa/bin/psa-spamc accept
| preline /usr/bin/procmail -m -o .procmailrc
cat .procmailrc
MAILDIR=/var/qmail/mailnames/xxx.info/eleight/Maildir
SPAMDIR=${MAILDIR}/.Junk
DEFAULT=${MAILDIR}/
#LOGFILE=${MAILDIR}/procmail.log
#LOG="--- Logging ${LOGFILE} for ${LOGNAME} "
#black list
:H
* To: .*spammer.*\@somedomain\.info
/dev/null
:H
* To: .*blacklist.*
/dev/null
# Anything with a spam level of 10 or more is junked immediately.
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the designated spam folder
:0
* ^X-Spam-Status: Yes.*
| /usr/local/bin/safecat "${MAILDIR}/tmp" "${SPAMDIR}/new"
So basically all that should be done is an interface for configuring procmail and SA user_prefs (something like
http://sourceforge.net/projects/webuserprefs/) + modifying .qmail file