On 2008-01-21, silvietta <sylvie.labruyere@gmail.com> wrote:
> is it possible to have a,say, .qmail-silvia containing something like
> "| /home/silvia/redirect " where redirect is a shell script in which I
> tell to read the FROM field (with a cat or something else) and if it
> contains the word "root" to redirect the e-mail to an external address
> (like silvia@external.com)?
Yes, using the dot-qmail-utils [1], you are free to write this:
condredirect
silvia@external.com ifheader -r '^From.*root'
Andreas.
[1]
http://dotqmailutils.sourceforge.net/