postfix fatal open main.cf permission denied

  • Hello there,


    some days ago I installed some packages which seems to crash the postfix environment. I tried to undo that and I am having a working environment again. But in one case I get some error messages which avoids sending of mails. (I also tried to purge postfix and let I-MSCP reinstall it.) It would be great if anyone is able to help me!


    Every time a php script (and some tools like rss2mail) wants to send a mail using the default mail function a new entry inside the mail.log is generated and no mail is sent:

    Code: /var/log/mail.log
    1. Dec 21 16:00:10 srv postfix/sendmail[23768]: fatal: open /etc/postfix/main.cf: Permission denied


    Permissions of /etc/postfix:


    Support details:
    OS: Ubuntu 16.04.1 LTS (xenial)
    Version: Linux srv 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


    I-MSCP: 1.3.9 Build 20161216 (Horner)


    Postfix version: 3.1.0


    Reproduce: php sends an email using internal functionality for it

  • Permissions for first entry drwxr-x--- 4 root root 4,0K Dez 18 11:46 ./, hence, /etc/postfix directory, should be drwxr-xr-x. To resume, the /etc/postfix directory must be world readable.


    Don't forget to restart mail services once done..

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @UncleSam


    You're welcome ;)


    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206