1 # Exim test configuration 9100
5 host_lookup_order = bydns
6 primary_hostname = myhost.test.ex
7 spool_directory = DIR/spool
8 log_file_path = DIR/spool/log/%slog
10 gecos_name = CALLER_NAME
13 # ----- Main settings -----
15 domainlist local_domains = @
16 hostlist relay_hosts = net-mysql;select * from them where id='$sender_host_address'
18 acl_smtp_rcpt = check_recipient
20 mysql_servers = localhost/test/root/
28 accept domains = +local_domains
29 accept hosts = +relay_hosts
30 deny message = relay not permitted
39 address_data = ${lookup mysql{select name from them where id='ph10'}}
43 # ----- Transports -----
49 file = DIR/test-mail/\
50 ${lookup mysql{select id from them where id='ph10'}{$value}fail}