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 [email protected]
shows:

[email protected]
------- 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: '[email protected]'
file is not a filter file
parse_forward_list:[email protected]
extract item:[email protected]
global_aliases router [email protected]
  errors_to=NULL transport=NULL
  uid=unset gid=unset home=NULL
routed by global_aliases router
  envelope to:[email protected]
  transport: <none>

[email protected]
--------> 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 [email protected]
------- local_user router -------
local_part=fri domain=mailbox.hrz.tu-chemnitz.de
checking domains
calling local_user router
local_user router called [email protected]
  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:[email protected]
  transport: lmtp
[email protected]
    <[email protected]
  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