Am 09.03.2012 20:28, schrieb Nikolaos Milas: > On 9/3/2012 2:07 μμ, Nikolaos Milas wrote: > >> I've: >> >> chown -R root:postfix /etc/postfix/ >> >> and chmod 640 to files and 750 to directories > > Since I did this, I get the error: > > Mar 9 21:23:53 vmail postfix/sendmail[1752]: fatal: open > /etc/postfix/main.cf: Permission denied > > # ls -la /etc/postfix/main.cf > -rw-r----- 1 root postfix 32806 Mar 8 20:11 /etc/postfix/main.cf > > What do I have to do to get sendmail (i.e. sendmail.postfix) running > correctly?
/etc/postfix -> 755 main-configuration which usually do not contain configuration should have 644 because "sendmail" is running as the user who starts it this is exactly the reason for proxy maps (beside better connection handling) sensible configuration files containing passwords needs only postfix-group-permissions and are not readable by other users while "sendmail" is talking to proxymap process and so have access to the full configuration -rw-r--r-- 1 root root 21K 2012-02-22 19:40 access -rw-r--r-- 1 root root 5,1K 2011-04-17 23:03 canonical -rw-r--r-- 1 root root 9,7K 2012-02-22 19:40 generic -rw-r--r-- 1 root root 22K 2012-02-22 19:40 header_checks -rw-r--r-- 1 root root 6,7K 2012-02-22 19:40 relocated -rw-r--r-- 1 root root 13K 2012-02-22 19:40 transport -rw-r--r-- 1 root root 13K 2012-02-22 19:40 virtual -rw-r--r-- 1 root root 4,0K 2009-08-15 21:43 bounce.cf -rw-r--r-- 1 root root 8,6K 2012-02-22 20:10 main.cf -rw-r--r-- 1 root root 4,2K 2011-06-11 14:01 master.cf -rw-r----- 1 root postfix 198 2011-04-27 18:51 mysql-aliases.cf -rw-r----- 1 root postfix 297 2011-05-28 18:37 mysql-forwarders.cf -rw-r----- 1 root postfix 204 2011-04-27 18:52 mysql-mydestination.cf -rw-r----- 1 root postfix 198 2011-04-27 18:42 mysql-mynetworks.cf -rw-r----- 1 root postfix 199 2011-04-27 18:52 mysql-recipients.cf -rw-r----- 1 root postfix 466 2011-04-27 18:52 mysql-rewritedomains.cf -rw-r----- 1 root postfix 206 2011-04-27 18:53 mysql-rewritesenders.cf -rw-r----- 1 root postfix 330 2011-04-27 18:53 mysql-senderaccess.cf -rw-r----- 1 root postfix 368 2011-05-13 00:49 mysql-sender_relay_hosts_auth.cf -rw-r----- 1 root postfix 205 2011-04-27 18:53 mysql-sender_relay_hosts.cf -rw-r----- 1 root postfix 201 2011-04-27 18:53 mysql-spamfilter.cf -rw-r----- 1 root postfix 490 2011-04-27 18:54 mysql-transport-backup-dbmail.cf -rw-r----- 1 root postfix 265 2011-04-27 18:54 mysql-transport.cf
signature.asc
Description: OpenPGP digital signature