4.78 -> 4.80
[exim.git] / configs / config.samples / C045
CommitLineData
e0f3765a
PH
1Date: Tue, 20 Aug 2002 07:33:36 -0700
2From: "Kevin P. Fleming" <kpfleming@cox.net>
3
4Here it is, for Exim 4.10 and Cyrus IMAPD 2.1.5 using db3/db4-format
5mailbox database. This configuration delivers the messages to Cyrus
6IMAPD using LMTP over a TCP/IP socket, so the cyrus.conf file needs to
7start lmtpd as "lmtpd -a" so the connection will be pre-authenticated
8(given that, it is also important that the cyrus.conf file restrict
9lmtpd to listening on 127.0.0.1 _only_, otherwise random users could
10submit messages directly to lmtpd).
11
12
13routers:
14
15# look in the Cyrus IMAPD mailboxes.db file for local_domains local
16# parts to be verified
17local_user_verify:
18 driver = accept
19 domains = +local_domains
20 local_part_suffix = +*
21 local_part_suffix_optional
22 condition = ${lookup{user.${local_part}} dbmnz {/storage/imap/mailboxes.db} {yes}{no}}
23 verify_only
24
25# rewrite local_domains local parts to be all lowercase
26lowercase_local:
27 driver = redirect
28 redirect_router = local_user
29 domains = +local_domains
30 data = ${lc:${local_part}}
31
32# deliver local_domains messages
33local_user:
34 driver = accept
35 domains = +local_domains
36 transport = local_delivery
37
38
39transport:
40
41# deliver messages to Cyrus IMAPD using LMTP over TCP/IP on the loopback
42interface
43local_delivery:
44 driver = smtp
45 protocol = lmtp
46 allow_localhost = yes
47 hosts = 127.0.0.1
48