[Dovecot] "failed to store into mailbox 'INBOX': Not enough disk space." with large mail
Hello,
I am having this error message on some rare emails with more than 6 mb or so. Neither the dovecot server nor the filesystem where the maildir resides have any quota or are full at the time of delivering.
The mails goes getmail->postfix->dovecot delivery agent
Is the mail written to any other place than the maildir folder? Even though all my temp folders should also be able to hold some megabytes...
Thanks for any help, Johannes
message: *sieve: info: started log at ... error: msgid=<XXX>: failed to store into mailbox 'INBOX': Not enough disk space. * dovecot --version 1.2.10
dovecot -n # 1.2.10: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-686 i686 Debian 5.0.4 xfs log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps ssl_cert_file: /etc/certificates/XXX ssl_key_file: /etc/certificates/XXX login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login login_greeting: XXX mail_access_groups: mail mail_location: maildir:/services/mail/%u mbox_write_locks: fcntl dotlock lda: postmaster_address: root mail_plugins: sieve auth default: verbose: yes passdb: driver: pam userdb: driver: passwd plugin: sieve: /var/sieve-scripts/%u/filter.sieve
Johannes Dröge put forth on 6/20/2010 1:25 PM:
Hello,
I am having this error message on some rare emails with more than 6 mb or so. Neither the dovecot server nor the filesystem where the maildir resides have any quota or are full at the time of delivering.
The mails goes getmail->postfix->dovecot delivery agent
Set in /etc/postfix/main.cf
mailbox_size_limit = 0
and reload Postfix.
http://wiki.dovecot.org/LDA/Postfix
-- Stan
On 2010-06-21 12:20 AM, Stan Hoeppner wrote:
Set in /etc/postfix/main.cf
mailbox_size_limit = 0
That's generally never a good idea (sets it to unlimited). Much better to just set it to a sane limit.
"If you don't wanna get bit in the ass, don't do things in such a manner that they can come back and bite you in the ass."
--
Best regards,
Charles
Charles Marcus put forth on 6/21/2010 12:23 PM:
On 2010-06-21 12:20 AM, Stan Hoeppner wrote:
Set in /etc/postfix/main.cf
mailbox_size_limit = 0
That's generally never a good idea (sets it to unlimited). Much better to just set it to a sane limit.
That's a purely subjective statement Charles. mailbox_size_limit is a "poor man's" disk quota system and was designed strictly to be used by Postfix only when Postfix is doing local delivery. Wietse didn't envision this being active when using an external LDA.
Many (most?) Postfix admins don't even know of its existence until they run afoul of the default limit of ~50MB. The "sane" thing to do is implement proper mailbox size quota management in Dovecot or at the filesystem level as these methods allow different quotas for different users.
This setting exists in Postfix solely for the case when Postfix is configured to perform local delivery itself. When piping delivery to a downstream application that actually does the disk write, mailbox_size_limit should always be disabled, so the downstream LDA or filesystem quota engine can do its job without interference from Postfix.
-- Stan
On 2010-06-21 5:31 PM, Stan Hoeppner wrote:
Charles Marcus put forth on 6/21/2010 12:23 PM:
On 2010-06-21 12:20 AM, Stan Hoeppner wrote:
Set in /etc/postfix/main.cf
mailbox_size_limit = 0
That's generally never a good idea (sets it to unlimited). Much better to just set it to a sane limit.
That's a purely subjective statement Charles. mailbox_size_limit is a "poor man's" disk quota system and was designed strictly to be used by Postfix only when Postfix is doing local delivery.
Actually, since I don't use mbox, I confused this with message_size_limit...
So... never mind... ;)
Charles Marcus put forth on 6/21/2010 4:43 PM:
On 2010-06-21 5:31 PM, Stan Hoeppner wrote:
Charles Marcus put forth on 6/21/2010 12:23 PM:
On 2010-06-21 12:20 AM, Stan Hoeppner wrote:
Set in /etc/postfix/main.cf
mailbox_size_limit = 0
That's generally never a good idea (sets it to unlimited). Much better to just set it to a sane limit.
That's a purely subjective statement Charles. mailbox_size_limit is a "poor man's" disk quota system and was designed strictly to be used by Postfix only when Postfix is doing local delivery.
Actually, since I don't use mbox, I confused this with message_size_limit...
So... never mind... ;)
It's cool. BTW, I'm pretty sure mailbox_size_limit affects both mbox and maildir:
mailbox_size_limit (default: 51200000)
The maximal size of any local(8) individual mailbox or maildir file, or
zero (no limit). In fact, this limits the size of any file that is written to upon local delivery, including files written by external commands that are executed by the local(8) delivery agent.
This limit must not be smaller than the message size limit.
For obvious reasons this will rarely affect maildir users (unless they receive 50MB attachments), whereas mbox users pushing emails into archival type or list mail storing IMAP folders with sieve will bump into this more frequently (which is what happened to me and prompted my addition to the LDA/Postfix wiki section). Another common scenario, probably more common actually, is mbox+POP users who never delete anything leaving it all in INBOX.
-- Stan
On 2010-06-21 9:26 PM, Stan Hoeppner wrote:
BTW, I'm pretty sure mailbox_size_limit affects both mbox and maildir:
<snip>
For obvious reasons this will rarely affect maildir users (unless they receive 50MB attachments),
Correct - I had to set both, because we do have to deal with very large attachments (we're in the advertising industry, so think lots of JPGs and hi-res PDFs)...
--
Best regards,
Charles
participants (3)
-
Charles Marcus
-
Johannes Dröge
-
Stan Hoeppner