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 

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to