On Sat, 4 Aug 2001, Dan Melomedman wrote:
> On Sat, Aug 04, 2001 at 01:39:32AM +0200, Przemyslaw Wegrzyn wrote:
> >
> > I tweaked maildrop a little, to make it read HOME and QMAILQUOTA from
> > enviroment. It works great with qmail-ldap now :)
>
> I had to modify maildrop to getenv $HOME also. Maildrop wasn't really
> designed for closed-box configurations. I also modified qmail-lspawn to
> export $HOME. Can we convince Mr. Sam to include this support in
> maildrop in the future?
maildrop can be compiled with Courier-option enabled - then it reads HOME
and several other things from enviroment. All I had to do was to change
some names.
But also I patched maildrop to run default delivery if maildir specified
in filter is missing.
> Also to enable maildrop delivery for the whole
> site using maildrop I have this as my argument for qmail-send:
> | if ! test -e ./Maildir;
> then /var/qmail/bin/maildirmake ./Maildir
> ;fi;
> if test -f .mailfilter;
> then
> /usr/bin/maildrop -d ldapmail;
> else
> /usr/bin/maildrop /etc/maildroprc-default;
> fi
>
> Do you see anything wrong with this approach?
>
What is it for ? I use qmail-dirmaker to create both home dir and Maildir
in it ! I run maildrop as default delivery, it doesn't matter if
.mailfilter is present or not.
-=Czaj-nick=-