Add missing debug prints in router/transports
[hcoop/config/exim.git] / conf.d / router / 850_exim4-config_lowuid
CommitLineData
d21ec910
CE
1
2### router/850_exim4-config_lowuid
3#################################
4
5.ifndef FIRST_USER_ACCOUNT_UID
6FIRST_USER_ACCOUNT_UID = 0
7.endif
8
9.ifndef DEFAULT_SYSTEM_ACCOUNT_ALIAS
10DEFAULT_SYSTEM_ACCOUNT_ALIAS = :fail: no mail to system accounts
11.endif
12
13COND_SYSTEM_USER_AND_REMOTE_SUBMITTER = "\
14 ${if and{{! match_ip{$sender_host_address}{:@[]}}\
15 {<{$local_user_uid}{FIRST_USER_ACCOUNT_UID}}}\
16 {1}{0}\
17 }"
18
19# hcoop-change: separate local and remote router
20# hcoop-change: disable remote check since it interferes with relaying from hosts (should be in ACL)
21
22# lowuid_aliases_remote:
23# debug_print = "R: lowuid_aliases_remote for $local_part@$domain (UID $local_user_uid)"
24# check_local_user
25# driver = redirect
26# allow_fail
27# domains = +unix_domains
28# condition = COND_SYSTEM_USER_AND_REMOTE_SUBMITTER
29# data = ${if exists{CONFDIR/lowuid-aliases}\
30# {${lookup{$local_part}lsearch{CONFDIR/lowuid-aliases}\
31# {$value}{DEFAULT_SYSTEM_ACCOUNT_ALIAS}}}\
32# {DEFAULT_SYSTEM_ACCOUNT_ALIAS}}
33
34
35# hcoop-change: redirect all local low uid mail to one account
36COND_SYSTEM_USER = ${if <{$local_user_uid}{FIRST_USER_ACCOUNT_UID}{1}{0}}
37
38lowuid_aliases_local:
39 debug_print = "R: lowuid_aliases_local for $local_part@$domain (UID $local_user_uid)"
40 check_local_user
41 driver = redirect
42 allow_fail
43 domains = +unix_domains
44 condition = COND_SYSTEM_USER
45 data = ${if exists{CONFDIR/lowuid-aliases}\
46 {${lookup{$local_part}lsearch{CONFDIR/lowuid-aliases}\
47 {$value}{HCOOP_SYSTEM_ACCOUNT_ALIAS}}}\
48 {HCOOP_SYSTEM_ACCOUNT_ALIAS}}