blob: 887f2184db778c75905865d13cd7616d125251cd (
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
|
# Exim test configuration 3418
.include DIR/aux-var/std_conf_prefix
primary_hostname = myhost.test.ex
# ----- Main settings -----
domainlist local_domains = test.ex : *.test.ex
auth_advertise_hosts = 10.0.0.5
trusted_users = CALLER
event_action = ${acl {auth_event}}
# ----- ACL -----
begin acl
.include DIR/aux-fixed/event-logger-acl
auth_event:
warn acl = logger
accept condition = ${if eq {$event_name}{auth:fail}}
message = custom-message: $sender_host_authenticated authenticator failed \
H=$sender_fullhost [$sender_host_address] $event_data $authenticated_fail_id
# ----- Authentication -----
begin authenticators
testname:
driver = plaintext
public_name = mylogin
server_debug_print = +++MYLOGIN \$1="$1" \$2=\"$2" \$3="$3"
server_condition = "\
${if match{$1}{^(\\\\S+)\\\\s+(\\\\S+)\\$}\
{${if and {{eq{$1}{userx}}{eq{$2}{secret}}}{yes}{no}}}{no}}"
server_set_id = $auth1
# End
|