pkg-descr

The Courier Authentication Library is a generic authentication API used
for two purposes:

1. Read the name of a mail account. Determine the local account's home
directory, and system userid and groupid.
2. Read an account name, and a password. If valid, determine the
account's home directory, system userid, and groupid.

WWW: http://www.Courier-MTA.org/authlib/

pkg-descr-base

The Courier Authentication Library is a generic authentication API used
for two purposes:

1. Read the name of a mail account. Determine the local account's home
directory, and system userid and groupid.
2. Read an account name, and a password. If valid, determine the
account's home directory, system userid, and groupid.

The base package only installs the authpam authentication module to
obtain account information and passwords using PAM

Other plugin authentication modules are provided:

net/courier-authlib-ldap OpenLDAP
databases/courier-authlib-mysql MySQL
databases/courier-authlib-pgsql PostgreSQL
databases/courier-authlib-userdb libc db based
databases/courier-authlib-usergdbm gdbm dependant
mail/courier-authlib-vchkpw vpopmail/vchkpw

Install them as occasion demands.

WWW: http://www.Courier-MTA.org/authlib/

pkg-descr-ldap

This package installs LDAP support for the Courier authentication library
to read the list of mail accounts and passwords from an LDAP directory.

WWW: http://www.Courier-MTA.org/authlib/

pkg-descr-mysql

This package installs MySQL support for the Courier authentication library
to read the list of mail accounts and passwords from a table in a MySQL
database.

WWW: http://www.Courier-MTA.org/authlib/

pkg-descr-pgsql

This package installs PostgreSQL support for the Courier authentication library
to read the list of mail accounts and passwords from a table in a PostgreSQL
database.

WWW: http://www.Courier-MTA.org/authlib/

pkg-descr-userdb

This package installs the userdb support for the Courier authentication
library. Userdb is a simple way to manage virtual mail accounts using
a BDB-based database file. This module also incorporates userdb-based
challenge-response authentication implementation.

WWW: http://www.Courier-MTA.org/authlib/

pkg-descr-usergdbm

This package installs the userdb support for the Courier authentication
library. Userdb is a simple way to manage virtual mail accounts using
a GDBM-based database file. This module also incorporates userdb-based
challenge-response authentication implementation.

WWW: http://www.Courier-MTA.org/authlib/

pkg-descr-vchkpw

This package installs vpopmail/vchkpw support for the Courier authentication
library.

WWW: http://www.Courier-MTA.org/authlib/

pkg-plist-base

@unexec [ -x %D/sbin/authdaemond ] && %D/sbin/authdaemond stop || true
@exec pw groupshow %%MAILGRP%% 2>/dev/null || pw groupadd %%MAILGRP%% -g %%MAILUID%% -h -
@exec pw user show %%MAILOWN%% 2>/dev/null || pw useradd %%MAILOWN%% -u %%MAILUID%% -g %%MAILGID%% -h - -d /var/spool/courier -s /sbin/nologin -c "Courier Mail System"
bin/courierauthconfig
@unexec cmp -s %D/etc/authlib/authdaemonrc.dist %D/etc/authlib/authdaemonrc && rm -f %D/etc/authlib/authdaemonrc 2>/dev/null || true
etc/authlib/authdaemonrc.dist
@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authdaemonrc.dist && chmod 0600 %D/etc/authlib/authdaemonrc
@exec chown -Rh %%MAILOWN%%:%%MAILGRP%% %D/etc/authlib && chmod 0750 %D/etc/authlib
include/courier_auth_config.h
include/courierauth.h
include/courierauthdebug.h
include/courierauthsasl.h
include/courierauthsaslclient.h
lib/courier-authlib/libcourierauth.a
lib/courier-authlib/libcourierauth.la
lib/courier-authlib/libcourierauth.so
lib/courier-authlib/libcourierauth.so.0
lib/courier-authlib/libcourierauthcommon.a
lib/courier-authlib/libcourierauthcommon.la
lib/courier-authlib/libcourierauthcommon.so
lib/courier-authlib/libcourierauthcommon.so.0
lib/courier-authlib/libcourierauthsasl.a
lib/courier-authlib/libcourierauthsasl.la
lib/courier-authlib/libcourierauthsasl.so
lib/courier-authlib/libcourierauthsasl.so.0
lib/courier-authlib/libcourierauthsaslclient.a
lib/courier-authlib/libcourierauthsaslclient.la
lib/courier-authlib/libcourierauthsaslclient.so
lib/courier-authlib/libcourierauthsaslclient.so.0
lib/courier-authlib/libauthpam.a
lib/courier-authlib/libauthpam.la
lib/courier-authlib/libauthpam.so
lib/courier-authlib/libauthpam.so.0
lib/courier-authlib/libauthpipe.a
lib/courier-authlib/libauthpipe.la
lib/courier-authlib/libauthpipe.so
lib/courier-authlib/libauthpipe.so.0
libexec/courier-authlib/authdaemond
libexec/courier-authlib/authsystem.passwd
sbin/authdaemond
sbin/authenumerate
sbin/authtest
sbin/courierlogger
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/README.authdebug.html
%%PORTDOCS%%%%DOCSDIR%%/README_authlib.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@unexec rm -rf %%AUTHDAEMONVAR%% 2>/dev/null || true
@dirrmtry etc/authlib
@dirrm libexec/courier-authlib
@dirrm lib/courier-authlib

