SOLVED [CPANEL-26002] LMTP errors after upgrading to cPanel & WHM Version 78

shaun

Well-Known Member
PartnerNOC
Verifed Vendor
Nov 9, 2001
702
1
318
San Clemente, Ca
cPanel Access Level
DataCenter Provider
Twitter
@cPanelMichael I've not seen anything from simfs. We've mainly been seeing this issue on servers were it looks like somebody had attempted to repair a users mail dir with incorrect ownership and permissions. The issue did not present itself until recently.
 
  • Like
Reactions: cPanelMichael

PRKGeoff

Registered
Apr 4, 2019
2
1
1
Brisbane, Australia
cPanel Access Level
Root Administrator
I was receiving this same error on accounts created back when I was running cPanel v74. Once the server updated to v78 various accounts could no longer receive emails however forwarders to external email accounts worked as normal. If I created a new test email account in v78 it worked as expected.

I tried the fix permissions scripts and confirmed quotas were enabled. Quotacheck didn't return any errors. I'm using Ext4. I also ran the
remove_dovecot_index_files script and restarted exim and dovecot but it made no difference.

I ended up comparing the permissions on files between failing and working accounts and found that the /home/*user*/mail/*domain.com*/*address*/maildirsize files had different permissions - 0440 vs 0640.

Once I updated the permissions on the file in the failing account to 640 it started to receive mail successfully again. It appears Exim now expects to be able to write to the maildirsize file of each email account as *user* now.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
I was receiving this same error on accounts created back when I was running cPanel v74. Once the server updated to v78 various accounts could no longer receive emails however forwarders to external email accounts worked as normal. If I created a new test email account in v78 it worked as expected.
Hi @PRKGeoff,

Can you confirm the specific error messages you noticed before correcting the permissions on the maildirsize files? Was there any specific output to /var/log/maillog at the time of the error?

Thank you.
 

PRKGeoff

Registered
Apr 4, 2019
2
1
1
Brisbane, Australia
cPanel Access Level
Root Administrator
Hi @PRKGeoff,

Can you confirm the specific error messages you noticed before correcting the permissions on the maildirsize files? Was there any specific output to /var/log/maillog at the time of the error?

Thank you.
Hi @cPanelMichael,

It looks like it was actuallly Dovecot that needed to update the maildirsize file. The messages in /var/log/maillog for failure and success were:
Code:
Apr  4 16:25:04 web1 dovecot: lmtp(13165): Error: Mailbox INBOX: quota: Failed to get quota resource MESSAGE for INBOX: quota-maildir: Failed to get MESSAGE: open(/home/user/mail/domain.com/info/maildirsize) failed: Permission denied
Apr  4 16:25:04 web1 dovecot: lmtp(13165): Error: mailbox_get_status(INBOX, STATUS_CHECK_OVER_QUOTA) failed: Mailbox INBOX: quota: Failed to get quota resource MESSAGE for INBOX: quota-maildir: Failed to get MESSAGE: open(/home/user/mail/domain.com/info/maildirsize) failed: Permission denied

Apr  5 00:13:38 web1 dovecot: lmtp([email protected])<76761><Wf75GxIRplzZKwEAUi/bpA>: msgid=<24267559[email protected]>: saved mail to INBOX
/var/log/exim_mainlog would contain something like:
Code:
2019-04-01 08:40:16 1hAj7a-009S6O-S7 == [email protected] R=virtual_user T=dovecot_virtual_delivery defer (-44): LMTP error after RCPT TO:<[email protected]>: 451 4.3.0 <[email protected]> Temporary internal error
2019-04-01 08:40:16 1hAj7a-009S6O-S7 ** [email protected]: retry timeout exceeded
2019-04-01 08:40:16 1hAj7g-009S9X-O5 <= <> R=1hAj7a-009S6O-S7 U=mailnull P=local S=75634 T="Mail delivery failed: returning message to sender" for [email protected]
The NDR received when attempting to send was:
Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

  [email protected]

    LMTP error after RCPT TO:<[email protected]>:

    451 4.3.0 <[email protected]> Temporary internal error:

    retry timeout exceeded
 
Last edited:
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello @PRKGeoff,

Thanks for taking the time to share the log output with us. I've added this information to the internal case (CPANEL-26002).

Thank you.
 

attiliok

Active Member
Nov 13, 2013
29
0
1
cPanel Access Level
Root Administrator
Hi, I have some problem, quite urgent. Here is a part of exim log:

Apr 11 12:09:10 server2 dovecot: lmtp(15728): Connect from local
Apr 11 12:09:10 server2 dovecot: lmtp(15728): Error: setmntent(/etc/mtab) failed: Permission denied
Apr 11 12:09:10 server2 dovecot: lmtp(15728): Error: Mailbox INBOX: quota: Failed to get quota resource STORAGE_BYTES for INBOX: quota-fs: Mount point unknown
Apr 11 12:09:10 server2 dovecot: lmtp(15728): Error: mailbox_get_status(INBOX, STATUS_CHECK_OVER_QUOTA) failed: Mailbox INBOX: quota: Failed to get quota resource STORAGE_BYTES for INBOX: quota-fs: Mount point unknown
Apr 11 12:09:10 server2 dovecot: lmtp(15728): Disconnect from local: Client has quit the connection (state=READY)

Thanks in advance
 

attiliok

Active Member
Nov 13, 2013
29
0
1
cPanel Access Level
Root Administrator
Yes. The output of the commands suggested does'nt resamble the one described in the post.
That is why I posted my maillog file
As a workaround I can change the quota of the affected account to UNLIMITED from cpanel, and the problem seems solved.
But I don't know how many accounts are affected.

Thanks
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello Everyone,

Case CPANEL-26800 is now open to specifically address LMTP delivery failures occurring as a result of invalid permissions on an email account's maildirsize file.

CPANEL-26002 remains open to address LMTP delivery failures occurring when the configured disk is different from the one currently mounted for the partition where LMTP delivers mail. A solution developed to prevent the delivery failures is now undergoing internal testing.

I'll monitor both cases and update this thread with new information on the case statuses as it becomes available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Is there some new info about the problem? Or some workaround to avoid setting the disk space to UNLIMITED?
Hello @attiliok,

Can you verify the specific error output you see in /var/log/maillog when this happens on the affected server?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Apr 11 12:09:10 server2 dovecot: lmtp(15728): Error: mailbox_get_status(INBOX, STATUS_CHECK_OVER_QUOTA) failed: Mailbox INBOX: quota: Failed to get quota resource STORAGE_BYTES for INBOX: quota-fs: Mount point unknown
Hello @attiliok,

This looks to relate to case CPANEL-26002. This case is still open, with a fix currently in testing. I'll continue to monitor this case and update this thread once it's published. In the meantime, the workaround on this post remains applicable. Let me know if the workaround doesn't work on your system.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello Everyone,

I've marked this thread as SOLVED with cPanel & WHM version 80 now in the RELEASE build tier. Let us know if any additional issues are noticed after upgrading to version 80.

Thank you.