made reference absolute
[exim-website.git] / config.samples / C002
1 Date: Wed, 14 Jan 1998 15:07:22 +0200
2 From: Vladimir Litovka <doka@grunt.vl.net.ua>
3
4  Although exim not intended for use in UUCP environment (it doesn't know
5 anything about bang!path addresses), I'm successfully using it for delivering
6 mail to UUCP clients. For this purposes I'm using two rewrite rules:
7
8 #--------------------- REWRITE CONFIGURATION ------------------------#
9
10 # system!system.domain.net!user
11 ^([^!]+)!((\w+)(\.\w+)+)!(.*)@your\.domain \
12         "${if eq {$1}{$3}{$5@$2}{$2!$5@$1}}"    Tbcrtq
13
14 # system*!user
15 ^([^!]+)!(.*)@your\.domain      $2@$1   Tbcrtq
16
17 #--------------------------------------------------------------------#
18
19 The first rule check
20   if destination address in form:
21     uuname!system.some.domain!user
22   and
23     uuname == system
24   it rewrites address to user@system.some.domain
25   else it rewrites it to system.some.domain!user@uuname
26   and QUIT.
27
28 The second rule check
29   if destination address in form:
30     uuname1!uuname2!FQDN!...!uunameN!user
31   it rewrites it to
32     uuname2!FQDN!...!uunameN!user@uuname1
33   and QUIT.
34
35 For successfully delivering mail to uucp domain you must create such
36 transport:
37
38 #-------------------------------------------------------------------#
39 uux:
40   driver = pipe;
41   command = "/usr/bin/uux - -r $host!rmail ($local_part@$domain)",
42   path = "/usr/local/bin:/usr/bin:/bin",
43   return_fail_output,
44   user = uucp,
45 #-------------------------------------------------------------------#
46
47 and such router:
48
49 #-------------------------------------------------------------------#
50 force_uucp:
51   driver = domainlist;
52   route_file = /etc/exim/maps/force.uucp,
53   search_type = partial-lsearch,
54 #-------------------------------------------------------------------#
55
56 and use something similar to this force.uucp:
57
58 # Domain                Relay                   Options
59 # ------                -----                   -------
60 system1                 system1                 uux
61 system1.domain          system1                 uux
62 #
63 system2                 system2                 uux
64 system2.domain          system2                 uux
65
66 (!) Note, that you need unqualified names (system1, system2) because
67 second rewrite rule don't do qualification (it known nothing about this).