OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Problem using Postfix to pipe to a script

From: Sandy Drobic (postfix-usersjapantest.homelinux.com)
Date: Wed Jan 02 2008 - 16:23:00 CST


Loïc Foucault wrote:
> I there,
>
>
> I know this was covered many times but I searched and not found why I got
> this problem.
>
> I'm trying to pipe email to a bash script and the pipe command doesn't send
> me the email.
>
> I tried 2 way ( with aliases and with the master.cf file)
>
> Here my configurations:
> My script /test
> #!/bin/bash
>
> echo "-------------------------------------------------" >> /tmp.log
> echo `date` >> /tmp.log
> echo "$1" >> /tmp.log

Please check http://www.postfix.org/FILTER_README.html#simple_filter as
example for a working filter script.

> My /etc/postfix/transport:
> envoieinfofortin.com test:localhost
>
> My /etc/postfix/master.cf:
> test unix - n n - 1 pipe -vvvvvvvD
> flags= user=envoie argv=/test

You haven't configured any arguments for your script in your transport.

test unix - n n - 1 pipe
     flags=Rq user=envoie argv=/test -i -f ${sender} -- ${recipient}

--
Sandy

List replies only please!
Please address PMs to: news-reply2 () japantest (.) homelinux (.) com