Re: [exim] Conditional forward suggestions

Top Page
Delete this message
Reply to this message
Author: Gary Stainburn
Date:  
To: exim-users
Subject: Re: [exim] Conditional forward suggestions
On Monday 28 April 2014 15:33:59 Jeremy Harris wrote:
> On 28/04/14 15:07, Gary Stainburn wrote:
> > This isn't a single user setup, it's our corporate server. While I am
> > the admin for the server I wanted to keep this code separate from the
> > main exim.conf structure for maintenance purposes, as well as reducing
> > the chances of unexpected side effects.
> >
> > One idea is the check for the file existing within exim.conf, and if it
> > does, add a header. I could then check for this header existing within
> > the .forward file
>
> How about: if this flag-file exists, don't look at the .forward file?
> All in exim.conf .
> --
> Cheers,
>    Jeremy


Cheers Jeremy.

userforward:
driver = redirect
check_local_user
require_files = ! $home/.forward-disable <------ Added this line
file = $home/.forward
allow_filter
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

--
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk