Roman Dergam a écrit :
Thanks for the reply. I just seem to have solved the problem. I had no
maildroprc in /etc/, so by studying the howto at
http://gentoo-wiki.com/Maildrop_configuration I put together a
maildroprc which contains:
SHELL="/bin/bash"
DEFAULT = "$HOME"
xfilter "reformail -I 'X-Panix-Recipient: $1'"
logfile "/var/mail/maildrop.log"
(Frankly, I just copied the line with xfilter, I still have to find out
what it means. :)
It means run the mail through the command reformail to insert (-I) a
header line "X-Panix blah blah" (if already present, it will be
replaced). $1 is of course the first arg passed to maildrop by postfix,
so should be $recipient in your example. if you change maildrop args in
master.cf, do not forget to change this line.
as for the goal of adding this header, I guess the howto author wants to
check for its presence somewhere (in postfix for instance) and thus
detect that the message was already processed by maildrop.
The only weird thing so far is a double slash in the logs:
Date: Wed Sep 14 14:17:31 2005
From: Lien <li...@KAGAMI.DEMON.NL>
Subj: Re: TERM French - countries with article or without?
File: /var/mail/intu.cz/lists//.LANTRA-L/
^^
this is because you have something like "TO $DEFAULT/$folder" and
DEFAULT already contains a slash. not an issue. so keep it.
so I tried to change the filter file and it WORKS!! The file is at
/var/mail/intu.cz/lists/.mailfilter, I hope it's the right place.
As long as $HOME = /var/mail/intu/cz/lists for "this" recipient, it's ok.