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