Dovecot new emails have wrong permission

Hi.

I've scripted a fix that puts a VERY heavy load on my server and would need help as soon as possible please. I did update just a little over 100 packages (yeah, I know!) to try to see if it'd fix it to no avail.

Since yesterday late in the day, before the update, all new incoming emails started to receive not properly permissions to users:groups but are root:mail as per the attached image. This is very inconvenient and prevents the mail clients to work and they all give error messages. ALL my users started calling at once!

I've looked inside Google's engine but am finding no recent younger then 2010 for messages found in /var/log/mail.err as follows:

Jan 16 15:39:40 d1 dovecot: pop3(****): Error: Couldn't init INBOX: Internal error occurred. Refer to server log for more information. [2017-01-16 15:39:40]

Jan 16 15:39:59 d1 dovecot: pop3(****): Error: open(/home/****/homes/****/Maildir/cur/1484598785.13645_0.****:2,) failed: Permission denied (euid=1120(****) egid=1048(****) missing +r perm: /home/****/homes/****/Maildir/cur/1484598785.13645_0.d1.ci2.ca.tor:2,)

Jan 16 15:39:59 d1 dovecot: message repeated 2 times: [ pop3(****): Error: open(/home/****/homes/****/Maildir/cur/1484598785.13645_0.****:2,) failed: Permission denied (euid=1120(****) egid=1048(****) missing +r perm: /home/****/homes/****/Maildir/cur/1484598785.13645_0.d1.ci2.ca.tor:2,)]

or

Jan 17 15:43:26 d1 dovecot: imap(****): Error: open(/home/****/domains/****/homes/****/Maildir/cur/1484651500.22018_0.d1.ci2.ca.tor:2,) failed: Permission denied (euid=1157(****) egid=1053(****) missing +r perm: /home/****/domains/f****/homes/****/Maildir/cur/1484651500.22018_0.d1.ci2.ca.tor:2,, we're not in group 8(mail))

These are very sudden. No update. No reboot. No service restart. No configuration change/apply.

I've looked everywhere and under every rock. I found nothing nowhere. I need help with this issue as I was forced top script a find command that would reset proper permissions on files. And I need to run this often enough so that as few errors are shown to the server's users as possible. This puts a VERY heavy load on the server.

Can you help me fix my elusive issue?

Best regards.

Marc

Status: 
Active

Comments

Howdy -- it doesn't sound like you're seeing a bug there, it sounds like the Postfix config was changed in the way it's delivering emails.

If you have a working server, you may want to compare the "mailbox_command" parameter in the /etc/postfix/main.cf file, as well as your /etc/procmailrc file, on your non-working and working servers.

Since you're using Virtualmin GPL there, and it doesn't appear that you're experiencing a bug -- the best place to get help with that is using the Forums. We monitor the Forums, along with lots of wonderful folks in the community.

When posting there, can you post the output of the command "postconf -n", along with the contents of your /etc/procmailrc file?

I'll try to keep an eye out there for a post from you. Thanks!