SHA256
1
0
forked from pool/postfix

Fix the post script

OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=17
This commit is contained in:
Peter Varkoly 2009-12-08 14:39:43 +00:00 committed by Git OBS Bridge
parent a5490347ac
commit 9405236dbd
3 changed files with 32 additions and 5 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:81bb95c7b712f3ac4a1356917992e7c5e650e03b192f9a35117351360386cc97
size 21145
oid sha256:7afaff6370e91c230ad99ae9b52da61671c70109fb227d6ae3a854315311030c
size 21013

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Nov 16 17:14:39 CET 2009 - varkoly@suse.de
- bnc#555814 VUL-0: SMTPD_LISTEN_REMOTE="yes" by default
- bnc#555732 - Invalid $(hostname -i) usage SuSEconfig.postfix
- bnc#547928 Postfix does not start during boot process
- Avoid append relay multiple times in POSTFIX_MAP_LIST
-------------------------------------------------------------------
Mon Oct 26 14:36:55 CET 2009 - varkoly@suse.de
- bnc#549612 SuSEconfig.postfix
-------------------------------------------------------------------
Mon Sep 28 09:22:54 CEST 2009 - varkoly@suse.de

View File

@ -22,7 +22,7 @@
Name: postfix
Summary: A fast, secure, and flexible mailer
Version: 2.6.1
Release: 1
Release: 2
License: IBM Public License ..
Group: Productivity/Networking/Email/Servers
Url: http://www.postfix.org/
@ -437,7 +437,6 @@ fi
# ---------------------------------------------------------------------------
%post
%{fillup_and_insserv -y postfix}
# We never have to run suseconfig for postfix after installation
# We only start postfix own upgrade-configuration by update
if [ ${1:-0} -gt 1 ]; then
@ -445,8 +444,23 @@ if [ ${1:-0} -gt 1 ]; then
/usr/sbin/%{name} set-permissions upgrade-configuration setgid_group=%{pf_setgid_group}
#New map in 11.2 #TODO remove it later
. /etc/sysconfig/postfix
sed -i "s/^POSTFIX_MAP_LIST=.*/POSTFIX_MAP_LIST=\"$POSTFIX_MAP_LIST relay\"/" /etc/sysconfig/postfix
RELAY=`echo $POSTFIX_MAP_LIST | grep -P " relay | relay$"`
if [ -z "$RELAY" ]
then
sed -i "s/^POSTFIX_MAP_LIST=.*/POSTFIX_MAP_LIST=\"$POSTFIX_MAP_LIST relay\"/" /etc/sysconfig/postfix
fi
if [ ! -e /var/adm/BNC-555814.fixed ]
then
touch /var/adm/BNC-555814.fixed
. /etc/sysconfig/mail
if [ "$CONFIG_TYPE" = "undef" ]
then
sed -i 's/SMTPD_LISTEN_REMOTE=.*/SMTPD_LISTEN_REMOTE=""/' /etc/sysconfig/mail
postconf -e 'inet_interfaces = localhost'
fi
fi
fi
%{fillup_and_insserv -y postfix}
ldconfig
# ---------------------------------------------------------------------------