Postfix/Sendmail kann die Datei main.cf nicht lesen

Postfix/Sendmail kann die Datei main.cf nicht lesen

Ich versuche, einen Mailserver zu konfigurieren, aber wenn ich Folgendes ausführe:

echo "test email" | mail -s "test" [email protected] -aFrom [email protected]

und ich überprüfe, tail /var/log/mail.errob ich es bekomme Aug 8 13:36:37 localhost postfix/sendmail[7034]: fatal: open /etc/postfix/main.cf: Permission denied.

Hier sind /etc/postfixdie Ordnerberechtigungen:

root@localhost:~# ls -la /etc/postfix/
total 156
drwxr-x---   5 root vmail  4096 Aug  8 13:09 .
drwxr-xr-x 112 root root   4096 Aug  8 13:33 ..
-rwxr-xr-x   1 root vmail   100 Aug  8 11:38 dynamicmaps.cf
drwxr-xr-x   2 root vmail  4096 Jun 19  2020 dynamicmaps.cf.d
-rwxr-xr-x   1 root vmail  3126 Aug  8 13:09 main.cf
-rwxr-xr-x   1 root vmail  1390 Aug  7 15:58 main.cf.orig
-rwxr-xr-x   1 root vmail 27120 Aug  7 15:24 main.cf.proto
lrwxrwxrwx   1 root root     31 Aug  7 15:25 makedefs.out -> /usr/share/postfix/makedefs.out
-rwxr-xr-x   1 root vmail  6511 Aug  8 12:27 master.cf
-rwxr-xr-x   1 root vmail  6208 Aug  7 16:17 master.cf.orig
-rwxr-xr-x   1 root vmail  6208 Aug  7 15:24 master.cf.proto
-rwxr-xr-x   1 root vmail   148 Aug  7 16:13 mysql-virtual-alias-maps.cf
-rwxr-xr-x   1 root vmail   139 Aug  7 16:12 mysql-virtual-email2email.cf
-rwxr-xr-x   1 root vmail   137 Aug  7 23:53 mysql-virtual-mailbox-domains.cf
-rwxr-xr-x   1 root vmail   135 Aug  7 16:13 mysql-virtual-mailbox-maps.cf
-rwxr-xr-x   1 root vmail 10268 Jun 19  2020 postfix-files
drwxr-xr-x   2 root vmail  4096 Aug  8 11:38 postfix-files.d
-rwxr-xr-x   1 root vmail 11532 Jun 19  2020 postfix-script
-rwxr-xr-x   1 root vmail 29872 Jun 19  2020 post-install
drwxr-xr-x   2 root vmail  4096 Jun 19  2020 sasl

Es tut mir leid, wenn meine Frage schlecht formatiert ist, aber ich bin neu hier. Ich werde sie aktualisieren, wenn es Ihnen hilft.

verwandte Informationen