- Avoid append relay multiple times in POSTFIX_MAP_LIST
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=14
This commit is contained in:
parent
0a36ad09cd
commit
d288a80bd6
@ -3,6 +3,7 @@ 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
|
||||
- Avoid append relay multiple times in POSTFIX_MAP_LIST
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 26 14:36:55 CET 2009 - varkoly@suse.de
|
||||
|
@ -445,8 +445,16 @@ 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
|
||||
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
|
||||
sed -i 's/SMTPD_LISTEN_REMOTE=.*/SMTPD_LISTEN_REMOTE=""/' /etc/sysconfig/mail
|
||||
touch /var/adm/BNC-555814.fixed
|
||||
fi
|
||||
fi
|
||||
ldconfig
|
||||
# ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user