Index:
[thread]
[date]
[author]
[stats]
From: markus schnalke <meillo@marmaro.de>
To : <masqmail@marmaro.de>
Date: Sat, 23 Apr 2011 17:47:06 +0200
Re: [masqmail] Pipe route
[2011-04-22 16:20] "Sebastian M. Alvarez" <sebastianmalvarez@gmail.com>
> Hello,
>
> I'm new at masqmail,
Hey, welcome! :-)
> and I can say I suck at sysadmining :P
We try to help you as good as we can.
> 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'd say that masqmail is perfectly suited for such a task.
> The bash script:
> ***
> #!/bin/bash
> mail=($(< /dev/stdin))
> echo $mail >> /tmp/testlog
> exit
> ***
Wooo ... that's really overcomplicated. You just want to append any
message to the file? Try:
#!/bin/sh
cat >>/tmp/testlog
That should suffice.
meillo
P.S.
> Thanks from Argentina!
De donde en Argentina esta vos? Hace un medio ano, fui alla, en
Santiago del Estero, por tres meses. :-)
Felices Pascuas!
Index:
[thread]
[date]
[author]
[stats]