Re: [Exim] localuser director

Top Page
Delete this message
Reply to this message
Author: Suresh Ramasubramanian
Date:  
To: 'exim-users@exim.org'
Subject: Re: [Exim] localuser director
Byron Cui rearranged electrons thusly:

> local_delivery:
>    driver=appendfile
>    file=${home}/mbox


> localuser:
>     driver=localuser,
>       transport=local_delivery


> The problem is if a virtual mail account does not exist, mail was delivered
> into local mailbox if they have the same local part.


Try this ... it greps for the user in /etc/passwd of each domain (we kludge
virtual domain support using a user-virtualdomain.com format username for exim
- which is why there's a bit of extra cruft there.

    +suresh


# This director matches local user mailboxes.
default_clients:
driver = smartuser
domains = lsearch; /usr/exim314/local.domains
condition = ${lookup {${local_part}-${domain}} lsearch {/home/popmail/etc/passwd} {yes} {no}}
transport = popmail_qualified
user = popmail
no_more

                    
--
Suresh Ramasubramanian + sureshr@???
Linux is like a Teepee - No Windows, No Gates, Apache Inside