Followed your advice on setting up filter for virtual users.

maildrop is owned by vpopmail with proper suid and sgid:
-rwsr-sr-x    1 vpopmail vchkpw     138176 May  7 14:20
/usr/local/bin/maildrop

$HOME of  vpopmail is /usr/local/vpopmail

virtual user in question is
/usr/local/vpopmail/domains/vpop.hostation.com/webmaster

.mailfilter file is  :
/usr/local/vpopmail/domains/vpop.hostation.com/webmaster/.mailfilter
with proper ownership and permission:
-rw-------    1 vpopmail vchkpw        304 May 19 02:00
/usr/local/vpopmail/domains/vpop.hostation.com/webmaster/.mailfilter


.qmail file is in the proper place
>cat /usr/local/vpopmail/domains/vpop.hostation.com/webmaster/.qmail

| maildrop domains/vpop.hostation.com/webmaster/.mailfilter

maildirfilterconfig is in the Maildir directory
>cat
/usr/local/vpopmail/domains/vpop.hostation.com/webmaster/Maildir/maildirfilt
erconfig
MAILDIRFILTER=../.mailfilter
MAILDIR=domains/vpop.hostation.com/webmaster/Maildir


As soon as maildrop is invoked by qmail, continuous stream of error messages
spew out in the qmail log:

@400000003b06140d0da1383c status: local 1/10 remote 0/20
@400000003b06140d0da199e4 end msg 832396
@400000003b06140d1abef644 new msg 832396
@400000003b06140d1abfd8d4 info msg 832396: bytes 109623 from
<[EMAIL PROTECTED]> qp 10351 uid 503
@400000003b06140d1e94fcb4 starting delivery 12683: msg 832396 to local
[EMAIL PROTECTED]
@400000003b06140d1e953b34 status: local 2/10 remote 0/20
@400000003b06140d1e966be4 delivery 12682: success:
maildrop:_Unable_to_open_filter_file,_errno=2./did_0+0+1/
@400000003b06140d1e9c24bc status: local 1/10 remote 0/20
@400000003b06140d1e9c827c end msg 832390
@400000003b06140d2926f344 new msg 832390
@400000003b06140d2927d1ec info msg 832390: bytes 109728 from
<[EMAIL PROTECTED]> qp 10358 uid 503
@400000003b06140d2de390f4 starting delivery 12684: msg 832390 to local
[EMAIL PROTECTED]
@400000003b06140d2de3cb8c status: local 2/10 remote 0/20
@400000003b06140d2de4ec9c delivery 12683: success:
maildrop:_Unable_to_open_filter_file,_errno=2./did_0+0+1/

Please let me know if I have made any glaring mistakes.

Thanks

Lu

> -----Original Message-----
> From: Sam Varshavchik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 4:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sqwebmail 20010515
>
>
> 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

Reply via email to