c84d54fec9302253614d204a31c3bf67757cbcd1
[exim.git] / test / confs / 2600
1 # Exim test configuration 2600
2
3 exim_path = EXIM_PATH
4 host_lookup_order = bydns
5 primary_hostname = myhost.test.ex
6 spool_directory = DIR/spool
7 log_file_path = DIR/spool/log/%slog
8 gecos_pattern = ""
9 gecos_name = CALLER_NAME
10 tls_advertise_hosts =
11
12 # ----- Main settings -----
13
14 domainlist local_domains = @
15 hostlist   relay_hosts = sqlite;DIR/aux-fixed/sqlitedb \
16                                      select * from them where \
17                                      id='$sender_host_address'
18
19 acl_smtp_rcpt = check_recipient
20 sqlite_lock_timeout = 2
21
22
23 # ----- ACL -----
24
25 begin acl
26
27 check_recipient:
28   accept  domains = +local_domains
29   accept  hosts = +relay_hosts
30   deny    message = relay not permitted
31
32
33 # ----- Routers -----
34
35 begin routers
36
37 r1:
38   driver = accept
39   address_data = ${lookup sqlite \
40     {DIR/aux-fixed/sqlitedb select name from them where id='userx'}}
41   transport = t1
42
43
44 # ----- Transports -----
45
46 begin transports
47
48 t1:
49   driver = appendfile
50   file = DIR/test-mail/\
51     ${lookup sqlite{DIR/aux-fixed/sqlitedb select id from them where id='userx'}\
52       {$value}fail}
53   user = CALLER
54
55
56 # End