summaryrefslogtreecommitdiff
path: root/test/confs/0022
blob: cb41aa4224932a8ab22d23f952651e808cbc0e7c (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Exim test configuration 0022

SERVER=

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

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

hostlist some_hosts = net-lsearch;DIR/aux-var/TESTNUM.hosts

acl_smtp_rcpt = $local_part
log_selector = +smtp_connection
hosts_connection_nolog = : 127.0.0.1
qualify_domain = test.ex


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

begin acl

accept:
  accept

# Check "warn" with and without messages

warn_empty:
  warn
  accept

warn_log:
  warn     log_message = warn log message
  accept

warn_user:
  warn     message = warn user message
  accept

drop:
  drop     message = forcibly dropped

nested_drop:
  accept   endpass
           acl = drop

nested_drop_require:
  require  acl = drop

defer:
  defer    message = forcibly deferred

defer_senders:
  defer    senders = :

delay_accept:
  accept   delay = 1s

delay_warn:
  warn     delay = 1s
  accept

freeze:
  accept   logwrite = Connections=$smtp_count_at_connection_start
           control = freeze

queue_only:
  accept   control = queue_only

host_check:
  deny     hosts = net-lsearch;DIR/aux-var/TESTNUM.hosts
           message = host data >$host_data<

host_check2:
  deny     message = host data >$host_data<
           hosts = +some_hosts


# ----- Routers -----

begin routers

accept:
  driver = accept
  transport = appendfile

# ----- Transports -----

begin transports

appendfile:
  driver = appendfile
  file = DIR/test-mail/$local_part
  create_file = DIR/test-mail
  user = CALLER

# End