LDA doing passdb queries ?

Peter Mogensen apm at one.com
Mon Aug 22 11:21:55 UTC 2016



Sorry... I meant LDA - not LMTP.

More specifically ... the delivery happening during an LMTP session.

I'm trying something like this:

===================================================================
protocol !lda {
   passdb {
     driver = passwd-file
     args = /etc/dovecot/accounts
   }

   userdb {
     driver = static
     args = uid=vmail gid=vmail home=/srv/vmail/%u mail=maildir:~
   }
}

protocol lda {
#  passdb {
#    driver = static
#  }

   userdb {
     args = /etc/dovecot/dovecot-dict-auth.conf.ext
     driver = dict
     result_success = continue-ok
     result_failure = return-fail
   }
   userdb {
     driver = static
     args = uid=vmail gid=vmail home=/srv/vmail/%u mail=maildir:~
   }
}
==================================================================


The point being that delivery is done to an address which needs an 
external userdb to rewrite the "user" value.
All other access (IMAP...) uses the defined accounts.

The above config won't do, since dovecot complains about a missing 
passdb database (and that PLAIN needs one) ... even if there's no actual 
authentication done during delivery.

It doesn't seem to work, since trying to do delivery via LMTP still 
consults /etc/dovecot/accounts

/Peter


More information about the dovecot mailing list