Re: [Exim] Exim + Courier IMA

Top Pagina
Delete this message
Reply to this message
Auteur: Friso Kuipers
Datum:  
Aan: djc
CC: exim-users
Onderwerp: Re: [Exim] Exim + Courier IMA
On 24 Jan, Dave C. wrote:

>
> And I've found the following director works great.
>
> virtual:
> driver = smartuser
> domains = /etc/exim/domains
> condition = ${lookup{$local_part@$domain} lsearch {/etc/userdb}
> {true} {false}} user=${extract{uid}{
> ${tr{${lookup{$local_part@$domain} lsearch {/etc/userdb} {$value}
> fail}}{|}{ }}}{$value}fail} group=mail home_directory =
> ${extract{home}{ ${tr{${lookup{$local_part@$domain} lsearch
> {/etc/userdb} {$value} fail}}{|}{ }}}{$value}fail} transport =
> local_delivery_maildir
>
> (I use $tr to turn the pipes into spaces, and then exim's $extract
> gets the field I need)
>
> My userdb looks like:
>
> .
> user@???    home=/var/mail/domain.com/user|systempw=[omitted]|uid=20000
> user2@???
> home=/var/mail/domain.com/user2|systempw=[omitted]|uid=20001
> user@???
> home=/var/mail/other.net/user|systempw=[omitted]|uid=20002
> .

>
> And the exim transport:
>
> local_delivery_maildir:
> driver = appendfile
> maildir_format
> directory = ${home}/Maildir
> delivery_date_add
> envelope_to_add
> return_path_add
> check_string = ""
> prefix = ""
> suffix = ""
> current_directory = /
> create_directory = true
> directory_mode = 0700
>
>
>
>
>


Which proves once again Exim can be made to do anything except walking
the dog (wishlist?).

Regards,
Friso Kuipers.