Hi all,
I've been trying to use qmail with procmail. Without procmail, qmail
delivers the mail fine to ~/.maildir. However if I add the file
~/.qmail:
pmatos(_at_)descartes pmatos $ cat .qmail
|/usr/local/bin/qmail-procmail
and with /etc/procmailrc:
pmatos(_at_)descartes pmatos $ cat /etc/procmailrc
# Use maildir-style mailbox in user's home directory
DEFAULT=$HOME/.maildir/
SHELL=/bin/sh
MAILDIR=$HOME/.maildir
LOGFILE=$HOME/.procmaillog
LOGABSTRACT=no
VERBOSE=on
FORMAIL=/usr/bin/formail
NL="
"
##recipe lines begin with :0
##dont put comments on recipe lines
##disable a recipe with the false condition !
##condition lines begin with * and regex is your friend
##conditions are anded and everything after * is fed straight into egrep
##one action line follows the conditions, in this case it is a mailbox
name
#catch duplicates using formail
#people we always allow mail from
#now flush some spam out
:0
* !^Content-type:.*text/plain.*
.junk.html/
#no more html messages
:0
* ^List-Id:.*gentoo-user
.ml.gentoo.user/
#now put my mail lists into mailboxes
:0
* ^List-Id:.*gentoo-dev
.ml.gentoo.dev/
#catch any other gentoo mail
:0
* ^List-Id:.*gentoo-announce
.ml.gentoo.announce/
################################
# Last rule: mail that gets #
# this far goes in default box #
################################
# End of file
:0
* ^To: pocm(_at_)mega(_dot_)ist(_dot_)utl(_dot_)pt
* ^To: pocm(_at_)rnl(_dot_)ist(_dot_)utl(_dot_)pt
.Mega/
:0
* .*
.Default/
I don't get anything after sending mail to myself (the first thing I'm
doing before sending the mail is to create .maildir with:
~/$ maildirmake .maildir)
The .procmaillog has something like the following:
procmail: [21905] Thu Jun 10 00:06:02 2004
procmail: Assigning "FORMAIL=/usr/bin/formail"
procmail: Assigning "NL=
"
procmail: Match on ! "^Content-type:.*text/plain.*"
procmail: Assigning
"LASTFOLDER=.junk.html/new/1086822362.21905_0.descartes"
procmail: Notified comsat:
"pmatos(_at_)0:/home/pmatos/.maildir/.junk.html/new/1086822362.21905_0.descartes"
procmail: [21911] Thu Jun 10 00:06:02 2004
procmail: Assigning "FORMAIL=/usr/bin/formail"
procmail: Assigning "NL=
"
procmail: No match on ! "^Content-type:.*text/plain.*"
procmail: No match on "^List-Id:.*gentoo-user"
procmail: No match on "^List-Id:.*gentoo-dev"
procmail: No match on "^List-Id:.*gentoo-announce"
procmail: No match on "^To: pocm(_at_)mega(_dot_)ist(_dot_)utl(_dot_)pt"
procmail: Match on ".*"
procmail: Assigning
"LASTFOLDER=.Default/new/1086822362.21911_0.descartes"
procmail: Notified comsat:
"pmatos(_at_)0:/home/pmatos/.maildir/.Default/new/1086822362.21911_0.descartes"
And some others similar lines for other emails.
Any ideas about the problem?
Cheers,
--
Paulo J. Matos : pocm [_at_] mega . ist . utl . pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
- > http://mega.ist.utl.pt/~pocm
---
-> God had a deadline...
So, he wrote it all in Lisp!
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail