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