2018-10-30 21:13:37 +01:00
|
|
|
Index: conf/postfix-script
|
|
|
|
===================================================================
|
|
|
|
--- conf/postfix-script.orig
|
|
|
|
+++ conf/postfix-script
|
2021-06-02 12:12:35 +02:00
|
|
|
@@ -311,10 +311,17 @@ check-warn)
|
2017-09-28 16:24:06 +02:00
|
|
|
}
|
|
|
|
todo=`echo "$todo" | tr ' ' '\12' | sort -u`
|
|
|
|
|
|
|
|
- find $todo ! -user root \
|
|
|
|
+ if find -L $config_directory/main.cf >/dev/null 2>&1
|
|
|
|
+ then
|
|
|
|
+ FIND="find -L"
|
|
|
|
+ else
|
|
|
|
+ FIND=find
|
|
|
|
+ fi
|
|
|
|
+
|
|
|
|
+ $FIND $todo ! -user root \
|
|
|
|
-exec $WARN not owned by root: {} \;
|
|
|
|
|
|
|
|
- find $todo \( -perm -020 -o -perm -002 \) \
|
|
|
|
+ $FIND $todo \( -perm -020 -o -perm -002 \) \
|
|
|
|
-exec $WARN group or other writable: {} \;
|
|
|
|
|
|
|
|
# Check Postfix mail_owner-owned directory tree owner/permissions.
|