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