[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Local dynamic redirect in dot qmail / environment variable in dot qmail



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, July  1 at 11:29 PM, quoth Rick Blundell:
> I wish to deliver mail to a dynamic local user name and the user 
> name is determined by a script. I want my .qmail-default to look 
> like this:
>
> | /path/to/script
> /home/vpopmail/domains/domain.com/$LOCAL/

That won't work. A script in your .qmail file cannot affect the 
environment of successive delivery instructions. What you *can* do is 
have the script do the delivery. For example, the script could call 
safecat, like so:

     #!/bin/sh
     YOURVAR=something
     safecat /home/vpopmail/domains/domain.com/$YOURVAR/{tmp,new}

> Such as- is there any way to call qmail-local directly form inside 
> /path/to/script?

Of course you can call qmail-local, but you probably don't want to do 
that, since (aside from being complicated) qmail-local expects to 
follow delivery instructions from a .qmail file.

~Kyle
- -- 
Usenet is like a herd of performing elephants with diarrhea---massive, 
difficult to redirect, awe-inspiring, entertaining, and a source of 
mind-boggling amounts of excrement when you least expect it.
                                                       -- Gene Spafford
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkhrly4ACgkQBkIOoMqOI15CrACdGDrEpVfCrLY/SxiHDsvkJz2a
qXoAoLBFfy+nqtAQ9DUVMdpOhDPvlzVO
=VZlF
-----END PGP SIGNATURE-----