summaryrefslogtreecommitdiff
path: root/test/confs/0486
blob: 7104bb7f50e052476da3603fdd1b5cd79d714477 (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
# Exim test configuration 0486

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

acl_smtp_mail = acl_check_mail
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
queue_only
trusted_users = CALLER


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

begin acl

acl_check_mail:
  warn     logwrite = at MAIL (1): >$sender_address<
  require  verify   = sender
  warn     logwrite = at MAIL (2): >$sender_address<
  accept

acl_check_rcpt:
  warn     logwrite = at RCPT (1): >$sender_address<
  warn     logwrite = at RCPT (2): >$local_part<
  require  verify   = recipient
  warn     logwrite = at RCPT (3): >$local_part<
  accept

acl_check_data:
  warn     logwrite = at DATA (1): >$sender_address<
  warn     logwrite = at DATA (2): >$recipients<
  warn     logwrite = at DATA (3): >From: $h_from:<
  warn     logwrite = at DATA (3): >To: $h_to:<
  accept


#----- Rewrite -----

begin rewrite
^<(smtp.*)   <SW-$1                         S
*@*          RW-$local_part@domain


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

begin routers

r1:
  driver = accept
  transport = t1


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

begin transports

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


# End