diff options
Diffstat (limited to 'postfix')
-rwxr-xr-x | postfix/postfix.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 4ff4970..b4aaa95 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2003 Jonas Smedegaard <dr@jones.dk> # -# $Id: postfix.sh,v 1.21 2003-07-20 20:13:42 jonas Exp $ +# $Id: postfix.sh,v 1.22 2003-07-20 20:16:18 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -124,12 +124,12 @@ if [ -x /usr/sbin/amavisd -o -x /usr/sbin/amavisd-new ]; then for mail in virus-quarantine virusalert spam-quarantine spamalert; do touch /var/lib/amavis/mboxes/$mail chown nobody.nogroup /var/lib/amavis/mboxes/$mail - if grep -vq "^$mail:" /etc/aliases; then + if ! grep -q "^$mail:" /etc/aliases; then echo "$mail: /var/lib/amavis/mboxes/$mail" >> /etc/aliases newaliases fi done - if grep -vq "^spam.police:" /etc/aliases; then + if ! grep -q "^spam.police:" /etc/aliases; then echo "spam.police: root" >> /etc/aliases newaliases fi |