- Update to 5.4.33

- Move auth options into its own single group
- Clarify PASSWD and VALIAS options

Changes: (* was already applied in our 5.4.32)
    Matt Brookings
  * - Defaulted to Server::Disable=True in vusagec.conf
  * - Fixed bug that didn't install vusagec.conf
    - Changed relevant quota code to use storage_t 64bit type
    - Fixed bug where backfill code wouldn't compile when FILE_LOCKING was
      enabled
    - Updated MySQL module to support larger quota sizes
    - Fixed typo
    - Added disable_maildrop flag to MySQL limits feature
    - More changes to allow for larger quota sizes in MySQL module

    Tullio Andreatta
    - Dynamic allocation of valias data
    - Use of open/fchdir rather than getcwd/chdir to maintain current working
      directory
    - Fixed a broken symbolic link check

    Drew Wells
    - Modification to vdelivermail to properly handle Maildir paths that begin with "./"

    <kenji@kens.fm>
    - Removed call to maildir_addquota inside user_over_maildirquota causing duplicate
      maildirsize entries
This commit is contained in:
Bryan Drewery 2014-04-11 00:51:02 +00:00
parent dc43860dcd
commit aa5812b1b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350866
6 changed files with 43 additions and 50 deletions

View file

@ -5,6 +5,18 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades. you update your ports collection, before attempting any port upgrades.
20140410:
AFFECTS: users of mail/vpopmail
AUTHOR: bdrewery@FreeBSD.org
If you are storing limits in MySQL, the following schema changes must be made:
ALTER TABLE `limits` ADD `disable_maildrop` TINYINT(1) DEFAULT '0' NOT NULL AFTER `disable_spamassassin`;
ALTER TABLE `limits` MODIFY `diskquota` BIGINT UNSIGNED NOT NULL DEFAULT 0;
ALTER TABLE `limits` MODIFY `maxmsgcount` BIGINT UNSIGNED NOT NULL DEFAULT 0;
ALTER TABLE `limits` MODIFY `defaultquota` BIGINT UNSIGNED NOT NULL DEFAULT 0;
ALTER TABLE `limits` MODIFY `defaultmaxmsgcount` BIGINT UNSIGNED NOT NULL DEFAULT 0;
20140403: 20140403:
AFFECTS: users of net/rabbitmq AFFECTS: users of net/rabbitmq
AUTHOR: olgeni@FreeBSD.org AUTHOR: olgeni@FreeBSD.org

View file

@ -2,8 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= vpopmail PORTNAME= vpopmail
PORTVERSION= 5.4.32 PORTVERSION= 5.4.33
PORTREVISION= 5
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} \ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} \
SF/${PORTNAME}/${PORTNAME}-devel/${PORTVERSION} SF/${PORTNAME}/${PORTNAME}-devel/${PORTVERSION}
@ -47,14 +46,8 @@ OPTIONS_DEFINE= DOCS \
MD5_PASSWORDS \ MD5_PASSWORDS \
CLEAR_PASSWD \ CLEAR_PASSWD \
LEARN_PASSWORDS \ LEARN_PASSWORDS \
MYSQL \
MYSQL_REPLICATION \ MYSQL_REPLICATION \
MYSQL_LIMITS \ MYSQL_LIMITS \
PGSQL \
SYBASE \
ORACLE \
LDAP \
LDAP_SASL \
VALIAS \ VALIAS \
ROAMING \ ROAMING \
IP_ALIAS \ IP_ALIAS \
@ -75,8 +68,11 @@ OPTIONS_DEFINE= DOCS \
AUTH_LOG \ AUTH_LOG \
SQL_LOG \ SQL_LOG \
SQL_LOG_TRIM SQL_LOG_TRIM
OPTIONS_SINGLE= AUTH
OPTIONS_SINGLE_AUTH= CDB MYSQL PGSQL LDAP LDAP_SASL ORACLE SYBASE
OPTIONS_DEFAULT=MD5_PASSWORDS \ OPTIONS_DEFAULT=MD5_PASSWORDS \
CDB \
ROAMING \ ROAMING \
FILE_LOCKING \ FILE_LOCKING \
USERS_BIG_DIR \ USERS_BIG_DIR \
@ -84,7 +80,8 @@ OPTIONS_DEFAULT=MD5_PASSWORDS \
FPIC \ FPIC \
AUTH_LOG AUTH_LOG
PASSWD_DESC= Auth via /etc/passwd CDB_DESC= Auth via CDB
PASSWD_DESC= /etc/passwd account support
MYSQL_DESC= Auth via MySQL MYSQL_DESC= Auth via MySQL
PGSQL_DESC= Auth via PostgreSQL PGSQL_DESC= Auth via PostgreSQL
SYBASE_DESC= Auth via Sybase SYBASE_DESC= Auth via Sybase
@ -96,7 +93,7 @@ MYSQL_LIMITS_DESC= MySQL mailbox limitations support
ORACLE_DESC= Auth via Oracle ORACLE_DESC= Auth via Oracle
LDAP_DESC= Auth via LDAP LDAP_DESC= Auth via LDAP
LDAP_SASL_DESC= Auth via LDAP SASL LDAP_SASL_DESC= Auth via LDAP SASL
VALIAS_DESC= valias processing VALIAS_DESC= Store aliases in DB instead of .qmail files
ROAMING_DESC= roaming users support ROAMING_DESC= roaming users support
IP_ALIAS_DESC= IP alias support IP_ALIAS_DESC= IP alias support
QMAIL_EXT_DESC= qmail-like user-* address support QMAIL_EXT_DESC= qmail-like user-* address support

