There is a thread in the Dovecot mailing list discussing this subject,
but I think it best to ask here aswell:

My Dovecot 2.0 configuration contains these lines

  auth_username_format = %Ln
  service lmtp {
    unix_listener /var/spool/postfix/private/dovecot-lmtp {
      user = postfix
      group = postfix
      mode = 0660
    }
  }

and I have included the lines

  myhostname = server.domain.tld
  mydestination = $myhostname localhost.$mydomain localhost
  mailbox_transport = lmtp:unix:private/dovecot-lmtp

in my main.cf. When Postfix is asked to deliver mail to

  u...@server.domain.tld

it does so using Dovecot's LMTP socket. What bothers me about this
configuration is "auth_username_format = %Ln" in my Dovecot config.
The parameter affects all user lookups, which means that one cannot
distinguish between u...@domaina and u...@domainb during IMAP login.

I wonder how I can setup a transport which drops the @server.domain.tld
suffix when Postfix delivers mail via LMTP?

-Ralph

Reply via email to