summaryrefslogtreecommitdiff
path: root/test/confs/3411
blob: 852a27c6836b0c635ffb8808801fb43c670e6696 (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
# Exim test configuration 3411

.include DIR/aux-var/std_conf_prefix

primary_hostname = myhost.test.ex

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

domainlist local_domains = test.ex
domainlist relay_domains = ten-1.test.ex

hostlist   relay_hosts   = 10.255.255.0/24

trusted_users = CALLER

acl_smtp_rcpt = acl_rcpt

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

begin acl

acl_rcpt:
  accept  hosts         = :

  accept  domains       = +local_domains
          local_parts   = postmaster

  require verify        = sender

  deny    message       = rejected because $sender_host_address is in a black list at $dnslist_domain\n$dnslist_text
          dnslists      = rbl.test.ex

  warn    message       = X-Warning: $sender_host_address is in a black list at $dnslist_domain ($dnslist_value)
          log_message   = found in $dnslist_domain
          dnslists      = rbl2.test.ex

  accept  domains       = +local_domains
          endpass
          verify        = recipient

  require verify        = recipient

  accept  domains       = +relay_domains

  accept  hosts         = 127.0.0.1 : +relay_hosts

  accept  authenticated = *

  deny    message       = relay not permitted


# ------ Authenticators ------

begin authenticators

plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = ${if eq {$3}{secret}{yes}{no}}


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

begin routers

r1:
  driver = dnslookup
  domains = ! +local_domains
  transport = dev_null
  no_more

r2:
  driver = accept
  local_parts = userx : postmaster
  transport = local_delivery
  cannot_route_message = unknown user


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

begin transports

dev_null:
  driver = appendfile
  file = /dev/null
  user = CALLER

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

# End