1 # Exim test configuration 9200
3 SERVERS=localhost/test/ph10/
7 host_lookup_order = bydns
8 primary_hostname = myhost.test.ex
9 spool_directory = DIR/spool
10 log_file_path = DIR/spool/log/%slog
12 gecos_name = CALLER_NAME
15 # ----- Main settings -----
17 domainlist local_domains = @
18 hostlist relay_hosts = net-pgsql;select * from them where \
19 id='$sender_host_address'
21 acl_smtp_rcpt = check_recipient
23 pgsql_servers = SERVERS
31 accept domains = +local_domains
32 accept hosts = +relay_hosts
33 deny message = relay not permitted
42 address_data = ${lookup pgsql{select name from them where id='ph10'}}
46 # ----- Transports -----
52 file = DIR/test-mail/\
53 ${lookup pgsql{select id from them where id='ph10'}{$value}fail}