1 # Exim test configuration 9200
3 SERVERS=localhost/test/ph10/
6 host_lookup_order = bydns
7 primary_hostname = myhost.test.ex
8 spool_directory = DIR/spool
9 log_file_path = DIR/spool/log/%slog
11 gecos_name = CALLER_NAME
13 # ----- Main settings -----
15 domainlist local_domains = @
16 hostlist relay_hosts = net-pgsql;select * from them where \
17 id='$sender_host_address'
19 acl_smtp_rcpt = check_recipient
21 pgsql_servers = SERVERS
29 accept domains = +local_domains
30 accept hosts = +relay_hosts
31 deny message = relay not permitted
40 address_data = ${lookup pgsql{select name from them where id='ph10'}}
44 # ----- Transports -----
50 file = DIR/test-mail/\
51 ${lookup pgsql{select id from them where id='ph10'}{$value}fail}