On Tuesday, July 19 at 09:37 PM, quoth Michael Shell:
Has anyone done anything like this? If so, do tell us how.

I have everything filtered through procmail, using /var/lib/vpopmail/procmailrc, which looks like this:

   REALDOMAIN=`echo $USER | /usr/bin/tr A-Z a-z`
   REALUSER=`echo $EXT | /usr/bin/tr A-Z a-z`
   HOME=/var/lib/vpopmail/domains/${REALDOMAIN}/${REALUSER}/
   USERRC=${HOME}/procmailrc
   DOMAINRC=/var/lib/vpopmail/domains/${REALDOMAIN}/procmailrc

   :0 fw: [EMAIL PROTECTED]
   | env HOME=${HOME} /usr/bin/spamc -u [EMAIL PROTECTED]

   INCLUDERC=`test -f ${USERRC} && echo ${USERRC}`
   INCLUDERC=`test -f ${DOMAINRC} && echo ${DOMAINRC}`

   :0
   ${HOME}/Maildir/

If I didn't want to create domain-specific procmailrc files, I could also add delivery instructions like so:

   :0 H
   * REALDOMAIN ?? (domain1.com|domain2.com)
   * ^X-Spam-Status: yes
   ${HOME}/Maildir/.Spam/

~Kyle
--
In any conversation where only one side may be argued, we instinctively assume that those who publicly defend the official position are motivated by ideology and not by an interest in truth. The outlawed position is then assumed to be true, and wins by default.
                                                  -- Andrew Hamilton SJ

Attachment: pgpmkf56Y6Nqi.pgp
Description: PGP signature

Reply via email to