Exim 4.72 release
[exim-website.git] / config.samples / C025
1 Date: Mon, 04 Oct 1999 11:55:46 -0300
2 From: Patrick Boutilier <boutilpj@ednet.ns.ca>
3
4 As promised here is the way I got Exim to delver to Cyrus mailboxes if
5 the user exists in the MySql database.
6
7
8 # This transport is for Cyrus
9
10 local_delivery_cyrus:
11   driver = pipe
12   command = "/usr/cyrus/bin/deliver -m ${substr_1:${local_part_suffix}}
13 -- ${local_part}"
14   user = cyrus
15   group = mail
16   return_output
17   log_output
18   prefix =
19   suffix =
20
21
22 # This director checks if the alias is valid
23
24 mysql_system_aliases:
25   driver = aliasfile
26   search_type = mysql
27   query = "select userid from user where aliasid='$local_part'"
28
29
30
31 # This director matches local Cyrus mailboxes
32
33 local_user_cyrus:
34   driver = aliasfile
35   search_type = mysql
36   query = "select userid from user where userid='$local_part'"
37   transport = local_delivery_cyrus
38
39