Re: [exim] Pipe mail to script

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mail(at)charliesangels.biz
Date:  
À: Magnus Holmgren
CC: exim-users
Sujet: 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