child-open debug
[exim.git] / configs / config.samples / C002
CommitLineData
e0f3765a
PH
1Date: Wed, 14 Jan 1998 15:07:22 +0200
2From: Vladimir Litovka <doka@grunt.vl.net.ua>
3
4[Syntax converted for Exim 4 by PH, 06-Dec-2001. Unchecked.]
5
6Although exim not intended for use in UUCP environment (it doesn't know
7anything about bang!path addresses), I'm successfully using it for delivering
8mail 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
21The 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
30The 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
37For successfully delivering mail to uucp domain you must create such
38transport:
39
40#-------------------------------------------------------------------#
41uux:
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
49and such router:
50
51#-------------------------------------------------------------------#
52force_uucp:
53 driver = manualroute
54 route_data = partial-lsearch;/etc/exim/maps/force.uucp
55#-------------------------------------------------------------------#
56
57and use something similar to this force.uucp:
58
59# Domain Relay Options
60# ------ ----- -------
61system1 system1 uux
62system1.domain system1 uux
63#
64system2 system2 uux
65system2.domain system2 uux
66
67(!) Note, that you need unqualified names (system1, system2) because
68second rewrite rule don't do qualification (it known nothing about this).