Johnnie Adams via Exim-users <[email protected]> wrote:

>      Is it possible to write a lookup for an account [email protected] and
> untaint the local part depending on a file foo.txt existing in a given
> directory?

I use this in my virtual mailbox setup:

domainlist virtualdomains = ${lookup {$domain} dsearch {/var/exim/mail}}
localpartlist virtuallocalpart = ${lookup {$local_part} dsearch 
{/var/exim/mail/$domain_data/mail}}

And in the router:

  domains = +virtualdomains
  local_parts = +virtuallocalpart

domains sets up $domain_data, which is subsequently used in local_parts to 
create
$local_part_data. Both are used in the transport for storing the message.

You can filter for the result being a file, see:

  
https://www.exim.org/exim-html-current/doc/html/spec_html/ch-file_and_database_lookups.html

Michael

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to