Testsuite: Experimental_Certnames absorbed into mainline
[users/jgh/exim.git] / test / confs / 9200
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 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/%slog
10 gecos_pattern = ""
11 gecos_name = CALLER_NAME
12
13 # ----- Main settings -----
14
15 domainlist local_domains = @
16 hostlist   relay_hosts = net-pgsql;select * from them where \
17                                      id='$sender_host_address'
18
19 acl_smtp_rcpt = check_recipient
20
21 pgsql_servers = SERVERS
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 pgsql{select name from them where id='ph10'}}
41   transport = t1
42
43
44 # ----- Transports -----
45
46 begin transports
47
48 t1:
49   driver = appendfile
50   file = DIR/test-mail/\
51     ${lookup pgsql{select id from them where id='ph10'}{$value}fail}
52   user = CALLER
53
54
55 # End