Wietse Venema via Postfix-users <[email protected]> wrote:
> Michael Grimm via Postfix-users:
>> Wietse Venema via Postfix-users <[email protected]> wrote:
>>> Michael Grimm via Postfix-users:
>>>> Wietse Venema via Postfix-users <[email protected]> wrote:
>>>>> Michael Grimm via Postfix-users:

>>>>>> Thus, I am thinking about "duplicating" my current LMTP 
>>>>>> virtual_transport to either dovecot and dbmail-lmtpd.
>> 
>>>>> Use different transports for dovecot and dbmail, then use
>>>>> recipient_bcc_maps to add a recipient and use a tranpsort_maps entry
>>>>> with that recipient address.
>>>>> 
>>>>> If necessary I can do a configuration example.
>>>> 
>>>> I am sorry to say, yes, that would be necessary for me ;-)
>> 
>> Let me rephrase your proposal and ask if I got it right:
>> 
>> (Example incoming mail to: [email protected])
>> 
>> 1) Different transports for both LMTP delivery steps:
>> lmtp:unix:private/dovecot-smtp
>> dbmail-lmtp:[10.0.1.11]:24
>> 
>> 2) "Duplicate" incoming mail using recipient_bcc_maps
>> [email protected] <mailto:[email protected]> -> 
>> [email protected]
>> 
>> 3) Use lmtp:unix:private/dovecot-smtp for [email protected]
>>   Use dbmail-lmtp:[10.0.1.11]:24 for [email protected]
>> 
>> Correct?
> 
> Assuming that those are the email addresses you want to deliver to.
> If not, you need to change the recipient_bcc_maps addeess, 
> the transport mapping for that address, and maybe do not need
> the generic_maps stuff.
> 
> Bur the basic model remains, just different email addresses.

I finally got dual local LMTP delivery done, but without using 
recipient_bcc_maps. It took me a while to realise that it is easier to 
duplicate final delivery to the mailboxes by virtual_alias_maps instead of 
recipient_bcc_maps. 

(1) transport_maps:
        dbmail.enfer-du-nord.net        dbmail-lmtp:[10.0.1.11]:24
        dbmail.ellael.org               dbmail-lmtp:[10.0.1.11]:24
        …

All my virtual mailboxes look like [email protected], thus:

(2) additional pcre:virtual_alias_maps to the existing lmdb:virtual_alias_maps:
        /^(.*)@enfer-du-nord\.net$/     ${1}@enfer-du-nord.net 
${1}@dbmail.enfer-du-nord.net

As you mentioned, the following step is not really needed. But I chose it to 
keep virtual mailbox naming the same at both IMAP servers.

(3) lmtp_generic_maps (triggered in master.cf):
        /^(.*)@dbmail\.(.*)$/           ${1}@${2}


Thank you very much for guiding me to this approach. I have learned a lot, and 
I could remove some no longer needed stuff in main.cf ;-)

Regards,
Michael


_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to