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