Re: [exim] Problem with exim 4.94 and transport using $loca…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Chad Leigh Shire.Net LLC
Dátum:  
Címzett: exim-users
CC: Chad Leigh
Tárgy: Re: [exim] Problem with exim 4.94 and transport using $local_part_suffix


> On Aug 27, 2021, at 12:10 PM, Chad Leigh Shire.Net LLC via Exim-users <exim-users@???> wrote:
>
> I recently upgraded my exim from an earlier version to 4.94, and had to upgrade the $local_part to $local_part_data in my transports for certain deliveries to work (like alias file lookup based on domain name).
>
> My problem is that I have a transport that copies an email into a maildir subfolder for the user when the local part contains a suffix. I was using:
>
> driver
>
> ldaplocal_suffix:
> driver = accept
> condition = ${if eq {}{${lookup ldap {user=\”—— user info -----\" pass=XXXXXXX ldap://my.ldap.host:389/accountName=$local_part,domain=$domain,dc=XXXX,dc=YYY}}}{no}{yes}}
> local_part_suffix = +*
> retry_use_local_part
> transport = ldap_virtual_appendfile_suffix
>
>
>
> transport:
>
> ldap_virtual_appendfile_suffix:
> driver = appendfile
> directory = ${lookup ldap {user="—— user info -----" pass=XXXXXXX ldap://my.ldap.host:389/accountName=${local_part},domain=${domain},dc=XXXX,dc=YYY?mailboxLoc?base?}{$value}fail}/.${substr_1_1000:${local_part_suffix}}
> group = mailgroup
> maildir_format
> user = mailuser
>
>
>
> The version of this above that does not look for local parts suffixes and just delivers to the local part (without the “/.${substr_1_1000:${local_part_suffix}}” at the end works fine.



I was able to find a post in the list archives that set me on the right road to get a solution.    Thanks!!!


ldap_virtual_appendfile_suffix:
driver = appendfile
directory = ${lookup ldap {user="—— user info -----" pass=XXXXXXX ldap://my.ldap.host:389/accountName=${local_part},domain=${domain},dc=XXXX?mailboxLoc?base?}{$value}fail}/.${substr_1_1000:${lookup {/${local_part_suffix_v}} nwildlsearch,ret=key {/opt/local/etc/exim/local_part_suffix.pcre} {$value} {}}}
group = mailgroup
maildir_format
user = mailuser