I wonder if I was being too imprecise? I can of course provide "postconf -n"
(and/or "dovecot -n") output if it should be required to answer my question.

-------- Original Message --------
Subject: How to drop the recipient address hostname when delivering mail via 
LMTP?
Date: Wed, 25 Aug 2010 21:08:42 +0200
From: Ralph Seichter <postfix...@seichter.de>
To: postfix-users@postfix.org

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