> On Sat, Jul 03, 1999 at 05:35:36PM -0700, Dave wrote:
> > mail comes to [EMAIL PROTECTED]
> >
> > ~alias has a .qmail-jim which contains ./usr/home/a55500/Maildir
>
> I'm confused about whether you're directing to a local or canonical
> dir.  Also, you need to terminate with a ``/'' or else qmail-local
> thinks you're directing to a mailBOX instead of a mailDIR.

Yep...your right John, I left off the / in this example, and it is a local
dir that physically exists

> man dot-qmail
>
> > ~alias/.qmail-default (containing an app to return a dir from an email
> > address)
>
> This is a whole different level of trickiness.  I've done exactly
> what you're talking about, but I needed to write a perl module to
> execute it.
>
> Essentially, you need to deliver the message to an executable in
> .qmail-default
> That executable should then to the db lookup (I use cdb in my sample)
> based on whatever key you've decided on.  Sounds like you want
> $RECIPIENT or something.  man qmail-command to see the environment
> variables which are set up for you.

Yep...but is the qmail-default in ~alias ?

If so...why should I not be able to have a .qmail-test in ~alias which
contains:

./usr/home/a55500/Maildir/
(this dir DOES exist and is owned by alias)

and have [EMAIL PROTECTED] end up in the above Maildir? In /var/log/maillog I
am getting unable to chdir, but I have set /usr/home and /usr/home/a55500
and /usr/home/a55500/Maildir and all subdirs to be owned by alias.

I know I am doing something wrong here...

a .qmail-test which contains [EMAIL PROTECTED] properly sends
[EMAIL PROTECTED] to [EMAIL PROTECTED] but


> My perl module is at:
> ftp://triceratops.com/pub/software/john/Qmail-Maildir-0.31.tar.gz
>

Looks real good John...if I can just figure out what is wrong with my
permissions...I think your package will work for lookups...

> I use it two ways:  I sort based on SENDER for various mailing lists,
> and I sort based on DEFAULT for various other mailing lists. :)
>
> I'm not saying it's better than Mail::Maildir or whatever is on
> CPAN, but it does have some cool examples on how to do what I just
> described.  You'd just want to construct a key based on the recipient
> rather than the sender, but everything else should be the same.
>
> --
> John White     johnjohn
>              at
>                triceratops.com
> PGP Public Key: http://www.triceratops.com/john/public-key.pgp
>

Reply via email to