[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Local dynamic redirect in dot qmail / environment variable in dot qmail
- To: qmail@xxxxxxxxxxxxx
- Subject: Re: Local dynamic redirect in dot qmail / environment variable in dot qmail
- From: Kyle Wheeler <kyle-qmail@xxxxxxxxxxxxxx>
- Date: Wed, 02 Jul 2008 09:56:46 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Delivered-to: de5-qmail@sws5.ornl.gov
- Delivered-to: mailing list qmail@list.cr.yp.to
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=Qxuxt9zvyU/O2sts81MaqpYHviM=; b=C/aZ fBqxb86G7oX2Cb5MuofUpnln8Ixn/VCYDlYXGPXrPwNyBrE4HpgQZDKNsOYN2E3C zNUOVBiE0MfQMzwH9cjtVV/9s07mGMZYWNiEE45Q0Fimrn3LuaTkhBrUtWRyHQxK Za9athH6sc7JgdhotXGGB2Kauv3XRDmqloI/a68=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=TZd9JMyAKd5s9UUuXb5DsP2vpvtgXCPc+huEu2NTKALNS2/sE1tCWtWOEuwOcY0VJioTWmKaWTJNhvwvX4+arKuW21HpWHtw1GnwEX1X7pGspBynTfx5gW3reU/lI9D44CVoreJstabWIZ0MzGhOxvxfvZLdjHrWfaFyIG/9PiU=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <486AF5FF.9030808@rapidvps.com>
- Mail-followup-to: qmail@list.cr.yp.to
- Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <486AF5FF.9030808@rapidvps.com>
- User-agent: Mutt/1.5.18 (2008-06-25)
-----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-----