There were some typing bugs in my previous mail, here is the correct one:
I'm Using qmail with vmailmgr and courier-imap on SuSE Linux 7.1, Kernel 2.4 and
everything works fine.
Now I'm trying to use maildrop (V 1.3.5) on this configuration, to do th
following:
- drop a copy of each incoming mail into mail...@my-company.com/.RECEIVED
- drop a copy of each outgoing mail into mail...@my-company.com/.SENT
- drop a copy of each outgoing/incoming mail for all virtual users in
"vuserlist.lst" to supe...@my-company.com
I configured qmail with Set QUEUE_EXTRA = "Tlog\0" and QUEUE_EXTRALEN = 5 in
extra.h
so i get a copy of all messages in ~alias/msg-log.
Instead of putting "./msg-log" into ~alias/.qmail-log i tired this entry: "|
maildrop" and created the following entries in
~alias/.mailfilter:
logfile ./maildrop.log
SUPERUSER="/home/dom/my-domain.com/users/super:user"
INLOG="/home/dom/my-domain.com/users/maillog/.RECEIVED"
OUTLOG="/home/dom/my-domain.com/users/maillog/.SENT"
foreach /^(To|Cc|From): .*/
{
foreach (getaddr $MATCH) =~ /.+/
{
if (lookup( tolower($MATCH), "~alias/sitemail.lst" ))
cc $SUPERUSER
}
}
if (/^From: *my-domain\.com/)
{
cc $OUTLOG
}
if (/^(To|Cc): *my-domain\.com/)
{
cc $INLOG
}
to ./msg-log
I still receive a copy of each mail in ./msg-log, but nothing in the super.user
account nor in the maillog account.
In the mail logfile appear messages from maildrop like:
either: _Unable_to_open_mailbox./
or : _Unable_to _create_a_dot-lock./
What's wrong in my configuration?