Skip to content

Instantly share code, notes, and snippets.

View mss's full-sized avatar

Malte S. Stretz mss

View GitHub Profile
@umrysh
umrysh / checkpassword.sh
Last active September 15, 2021 07:22
Time-based One-time Passwords for Email
#!/bin/bash
# Example Dovecot checkpassword script that may be used as both passdb or userdb.
#
# Originally written by Nikolay Vizovitin, 2013.
# Assumes authentication DB is in /etc/dovecot/users, each line has '<user>:<password>' format.
# Place this script into /etc/dovecot/checkpassword.sh file and make executable.
# Implementation guidelines at http://wiki2.dovecot.org/AuthDatabase/CheckPassword