[Workaround.org] alias to a pipe
email at christoph-haas.de
Fri Nov 20 23:47:26 CET 2009
Ross Lawrie wrote:
> I'm wondering how one would go about setting up virtual aliases to pipe
> into a script, in this case I'd like to do this for an Request Tracker
> installation, sending support at mydomain to something like
> "|/usr/share/rt3/bin/rt-mailgate --queue Support --action correspond
> --url https://mydomain/tickets/"
> Normally I'd have had a virtual map pointing to a system alias, and then
> in /etc/aliases have that point to the pipe.
And that's the only way you can use pipes in aliases. Postfix refuses to
use pipes for virtual users. Apparently it does not assign a UID or GID
to virtual users properly (although I'm sure it could do that) and thus
pipes aren't allowed. Just as you said you need to set up a virtual
alias to forward the email to a local domain ($mydestinations) and in
/etc/aliases run the email through a pipe. I use
"mydestination=localhost" here and forward virtual email to
somebody at localhost.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 899 bytes
Desc: OpenPGP digital signature
More information about the Workaround-chitchat