procmail
[Top] [All Lists]

(no subject)

2004-01-26 11:52:41
I'm having to recover from a system failure, and I've got backup of all
my files, save one: /etc/procmailrc.  So I'm having to re-create it by
guess-and-check.  Here's what I know:

1. In exim.conf I have this line:
command = "/usr/bin/procmail -a \"${lookup pgsql{SELECT home_dir FROM
email_users \
         WHERE username='${local_part}(_at_)${domain}'}}\" \
         -a '${local_part}(_at_)${domain}'"

This calls procmail like this: "/usr/bin/procmail -a
/var/spool/mail/vdomains/domain.com/user -a user(_at_)domain(_dot_)com".

2. My mail directory structure looks like this:

/var/spool/mail/vdomains/domain.com/user/
/var/spool/mail/vdomains/domain.com/user/.procmailrc
/var/spool/mail/vdomains/domain.com/user/Maildir
/var/spool/mail/vdomains/domain.com/user/new
...
/var/spool/mail/vdomains/domain.com/user/.Folder1.Folder2/

So my IMAP folder Folder1->Folder2 appears under Maildir, but the
.procmailrc that gets processed exists one directory above Maildir.

3. Spamassassin (spamc) is called from procmailrc and puts all mail in
a sub-folder called ".Spam".

4. The recipes in .procmailrc refer to folders like this:

:0:
* ^From:(_dot_)*user2(_at_)domain(_dot_)net
.Folder1.Folder2/

My questions are this:
1) For some reason I can't get procmail to deliver messages to the
sub-folder under Maildir/, only to the directory above.  So instead of
delivering to Maildir/.Folder1.Folder2/ it delivers to .Folder1.Folder2
(this is with the virtual user .procmailrc file in place).
2) What is the second -a variable for?  I remember that it was required
for something, but I don't remember what.
3) What should my procmailrc look like?  I realize this is a pretty
broad question, but I'm running out of patience with this problem.  Can
anyone help me?

ahp

P.S. -- Here is my current /etc/procmailrc.  I have turned on the
.procmailrc for my user, since it causes procmail to deliver messages to
the directory above Maildir/, not below it:

VERBOSE=on
HOME="$1"
MAILDIR=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
LOGFILE=$HOME/.maillog
LOGABSTRACT=all
RECIPIENT="$2"
DROPPRIVS=yes
VERBOSE=on
#:0fw
#| /usr/bin/spamc



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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