<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }body { font-size: 14px; font-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 14px; font-family: "Microsoft YaHei UI"; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Dear Everybody:</div><div><span microsoft="" yahei="" ui";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;"="">    </span><span style="background-color: transparent;">    </span><span style="background-color: transparent;">May I ask how to configure dovecot otp one-time verification login, that is, after the user logs in to the mailbox with the password + otp, he can send and receive emails without entering the password + otp again?</span></div><div><span style="background-color: transparent;"><br></span></div><div><span style="background-color: transparent;"># This is my settings:</span></div><div><span style="background-color: transparent;"># </span><span style="background-color: transparent;">/etc/dovecot/conf.d/10-auth.conf</span></div><div><div>disable_plaintext_auth = yes</div><div>auth_cache_size = 10M</div><div>auth_failure_delay = 5 secs</div><div>auth_ssl_username_from_cert = yes</div><div>auth_mechanisms = otp</div><div>!include auth-ldap.conf.ext</div></div><div><br></div><div>error logs:</div><div>-------------------------------</div><div><div>6952-Jan 06 18:03:01 master: Info: Dovecot v2.3.19.1 (9b53102964) starting up for imap, lmtp (core dumps disabled)</div><div>6953-Jan 06 18:03:02 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6954-Jan 06 18:03:02 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6955:Jan 06 18:03:02 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6956-Jan 06 18:03:02 master: Error: service(auth): command startup failed, throttling for 2.000 secs</div><div>6957-Jan 06 18:03:02 imap-login: Info: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=172.30.20.51, lip=172.16.5.111, TLS handshaking, session=<OiDkhZXx7fasHhQz></div><div>6958-Jan 06 18:03:07 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6959-Jan 06 18:03:07 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6960:Jan 06 18:03:07 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6961-Jan 06 18:03:07 master: Error: service(auth): command startup failed, throttling for 4.000 secs</div><div>6962-Jan 06 18:03:07 imap-login: Info: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=172.30.20.51, lip=172.16.5.111, TLS handshaking, session=<qgIyhpXx8PasHhQz></div><div>6963-Jan 06 18:03:11 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6964-Jan 06 18:03:11 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6965:Jan 06 18:03:11 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6966-Jan 06 18:03:11 master: Error: service(auth): command startup failed, throttling for 8.000 secs</div><div>6967-Jan 06 18:03:11 imap-login: Info: Disconnected: Auth process broken (disconnected before auth was ready, waited 3 secs): user=<>, rip=172.30.20.51, lip=172.16.5.111, TLS, session=<gDdvhpXx8/asHhQz></div><div>6968-Jan 06 18:03:19 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6969-Jan 06 18:03:19 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6970:Jan 06 18:03:19 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6971-Jan 06 18:03:19 master: Error: service(auth): command startup failed, throttling for 16.000 secs</div><div>6972-Jan 06 18:03:19 imap-login: Info: Disconnected: Auth process broken (disconnected before auth was ready, waited 8 secs): user=<>, rip=172.30.20.51, lip=172.16.5.111, TLS, session=<qp7phpXx9PasHhQz></div><div>6973-Jan 06 18:03:29 imap-login: Info: Disconnected: Connection closed (disconnected before auth was ready, waited 5 secs): user=<>, rip=172.30.20.51, lip=172.16.5.111, TLS, session=<N1qAh5Xx/PasHhQz></div><div>6974-Jan 06 18:03:35 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6975-Jan 06 18:03:35 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6976:Jan 06 18:03:35 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6977-Jan 06 18:03:35 master: Error: service(auth): command startup failed, throttling for 32.000 secs</div><div>6978-Jan 06 18:04:01 master: Warning: Killed with signal 15 (by pid=2692494 uid=0 code=kill)</div><div>6979-Jan 06 18:04:02 master: Info: Dovecot v2.3.19.1 (9b53102964) starting up for imap, lmtp (core dumps disabled)</div><div>6980-Jan 06 18:04:09 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6981-Jan 06 18:04:09 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6982:Jan 06 18:04:09 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6983-Jan 06 18:04:09 master: Error: service(auth): command startup failed, throttling for 2.000 secs</div><div>6984-Jan 06 18:04:09 imap-login: Info: Disconnected: Auth process broken (disconnected before auth was ready, waited 0 secs): user=<>, rip=172.30.20.51, lip=172.16.5.111, TLS handshaking, session=<8VrsiZXxFfesHhQz></div><div>6985-Jan 06 18:04:56 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6986-Jan 06 18:04:56 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6987:Jan 06 18:04:56 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6988-Jan 06 18:04:56 master: Error: service(auth): command startup failed, throttling for 4.000 secs</div><div>6989-Jan 06 18:05:57 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6990-Jan 06 18:05:57 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6991:Jan 06 18:05:57 auth: Fatal: OTP mechanism can't be supported with given passdbs</div><div>6992-Jan 06 18:05:57 master: Error: service(auth): command startup failed, throttling for 8.000 secs</div><div>6993-Jan 06 18:06:26 master: Warning: Killed with signal 15 (by pid=2692680 uid=0 code=kill)</div><div>6994-Jan 06 18:06:27 log(2692602): Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)</div><div>6995-Jan 06 18:06:27 master: Info: Dovecot v2.3.19.1 (9b53102964) starting up for imap, lmtp (core dumps disabled)</div><div>6996-Jan 06 18:06:47 auth: Debug: Loading modules from directory: /usr/lib/dovecot/auth</div><div>6997-Jan 06 18:06:47 auth: Debug: Module loaded: /usr/lib/dovecot/auth/lib20_auth_var_expand_crypt.so</div><div>6998-Jan 06 18:06:47 auth: Debug: Read auth token secret from /var/run/dovecot//auth-token-secret.dat</div><div>6999-Jan 06 18:06:47 auth: Error: ldap_bind</div><div>7000-Jan 06 18:06:47 auth: Error: ldap_simple_bind</div><div>7001-Jan 06 18:06:47 auth: Error: ldap_sasl_bind</div></div><div>-------------------------------</div>
<div><br></div><div>if option:</div><div>auth_mechanisms = plain login</div><div>Can send and receive emails successfully, but when the otp time expires, you need to re-enter the password + otp, which is unacceptable to the user</div><div><br></div><div><br></div><div>Looking forward to your reply, Tanks</div><div><br></div><div>-- nick(Weihao)</div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>weihao.chen@artisantechnologies.cn</div></div></span></div>
</body></html>