summaryrefslogtreecommitdiff
path: root/test/confs/0067
blob: 4d53f3a7e891f321f66c174cf5dc87b4e55f87d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Exim test configuration 0067

exim_path = EXIM_PATH
host_lookup_order = bydns
primary_hostname = myhost.test.ex
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME

# ----- Main settings -----

domainlist local_domains = test.ex : myhost.ex
domainlist relay_domains = test.ex : myhost.ex

acl_smtp_rcpt = check_recipient
smtp_accept_max_nonmail = 1000

# ----- ACL -----

begin acl

check_recipient:
  accept  hosts = :
  accept  recipients = postmaster@*
  deny    senders = !x@b.c : *@b.c :\
           !^philip@a.b.c : ^(phil|quil)[^@]*@ :\
           !yy@lsearch;DIR/aux-fixed/TESTNUM.rej.lsearch :\
           lsearch*@;DIR/aux-fixed/TESTNUM.rej.lsearch :\
           @@lsearch*;DIR/aux-fixed/TESTNUM.rej.bydomain : \
           ! x@bb.cc : *@bb.cc :\
           ! DIR/aux-fixed/TESTNUM.not1 : !DIR/aux-fixed/TESTNUM.not2 : \
           bbb.ccc
  deny    senders = 1234@m.n.o : DIR/aux-fixed/TESTNUM.rejrec
  accept  domains = +local_domains
  accept  domains = +relay_domains
  deny    message = relay not permitted

# End