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