On Wed, 21 Jan 2004 07:14:05 -0500
Sam Varshavchik <mrs...@courier-mta.com> wrote:
Sudhakar Chandra writes:
Hi,
I am trying to set up postfix and courier (imap, pop3 and maildrop) for
a virtual domain on a Debian Linux (woody + backport of postfix) box.
Postfix is accepting the email and passing it onto maildrop just fine.
The problem seems to be maildrop not recognizing the user as a valid
user for delivery. Here is my setup:
1. I have the following in /etc/courier/userdb/test.com:
If you've installed the Courier build of maildrop, it will not recognize
anything in userdb. Courier's version of maildrop reads the virtual account
information that's retrieved by Courier when it delivers the message
locally. In other words, the message must be delivered by Courier, not
Postfix, in order for it to be delivered correctly.
Well, that depends what you need to know about the virtual account.
I'm using the following with exim and courier's maildrop:
virtual_user_drop:
driver = pipe
command = /usr/bin/maildrop -d virtmail
environment = VDIR=${lookup mysql{select maildir from users where
username='${quote_mysql:$local_part}@${quote_mysql:$domain}'}{$value}}
user = virtmail
# Global maildrop filter file
import VDIR
# Send everything smaller than 256 KB to Spamassassin
if ($SIZE < 262144)
{
xfilter "/usr/bin/spamc -U /var/run/spamd.sock"
if (/^X-Spam-Status: Yes/:h)
{
exception {
to "$VDIR/.SPAM/."
}
}
}
to "$VDIR/."
Ciao
Racke