Accessing the -a and -d from dovecot-lda
Stephan Bosch
stephan at rename-it.nl
Sun Dec 8 13:36:10 EET 2019
On 26/11/2019 07:09, Aristedes Maniatis via dovecot wrote:
>
> I've got exim set up to deliver like this:
>
>
> command = /usr/local/libexec/dovecot/dovecot-lda -a $original_local_part@$original_domain -d $local_part@$domain -f $sender_address
>
>
> If an email to is bob+sales at ish.com.au then we should have "-a
> bob+sales at subdomain.ish.com.au -d bob at ish.com.au".
>
>
> Now in dovecot, only bob at ish.com.au is a real user but I want to be
> able to use both addresses in different places. For LDAP lookup I need
> to reference bob at ish.com.au. But in sieve, I need to see the original
> address with plus notation.
>
> However, dovecot appears to get the "-a" address into %u and the "-d"
> address can't be accessed.
>
> https://doc.dovecot.org/configuration_manual/config_file/config_variables/
>
>
> Is what is the point of dovecot-lda having both -a and -d options? Can
> I get at both bits of data?
>
In Sieve, the "envelope" test always uses the original envelope TO
address (-a) for the "to" envelope part.
Regards,
Stephan.
More information about the dovecot
mailing list