Postfix Problem

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
crivi
Posts: 104
Joined: 2004-01-27 08:47
Location: Uzwil, Schweiz

Postfix Problem

Post by crivi » 2004-11-23 10:56

Hallo zusammen

Wenn ich mein Postfix neu starte erscheinen folgende Fehler:

Code: Select all

postfix/postfix-script: warning: not owned by root: /etc/postfix/domains
postfix/postfix-script: warning: not owned by root: /etc/postfix/header_checks
postfix/postfix-script: warning: not owned by root: /etc/postfix/main.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/main.cf.db
postfix/postfix-script: warning: not owned by root: /etc/postfix/main.cf.default
postfix/postfix-script: warning: not owned by root: /etc/postfix/main.cf_mysql
postfix/postfix-script: warning: not owned by root: /etc/postfix/main.cf_works
postfix/postfix-script: warning: not owned by root: /etc/postfix/master.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/master.cf.db
postfix/postfix-script: warning: not owned by root: /etc/postfix/master.cf_orig
postfix/postfix-script: warning: not owned by root: /etc/postfix/mime_header_checks.regexp
postfix/postfix-script: warning: not owned by root: /etc/postfix/mysql_virtual_alias_maps.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/mysql_virtual_domain_maps.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/mysql_virtual_mailbox_maps.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/pcre_table
postfix/postfix-script: warning: not owned by root: /etc/postfix/pop-before-smtp
postfix/postfix-script: warning: not owned by root: /etc/postfix/pop-before-smtp.db
postfix/postfix-script: warning: not owned by root: /etc/postfix/post-install
postfix/postfix-script: warning: not owned by root: /etc/postfix/postfix-chroot.sh
postfix/postfix-script: warning: not owned by root: /etc/postfix/postfix-files
postfix/postfix-script: warning: not owned by root: /etc/postfix/postfix-script
postfix/postfix-script: warning: not owned by root: /etc/postfix/regexp_table
postfix/postfix-script: warning: not owned by root: /etc/postfix/relocated
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-aliases.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-auth.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-canonical.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-compatibility.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-debug.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-filter.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-flush.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-ldap.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-lmtp.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-local.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-mime.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-misc.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-pcre-access.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-pcre-body.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-pcre-header.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-qmqpd.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-rate.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-regexp-access.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-regexp-body.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-regexp-header.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-relocated.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-resource.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-rewrite.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-smtp.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-smtpd.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-transport.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/samples/sample-virtual.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/smtp_auth
postfix/postfix-script: warning: not owned by root: /etc/postfix/smtp_auth.db
postfix/postfix-script: warning: not owned by root: /etc/postfix/transport
postfix/postfix-script: warning: not owned by root: /etc/postfix/virtual
postfix/postfix-script: warning: not owned by root: /etc/postfix/virtual.db
postfix/postfix-script: warning: not owned by root: /etc/postfix/virtual.db.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./access
postfix/postfix-script: warning: group or other writable: /etc/postfix/./aliases
postfix/postfix-script: warning: group or other writable: /etc/postfix/./aliases.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./body_checks
postfix/postfix-script: warning: group or other writable: /etc/postfix/./canonical
postfix/postfix-script: warning: group or other writable: /etc/postfix/./checks.tgz
postfix/postfix-script: warning: group or other writable: /etc/postfix/./domains
postfix/postfix-script: warning: group or other writable: /etc/postfix/./header_checks
postfix/postfix-script: warning: group or other writable: /etc/postfix/./LICENSE
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf.default
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf_mysql
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf_works
postfix/postfix-script: warning: group or other writable: /etc/postfix/./master.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./master.cf.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mime_header_checks.regexp
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_alias_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_domain_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_mailbox_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pcre_table
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pop-before-smtp
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pop-before-smtp.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./post-install
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-chroot.sh
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-files
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-script
postfix/postfix-script: warning: group or other writable: /etc/postfix/./regexp_table
postfix/postfix-script: warning: group or other writable: /etc/postfix/./relocated
postfix/postfix-script: warning: group or other writable: /etc/postfix/./smtp_auth
postfix/postfix-script: warning: group or other writable: /etc/postfix/./smtp_auth.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./transport
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual.db.db
postfix/postfix-script: starting the Postfix mail system
[root@sh3-0527 init.d]# postfix start
postfix/postfix-script: fatal: the Postfix mail system is already running
[root@sh3-0527 init.d]# postfix stop
postfix/postfix-script: stopping the Postfix mail system
[root@sh3-0527 init.d]# postfix start
postfix/postfix-script: warning: group or other writable: /etc/postfix/./access
postfix/postfix-script: warning: group or other writable: /etc/postfix/./aliases
postfix/postfix-script: warning: group or other writable: /etc/postfix/./aliases.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./body_checks
postfix/postfix-script: warning: group or other writable: /etc/postfix/./canonical
postfix/postfix-script: warning: group or other writable: /etc/postfix/./checks.tgz
postfix/postfix-script: warning: group or other writable: /etc/postfix/./domains
postfix/postfix-script: warning: group or other writable: /etc/postfix/./header_checks
postfix/postfix-script: warning: group or other writable: /etc/postfix/./LICENSE
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf.default
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf_mysql
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf_works
postfix/postfix-script: warning: group or other writable: /etc/postfix/./master.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./master.cf.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mime_header_checks.regexp
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_alias_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_domain_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_mailbox_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pcre_table
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pop-before-smtp
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pop-before-smtp.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./post-install
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-chroot.sh
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-files
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-script
postfix/postfix-script: warning: group or other writable: /etc/postfix/./regexp_table
postfix/postfix-script: warning: group or other writable: /etc/postfix/./relocated
postfix/postfix-script: warning: group or other writable: /etc/postfix/./smtp_auth
postfix/postfix-script: warning: group or other writable: /etc/postfix/./smtp_auth.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./transport
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual.db.db
Hmm was mache ich da falsch? In welche Gruppe müssen diese Dateien?

