Index:
[thread]
[date]
[author]
[stats]
From: Sebastian M. Alvarez <sebastianmalvarez@gmail.com>
To : <masqmail@marmaro.de>
Date: Fri, 22 Apr 2011 16:20:32 -0300
Pipe route
Hello,
I'm new at masqmail, and I can say I suck at sysadmining :P
I need to get an smtp server running that the only thing it should do is to get
emails from people and send them (pipe) to a script, the script reads it from
stdin and finishes. That's all
I've set masqmail for the task, defining a route called default that has only
2 lines. For the moment is a test bash script
***
protocol=pipe
pipe=/home/aseba/test.sh
***
The bash script:
***
#!/bin/bash
mail=($(< /dev/stdin))
echo $mail >> /tmp/testlog
exit
***
Now, it works, but I the file '/tmp/testlog' only prints:
***
aseba@tomahawk:~$ cat /tmp/testlog
Received:
Received:
***
Any idea why? what am I missing?
Thanks from Argentina!
--
Sebastian M. Alvarez
http://aseba.com.ar
Index:
[thread]
[date]
[author]
[stats]