summaryrefslogtreecommitdiff
path: root/test/confs/0502
blob: d1314891defacc7bdba8a032e35be73178729312 (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
40
41
42
43
44
45
46
47
48
49
50
# Exim test configuration 0502

LAST=accept message = Your message here

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

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

domainlist local_domains = test.ex
queue_only

acl_smtp_data = check_data
acl_smtp_mail = check_mail
acl_smtp_quit = check_quit
acl_smtp_rcpt = check_rcpt

# ------ ACLs ------

begin acl

check_data:
  warn  set acl_c0 = ${eval:$acl_c0+1}
        set acl_c3 = ${eval:$acl_c3+$acl_m0}
  accept

check_mail:
  warn  set acl_c1 = ${eval:$acl_c1+1}
  accept

q_sub:
  deny

check_quit:
  warn     logwrite = Messages received: $acl_c1
           logwrite = Messages accepted: $acl_c0
           logwrite = Recipients:        $acl_c2
           logwrite = Accepted:          $acl_c3

  require  !acl = q_sub

  LAST

check_rcpt:
  warn  set acl_c2 = ${eval:$acl_c2+1}
        set acl_m0 = ${eval:$acl_m0+1}
  accept

# End