ls-l bringt folgendes:

Code: Select all

-rw-rw-r--    1 root     postfix      8839 May 26 14:53 access
-rw-rw-r--    1 root     postfix      2250 May 26 10:57 aliases
-rw-rw-r--    1 root     postfix     12288 May 26 10:57 aliases.db
-rwxrwxrwx    1 root     postfix     18953 May 26 10:57 body_checks
-rw-rw-r--    1 root     postfix      7529 May 26 10:57 canonical
-rwxrwxrwx    1 root     postfix     15739 May 26 10:57 checks.tgz
-rwxrwxrwx    1 root     postfix        78 Sep 14 11:08 domains
-rw-rw-r--    1 root     postfix     21504 Sep 10 21:10 header_checks
-rw-rw-r--    1 root     postfix     11942 May 26 10:57 LICENSE
-rw-r--r--    1 root     postfix     21997 Oct  5 10:53 main.cf
-rw-rw-r--    1 root     postfix     12288 Sep 13 10:21 main.cf.db
-rw-rw-r--    1 root     postfix      9178 May 26 10:57 main.cf.default
-rw-rw-r--    1 root     postfix     22200 Jun  1 16:22 main.cf_mysql
-rw-rw-r--    1 root     postfix     21790 Jun  1 16:13 main.cf_works
-rw-rw-r--    1 root     postfix      6597 Sep 13 14:01 master.cf
-rw-rw-r--    1 root     postfix     12288 Sep 13 10:21 master.cf.db
-rw-r--r--    1 root     postfix      6663 Sep 13 09:33 master.cf_orig
-rw-rw-r--    1 root     postfix       401 May 26 10:57 mime_header_checks.regexp
-rw-rw-r--    1 root     postfix       123 Jun  1 16:17 mysql_virtual_alias_maps.cf
-rw-rw-r--    1 root     postfix       131 Jun  1 16:16 mysql_virtual_domain_maps.cf
-rw-rw-r--    1 root     postfix       129 Jun  1 16:16 mysql_virtual_mailbox_maps.cf
-rw-rw-r--    1 root     postfix      7751 May 26 10:57 pcre_table
-rw-rw-r--    1 root     postfix     17470 Jun  1 21:02 pop-before-smtp
-rw-rw-r--    1 root     postfix     24576 Jun  1 21:03 pop-before-smtp.db
-rwxrwxrwx    1 root     postfix     10470 May 26 10:57 postfix-chroot.sh
-rw-rw-r--    1 root     postfix      8675 May 26 10:57 postfix-files
-rwxrwxrwx    1 root     postfix      5489 May 26 10:57 postfix-script
-rwxrwxrwx    1 root     postfix     18897 May 26 10:57 post-install
drwxrwxrwx    2 root     postfix      4096 Aug 21 18:48 README_FILES
-rw-rw-r--    1 root     postfix      4978 May 26 10:57 regexp_table
-rw-rw-r--    1 root     postfix      5089 May 26 10:57 relocated
drwxrwxrwx    2 root     postfix      4096 Aug 21 18:48 samples
-rw-rw-r--    1 root     postfix        92 May 26 10:57 smtp_auth
-rw-rw-r--    1 root     postfix     12288 May 26 10:57 smtp_auth.db
-rw-rw-r--    1 root     postfix      9738 May 26 10:57 transport
-rw-rw-r--    1 root     postfix      1952 Oct  4 20:41 virtual
-rwxrwxrwx    1 root     postfix     12288 Oct  4 20:44 virtual.db
-rw-rw-r--    1 root     postfix     12288 May 26 10:57 virtual.db.db

