Accepting request 179287 from home:computersalat:devel:mail
fix warnings, update vda patch OBS-URL: https://build.opensuse.org/request/show/179287 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=170
This commit is contained in:
parent
a5d9821303
commit
e67e4f7083
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:03a58c7c0155903c212e7209ecacf22040d233f456a4be3552e76dde1f11c0f3
|
||||
size 143360
|
||||
oid sha256:2f984a3a04f4e13ae73da72776fbfc57dfe3940f1e78b8ac355662463587ae53
|
||||
size 24175
|
||||
|
@ -2,7 +2,7 @@ Index: conf/main.cf
|
||||
===================================================================
|
||||
--- conf/main.cf.orig
|
||||
+++ conf/main.cf
|
||||
@@ -655,3 +655,119 @@ sample_directory =
|
||||
@@ -655,3 +655,116 @@ sample_directory =
|
||||
#
|
||||
readme_directory =
|
||||
inet_protocols = ipv4
|
||||
@ -96,9 +96,6 @@ Index: conf/main.cf
|
||||
+#virtual_mailbox_limit_override = yes
|
||||
+#virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
|
||||
+#virtual_transport = virtual
|
||||
+## Additional for quota support
|
||||
+#virtual_create_maildirsize = yes
|
||||
+#virtual_mailbox_extended = yes
|
||||
+### Needs Maildir++ compatible IMAP servers, like Courier-IMAP
|
||||
+#virtual_maildir_filter = yes
|
||||
+#virtual_maildir_filter_maps = hash:/etc/postfix/vfilter
|
||||
|
@ -19,15 +19,15 @@ Index: src/tls/tls_server.c
|
||||
===================================================================
|
||||
--- src/tls/tls_server.c.orig
|
||||
+++ src/tls/tls_server.c
|
||||
@@ -388,6 +388,11 @@ TLS_APPL_STATE *tls_server_init(const TL
|
||||
tls_print_errors();
|
||||
@@ -389,6 +389,11 @@ TLS_APPL_STATE *tls_server_init(const TL
|
||||
return (0);
|
||||
}
|
||||
+
|
||||
|
||||
+ /* Keep memory usage as low as possible */
|
||||
+#ifdef SSL_MODE_RELEASE_BUFFERS
|
||||
+ SSL_CTX_set_mode(server_ctx, SSL_MODE_RELEASE_BUFFERS);
|
||||
+#endif
|
||||
|
||||
+
|
||||
/*
|
||||
* See the verify callback in tls_verify.c
|
||||
*/
|
||||
|
@ -1,7 +1,6 @@
|
||||
Index: README_FILES/VDA_README
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ README_FILES/VDA_README
|
||||
diff -uNr postfix-2.9.6.orig/README_FILES/VDA_README postfix-2.9.6/README_FILES/VDA_README
|
||||
--- postfix-2.9.6.orig/README_FILES/VDA_README 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ postfix-2.9.6/README_FILES/VDA_README 2012-03-02 08:30:12.079537052 +0100
|
||||
@@ -0,0 +1,10 @@
|
||||
+Postfix VDA patch for maildir++ quota support by
|
||||
+ Anderson Nadal <andernadal@gmail.com>
|
||||
@ -13,11 +12,10 @@ Index: README_FILES/VDA_README
|
||||
+provided by this patch.
|
||||
+
|
||||
+
|
||||
Index: src/global/mail_params.h
|
||||
===================================================================
|
||||
--- src/global/mail_params.h.orig
|
||||
+++ src/global/mail_params.h
|
||||
@@ -2360,6 +2360,54 @@ extern char *var_virt_uid_maps;
|
||||
diff -uNr postfix-2.9.6.orig/src/global/mail_params.h postfix-2.9.6/src/global/mail_params.h
|
||||
--- postfix-2.9.6.orig/src/global/mail_params.h 2012-01-15 01:36:37.000000000 +0100
|
||||
+++ postfix-2.9.6/src/global/mail_params.h 2012-03-02 08:30:12.079537052 +0100
|
||||
@@ -2360,6 +2360,54 @@
|
||||
#define DEF_VIRT_GID_MAPS ""
|
||||
extern char *var_virt_gid_maps;
|
||||
|
||||
@ -72,11 +70,10 @@ Index: src/global/mail_params.h
|
||||
#define VAR_VIRT_MINUID "virtual_minimum_uid"
|
||||
#define DEF_VIRT_MINUID 100
|
||||
extern int var_virt_minimum_uid;
|
||||
Index: src/util/file_limit.c
|
||||
===================================================================
|
||||
--- src/util/file_limit.c.orig
|
||||
+++ src/util/file_limit.c
|
||||
@@ -85,7 +85,11 @@ void set_file_limit(off_t limit)
|
||||
diff -uNr postfix-2.9.6.orig/src/util/file_limit.c postfix-2.9.6/src/util/file_limit.c
|
||||
--- postfix-2.9.6.orig/src/util/file_limit.c 2003-10-22 20:48:36.000000000 +0200
|
||||
+++ postfix-2.9.6/src/util/file_limit.c 2012-03-02 08:30:12.110537033 +0100
|
||||
@@ -85,7 +85,11 @@
|
||||
#else
|
||||
struct rlimit rlim;
|
||||
|
||||
@ -89,10 +86,9 @@ Index: src/util/file_limit.c
|
||||
if (setrlimit(RLIMIT_FSIZE, &rlim) < 0)
|
||||
msg_fatal("setrlimit: %m");
|
||||
#ifdef SIGXFSZ
|
||||
Index: src/virtual/mailbox.c
|
||||
===================================================================
|
||||
--- src/virtual/mailbox.c.orig
|
||||
+++ src/virtual/mailbox.c
|
||||
diff -uNr postfix-2.9.6.orig/src/virtual/mailbox.c postfix-2.9.6/src/virtual/mailbox.c
|
||||
--- postfix-2.9.6.orig/src/virtual/mailbox.c 2011-12-24 03:13:32.000000000 +0100
|
||||
+++ postfix-2.9.6/src/virtual/mailbox.c 2012-03-02 08:30:12.110537033 +0100
|
||||
@@ -70,6 +70,70 @@
|
||||
#define YES 1
|
||||
#define NO 0
|
||||
@ -164,7 +160,7 @@ Index: src/virtual/mailbox.c
|
||||
/* deliver_mailbox_file - deliver to recipient mailbox */
|
||||
|
||||
static int deliver_mailbox_file(LOCAL_STATE state, USER_ATTR usr_attr)
|
||||
@@ -213,62 +277,72 @@ int deliver_mailbox(LOCAL_STATE stat
|
||||
@@ -213,62 +277,72 @@
|
||||
* Look up the mailbox owner rights. Defer in case of trouble.
|
||||
*/
|
||||
uid_res = mail_addr_find(virtual_uid_maps, state.msg_attr.user,
|
||||
@ -272,10 +268,9 @@ Index: src/virtual/mailbox.c
|
||||
|
||||
/*
|
||||
* Cleanup.
|
||||
Index: src/virtual/maildir.c
|
||||
===================================================================
|
||||
--- src/virtual/maildir.c.orig
|
||||
+++ src/virtual/maildir.c
|
||||
diff -uNr postfix-2.9.6.orig/src/virtual/maildir.c postfix-2.9.6/src/virtual/maildir.c
|
||||
--- postfix-2.9.6.orig/src/virtual/maildir.c 2012-01-25 01:41:08.000000000 +0100
|
||||
+++ postfix-2.9.6/src/virtual/maildir.c 2012-03-02 08:33:47.724529361 +0100
|
||||
@@ -64,28 +64,420 @@
|
||||
#include <mbox_open.h>
|
||||
#include <dsn_util.h>
|
||||
@ -401,8 +396,7 @@ Index: src/virtual/maildir.c
|
||||
+
|
||||
+ ret_value = sum;
|
||||
+ }
|
||||
|
||||
-int deliver_maildir(LOCAL_STATE state, USER_ATTR usr_attr)
|
||||
+
|
||||
+ vstream_fclose(sizefile);
|
||||
+ vstring_free(sizebuf);
|
||||
+
|
||||
@ -555,7 +549,8 @@ Index: src/virtual/maildir.c
|
||||
+ }
|
||||
+ }
|
||||
+ closedir(dir);
|
||||
+
|
||||
|
||||
-int deliver_maildir(LOCAL_STATE state, USER_ATTR usr_attr)
|
||||
+ if (msg_verbose)
|
||||
+ msg_info("%s: full scan done: dir=%s sum=%ld count=%ld", myname, dirname, sum, *countptr);
|
||||
+
|
||||
@ -709,7 +704,7 @@ Index: src/virtual/maildir.c
|
||||
|
||||
GETTIMEOFDAY(&starttime);
|
||||
|
||||
@@ -94,15 +486,14 @@ int deliver_maildir(LOCAL_STATE stat
|
||||
@@ -94,15 +486,14 @@
|
||||
*/
|
||||
state.level++;
|
||||
if (msg_verbose)
|
||||
@ -728,7 +723,7 @@ Index: src/virtual/maildir.c
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -110,17 +501,115 @@ int deliver_maildir(LOCAL_STATE stat
|
||||
@@ -110,18 +501,116 @@
|
||||
* attribute to reflect the final recipient.
|
||||
*/
|
||||
if (vstream_fseek(state.msg_attr.fp, state.msg_attr.offset, SEEK_SET) < 0)
|
||||
@ -761,7 +756,7 @@ Index: src/virtual/maildir.c
|
||||
+ tmpdir = concatenate(tmpdir, "tmp/", (char *) 0);
|
||||
+ curdir = concatenate(curdir, "cur/", (char *) 0);
|
||||
+ }
|
||||
+
|
||||
|
||||
+ /* get the sizefilename, no matter if we use var_virt_maildir_extended */
|
||||
+ if (*var_virt_maildir_suffix == 0) {
|
||||
+ sizefilename = concatenate(usr_attr.mailbox, "maildirsize", (char *) 0);
|
||||
@ -847,10 +842,11 @@ Index: src/virtual/maildir.c
|
||||
+ set_eugid(var_owner_uid, var_owner_gid);
|
||||
+ }
|
||||
+ }
|
||||
|
||||
+
|
||||
/*
|
||||
* Create and write the file as the recipient, so that file quota work.
|
||||
@@ -175,46 +664,288 @@ int deliver_maildir(LOCAL_STATE stat
|
||||
* Create any missing directories on the fly. The file name is chosen
|
||||
@@ -175,46 +664,288 @@
|
||||
* [...]
|
||||
*/
|
||||
set_eugid(usr_attr.uid, usr_attr.gid);
|
||||
@ -1176,7 +1172,7 @@ Index: src/virtual/maildir.c
|
||||
}
|
||||
set_eugid(var_owner_uid, var_owner_gid);
|
||||
|
||||
@@ -224,31 +955,64 @@ int deliver_maildir(LOCAL_STATE stat
|
||||
@@ -224,31 +955,64 @@
|
||||
* location possibly under user control.
|
||||
*/
|
||||
if (mail_copy_status & MAIL_COPY_STAT_CORRUPT) {
|
||||
@ -1234,11 +1230,11 @@ Index: src/virtual/maildir.c
|
||||
+ deliver_status =
|
||||
+ (STR(why->status)[0] == '4' ? defer_append : bounce_append)
|
||||
+ (BOUNCE_FLAGS(state.request), BOUNCE_ATTR(state.msg_attr));
|
||||
+ }
|
||||
}
|
||||
+ else {
|
||||
+ dsb_simple(why, "2.0.0", "delivered to maildir");
|
||||
+ deliver_status = sent(BOUNCE_FLAGS(state.request), SENT_ATTR(state.msg_attr));
|
||||
}
|
||||
+ }
|
||||
+
|
||||
vstring_free(buf);
|
||||
+
|
||||
@ -1260,11 +1256,10 @@ Index: src/virtual/maildir.c
|
||||
+
|
||||
return (deliver_status);
|
||||
}
|
||||
Index: src/virtual/virtual.c
|
||||
===================================================================
|
||||
--- src/virtual/virtual.c.orig
|
||||
+++ src/virtual/virtual.c
|
||||
@@ -335,12 +335,30 @@ long var_virt_mailbox_limit;
|
||||
diff -uNr postfix-2.9.6.orig/src/virtual/virtual.c postfix-2.9.6/src/virtual/virtual.c
|
||||
--- postfix-2.9.6.orig/src/virtual/virtual.c 2011-02-19 01:46:06.000000000 +0100
|
||||
+++ postfix-2.9.6/src/virtual/virtual.c 2012-03-02 08:30:12.111537033 +0100
|
||||
@@ -335,12 +335,30 @@
|
||||
char *var_mail_spool_dir; /* XXX dependency fix */
|
||||
bool var_strict_mbox_owner;
|
||||
|
||||
@ -1295,7 +1290,7 @@ Index: src/virtual/virtual.c
|
||||
|
||||
/*
|
||||
* Bit masks.
|
||||
@@ -450,15 +468,28 @@ static void post_init(char *unused_name,
|
||||
@@ -450,15 +468,28 @@
|
||||
*/
|
||||
virtual_mailbox_maps =
|
||||
maps_create(VAR_VIRT_MAILBOX_MAPS, var_virt_mailbox_maps,
|
||||
@ -1327,7 +1322,7 @@ Index: src/virtual/virtual.c
|
||||
|
||||
virtual_mbox_lock_mask = mbox_lock_mask(var_virt_mailbox_lock);
|
||||
}
|
||||
@@ -510,10 +541,22 @@ int main(int argc, char **argv)
|
||||
@@ -510,10 +541,22 @@
|
||||
VAR_VIRT_GID_MAPS, DEF_VIRT_GID_MAPS, &var_virt_gid_maps, 0, 0,
|
||||
VAR_VIRT_MAILBOX_BASE, DEF_VIRT_MAILBOX_BASE, &var_virt_mailbox_base, 1, 0,
|
||||
VAR_VIRT_MAILBOX_LOCK, DEF_VIRT_MAILBOX_LOCK, &var_virt_mailbox_lock, 1, 0,
|
||||
@ -1350,7 +1345,7 @@ Index: src/virtual/virtual.c
|
||||
0,
|
||||
};
|
||||
|
||||
@@ -530,6 +573,7 @@ int main(int argc, char **argv)
|
||||
@@ -530,6 +573,7 @@
|
||||
MAIL_SERVER_PRE_INIT, pre_init,
|
||||
MAIL_SERVER_POST_INIT, post_init,
|
||||
MAIL_SERVER_PRE_ACCEPT, pre_accept,
|
||||
@ -1358,10 +1353,9 @@ Index: src/virtual/virtual.c
|
||||
MAIL_SERVER_PRIVILEGED,
|
||||
0);
|
||||
}
|
||||
Index: src/virtual/virtual.h
|
||||
===================================================================
|
||||
--- src/virtual/virtual.h.orig
|
||||
+++ src/virtual/virtual.h
|
||||
diff -uNr postfix-2.9.6.orig/src/virtual/virtual.h postfix-2.9.6/src/virtual/virtual.h
|
||||
--- postfix-2.9.6.orig/src/virtual/virtual.h 2006-01-08 00:59:47.000000000 +0100
|
||||
+++ postfix-2.9.6/src/virtual/virtual.h 2012-03-02 08:30:12.111537033 +0100
|
||||
@@ -34,6 +34,9 @@
|
||||
extern MAPS *virtual_mailbox_maps;
|
||||
extern MAPS *virtual_uid_maps;
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 17 10:50:08 UTC 2013 - chris@computersalat.de
|
||||
|
||||
- fix for warning
|
||||
* unused parameter: virtual_create_maildirsize=yes
|
||||
* unused parameter: virtual_mailbox_extended=yes
|
||||
* rework main.cf.patch
|
||||
- fix rcpostfix for sysvinit systems
|
||||
* /etc/postfix/system/update_postmaps: No such file or directory
|
||||
- rebase patches
|
||||
* vda-v11-2.9.5 -> vda-v11-2.9.6
|
||||
- fix file postfix-SuSE.tar.gz
|
||||
* made a tar.gz
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 16 02:12:07 UTC 2013 - jengelh@inai.de
|
||||
|
||||
|
@ -39,7 +39,7 @@ Patch10: %{name}-main.cf.patch
|
||||
Patch11: %{name}-master.cf.patch
|
||||
Patch12: %{name}-post-install.patch
|
||||
Patch20: %{name}-ssl-release-buffers.patch
|
||||
Patch100: %{name}-vda-v11-2.9.5.patch
|
||||
Patch100: %{name}-vda-v11-2.9.6.patch
|
||||
Patch101: postfix-db6.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: %insserv_prereq %fillup_prereq
|
||||
@ -163,7 +163,7 @@ PostgreSQL.
|
||||
%patch11
|
||||
%patch12
|
||||
%patch20
|
||||
%patch100
|
||||
%patch100 -p1
|
||||
%patch -P 101 -p1
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user