diff -ruN core-2.3.20-original/configure.ac core-2.3.20/configure.ac --- core-2.3.20-original/configure.ac 2022-12-19 12:38:16.000000000 +0300 +++ core-2.3.20/configure.ac 2023-02-09 11:22:36.282856675 +0300 @@ -92,6 +92,22 @@ TEST_WITH(libunwind, $withval), want_libunwind=auto) +AC_ARG_WITH(vpopmail, +AS_HELP_STRING([--with-vpopmail], [Build with vpopmail support (auto)]), + if test x$withval = xno; then + want_vpopmail=no + else + if test x$withval = xyes || test x$withval = xauto; then + vpopmail_home="`echo ~vpopmail`" + want_vpopmail=$withval + else + vpopmail_home="$withval" + want_vpopmail=yes + fi + fi, [ + want_vpopmail=no + ]) + # Berkeley DB support is more or less broken. Disabled for now. #AC_ARG_WITH(db, #AS_HELP_STRING([--with-db], [Build with Berkeley DB support]), @@ -556,6 +572,7 @@ DOVECOT_WANT_SODIUM DOVECOT_WANT_SQLITE DOVECOT_WANT_CASSANDRA +DOVECOT_WANT_VPOPMAIL DOVECOT_SQL diff -ruN core-2.3.20-original/doc/example-config/conf.d/10-auth.conf core-2.3.20/doc/example-config/conf.d/10-auth.conf --- core-2.3.20-original/doc/example-config/conf.d/10-auth.conf 2022-12-19 12:38:16.000000000 +0300 +++ core-2.3.20/doc/example-config/conf.d/10-auth.conf 2023-02-09 11:22:36.282856675 +0300 @@ -10,7 +10,7 @@ #disable_plaintext_auth = yes # Authentication cache size (e.g. 10M). 0 means it's disabled. Note that -# bsdauth and PAM require cache_key to be set for caching to be used. +# bsdauth, PAM and vpopmail require cache_key to be set for caching to be used. #auth_cache_size = 0 # Time to live for cached data. After TTL expires the cached record is no # longer used, *except* if the main database lookup returns internal failure. @@ -124,4 +124,5 @@ #!include auth-ldap.conf.ext #!include auth-passwdfile.conf.ext #!include auth-checkpassword.conf.ext +#!include auth-vpopmail.conf.ext #!include auth-static.conf.ext diff -ruN core-2.3.20-original/doc/example-config/conf.d/auth-vpopmail.conf.ext core-2.3.20/doc/example-config/conf.d/auth-vpopmail.conf.ext --- core-2.3.20-original/doc/example-config/conf.d/auth-vpopmail.conf.ext 1970-01-01 02:00:00.000000000 +0200 +++ core-2.3.20/doc/example-config/conf.d/auth-vpopmail.conf.ext 2023-02-09 11:22:36.282856675 +0300 @@ -0,0 +1,17 @@ +# Authentication for vpopmail users. Included from 10-auth.conf. +# +# + +passdb { + driver = vpopmail + + # [cache_key=] [webmail=] + args = +} + +userdb { + driver = vpopmail + + # [quota_template=