[exim] plussed addresses checking in acl_check_rcpt

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Victor Sudakov
Dátum:  
Címzett: exim-users
Tárgy: [exim] plussed addresses checking in acl_check_rcpt
Dear Colleagues,

I have the following check as part of the acl_check_rcpt to
immediately reject users who do not exist in the local Dovecot:

  accept condition = ${if or{ \
                     {bool{${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}{yes}{no}}}} \
                     {bool{${lookup{$local_part@$domain}lsearch{/etc/dovecot/users}{yes}{no}}}} \
                            }}


  # Deny nonexistant dovecot users
  deny message = Unknown user (no such mailbox)
          domains = +dovecot_domains


I would like however to accept mail for plussed usernames like
john+freebsd@??? as well. How can I modify the condition, or
should I use some wiser way to check for existing users? Like moving
the check into the routers somehow?

The routers involved look like this now:

# Redirect virtual users
virtual_redirect:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part@$domain}lsearch{/etc/dovecot/aliases}}

# The dovecot server
dovecot:
driver = accept
domains = +dovecot_domains
transport = dovecot_lmtp
local_part_suffix = +*
local_part_suffix_optional






--
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/49@fidonet