pkg-plist-ldap

@unexec cmp -s %D/etc/authlib/authldaprc.dist %D/etc/authlib/authldaprc && rm -f %D/etc/authlib/authldaprc 2>/dev/null || true
etc/authlib/authldaprc.dist
@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authldaprc.dist && chmod 0600 %D/etc/authlib/authldaprc
@unexec cmp -s %D/etc/openldap/schema/authldap.schema.default %D/etc/openldap/schema/authldap.schema && rm -f %D/etc/openldap/schema/authldap.schema 2>/dev/null || true
etc/openldap/schema/authldap.schema.default
@exec [ -f %D/etc/openldap/schema/authldap.schema ] || cp -p %D/etc/openldap/schema/authldap.schema.default %D/etc/openldap/schema/authldap.schema
lib/courier-authlib/libauthldap.a
lib/courier-authlib/libauthldap.la
lib/courier-authlib/libauthldap.so
lib/courier-authlib/libauthldap.so.0
%%PORTDOCS%%%%DOCSDIR%%/README.ldap
@dirrmtry etc/openldap/schema
@dirrmtry etc/openldap

pkg-plist-mysql

@unexec cmp -s %D/etc/authlib/authmysqlrc.dist %D/etc/authlib/authmysqlrc && rm -f %D/etc/authlib/authmysqlrc 2>/dev/null || true
etc/authlib/authmysqlrc.dist
@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authmysqlrc.dist && chmod 0600 %D/etc/authlib/authmysqlrc
lib/courier-authlib/libauthmysql.a
lib/courier-authlib/libauthmysql.la
lib/courier-authlib/libauthmysql.so
lib/courier-authlib/libauthmysql.so.0
%%PORTDOCS%%%%DOCSDIR%%/README.authmysql.html
%%PORTDOCS%%%%DOCSDIR%%/README.authmysql.myownquery

pkg-plist-pgsql

@unexec cmp -s %D/etc/authlib/authpgsqlrc.dist %D/etc/authlib/authpgsqlrc && rm -f %D/etc/authlib/authpgsqlrc 2>/dev/null || true
etc/authlib/authpgsqlrc.dist
@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authpgsqlrc.dist && chmod 0600 %D/etc/authlib/authpgsqlrc
lib/courier-authlib/libauthpgsql.a
lib/courier-authlib/libauthpgsql.la
lib/courier-authlib/libauthpgsql.so
lib/courier-authlib/libauthpgsql.so.0
%%PORTDOCS%%%%DOCSDIR%%/README.authpostgres.html

pkg-plist-userdb

libexec/courier-authlib/makedatprog
sbin/makeuserdb
sbin/pw2userdb
sbin/userdb
sbin/userdb-test-cram-md5
sbin/userdbpw
sbin/vchkpw2userdb
lib/courier-authlib/libauthuserdb.a
lib/courier-authlib/libauthuserdb.la
lib/courier-authlib/libauthuserdb.so
lib/courier-authlib/libauthuserdb.so.0

pkg-plist-vchkpw

lib/courier-authlib/libauthvchkpw.a
lib/courier-authlib/libauthvchkpw.la
lib/courier-authlib/libauthvchkpw.so
lib/courier-authlib/libauthvchkpw.so.0