Autor: Jason Lixfeld Data: Dla: exim-users Temat: [exim] Delivering virtual mail as a real user
I'm trying to figure out how to deliver mail as a specific user out of
LDAP.
The routers and transports are listed below, as are the ldifs for the
alias and the real user the alias points to.
The message hits the virtual_aliases router, the mailLocalAddress is
returned and the message is redirected and processed now by the
virtual_user router which delivers based on the virtual_delivery
transport -- this is where the problem is. I've tried a bunch of user
= and group = options, but I can't get it to work. The reason why is
because local_part of the email address in question here testuser but
is not actually the username of the real user. the real username is
testuser.discord.ca. Another user might have a real name of
joeuser.thisdomain.tld so the suffix after testuser will not always be
constant. If there was a way in the virtual_delivery transport to tell
the user = and group = to run as the user mailLocalAddress
testuser.discord.ca, my problems would be solved. I'm sure there is a
way, I'm just missing it.
Any way to write arbitrary variables or something that I can pass to
different transports? In the listed virtual_transport below, you'll
see some of the attempts I've made to try to get this work work.