Re: [exim] Pipe mail to script

Top Page
Delete this message
Reply to this message
Author: Mail(at)charliesangels.biz
Date:  
To: Magnus Holmgren
CC: exim-users
Subject: Re: [exim] Pipe mail to script
Hi Magnus,

> That will be interpreted as "pipe to a program
> called 'cat | /opt/bin/gen-wartung.sh'". Why not simply say
>
> wartung: "|/opt/bin/gen-wartung.sh"
> ?


I tried this as well - with no success.

Exim´s main.log says:

2006-10-23 11:49:51 1GbwRL-0000xq-CN ** | /opt/bin/gen-wartung.sh
<wartung@???> R=system_aliases T=address_pipe:
return message generated

But the return message is empty.

My script looks like this (just a plain demo as I am still trying out):

#! /bin/bash
cat $1 | mail user@domain

Regards
Sascha