summaryrefslogtreecommitdiff
path: root/test/confs/0416
blob: 08146e2592ef0ab623df7d60624b3c0432a64cbb (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
56
57
58
59
# Exim test configuration 0416

exim_path = EXIM_PATH
host_lookup_order = bydns
rfc1413_query_timeout = 0s
spool_directory = DIR/spool
log_file_path = DIR/spool/log/%slog
gecos_pattern = ""
gecos_name = CALLER_NAME

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

primary_hostname = mail.test.ex
qualify_domain = test.ex
queue_only
no_queue_only_override

acl_smtp_helo = helo
acl_smtp_mail = mail
acl_smtp_rcpt = ${if eq{$local_part}{nested_discard}{nested_rcpt}{rcpt}}
acl_smtp_data = data
acl_not_smtp = notsmtp

log_selector = +received_recipients


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

begin acl

helo:
  discard

mail:
  discard senders = discard@x.y
          log_message = discard message 2
  accept

rcpt:
  discard local_parts = discard
          log_message = discard message 1
  accept

nested_rcpt:
  accept  acl = helo

data:
  discard condition = ${if match{$recipients}{data_message_discard}}
          log_message = discard message 3
  discard condition = $h_discard:
  accept

notsmtp:
  discard condition = ${if match{$recipients}{data_message_discard}}
          log_message = discard message 4
  discard condition = $h_discard:
  accept

# End