Re: pipe trouble

Top Page
Delete this message
Reply to this message
Author: Neal Becker
Date:  
To: exim-users
Subject: Re: pipe trouble
Mistery solved. PATH is set by default to /usr/bin, and on my system
'cat' is in /bin. Actually if I had carefully read the returned mail,
it said as much.

OK, so here's my tiny contribution to exim configurations:

gone_away_transport:
driver = pipe;
user = nobody,
return_output,
command = "/usr/local/lib/exim/gone-away.sh"

gone_away:
local_parts = lsearch;/usr/local/lib/exim/gone-away
fail_verify,
driver = smartuser,

-------/usr/local/lib/exim/gone-away.sh----
#! /bin/sh

/bin/cat <<End
Your mail to $LOCAL_PART@$DOMAIN was not delivered because that user no
longer has an account on this system.
End
------------------------------------------