Bug 1204139 - when sending email with postfix-3.0.0-4.fc23.x86_64 yields "postdrop: warning: /etc/postfix/dynamicmaps.cf.d: directory read error: No such file or directory"
Summary: when sending email with postfix-3.0.0-4.fc23.x86_64 yields "postdrop: warning...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: postfix
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-20 13:14 UTC by Dodji Seketeli
Modified: 2015-05-11 19:09 UTC (History)
3 users (show)

Fixed In Version: postfix-3.0.1-2.fc22
Clone Of:
Environment:
Last Closed: 2015-05-04 14:07:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed patch (718 bytes, patch)
2015-04-21 18:13 UTC, Mika Ilmaranta
no flags Details | Diff
Patch to the postfix Fedora repository that fixes the issue (5.01 KB, application/mbox)
2015-04-26 18:03 UTC, Dodji Seketeli
no flags Details
Resulting SRPM (4.17 MB, application/x-rpm)
2015-04-26 18:07 UTC, Dodji Seketeli
no flags Details

Description Dodji Seketeli 2015-03-20 13:14:41 UTC
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.

Comment 1 Jaroslav Škarvada 2015-03-20 14:49:36 UTC
Interesting, I didn't spot this during my initial testing. Are you able to reproduce it if you remove 'toto' file?

Comment 2 Dodji Seketeli 2015-03-20 15:11:06 UTC
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?

Comment 3 Jaroslav Škarvada 2015-03-20 15:39:42 UTC
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.

Comment 4 Jaroslav Škarvada 2015-03-24 15:48:54 UTC
Non reproducible for me.

Comment 5 Tuomo Soini 2015-04-21 18:09:15 UTC
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.

Comment 6 Mika Ilmaranta 2015-04-21 18:13:53 UTC
Created attachment 1017017 [details]
Proposed patch

Comment 7 Dodji Seketeli 2015-04-26 18:01:27 UTC
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.

Comment 8 Dodji Seketeli 2015-04-26 18:03:20 UTC
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.

Comment 9 Dodji Seketeli 2015-04-26 18:07:07 UTC
Created attachment 1019086 [details]
Resulting SRPM

The SRPM resulting from applying the patch attached earlier.

Comment 10 Dodji Seketeli 2015-04-26 18:27:48 UTC
And the koji scratch build is at http://koji.fedoraproject.org/koji/taskinfo?taskID=9573266.

Comment 11 Jaroslav Škarvada 2015-05-04 13:29:35 UTC
Mika, Dodji, thanks for the patches.

Comment 12 Jaroslav Škarvada 2015-05-04 13:42:40 UTC
(In reply to Jaroslav Škarvada from comment #11)
> Mika, Dodji, thanks for the patches.

I reformatted it a bit, mostly cosmetic changes.

Comment 13 Fedora Update System 2015-05-04 15:58:41 UTC
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

Comment 14 Fedora Update System 2015-05-11 19:09:00 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.