Index: head/mail/tpop3d/Makefile =================================================================== --- head/mail/tpop3d/Makefile (revision 490466) +++ head/mail/tpop3d/Makefile (revision 490467) @@ -1,83 +1,80 @@ # Created by: chris@shagged.org # $FreeBSD$ PORTNAME= tpop3d PORTVERSION= 1.5.5 PORTREVISION= 5 CATEGORIES= mail MASTER_SITES= SAVANNAH MAINTAINER= ports@FreeBSD.org COMMENT= Virtual-domain capable POP3 server supporting MySQL, PgSQL etc auth LICENSE= GPLv2 USES= ssl GNU_CONFIGURE= yes LDFLAGS+= -L${LOCALBASE}/lib -lcrypto CONFIGURE_ARGS= --enable-auth-other \ --enable-tcp-wrappers \ --enable-tls \ --with-openssl-root=${OPENSSLBASE} \ --with-mailspool-directory=/var/mail -OPTIONS_DEFINE= LDAP PERLAUTH PASSWDAUTH FLATAUTH GDBMAUTH MAILDIR MBOXINDICES DRAC FIX_PERLAUTH DOCS +OPTIONS_DEFINE= LDAP PERLAUTH PASSWDAUTH FLATAUTH GDBMAUTH MAILDIR MBOXINDICES FIX_PERLAUTH DOCS OPTIONS_RADIO= DB OPTIONS_RADIO_DB= MYSQL PGSQL DB_DESC= Authentication database PERLAUTH_DESC= Use Perl authentication PASSWDAUTH_DESC= Use /etc/passwd authentication FLATAUTH_DESC= Use /etc/passwd-style flat file authentication GDBMAUTH_DESC= Use authentication against GNU dbm files MAILDIR_DESC= Compile Maildir support MBOXINDICES_DESC= Save Mbox indices -DRAC_DESC= DRAC RFC for POP-before-SMTP relaying FIX_PERLAUTH_DESC= Only try it if perl-auth coredumps -DRAC_CONFIGURE_ENABLE= drac MAILDIR_CONFIGURE_ENABLE= mbox-maildir PERLAUTH_CONFIGURE_ENABLE= auth-perl FLATAUTH_CONFIGURE_ENABLE= auth-flatfile GDBMAUTH_CONFIGURE_ENABLE= auth-gdbm PASSWDAUTH_CONFIGURE_ENABLE= auth-passwd MBOXINDICES_CONFIGURE_ENABLE= mbox-bsd-save-indices -DRAC_BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:mail/drac GDBMAUTH_CPPFLAGS= -I${LOCALBASE}/include GDBMAUTH_LIB_DEPENDS= libgdbm.so:databases/gdbm MYSQL_USE= MYSQL=yes MYSQL_CONFIGURE_ON= --enable-auth-mysql \ --with-mysql-lib-dir=${LOCALBASE}/lib/mysql \ --with-mysql-include-dir=${LOCALBASE}/include/mysql PGSQL_USES= pgsql PGSQL_CONFIGURE_ON= --enable-auth-pgsql \ --with-pgsql-lib-dir=${LOCALBASE}/lib \ --with-pgsql-include-dir=${LOCALBASE}/include LDAP_USE= OPENLDAP=yes LDAP_CONFIGURE_ON= --enable-auth-ldap --with-openldap-root=${LOCALBASE} PERLAUTH_USES= perl5 FIX_PERLAUTH_EXTRA_PATCHES=${PATCHDIR}/extra-patch-auth_perl.c USE_RC_SUBR= tpop3d DEFAULT_CONFIG= ${PREFIX}/etc/tpop3d.conf.sample PORTDOCS= CHANGES CREDITS FAQ HACKING INSTALL PORTABILITY \ README README.POP-before-SMTP README.auth_mysql TODO post-patch: @${REINPLACE_CMD} '/^CFLAGS/ s, -g -O2,,' \ ${WRKSRC}/Makefile.in @${REINPLACE_CMD} 's,/etc/tpop3d,${PREFIX}/etc/tpop3d,g' \ ${WRKSRC}/tpop3d.conf.5 ${WRKSRC}/tpop3d.8 do-install: ${INSTALL_DATA} ${FILESDIR}/tpop3d.conf.dist \ ${STAGEDIR}${DEFAULT_CONFIG} ${INSTALL_MAN} ${WRKSRC}/tpop3d.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5 ${INSTALL_MAN} ${WRKSRC}/tpop3d.8 ${STAGEDIR}${MANPREFIX}/man/man8 ${INSTALL_PROGRAM} ${WRKSRC}/tpop3d ${STAGEDIR}${PREFIX}/sbin @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include Index: head/mail/tpop3d/files/tpop3d.conf.dist =================================================================== --- head/mail/tpop3d/files/tpop3d.conf.dist (revision 490466) +++ head/mail/tpop3d/files/tpop3d.conf.dist (revision 490467) @@ -1,282 +1,278 @@ ## ## GLOBAL OPTIONS ## # listen-address: address[:port][(domain)|/regex/][;tls-options] ... # most basic syntax; listen on every interface on default port: listen-address: 0.0.0.0 # or perhaps you want to enable SSL using # the certificate /usr/local/etc/tpop3d-cert: #listen-address: 0.0.0.0;tls=stls,/usr/local/etc/tpop3d-cert # maximum number of connections to serve at any given time [default: 16] #max-children: 16 # append-domain: (yes|true) # Fall back onto authenticating with username@domain if required, where # domain is the domain name associated with the address on which the # connection was received [default: no] #append-domain: true # strip-domain: (yes|true) # Fall back onto authenticating with username only if username@domain is # supplied and fails to authenticate. [default: no] #strip-domain: true # apop-only: (yes|true) # Disconnect any client which sends a USER command: [default: no] #apop-only: true # timeout-seconds: number # Number of seconds for which a connection may be idle before it is closed. # The RFC requires 600. [default: 30] timeout-seconds: 600 # log-facility: facility # The `facility' as which tpop3d emits system log messages. #log-facility: mail # log-stderr: (yes|true) # Send log messages to standard error as well as the system log. #log-stderr: true # no-detach: (yes|true) # Do not detach from controlling terminal. #no-detach: true # mailbox: [mailbox-driver:]path-spec ... # Selects the location, and optionally the type, of the mailbox to use when # a user is authenticated. mailbox: bsd:/var/mail/$(user) # mailspool-index: path-spec # Selects the location of metadata cache files for BSD mailspools # tpop3d needs to be able to create files in your mailspool path for this; # alternatively change the path specified. [default: no index] #mailspool-index: $(name).tpop3d-index # maildir-exclusive-lock: (yes|true) # Indicates that tpop3d should attempt to lock maildirs for exclusive access # [default: no] #maildir-exclusive-lock: true # tcp-wrappers-name: name # Selects the `daemon name' used by tpop3d with TCP Wrappers [default: tpop3d] #tcp-wrappers-name: tpop3d -# drac-server: hostname -# Gives the name of a server to which tpop3d should send DRAC notifications -#drac-server: localhost - # whoson-enable: (yes|true) # Enable notification of successful logins to a WHOSON server as defined # in /etc/whoson.conf. [default: no] #whoson-enable: true # tls-no-bug-workarounds: (yes|true) # Disable workarounds for various bugs in client TLS implementations #tls-no-bug-workarounds: true ## ## AUTHENTICATOR OPTIONS ## ## GLOBAL AUTHENTICATOR OPTIONS # permit-empty-password: (yes|true) # Users may log in with an empty password. [default: no] #permit-empty-password: true # onlogin-child-wait: (yes|true) # If the authenticator offers an `onlogin' action, the user's mailbox won't # be opened until after the onlogin action completes. See manpage for info. #onlogin-child-wait: true ## PAM authentication options # auth-pam-enable: (yes|true) # nable authentication using Pluggable Authentication Modules. auth-pam-enable: yes # auth-pam-facility: facility # Sets the PAM facility name used by tpop3d [default: tpop3d] #auth-pam-facility: tpop3d # auth-pam-mail-group: (group-name | gid) # The group name or gid under which access to the mailspool will take # place. [default: gid of authenticated user] auth-pam-mail-group: mail # auth-pam-mail-user: (user-name | uid) # Names a local user whose credentials are used for users without local accounts #auth-pam-mail-user: mailnull ## Password authentication options # auth-passwd-enable: (yes|true) # Enable authentication using /etc/passwd. #auth-passwd-enable: true # auth-passwd-mail-group: (group-name | gid) # The group name or gid under which access to the mailspool will take place. #auth-passwd-mail-group: mail ## MySQL authentication options # auth-mysql-enable: (yes | true) # Enable MySQL authentication. #auth-mysql-enable: true # auth-mysql-mail-group: (group-name | gid) # The group name or gid under which access to the mailspool will take place. # [default: group of user associated with virtualdomain] #auth-mysql-mail-group: mail # auth-mysql-hostname: hostname [[hostname] hostname] .. # Host on which to connect to MySQL. Tried in order until a working host is # found. [default: localhost] #auth-mysql-hostname: localhost # auth-mysql-database: database # MySQL database to use for authentication. #auth-mysql-database: mail # auth-mysql-username: username # MySQL username used to access the database. #auth-mysql-username: mail # auth-mysql-password: password # Password of MySQL user # auth-mysql-password: s3cr3t # auth-mysql-pass-query: substitution string # Query template to use for USER/PASS authentication. # Return mailpath, password, userid, mailspool type #auth-mysql-pass-query: SELECT mailpath, password, userid, spooltype... # auth-mysql-apop-query: substitution string # Query template to use for APOP authentication. # See auth-mysql-pass-query # auth-mysql-onlogin-query: substitution string # Query template to use for POP-before-SMTP operation. # See manpage. ## Postgres authentication options # auth-pgsql-enable: (yes | true) # Enable Postgres authentication. #auth-pgsql-enable: true # These options are exactly the same as their MySQL counterparts. #auth-pgsql-username: #auth-pgsql-password: #auth-pgsql-database: #auth-pgsql-hostname: #auth-pgsql-pass-query: #auth-pgsql-apop-query: #auth-pgsql-onlogin-query: #auth-pgsql-mail-group: ## LDAP authentication options ## Please read the manpage for thorough details of these. # auth-ldap-enable: (yes | true) # Enable LDAP authentication. #auth-ldap-enable: true # auth-ldap-url: LDAP URL # LDAP URL indicating server against which to make authentication requests. #auth-ldap-url: # auth-ldap-searchdn: LDAP server username # DN to use when binding to LDAP server to search for a user. #auth-ldap-searchdn: # auth-ldap-password: LDAP server password # Password of search user. #auth-ldap-password: # auth-ldap-filter: substitution string # Filter template to use when searching for a user's account. #auth-ldap-filter: # auth-ldap-scope: (subtree|base|onelevel) # Scope of LDAP searches. If not specified, the default is `sub-tree' #auth-ldap-scope: # auth-ldap-mailbox: [mailbox-driver:]path-spec ... # User mailbox location, as described above. # auth-ldap-mailbox-attr: attribute name # auth-ldap-mboxtype-attr: attribute name # LDAP attributes which contains the name of a user's mailbox, and its type # auth-ldap-mail-user: (user-name | uid) # auth-ldap-mail-group: (group-name | gid) # User and group under which access to the mailbox will take place # auth-ldap-mail-user-attr: attribute name # auth-ldap-mail-group-attr: attribute name ## Flat file authentication options # auth-flatfile-enable: (yes | true) # Enable flat file authentication. #auth-flatfile-enable: yes # auth-flatfile-passwd-file: substitution string # Specify the file in which tpop3d will search for a user's password #auth-flatfile-passwd-file: /usr/local/etc/tpop3d/passwd # auth-flatfile-mail-user: (user-name | uid) # auth-flatfile-mail-group: (group-name | gid) # User and group under which access to the mailbox will take place ## External program (`other') authentication options # auth-other-enable: (yes | true) # Enable external program authentication. #auth-other-enable: true # auth-other-program: path # Program to use for external authentication #auth-other-program: /usr/local/sbin/.. # auth-other-user: (user-name | uid) # auth-other-group: (group-name | gid) # The user and group under which to run the authentication program # auth-other-timeout: time # The timeout in seconds for authentication [default: 0.75] #auth-other-timeout: 0.75 ## Perl authentication options # auth-perl-enable: (yes | true) # Enable authentication via an embedded perl interpreter. #auth-perl-enable: true # auth-perl-start: perl code # Specify a line of perl code to be executed at startup #auth-perl-start: do '/usr/local/etc/tpop3d/tpop3d.pl' # auth-perl-finish: perl code # Specify a line of perl code to be executed when the authentication driver # is shut down #auth-perl-finish: # auth-perl-apop: subroutine name # Specify the name of a perl subroutine which will be called when # a request for APOP authentication is received. #auth-perl-apop: # auth-perl-pass: subroutine name # Specify the name of a perl subroutine which will be called when # a request for USER/PASS authentication is received. #auth-perl-pass: # auth-perl-onlogin: subroutine name # Specify the name of a perl subroutine which will be called after # a successful login for POP-before-SMTP operation. #auth-perl-onlogin: