lmtp

postfixでローカル配送するのに、lmtpを使うとパフォーマンスがいいらしいのでlmtp使ってみたがログに `passdb didn't return userdb entries, trying the next userdb` とでてくる(´・ω・`)

==> /var/log/dovecot-debug.log <==
Jul 23 22:23:54 auth: Debug: prefetch(koji@jiikko.com): passdb didn't return userdb entries, trying the next userdb

protocal lmtp内に `/etc/dovecot/conf.d/auth-sql.conf.ext` で使っているusedbをコピペしたら↑のログでなくなった。

protocol lmtp {
  # Space separated list of plugins to load (default is global mail_plugins).
  mail_plugins = $mail_plugins quota
  info_log_path = /var/log/dovecot-lmtp.log

  userdb { 
    driver = sql
    args = /etc/dovecot/dovecot-sql.conf.ext
  }
}

service lmtp {
  executable = lmtp -L
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    user = postfix
    group = postfix
    mode = 0600
  }
}

ちなみにlmtp使うと上記にあるuserdb分のDBクエリが発生しているので、local配送と比べてDBクエリが1つ多くなる。あんま変わらないんだろうけどちょっと気になった。
まあpostfixDVAパッチあてなくてもquota(maildirsize)が使えるっぽいのでlmtp一択なのですが。