summaryrefslogtreecommitdiff
path: root/test/confs/0502
blob: a6ff74c403eddefc0fe13adf3c0c3729c8eaa5b5 (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
51
52
53
54
55
# Exim test configuration 0502

LAST=accept message = Your message here

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
tls_advertise_hosts =

# ----- 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