Hello,

we'd like to allow subaddresses like user+sub@domain to deliver to users’s 
folder sub (if existent) via lmtp. Target system is cyrus-imapd.
We have these routers:

global_aliases:
  driver = redirect
  allow_defer
  allow_fail
  data = ${lookup{$local_part@$domain}dbm{DBM/aliases}}
  local_part_suffix = "+*"
  local_part_suffix_optional
  retry_use_local_part
  no_rewrite

local_user:
  driver = accept
  domains = mailbox.hrz.tu-chemnitz.de : mail.tu-chemnitz.de
  no_check_local_user
  transport = lmtp
…

and this transport:

lmtp:
  driver = smtp
  protocol = lmtp
  hosts = host1
  rcpt_include_affixes = true
  delivery_date_add

Running
/usr/sbin/exim -v -d-all+route -bvfri+t...@hrz.tu-chemnitz.de
shows:

routingfri+t...@hrz.tu-chemnitz.de
------- global_aliases router -------
local_part=fri+test domain=hrz.tu-chemnitz.de
stripped suffix +test
calling global_aliases router
rda_interpret (string): '${lookup{$local_part@$domain}dbm{/path/aliases}}'
expanded: 'f...@mailbox.hrz.tu-chemnitz.de'
file is not a filter file
parse_forward_list:f...@mailbox.hrz.tu-chemnitz.de
extract item:f...@mailbox.hrz.tu-chemnitz.de
global_aliases router generated...@mailbox.hrz.tu-chemnitz.de
  errors_to=NULL transport=NULL
  uid=unset gid=unset home=NULL
routed by global_aliases router
  envelope to:fri+t...@hrz.tu-chemnitz.de
  transport: <none>

routing...@mailbox.hrz.tu-chemnitz.de
--------> global_aliases router <--------
local_part=fri domain=mailbox.hrz.tu-chemnitz.de
calling global_aliases router
rda_interpret (string): '${lookup{$local_part@$domain}dbm{/path/aliases}}'
expanded: ''
file is not a filter file
parse_forward_list:
global_aliases router declined for...@mailbox.hrz.tu-chemnitz.de
------- local_user router -------
local_part=fri domain=mailbox.hrz.tu-chemnitz.de
checking domains
calling local_user router
local_user router called for...@mailbox.hrz.tu-chemnitz.de
  domain = mailbox.hrz.tu-chemnitz.de
set transport lmtp
queued for lmtp transport: local_part = fri
domain = mailbox.hrz.tu-chemnitz.de
  errors_to=NULL
  domain_data=mailbox.hrz.tu-chemnitz.de local_part_data=NULL
routed by local_user router
  envelope to:f...@mailbox.hrz.tu-chemnitz.de
  transport: lmtp
f...@mailbox.hrz.tu-chemnitz.de
    <--fri+t...@hrz.tu-chemnitz.de
  router = local_user, transport = lmtp

→ the suffix +test is gone here.

Does anybody has a hint how to keep the subaddress to the lmtp transport?

Thanks,
Frank

--
Frank Richter, Chemnitz University of Technology, Germany

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to