Sophie

Sophie

distrib > Mageia > cauldron > i586 > by-pkgid > e88b3afc52a49985e81beea4e45473c2 > scriptlet

amavisd-new-2.11.0-7.mga7.noarch.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user amavisd-new $1 amavis /var/lib/amavis /bin/false 

/usr/share/rpm-helper/add-group amavisd-new $1 amavis amavis,clamav

PREUN

/bin/sh
/usr/share/rpm-helper/del-service amavisd-new $1 amavisd

POSTIN

/bin/sh
# (cg) Ensure file permissions are correct (otherwise it can break reload)
# https://bugs.mageia.org/show_bug.cgi?id=12755
chgrp amavis /etc/amavisd/amavisd.conf ||:
chmod g+r /etc/amavisd/amavisd.conf ||:
/usr/bin/systemd-tmpfiles --create amavisd.conf 

/usr/share/rpm-helper/add-service amavisd-new $1 amavisd 


# check mta
mta="`readlink /etc/alternatives/sendmail-command 2>/dev/null | cut -d . -f 2`"
if [ "$mta" = "postfix" ]; then
	aliases="/etc/postfix/aliases"
else
	aliases="/etc/aliases"
fi
if [ -e "$aliases" ]; then
	grep -q "virusalert" "$aliases" || \
		echo "virusalert: root" >> "$aliases"
	[ -x /usr/bin/newaliases ] && /usr/bin/newaliases > /dev/null 2>&1
fi

if [ -x /usr/sbin/postconf ] && [ -z `/usr/sbin/postconf -h content_filter` ]; then
	postconf -e content_filter=lmtp-filter:127.0.0.1:10024
	postconf -e receive_override_options=no_address_mappings
fi