View file

@ -1,2 +1,2 @@
SHA256 (vpopmail-5.4.32.tar.gz) = 20dc467d46703f7f9fb5ab5f77929ed599cbdc73fb0490691f41210ed76776b6 SHA256 (vpopmail-5.4.33.tar.gz) = 383c7436dfb18e773336f608f1771fc08559143c4f3938a5807a0cc5994c44f4
SIZE (vpopmail-5.4.32.tar.gz) = 612426 SIZE (vpopmail-5.4.33.tar.gz) = 612271

View file

@ -1,19 +1,19 @@
Description: Install config files with -dist, do not add -fPIC. Description: Install config files with -dist, do not add -fPIC.
Install the config files with a -dist extension. Install the config files with a -dist extension.
Do not unconditionally add -fPIC, this is done only for shared libs. Do not unconditionally add -fPIC, this is done only for shared libs.
Actually look for and install the vusagec.conf sample file!
Forwarded: not-needed Forwarded: not-needed
Author: Peter Pentchev <roam@FreeBSD.org> Author: Peter Pentchev <roam@FreeBSD.org>
Last-Update: 2010-09-13 Last-Update: 2010-09-13
--- a/Makefile.in --- Makefile.in.orig 2011-02-28 11:00:45.000000000 -0600
+++ b/Makefile.in +++ Makefile.in 2014-04-10 11:17:21.360658218 -0500
@@ -357,12 +357,12 @@ @@ -357,13 +357,12 @@
noinst_HEADERS = md5.h vpopmail.h file_lock.h vauth.h vlimits.h maildirquota.h vcdb.h vldap.h vmysql.h voracle.h vpgsql.h vsybase.h vlog.h global.h hmac_md5.h seek.h vutil.h noinst_HEADERS = md5.h vpopmail.h file_lock.h vauth.h vlimits.h maildirquota.h vcdb.h vldap.h vmysql.h voracle.h vpgsql.h vsybase.h vlog.h global.h hmac_md5.h seek.h vutil.h
COMMONSOURCES = vpopmail.c md5.c bigdir.c vauth.c file_lock.c vpalias.c seek.c vlimits.c maildirquota.c vutil.c vlistlib.c backfill.c client.c conf.c ippp.c COMMONSOURCES = vpopmail.c md5.c bigdir.c vauth.c file_lock.c vpalias.c seek.c vlimits.c maildirquota.c vutil.c vlistlib.c backfill.c client.c conf.c ippp.c
CONFIG_CLEAN_FILES = vauth.c cdb/conf-cc cdb/conf-ld cdb/compile cdb/load CONFIG_CLEAN_FILES = vauth.c cdb/conf-cc cdb/conf-ld cdb/compile cdb/load
-MYSQLCONF = $(DESTDIR)@vpopmaildir@/etc/vpopmail.mysql -MYSQLCONF = $(DESTDIR)@vpopmaildir@/etc/vpopmail.mysql
-VLIMITS = $(DESTDIR)@vpopmaildir@/etc/vlimits.default -VLIMITS = $(DESTDIR)@vpopmaildir@/etc/vlimits.default
-VUSAGECCONF = $(DESTDIR)@vpopmaildir@/etc/vusagec.conf
+MYSQLCONF = $(DESTDIR)@vpopmaildir@/etc/vpopmail.mysql-dist +MYSQLCONF = $(DESTDIR)@vpopmaildir@/etc/vpopmail.mysql-dist
+VLIMITS = $(DESTDIR)@vpopmaildir@/etc/vlimits.default-dist +VLIMITS = $(DESTDIR)@vpopmaildir@/etc/vlimits.default-dist
+VUSAGECCONF = $(DESTDIR)@vpopmaildir@/etc/vusagec.conf-dist +VUSAGECCONF = $(DESTDIR)@vpopmaildir@/etc/vusagec.conf-dist

View file

