From e7a9546bb799975afb262e13fb795ddc2cd4320153099f3e6bb18d4bf42eddd8 Mon Sep 17 00:00:00 2001 From: Peter Varkoly Date: Wed, 11 Jan 2012 14:22:18 +0000 Subject: [PATCH 1/3] - bnc#738900 - cyrus-imapd not receiving mail from postfix OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=116 --- postfix.changes | 5 +++++ postfix.spec | 25 ++++++++++--------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/postfix.changes b/postfix.changes index e8946aa..4d74327 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 11 14:21:21 UTC 2012 - varkoly@suse.com + +- bnc#738900 - cyrus-imapd not receiving mail from postfix + ------------------------------------------------------------------- Tue Dec 13 14:50:45 UTC 2011 - varkoly@suse.com diff --git a/postfix.spec b/postfix.spec index a18143d..0116427 100644 --- a/postfix.spec +++ b/postfix.spec @@ -1,7 +1,7 @@ # # spec file for package postfix # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,16 +15,13 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - - Name: postfix Summary: A fast, secure, and flexible mailer -Version: 2.8.7 -Release: 1 -License: IBM Public License .. +License: IPL-1.0 Group: Productivity/Networking/Email/Servers +Version: 2.8.7 +Release: 0 Url: http://www.postfix.org/ -AutoReqProv: on Source: %{name}-%{version}.tar.bz2 Source1: %{name}-SuSE.tar.gz Source2: %{name}-mysql.tar.bz2 @@ -51,7 +48,9 @@ PreReq: sysvinit(syslog) sysvinit(network) Requires: iproute2 BuildRequires: db-devel BuildRequires: mysql-devel -BuildRequires: openldap2-devel pcre-devel postgresql-devel +BuildRequires: openldap2-devel +BuildRequires: pcre-devel +BuildRequires: postgresql-devel # require pwdutils to make postinstall script check work BuildRequires: pwdutils %if 0%{?suse_version} >= 1100 @@ -84,6 +83,7 @@ Provides: smtp_daemon %define pf_uid 51 %define pf_gid 51 %define maildrop_gid 59 +%define mail_gid 12 %define conf_backup_dir /var/adm/backup/%{name} %define omc_pdir /usr/share/omc/ %define omc_dir /usr/share/omc/svcinfo.d/ @@ -100,9 +100,7 @@ Postfix aims to be an alternative to the widely-used sendmail program. %package devel Summary: Development headers for the postfix package -License: IBM Public License .. Group: Development/Libraries/C and C++ -AutoReqProv: on PreReq: %{name} = %{version} %description devel @@ -110,7 +108,6 @@ Postfix aims to be an alternative to the widely-used sendmail program. %package doc Summary: Documentations for the postfix package -License: IBM Public License .. Group: Productivity/Networking/Email/Servers %if 0%{?suse_version} >= 1120 BuildArch: noarch @@ -122,9 +119,7 @@ This package contains the documentation for %{name} %package mysql Summary: Postfix plugin to support MySQL maps -License: IBM Public License .. Group: Productivity/Networking/Email/Servers -AutoReqProv: on PreReq: %{name} = %{version} %description mysql @@ -133,9 +128,7 @@ starting %{name} if you'll access a postmap which is stored in mysql. %package postgresql Summary: Postfix plugin to support PostgreSQL maps -License: IBM Public License .. Group: Productivity/Networking/Email/Servers -AutoReqProv: on PreReq: %{name} = %{version} %description postgresql @@ -181,6 +174,7 @@ make LD_LIBRARY_PATH=$(pwd)/lib:${LD_LIBRARY_PATH} /usr/sbin/groupadd -g %{pf_gid} -o -r %{name} 2> /dev/null || : /usr/sbin/groupadd -g %{maildrop_gid} -o -r maildrop 2> /dev/null || : /usr/sbin/useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name} 2> /dev/null || : +/usr/sbin/usermod -G %{maildrop_gid},%{mail_gid} {name} 2> /dev/null || : mkdir -p $RPM_BUILD_ROOT/%{_libdir} install lib/*.1 $RPM_BUILD_ROOT/%{_libdir} for i in $RPM_BUILD_ROOT/%{_libdir}/*.1; do @@ -330,6 +324,7 @@ fi /usr/sbin/groupadd -g %{pf_gid} -o -r %{name} 2> /dev/null || : /usr/sbin/groupadd -g %{maildrop_gid} -o -r maildrop 2> /dev/null || : /usr/sbin/useradd -r -o -g %{name} -u %{pf_uid} -s /bin/false -c "Postfix Daemon" -d /%{pf_queue_directory} %{name} 2> /dev/null || : +/usr/sbin/usermod -G %{maildrop_gid},%{mail_gid} {name} 2> /dev/null || : # --------------------------------------------------------------------------- %pre mysql From 75a3669f7850edea4bde69e389f99a488fa5da65f99f8fa90b94f2626963af7e Mon Sep 17 00:00:00 2001 From: Peter Varkoly Date: Wed, 11 Jan 2012 14:22:51 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=117 --- postfix.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postfix.spec b/postfix.spec index 0116427..a9a23fe 100644 --- a/postfix.spec +++ b/postfix.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: postfix Summary: A fast, secure, and flexible mailer License: IPL-1.0 @@ -39,7 +40,7 @@ Patch21: postfix-2.8.5-ssl-release-buffers.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %insserv_prereq %fillup_prereq PreReq: /usr/bin/getent -PreReq: /usr/sbin/useradd /usr/sbin/groupadd +PreReq: /usr/sbin/useradd /usr/sbin/groupadd /usr/sbin/usermod PreReq: /bin/sed /bin/awk /bin/grep PreReq: textutils sh-utils fileutils pcre netcfg %if 0%{?suse_version} > 1130 From 24fc1e7e3da09a417f02969a7330838f1c05a177680d9a9f8b16128bbbc6ebd2 Mon Sep 17 00:00:00 2001 From: Peter Varkoly Date: Thu, 12 Jan 2012 12:19:52 +0000 Subject: [PATCH 3/3] - Add postmap rebuild script to systemv init script too OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=118 --- postfix-SuSE.tar.gz | 4 ++-- postfix.changes | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/postfix-SuSE.tar.gz b/postfix-SuSE.tar.gz index f45839d..872ad4a 100644 --- a/postfix-SuSE.tar.gz +++ b/postfix-SuSE.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:709f3538c1c2ddb71d987f648a46cdd60e39d5fcd7b97d115c511771eea133b5 -size 24717 +oid sha256:fe826deef92e3dd88cbd189b51e2b5331dc358d32b4e0cfae8555694af9ee1f9 +size 24839 diff --git a/postfix.changes b/postfix.changes index 4d74327..98183fa 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 12 12:18:17 UTC 2012 - varkoly@suse.com + +- Add postmap rebuild script to systemv init script too + ------------------------------------------------------------------- Wed Jan 11 14:21:21 UTC 2012 - varkoly@suse.com