forked from pool/postfix
5f45aebfdb
update config.postfix, update main.cf patch OBS-URL: https://build.opensuse.org/request/show/643762 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=310
25 lines
663 B
Diff
25 lines
663 B
Diff
Index: conf/postfix-script
|
|
===================================================================
|
|
--- conf/postfix-script.orig
|
|
+++ conf/postfix-script
|
|
@@ -299,10 +299,17 @@ check-warn)
|
|
}
|
|
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.
|