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