Exim 4.72 release
[exim-website.git] / config.samples / C012
1 Date: Thu, 05 Nov 1998 00:19:46 +0100
2 From: David Frey <david@eos.lugs.ch>
3
4 I've written a small chapter how-to configure exim for use with UUCP
5 (mostly condensed from the exim-user mailing list plus some experimenting)
6 and would be glad if it could be included in the exim documentation.
7
8 --------------------------------------------------------------------------8<---
9 \input texinfo                                               @c -*- texinfo -*-
10 @c $Id: exim-uucp.texi,v 1.2 1998/10/24 19:35:37 david Rel $
11
12 @c %** start of header
13 @setfilename exim-uucp.info
14 @settitle    Exim and @sc{uucp}
15 @c %** end of header
16
17 @iftex
18 @afourpaper
19 @end iftex
20
21 @section Exim and @sc{uucp}
22
23 Configuring exim for use with @sc{uucp} is a bit of manual work, since exim
24 wasn't written with @sc{uucp} in mind.
25
26 This guide assumes that you use @emph{Internet-addressing} --- i.e. both
27 sides use Taylor-@sc{uucp} --- or 1-level deep Bang-paths (the Bang-Path level 
28 has to be finite to make address-rewriting feasible). What you have to do is 
29 the following:
30
31 @enumerate
32 @item 
33 add a new transports definition
34 @item 
35 add a new router
36 @end enumerate
37
38 @subsection Transports
39
40 The @emph{transports} does the work: it passes the mail to @sc{uucp}.
41 This is the place to do bang-path-conversions and similar things
42 (when using Taylor-@sc{uucp}, as my provider does, the Internet-address 
43 is simply passed to rmail).        
44
45 @example
46 uucp_pipe:
47   driver = pipe 
48   batch = all 
49   command = "uux - -a\"$sender_address\" -r $host\!rmail $pipe_addresses" 
50   delivery_date_add = true 
51   pipe_as_creator 
52   restrict_to_path 
53   path = "/usr/bin:/bin" 
54   return_output
55 @end example
56
57 If you wanted to use bang-paths, you'd use something as (untested):
58 @example
59 @dots{}
60   command = "uux - -a$sender_address -r $host\!rmail ($domain\!$local_part)" 
61 @dots{}
62 @end example
63
64 @subsection Router
65
66 The @emph{router} tells exim that a @sc{uucp}-route is available:
67
68 @example
69 uucp:
70   driver = domainlist 
71   transport = uucp_pipe 
72   route_list = "* neighbor byname"
73 @end example
74
75 @var{neighbor} is the upstream @sc{uucp}-neighbor; all outgoing traffic
76 is routed over there (leaf node configuration).
77
78 @subsection Other
79
80 In order to omit the @code{Sender: uucp} line, add @var{uucp} to the
81 trusted users:
82
83 @example
84 trusted_users  = mail:uucp
85 trusted_groups = uucp
86 @end example
87
88 @bye
89 --------------------------------------------------------------------------8<---