require_files

Top Page
Delete this message
Reply to this message
Author: David.Osborne
Date:  
To: exim-users
New-Topics: Bulk mailings
Subject: require_files
I want to run Majordomo at the -request address for a mailing list and to have
exim process a message for the local_part "junk-request" only if the file
/usr/local/majordomo/lists/junk exists (to avoid having to build a list of
valid list names).

I have...

# transport
majordomo_request_pipe:
driver = pipe;
command = "/usr/local/majordomo/wrapper majordomo -l ${local_part}",
user = majordom

# director
majordomo_list_requests:
suffix = -request,
require_files = /usr/local/majordomo/lists/${local_part},
driver = smartuser,
transport = majordomo_request_pipe;

If the file doesn't exist, I want the address to "drop through" and eventually
be rejected as unknown.

The problem I have is that delivery is deferred if the file doesn't exist, even
though its parent directory is on a permanently mounted filesystem. I
understand the comment about NFS in the spec document but in this case, I'd
expect stat() to determine that the file is non-existent.

Also, if anyone using Majordomo with exim could mail me any relevant
configuration fragments for how they have it set up, I'd be very gratful.

thanks
--
David Osborne                         e-mail: David.Osborne@???
Cripps Computing Centre                             tel: +44 (0)115 951 3397
   (and Department of Geography)                    fax: +44 (0)115 951 3358
University of Nottingham
Nottingham NG7 2RD, UK              Web: http://www.nottingham.ac.uk/~cczdao