postdrop hangs until reboot: warning: mail_queue_enter: create file maildrop/...: Permission denied

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

postdrop hangs until reboot: warning: mail_queue_enter: create file maildrop/...: Permission denied

Vincent Lefevre-10
Hi,

FYI, I've just reported the following bugs in the Debian BTS
for postfix 3.2.2:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869075

In summary, there's one problem that is hardly reproducible,
and an incorrect error message.

--------

When I tried to send a mail with mutt (via the usual
"/usr/sbin/sendmail -oem -oi" command), it was hanging, and ps showed
that it was due to postdrop, which was hanging. There was no such
problem when I sent a mail 20 minutes before. /var/log/mail.log
contained a succession of

  warning: mail_queue_enter: create file maildrop/...: Permission denied

lines, until I killed postdrop:

Jul 20 11:18:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/634289.13399: Permission denied
Jul 20 11:18:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/634603.13399: Permission denied
Jul 20 11:18:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/635373.13399: Permission denied
Jul 20 11:18:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/636176.13399: Permission denied
Jul 20 11:18:51 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/637326.13399: Permission denied
Jul 20 11:19:01 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/638252.13399: Permission denied
Jul 20 11:19:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/638960.13399: Permission denied
Jul 20 11:19:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/639612.13399: Permission denied
Jul 20 11:19:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/640299.13399: Permission denied
Jul 20 11:19:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/641103.13399: Permission denied
Jul 20 11:19:51 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/642386.13399: Permission denied
Jul 20 11:20:01 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/643932.13399: Permission denied
Jul 20 11:20:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/644810.13399: Permission denied
Jul 20 11:20:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/645803.13399: Permission denied
Jul 20 11:20:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/647270.13399: Permission denied
Jul 20 11:20:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/648869.13399: Permission denied
Jul 20 11:20:51 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/649980.13399: Permission denied
Jul 20 11:21:01 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/651193.13399: Permission denied
Jul 20 11:21:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/652325.13399: Permission denied
Jul 20 11:21:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/653346.13399: Permission denied
Jul 20 11:21:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/654559.13399: Permission denied
Jul 20 11:21:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/655404.13399: Permission denied
Jul 20 11:21:51 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/656236.13399: Permission denied
Jul 20 11:22:01 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/657108.13399: Permission denied
Jul 20 11:22:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/658050.13399: Permission denied
Jul 20 11:22:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/658695.13399: Permission denied
Jul 20 11:22:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/660145.13399: Permission denied
Jul 20 11:22:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/661449.13399: Permission denied
Jul 20 11:22:51 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/662521.13399: Permission denied
Jul 20 11:23:01 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/663888.13399: Permission denied
Jul 20 11:23:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/665310.13399: Permission denied
Jul 20 11:23:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/666255.13399: Permission denied
Jul 20 11:23:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/667117.13399: Permission denied
Jul 20 11:23:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/668392.13399: Permission denied
Jul 20 11:23:51 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/669518.13399: Permission denied
Jul 20 11:24:01 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/670266.13399: Permission denied
Jul 20 11:24:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/671097.13399: Permission denied
Jul 20 11:24:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/672216.13399: Permission denied
Jul 20 11:24:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/673323.13399: Permission denied
Jul 20 11:24:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/674002.13399: Permission denied
Jul 20 11:24:51 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/674838.13399: Permission denied
Jul 20 11:25:01 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/676398.13399: Permission denied
Jul 20 11:25:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/677080.13399: Permission denied
Jul 20 11:25:21 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/678285.13399: Permission denied
Jul 20 11:25:31 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/679208.13399: Permission denied
Jul 20 11:25:41 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/680926.13399: Permission denied
Jul 20 11:25:51 zira postfix/sendmail[13398]: warning: command "/usr/sbin/postdrop -r" exited with status 15
Jul 20 11:25:51 zira postfix/sendmail[13398]: fatal: [hidden email](1000): unable to execute /usr/sbin/postdrop -r: Success

Note also that the "Success" error message after the kill is obviously
incorrect: a success cannot be the reason of an error!

I tried again, but got the same issue.

I eventually stopped and restarted postfix with:

  service postfix stop
  service postfix start

as root, but this did not solve this problem.

This problem disappeared only after a reboot of the machine.

Between the mail previously sent (at 10:56:48) and the above warnings,
everything seems normal in the journalctl logs (the usual things...).

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: postdrop hangs until reboot: warning: mail_queue_enter: create file maildrop/...: Permission denied

Wietse Venema
Vincent Lefevre:
> Jul 20 11:18:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/634289.13399: Permission denied

Someone goofed up while playing around as root.
To fix, execute "postfix set-permissions".

        Wietse
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: postdrop hangs until reboot: warning: mail_queue_enter: create file maildrop/...: Permission denied

Vincent Lefevre-10
On 2017-07-20 06:55:33 -0400, Wietse Venema wrote:
> Vincent Lefevre:
> > Jul 20 11:18:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/634289.13399: Permission denied
>
> Someone goofed up while playing around as root.

I'm the only root, and I did nothing as root in the period.

> To fix, execute "postfix set-permissions".

I suppose that the permissions were correct because just a reboot
solved the issue.

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: postdrop hangs until reboot: warning: mail_queue_enter: create file maildrop/...: Permission denied

Wietse Venema
Vincent Lefevre:
[ Charset ISO-8859-1 converted... ]

> On 2017-07-20 06:55:33 -0400, Wietse Venema wrote:
> > Vincent Lefevre:
> > > Jul 20 11:18:11 zira postfix/postdrop[13399]: warning: mail_queue_enter: create file maildrop/634289.13399: Permission denied
> >
> > Someone goofed up while playing around as root.
>
> I'm the only root, and I did nothing as root in the period.
>
> > To fix, execute "postfix set-permissions".
>
> I suppose that the permissions were correct because just a reboot
> solved the issue.

Perhaps. In any case, Postfix as released does not autonomously
change permissions. If permissions change, then ask down-stream
distributors what they have in cron jobs or start-up scripts.

        Wietse
Loading...