Hi Folks
Just struggling to get final touches on mail system.
Redhat ES 3.0 update3
MTA postfix 2.0.16
LDA courier maildrop-1.7.0.20040907
POP/IMAP courier 3.07
Postfix
mailbox_command = /usr/bin/maildrop -d ${USER} -w 70
Seemed to be the way to go from the readme,
I can use mailbot for out of office, do some simple .mailfilter(ing), but
having real trouble with reformail
Following the example given in the man page and just to sanity check I wrote
the following filter:-
.mailfilter
logfile "maildrop-filter-log"
if (/^Subject: dup/ )
{
'reformail -D 8000 duplicate.cache'
cc "| /usr/bin/mailbot -t some.txt -s 'The return Code is $RETURNCODE'
/usr/sbin/sendmail -f aper...@example.com"
}
So I can send a test message with the subject 'dup' and get it cced,
hopefully with reformails RETURNCODE, when I get the cced message there is
no value for the $RETURNCODE.
I don't know where the duplicate.cache is created, I would expect the users
home dir, maybe once this is solved reformail will start working and I can
start fine tuning to stop duplicates.
A little bit of futher investigation shows the $RETURNCODE just does not
seem to be being set, using 'test -f some.txt'.
Any help greatly appreciated
Rgds
Alex
Ps
I had to change the spec file to get delivery to Maildirs and copy config.h
before the building started, not a nice way of doing it but maildrop seems
to work ok apart from the below.
It would be nice if this option could be configured some other way. i.e
--default_def="/wherever", if you can do this I haven't spotted it in the
docs.