Re: [exim] Reject messages to users with low UID

Pàgina inicial
Delete this message
Reply to this message
Autor: Marc Haber
Data:  
A: exim-users
Assumpte: Re: [exim] Reject messages to users with low UID
On Tue, 05 Jun 2007 21:04:17 +0200, Marc Haber
<mh+exim-users@???> wrote:
>I would like to make it easily configurable in the Debian packages to
>reject messages to local accounts with UID below a certain border. I
>also would like to have the possibility to define exceptions for this
>rule.


No comments about this for me?

Anyway, this is the current version, which is a no-op unless
FIRST_USER_UID is explicitly set and does not block messages
originating locally:
|### router/250_exim4-config_lowuid
|#################################
|
|.ifndef FIRST_USER_UID
|FIRST_USER_UID = 0
|.endif
|
|COND_SYSTEM_USER_AND_REMOTE_SUBMITTER = "\
|               ${if and{{! match_ip{$sender_host_address}{:@[]}}\
|                        {<{$local_user_uid}{FIRST_USER_UID}}}\
|                    {1}{0}\
|                }"

|
|lowuid_aliases:
|  debug_print = "R: lowuid_aliases for $local_part@$domain (UID $local_user_uid)"
|  check_local_user
|  driver = redirect
|  allow_fail
|  domains = +local_domains
|  condition = COND_SYSTEM_USER_AND_REMOTE_SUBMITTER
|  data = "${if exists{/etc/exim4/lowuid-aliases}\
|             {${lookup{$local_part}lsearch{/etc/exim4/lowuid-aliases}}}\
|             fail}"
|  redirect_router = lowuid_target

|
|lowuid_reject:
| debug_print = "R: lowuid_reject for $local_part@$domain (UID $local_user_uid)"
| check_local_user
| driver = redirect
| allow_fail
| domains = +local_domains
| condition = COND_SYSTEM_USER_AND_REMOTE_SUBMITTER
| data = ":fail: no mail to system accounts"

|
|lowuid_target:
| condition = 0
| driver = redirect
| data = ":fail:"


Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834