projects
/
amavisd-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a6944c
)
- bolji regex za match konfiguracije u main.cf od Postfixa za slucaj kad
author
Dinko Korunic
<kreator@carnet.hr>
Mon, 14 Apr 2008 20:54:01 +0000
(22:54 +0200)
committer
Dinko Korunic
<kreator@carnet.hr>
Mon, 14 Apr 2008 20:54:01 +0000
(22:54 +0200)
treba aktivirati smtp amavis servis na 10024
Signed-off-by: Dinko Korunic <kreator@carnet.hr>
src/postfix.sh
patch
|
blob
|
history
diff --git
a/src/postfix.sh
b/src/postfix.sh
index
7aa3961
..
9099243
100755
(executable)
--- 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