From 9667493ddaf016f1faf52e09e071973daab7c346 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Mon, 14 Apr 2008 22:54:01 +0200 Subject: [PATCH] - bolji regex za match konfiguracije u main.cf od Postfixa za slucaj kad treba aktivirati smtp amavis servis na 10024 Signed-off-by: Dinko Korunic --- src/postfix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/postfix.sh b/src/postfix.sh index 7aa3961..9099243 100755 --- a/src/postfix.sh +++ b/src/postfix.sh @@ -8,9 +8,9 @@ update_postfix() { restart_mta=1 fi - # main.cf + # set up main.cf if [ ! -f /etc/postfix/main.cf ] || \ - ! grep -q "smtp-amavis:[127.0.0.1]:10024" \ + ! grep -q "^content_filter[\t ]*=[\t ]*smtp-amavis:\[127.0.0.1\]:10024[\t ]*" \ /etc/postfix/main.cf; then postconf -e content_filter="smtp-amavis:[127.0.0.1]:10024" restart_mta=1 -- 1.7.10.4