Robin S. Socha writes:
> * Sam Varshavchik <[EMAIL PROTECTED]> writes:
>> Oden Eriksson writes:
>>> Nice, but it won't work for us using vpopmail, right?
>
>> Not unless you get mail filtering working first. There is no
>> technical reason why it can't work with vpopmail, except that the
>> maildrop configuration will be rather tricky and you really have to
>> know how maildrop works, in order to figure out the right
>> configuration voodoo. I can't tell you what you need to do because it
>> depends on your exact system configuration.
>
> Okay. Let's say vpopmail is installed as per default:
>
> /home/vpopmail/domain/user
Fine.
>> You will need to arrange to have maildrop deliver mail to vpopmail-managed
>> accounts.
>
> How? I don't get it. Really, I don't. And I cannot find anything
> "maildrop for idiots"ish.
How do you get anything to accept mail to be deliver from qmail? Run it
from a .qmail file, or from qmail-start's parameter, of course?
>> maildrop will start under the vpopmail id, in vpopmail's home directory.
>> Since maildrop knows nothing about vpopmail, it will default to delivering
>> mail to vpopmail's system mailbox. You will have to arrange to invoke
>> maildrop and explicitly specify the pathname to the virtual account's
>> .mailfilter as the first argument to maildrop.
>
> How?
| maildrop relative/path/to/.mailfilter
>> Additionally, MAILDIR in maildirfilterconfig must be set to the
>> pathname to the virtual account's Maildir, relative to vpopmail's
>> home directory, so that the resulting .mailfilter, generated by
>> sqwebmail, will point the INBOX to the correct Maildir.
>
> *nrgl* Prettyplease?
You have /home/vpopmail listed as the system home directory for the vpopmail
user. You have a virtual user, /home/vpopmail/domain/user.
I presume that /home/vpopmail/domain/user/.qmail is read for the user's
delivery instructions. You will put in that file:
| maildrop domain/user/.mailfilter
Because maildrop will start as vpopmail, in vpopmail's home directory, with
$HOME=/home/vpopmail, this will read /hoem/vpopmail/domain/user/.mailfilter.
The first argument to maildrop overrides the default mail filtering recipe
file of $HOME/.mailfilter, so maildrop ends up reading
/home/vpopmail/domain/user/.mailfilter for mail filtering instructions.
Now, in /home/vpopmail/domain/user/Maildir/maildirfilterconfig you should
have:
MAILDIRFILTER=../.mailfilter
MAILDIR=domain/user/Maildir
sqwebmail is running from /home/vpopmail/domain/user/Maildir, hence
MAILDIRFILTER will point to /home/vpopmail/domain/user/.mailfilter - which
happens to be exactly what maildrop reads.
Then, the mail filter generated by maildrop will deliver mail to
domain/user/Maildir, with maildrop running out of /home/vpopmail.
What you'll probably need to do is set up maildirfilterconfig first, run
sqwebmail, go into the mail filtering page, and hit "Save All Changes",
which will generate an initial empty .mailfilter file, that sets everything
up. Then you can get maildrop set up running out of the .qmail file.
Once that's done, and you know how the default .mailfilter looks like, it
shouldn't take a long time for you to cook up a script that creates a
.qmail, a .mailfilter, and maildirfilterconfig for every account.
--
Sam