@ -9,9 +9,9 @@ Author: Peter Pentchev <roam@FreeBSD.org>,
Alex Dupre <ale@FreeBSD.org> Alex Dupre <ale@FreeBSD.org>
Last-Update: 2009-11-26 Last-Update: 2009-11-26
--- a/vpopmail.c --- vpopmail.c.orig 2011-02-28 11:00:45.000000000 -0600
+++ b/vpopmail.c +++ vpopmail.c 2014-04-10 11:20:59.892641589 -0500
@@ -945,6 +945,7 @@ @@ -981,6 +981,7 @@ int vdelfiles(char *dir)
/* print error message and return and error */ /* print error message and return and error */
fprintf (stderr, "Failed to delete directory %s", mydirent->d_name); fprintf (stderr, "Failed to delete directory %s", mydirent->d_name);
@ -19,7 +19,7 @@ Last-Update: 2009-11-26
return(-1); return(-1);
} }
} }
@@ -1563,7 +1564,7 @@ @@ -1603,7 +1604,7 @@ while(( s[i]==' ')||(s[i]=='\t')) {
i++; i++;
} }
@ -28,7 +28,7 @@ Last-Update: 2009-11-26
if( i>0 ) { if( i>0 ) {
for( j=0; j<k; j++ ) { for( j=0; j<k; j++ ) {
@@ -1575,7 +1576,7 @@ @@ -1615,7 +1616,7 @@ if( i>0 ) {
// trim spaces and tabs from end // trim spaces and tabs from end
i = strlen(s) - 1; i = strlen(s) - 1;
@ -37,8 +37,8 @@ Last-Update: 2009-11-26
i--; i--;
} }
@@ -2348,7 +2349,12 @@ @@ -2387,7 +2388,12 @@ char *make_user_dir(char *username, char
char calling_dir[MAX_BUFF]; int call_dir;
char domain_dir[MAX_BUFF]; char domain_dir[MAX_BUFF];
const char *dirnames[] = {"Maildir", "Maildir/new", "Maildir/cur", const char *dirnames[] = {"Maildir", "Maildir/new", "Maildir/cur",
- "Maildir/tmp"}; - "Maildir/tmp"};
@ -51,21 +51,21 @@ Last-Update: 2009-11-26
int i; int i;
verrori = 0; verrori = 0;
@@ -3114,6 +3120,13 @@ @@ -3154,6 +3160,13 @@ int vmake_maildir(char *domain, char *di
if (mkdir("cur",VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1); } if (mkdir("cur",VPOPMAIL_DIR_MODE) == -1) { fchdir(call_dir); close(call_dir); return(-1); }
if (mkdir("new",VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1); } if (mkdir("new",VPOPMAIL_DIR_MODE) == -1) { fchdir(call_dir); close(call_dir); return(-1); }
if (mkdir("tmp",VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1); } if (mkdir("tmp",VPOPMAIL_DIR_MODE) == -1) { fchdir(call_dir); close(call_dir); return(-1); }
+#ifdef SPAM_JUNKFOLDER +#ifdef SPAM_JUNKFOLDER
+ if (mkdir(".Junk",VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1); } + if (mkdir(".Junk",VPOPMAIL_DIR_MODE) == -1) { fchdir(call_dir); close(call_dir); return(-1); }
+ if (chdir(".Junk") == -1) { chdir(calling_dir); return(-1); } + if (chdir(".Junk") == -1) { fchdir(call_dir); close(call_dir); return(-1); }
+ if (mkdir("cur",VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1); } + if (mkdir("cur",VPOPMAIL_DIR_MODE) == -1) { fchdir(call_dir); close(call_dir); return(-1); }
+ if (mkdir("new",VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1); } + if (mkdir("new",VPOPMAIL_DIR_MODE) == -1) { fchdir(call_dir); close(call_dir); return(-1); }
+ if (mkdir("tmp",VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1); } + if (mkdir("tmp",VPOPMAIL_DIR_MODE) == -1) { fchdir(call_dir); close(call_dir); return(-1); }
+#endif +#endif
/* set permissions on the user's dir */ /* set permissions on the user's dir */
chdir(dir); chdir(dir);
@@ -4163,11 +4176,19 @@ @@ -4220,12 +4233,20 @@ int call_onchange ( const char *cmd )
} }
else if ( pid > 0 ) else if ( pid > 0 )
{ {
@ -89,3 +89,4 @@ Last-Update: 2009-11-26
+ return(rv); + return(rv);
} }
#endif #endif

View file

@ -1,17 +0,0 @@
Description: Disable vusage.conf since we don't install vusaged at all.
Tracked down by: Renato Botelho <garga@FreeBSD.org>
Forwarded: not-needed
Author: Peter Pentchev <roam@FreeBSD.org>
Last-Update: 2010-02-09
--- a/vusagec.conf
+++ b/vusagec.conf
@@ -23,7 +23,7 @@
True or False
*/
- Disable = False;
+ Disable = True;
/*
Daemon is listening on local socket