View Single Post

  #1 (permalink)  
Old 01-21-2008
silvietta
 
Posts: n/a
Default dotqmail problem

Hello you all,

I manage my company e-mail servers and I've a little problem, better a
little question, about dotqmail.

If I have my e-mail address, say silvia@mycompany.it and I want to use
an alias, say silvietta@mycompany.it, I have just to create a
dotqmail file, say .qmail-silvietta, writing in it just
silvia@mycompany.it to get on silvia account any e-mail sento to
silvietta.

But if I want forwarded only some e-mail, say only e-mail from
root@myserver.mycompany.it, how can I do? I've found on the internet
that is possible to insert | statemets in qmail (http://
http://www.giunchi.net/wp-content/up...l-howto-3.html) so my question
is:

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)?

Thank you in advance and best regards,

Silvia Z.
Reply With Quote