[Dovecot] Fwd: lmtp

Lampa lampacz+dovecot at gmail.com
Tue Sep 24 10:44:30 EEST 2013


Hello,

a) i think not necessary because of b)
b) yes password_query and user_query always returns rewrited domain
(returns main domain, not aliased domain)

configs:
http://pastebin.com/PuZZZ5Pg
http://pastebin.com/eJrp769z


2013/9/24 Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On Fri, 20 Sep 2013, Lampa wrote:
>
>  using dovecot with postfix with mysql. Some domains have alias. Local
>> delivery is realized over lmtp.
>>
>> When lmtp delivery to aliased domains, it takes bad mail_location - it
>> takes aliased instead real domain, so lmtp is creating domain and user
>> directory. Lmtp doesn't make sql lookup. I need lmtp delivery to real
>> domain and i don't want to create symlinks.
>>
>> mail_location = maildir:/home/mail/%d/%n/**Maildir
>> real domain: domain1.com
>> aliased domain: domain2.com
>>
>> rcpt: user at domain2.com
>>
>> lmtp deliver message to /home/mail/domain2.com/user/**Maildir<http://domain2.com/user/Maildir>instead
>> /home/mail/domain1.com/user/**Maildir <http://domain1.com/user/Maildir>
>>
>
> without doveconf -n and, in this case, postfix configuration, nobody can
> really help you. But:
>
> Postfix seems to deliver the message to recipient user at domain2.com via
> LMTP. Dovecot verifies user at domain2.com as valid. How should Dovecot know
> that user at domain2.com is user at domain1.com ?
>
> So, either:
> a) reconfigure postfix to rewrite user at domain2.com into user at domain1.combefore the message is passed to LTMP, or
>
> b) have you Dovecot userdb rewrite the user. Return the file "user" with
> the correct domain.
>
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEVAwUBUkE3h13r2wJMiz2NAQL2Tw**f9FL1TQfjgCSbqu5bxrE4ZL8KLgSjD**74U8
> XNSM8RHPAtNWqXuCreYt6Qg9SMjICk**us6ymISbk6+c/**zWj1HPIp0JonD0IYepZ+X
> EN18YMiBH5GhaSuyfBCVZEPRXJuKgN**VqeZauyRL5sYwnTT/rLD4nxrbSzE+**eWJwg
> fPiONQ8jj3w0veER0qHc3Zi1knWsiL**Yr3uAPiAGrZizwH5gUIEVkVph8/**u9kAhAi
> alOc4vwaJ+CJJO0L/**aBHfZOkgRB4bIuY+**Jv8g1q2lwIS0b9kjTcpKf/**6F5VgxFva
> qwV4FsyUPA+Bb/**qSt9v5aeVjn6ekHZFRQNgvcRBj6Oi7**ax3G8D3XIQ==
> =PIp+
> -----END PGP SIGNATURE-----
>


More information about the dovecot mailing list