Vielen Dank


mfg

Raffi

crivi
Posts: 104
Joined: 2004-01-27 08:47
Location: Uzwil, Schweiz

Re: Postfix Problem

Post by crivi » 2004-11-23 11:01

so ich habe es nun auf folgende Fehler reduziert:

Code: Select all

postfix/postfix-script: warning: group or other writable: /etc/postfix/./access
postfix/postfix-script: warning: group or other writable: /etc/postfix/./aliases
postfix/postfix-script: warning: group or other writable: /etc/postfix/./aliases.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./body_checks
postfix/postfix-script: warning: group or other writable: /etc/postfix/./canonical
postfix/postfix-script: warning: group or other writable: /etc/postfix/./checks.tgz
postfix/postfix-script: warning: group or other writable: /etc/postfix/./domains
postfix/postfix-script: warning: group or other writable: /etc/postfix/./header_checks
postfix/postfix-script: warning: group or other writable: /etc/postfix/./LICENSE
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf.default
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf_mysql
postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf_works
postfix/postfix-script: warning: group or other writable: /etc/postfix/./master.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./master.cf.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mime_header_checks.regexp
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_alias_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_domain_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./mysql_virtual_mailbox_maps.cf
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pcre_table
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pop-before-smtp
postfix/postfix-script: warning: group or other writable: /etc/postfix/./pop-before-smtp.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./post-install
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-chroot.sh
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-files
postfix/postfix-script: warning: group or other writable: /etc/postfix/./postfix-script
postfix/postfix-script: warning: group or other writable: /etc/postfix/./regexp_table
postfix/postfix-script: warning: group or other writable: /etc/postfix/./relocated
postfix/postfix-script: warning: group or other writable: /etc/postfix/./smtp_auth
postfix/postfix-script: warning: group or other writable: /etc/postfix/./smtp_auth.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./transport
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual.db
postfix/postfix-script: warning: group or other writable: /etc/postfix/./virtual.db.db
Was muss ich da ändern?

Vielen Dank

Gruss Raffi

zucker4
Posts: 24
Joined: 2004-11-23 13:08

Re: Postfix Problem

Post by zucker4 » 2004-11-23 13:29

Hi!

Na wo soll wohl der Fehler liegen!?

"warning: group or other writable" - ist - zumindest für mich - ziemlich eindeutig!

Entferne das Schreibrecht für die Gruppe von diesen Dateien!

Hier, z.B. mein /etc/postfix

--------------------------------
-rw-r--r-- 1 root root 8688 Nov 13 15:54 access
-rw-r--r-- 1 root root 12288 Nov 13 15:54 access.db
-rw-r--r-- 1 root root 7306 Dec 8 2003 canonical
-rw-r--r-- 1 root root 593 Sep 19 20:04 dynamicmaps.cf
-rw-r--r-- 1 root root 2957 Oct 19 23:34 main.cf
-rw-r--r-- 1 root root 2179 May 12 2004 main.cf.bak
-rw-r--r-- 1 root root 2173 Apr 30 2004 main.cf.no
-rw-r--r-- 1 root root 5820 Sep 18 08:07 master.cf
-rw-r--r-- 1 root root 5759 May 12 2004 master.cf.bak
-rw-r--r-- 1 root root 7751 Dec 8 2003 pcre_table
-rwxr-xr-x 1 root root 21207 Jun 22 23:06 post-install
-rw-r--r-- 1 root root 16114 Jun 22 23:06 postfix-files
-rwxr-xr-x 1 root root 5800 Jun 22 23:06 postfix-script
-rw------- 1 root root 1024 Sep 18 07:03 prng_exch
-rw-r--r-- 1 root root 4880 Dec 8 2003 regexp_table
-rw-r--r-- 1 root root 4914 Dec 8 2003 relocated
drwxr-xr-x 2 root root 1024 May 2 2004 samples
drwxr-xr-x 2 root root 1024 May 5 2004 sasl
lrwxrwxrwx 1 root root 4 May 2 2004 sasl2 -> sasl
-rw-r--r-- 1 root root 9420 Dec 8 2003 transport
-rw-r--r-- 1 root root 9256 Oct 13 16:58 virtual
-rw-r--r-- 1 root root 12288 Oct 13 16:58 virtual.db
-rw-r--r-- 1 root root 9213 May 5 2004 virtual.orig
------------------------------------------

crivi
Posts: 104
Joined: 2004-01-27 08:47
Location: Uzwil, Schweiz

Re: Postfix Problem

Post by crivi » 2004-11-23 13:39

was ist das für ein genauer chmod?

Mag das ganze nocht zusammenzählen ;)

Danke

Gruss Raffi