imap/pop3/lmtp proxy question/problem

Jogi Hofmüller jogi at mur.at
Wed Jun 25 17:16:57 UTC 2014


Dear list,

We are finally back to our task of migrating from cyrus to dovecot.
dovecot mostly does what we want in terms of POP3/IMAP server.  Now we
are preparing for migration.  The plan is to use dovecot as proxy for
not-yet migrated accounts.  This works wonderfully for IMAP but not for
LMTP.  Here's what I find in the logs when I try to deliver e-mail to
the dovecot lmtp port:

Jun 25 19:03:06 klee dovecot: lmtp(5037): Debug: none: root=, index=,
indexpvt=, control=, inbox=, alt=
Jun 25 19:03:06 klee dovecot: lmtp(5037): Connect from IP-address
Jun 25 19:03:06 klee dovecot: lmtp(5037): Debug: user USER: Auth PASS
lookup returned temporary failure: reason=Configured passdbs don't
support crentials lookups
Jun 25 19:03:06 klee dovecot: lmtp(5037): Debug: auth input:
reason=Configured passdbs don't support crentials lookups

Delivery works fine without proxy (lmtp_proxy = no).  What I would need
to do is to configure the proxy part so that POP3/IMAP uses the accounts
username/password and LMTP uses a special account to deliver e-mail.

This is dovecot-ldap.auth (the =proxy=y will be replaced by a field from
ldap once the tests work):

uris = ldaps://our.ldap.server/
tls = no
auth_bind = yes
base = dc=mur,dc=at
deref = never
scope = subtree
user_attrs = =home=/srv/vmail/mail/%Lu,=uid=999,=gid=999
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs =
uid=user,userPassword=password,=proxy=y,=host=our.imap.server,=starttls=yes
iterate_attrs = uid=user
iterate_filter = (objectClass=posixAccount)

dovecot -n

# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.14-1-amd64 x86_64 Debian jessie/sid
auth_verbose = yes
disable_plaintext_auth = no
lmtp_proxy = yes
login_greeting = Dovecot is spitze!
mail_debug = yes
mail_location = maildir:/srv/vmail/mail/%u
mail_plugins = acl
namespace {
  hidden = no
  inbox = no
  list = children
  location = maildir:/srv/vmail/mail/%%u:INDEX=/srv/vmail/mail/%u/shared/%%u
  prefix = shared.%%u.
  separator = .
  subscriptions = yes
  type = shared
}
namespace inbox {
  hidden = no
  ignore_on_failure = no
  inbox = yes
  list = yes
  location =
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix = INBOX.
  separator = .
  subscriptions = yes
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap lmtp pop3"
service auth {
  unix_listener auth-userdb {
    group = vmail
    user = vmail
  }
}
service lmtp {
  inet_listener lmtp {
    address = 172.16.16.78
    port = 24
  }
  user = vmail
}
ssl_cert = </etc/dovecot/server.pem
ssl_key = </etc/dovecot/private/server.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
protocol lmtp {
  mail_plugins = acl quota sieve
  postmaster_address = postmaster at mur.at
}
protocol imap {
  mail_plugins = acl imap_acl
}

Regards,
-- 
j.hofmüller

Gerüchtegenerator		               http://plagi.at/geruecht

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: OpenPGP digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140625/1f2bb4f8/attachment-0001.sig>


More information about the dovecot mailing list