Sending an email using postfix postfix-3.0.0-4.fc23 from Rawhide yields a weird an annoying warning: $ echo "coin" | mail -s "test" some postdrop: warning: /etc/postfix/dynamicmaps.cf.d: directory read error: No such file or directory $ ls -lat /etc/postfix/dynamicmaps.cf.d total 12 drwxr-xr-x 2 root root 4096 20 mars 12:11 . drwxr-xr-x. 4 root root 4096 20 mars 12:05 .. -rw-r--r-- 1 root root 71 20 mars 11:49 toto So I don't understand why this warning is emitted because the /etc/postfix/dynamicmaps.cf.d directory exists and seems to have correct access rights. The email is correctly sent but this warning is very annoying as it makes mail return an error code and makes it look like something bad happened.
Interesting, I didn't spot this during my initial testing. Are you able to reproduce it if you remove 'toto' file?
Yes. I have actually *added* the toto file to see if the problem persisted. But yeah, with or without that file, I am seeing the issue. Weird, isn't it? How can I debug the issue?
I am unable to reproduce this on my test systems. Maybe selinux issue or mislabeled files/directories? Could you try with 'setenforce 0'? Could you provide the content of your /etc/postfix/dynamicmaps.cf? Do you use any maps such (ldap, sql, ...) in your main.cf? In such case you need to install appropriate postfix subpackage, e.g. postfix-ldap, postfix-mysql, etc.
Non reproducible for me.
This is really a bug in postfix (also in postfix 3.0.1). I'm sure this will be fixed in next upstream version, there was already discussion about this issue in postfix-devel mailinglist.
Created attachment 1017017 [details] Proposed patch
Thanks, Mika and Tuomo, I think you and guys are right. I came up with a rebuilt package of postfix with the fix that Mika proposed and it seems to fix the thing for me. I had to also modify the build system to make it build on the new Linux 4.x that Rawhide (Fedora 23) has now. I am attaching the resulting patch I did to the master branch of the postfix package in the Fedora repository, as well as the srpm. Thank you, people. In these times, I remember why I love using, hacking and promoting Free Software. You made me love it even more. Now I can send emails from my Rawhide system again :-) Cheers.
Created attachment 1019085 [details] Patch to the postfix Fedora repository that fixes the issue This patch seems to fix for me. It applies the change proposed by Mika Ilmaranta and adjusts the build system to the package compile on Linux 4.x systems.
Created attachment 1019086 [details] Resulting SRPM The SRPM resulting from applying the patch attached earlier.
And the koji scratch build is at http://koji.fedoraproject.org/koji/taskinfo?taskID=9573266.
Mika, Dodji, thanks for the patches.
(In reply to Jaroslav Škarvada from comment #11) > Mika, Dodji, thanks for the patches. I reformatted it a bit, mostly cosmetic changes.
postfix-3.0.1-2.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/postfix-3.0.1-2.fc22
postfix-3.0.1-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.