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
14 # ----- Main settings -----
16 domainlist local_domains = @
17 hostlist relay_hosts = net-pgsql;select * from them where \
18 id='$sender_host_address'
20 acl_smtp_rcpt = check_recipient
22 pgsql_servers = SERVERS
30 accept domains = +local_domains
31 accept hosts = +relay_hosts
32 deny message = relay not permitted
41 address_data = ${lookup pgsql{select name from them where id='ph10'}}
45 # ----- Transports -----
51 file = DIR/test-mail/\
52 ${lookup pgsql{select id from them where id='ph10'}{$value}fail}