[Dovecot] Fwd: lmtp

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Sep 24 09:56:07 EEST 2013


-----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 instead
> /home/mail/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.com 
before 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)

iQEVAwUBUkE3h13r2wJMiz2NAQL2Twf9FL1TQfjgCSbqu5bxrE4ZL8KLgSjD74U8
XNSM8RHPAtNWqXuCreYt6Qg9SMjICkus6ymISbk6+c/zWj1HPIp0JonD0IYepZ+X
EN18YMiBH5GhaSuyfBCVZEPRXJuKgNVqeZauyRL5sYwnTT/rLD4nxrbSzE+eWJwg
fPiONQ8jj3w0veER0qHc3Zi1knWsiLYr3uAPiAGrZizwH5gUIEVkVph8/u9kAhAi
alOc4vwaJ+CJJO0L/aBHfZOkgRB4bIuY+Jv8g1q2lwIS0b9kjTcpKf/6F5VgxFva
qwV4FsyUPA+Bb/qSt9v5aeVjn6ekHZFRQNgvcRBj6Oi7ax3G8D3XIQ==
=PIp+
-----END PGP SIGNATURE-----


More information about the dovecot mailing list