Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-22 Thread Charles Marcus
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


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-21 Thread Charles Marcus
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


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-21 Thread Stan Hoeppner
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




Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-21 Thread Charles Marcus
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... ;)


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-21 Thread Stan Hoeppner
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: 5120)

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


[Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-20 Thread Johannes Dröge

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



Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-20 Thread Stan Hoeppner
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


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-11 Thread Stan Hoeppner
Timo Sirainen put forth on 6/10/2010 10:54 PM:
 On 11.6.2010, at 4.23, Stan Hoeppner wrote:
 
 Jakob Curdes put forth on 6/10/2010 10:54 AM:

 Same here, we run a  mailbox_size_limit of 700MB and have several users
 regularly hitting the limit.
 Can't really slap them as they would reply  on google I have 7 GB mail
 space.

 I wonder how often Google does full disaster recovery off site
 backup/mirroring of all those millions of _free_ 7GB mailboxen.  AFAIK, 
 Google
 makes no guarantees WRT mailbox contents.  They may have full multi site
 redundancy, but I've yet to read a whitepaper describing it.
 
 GMail (probably) uses Bigtable, which does have a whitepaper: 
 http://static.googleusercontent.com/external_content/untrusted_dlcp/labs.google.com/en//papers/bigtable-osdi06.pdf

Thanks Timo.  I'm surprised I hadn't run across this yet.  I've been curious
about it for a while now.

-- 
Stan




Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-11 Thread Charles Marcus
On 2010-06-10 11:23 PM, Stan Hoeppner wrote:
 I wonder how often Google does full disaster recovery off site 
 backup/mirroring of all those millions of _free_ 7GB mailboxen. 
 AFAIK, Google makes no guarantees WRT mailbox contents. They may have
 full multi site redundancy, but I've yet to read a whitepaper
 describing it.

Anyone who stores critical email on a free service gets no sympathy from
me if they lose anything. That said, I've only heard a few horror
stories of services losing all of someone's email (I think it was
hotmail, many years ago, some woman used it exclusively for her business
email and lost like 7 years worth of critical emails).

They're actually pretty reliable... but for me its more the privacy (or
lack thereof) issue that keeps me from using them more...

-- 

Best regards,

Charles


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-11 Thread Noel Butler
On Fri, 2010-06-11 at 09:17 -0400, Charles Marcus wrote:


 
 They're actually pretty reliable... but for me its more the privacy (or
 lack thereof) issue that keeps me from using them more...
 


eh? you have far more risk of privacy invasion from google (by their own
admission so they know how to spam you) than hotmail



Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-11 Thread Charles Marcus
On 2010-06-11 9:21 AM, Noel Butler wrote:
 On Fri, 2010-06-11 at 09:17 -0400, Charles Marcus wrote:
 They're actually pretty reliable... but for me its more the privacy (or
 lack thereof) issue that keeps me from using them more...

 eh? you have far more risk of privacy invasion from google (by their own
 admission so they know how to spam you) than hotmail

When I said 'them', I meant free services in general, but yeah, I was
mostly talking about gmail. I only mentioned hotmail specifically
because that was the only one I remembered specifically where someone
lost *all* of their email.

-- 

Best regards,

Charles


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-11 Thread Rodolfo González González

Charles Marcus wrote:

On 2010-06-11 9:21 AM, Noel Butler wrote:
When I said 'them', I meant free services in general, but yeah, I was
mostly talking about gmail. I only mentioned hotmail specifically
because that was the only one I remembered specifically where someone
lost *all* of their email.



Maybe his/her account was disabled due to inactivity.




Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-11 Thread Charles Marcus
On 2010-06-11 10:06 AM, Rodolfo González González wrote:
 Charles Marcus wrote:
 On 2010-06-11 9:21 AM, Noel Butler wrote:
 When I said 'them', I meant free services in general, but yeah, I was
 mostly talking about gmail. I only mentioned hotmail specifically
 because that was the only one I remembered specifically where someone
 lost *all* of their email.
 
 Maybe his/her account was disabled due to inactivity.

No... there was a huge story on the internet about it, she was just dumb
enough to run her entire business on hotmail. They (hotmail) had some
kind of 'problem' (I don't remember if they ever disclosed any details),
and they admitted that they lost a bunch of users emails...

-- 

Best regards,

Charles


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-11 Thread Phil Howard
On Thu, Jun 10, 2010 at 23:06, Stan Hoeppner s...@hardwarefreak.com wrote:
 Charles Marcus put forth on 6/10/2010 10:19 AM:
 On 2010-06-10 3:31 AM, Stan Hoeppner wrote:
 BTW, anyone who has a 44MB INBOX should be slapped repeatedly about the
 cranium and then educated about POP and IMAP, and how each should be used.

 So, Stan, how much will you charge to come do the honors for me?

 It will probably be in the neighborhood of 50 users with Inboxes over
 1GB, some over 5GB...

 O-M-G!?  We may as well skip the punishment/re-education of these folks and
 march them straight to the firing squad. ;)

 You're talking just _Inbox_ of those sizes right?  No sub folders?  If so,
 yes, definitely to the firing squad they go. :)

How about just autodeleting INBOX after N days?  I think I might just
go ahead and automate that on the server ... but just move the
deleted mail to a real Trash folder (maybe with a different name).
 Hmmm ... what to pick for N.


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-10 Thread Charles Marcus
On 2010-06-09 6:40 PM, Noel Butler wrote:
 I missed your using system accounts so Charles may be on the right
 track, you need to find the  size of your existing mailbox,  
 search for mailbox_size_limit  if you have not altered this value in
 main.cf use postconf -d to see its value, about 50MB I think.
 
 postfix uses a rather small value as default size limit,

Default is 5120 (or about 50MB), so if this is the problem, it was
changed...

 you may not have 6 MB free in that limit.
 alter it to 100MB or something like that. You can also set it to 0
 to disable the limit.

Yeah, but that's never a good idea or necessary in any regard.

-- 

Best regards,

Charles


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-10 Thread Charles Marcus
On 2010-06-10 3:31 AM, Stan Hoeppner wrote:
 BTW, anyone who has a 44MB INBOX should be slapped repeatedly about the
 cranium and then educated about POP and IMAP, and how each should be used.

So, Stan, how much will you charge to come do the honors for me?

It will probably be in the neighborhood of 50 users with Inboxes over
1GB, some over 5GB...

;)

-- 

Best regards,

Charles


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-10 Thread Jakob Curdes



Am 10.06.2010 17:19, schrieb Charles Marcus:

On 2010-06-10 3:31 AM, Stan Hoeppner wrote:
   

BTW, anyone who has a 44MB INBOX should be slapped repeatedly about the
cranium and then educated about POP and IMAP, and how each should be used.
 

So, Stan, how much will you charge to come do the honors for me?

It will probably be in the neighborhood of 50 users with Inboxes over
1GB, some over 5GB...
   
Same here, we run a  mailbox_size_limit of 700MB and have several users 
regularly hitting the limit.
Can't really slap them as they would reply  on google I have 7 GB mail 
space.

JC


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-10 Thread Phil Howard
On Thu, Jun 10, 2010 at 11:54, Jakob Curdes j...@info-systems.de wrote:


 Am 10.06.2010 17:19, schrieb Charles Marcus:

 On 2010-06-10 3:31 AM, Stan Hoeppner wrote:


 BTW, anyone who has a 44MB INBOX should be slapped repeatedly about the
 cranium and then educated about POP and IMAP, and how each should be
 used.


 So, Stan, how much will you charge to come do the honors for me?

 It will probably be in the neighborhood of 50 users with Inboxes over
 1GB, some over 5GB...


 Same here, we run a  mailbox_size_limit of 700MB and have several users
 regularly hitting the limit.
 Can't really slap them as they would reply  on google I have 7 GB mail
 space.
 JC

Create a folder for them called Google and tell them to move mail
from their INBOX over to the Google folder because it has lots more
space :-)


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-10 Thread Stan Hoeppner
Charles Marcus put forth on 6/10/2010 10:19 AM:
 On 2010-06-10 3:31 AM, Stan Hoeppner wrote:
 BTW, anyone who has a 44MB INBOX should be slapped repeatedly about the
 cranium and then educated about POP and IMAP, and how each should be used.
 
 So, Stan, how much will you charge to come do the honors for me?
 
 It will probably be in the neighborhood of 50 users with Inboxes over
 1GB, some over 5GB...

O-M-G!?  We may as well skip the punishment/re-education of these folks and
march them straight to the firing squad. ;)

You're talking just _Inbox_ of those sizes right?  No sub folders?  If so,
yes, definitely to the firing squad they go. :)

-- 
Stan


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-10 Thread Stan Hoeppner
Jakob Curdes put forth on 6/10/2010 10:54 AM:

 Same here, we run a  mailbox_size_limit of 700MB and have several users
 regularly hitting the limit.
 Can't really slap them as they would reply  on google I have 7 GB mail
 space.

I wonder how often Google does full disaster recovery off site
backup/mirroring of all those millions of _free_ 7GB mailboxen.  AFAIK, Google
makes no guarantees WRT mailbox contents.  They may have full multi site
redundancy, but I've yet to read a whitepaper describing it.

-- 
Stan


[Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-09 Thread Johannes Dröge

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



Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-09 Thread Charles Marcus
On 2010-06-09 3:48 PM, Johannes Dröge wrote:
 message:
 *sieve: info: started log at ...
 error: msgid=XXX: failed to store into mailbox 'INBOX': Not enough
 disk space.

postconf -n output?


Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-09 Thread Noel Butler
On Wed, 2010-06-09 at 21:48 +0200, Johannes Dröge wrote:

 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...
 


should be able to ? how much disk space is free?
this indicates what it says, there is not enough disk space 




 Thanks for any help,
 Johannes
 
 message:
 *sieve: info: started log at ...
 error: msgid=XXX: failed to store into mailbox 'INBOX': Not enough 
 disk space.
 *




Re: [Dovecot] failed to store into mailbox 'INBOX': Not enough disk space. with large mail

2010-06-09 Thread Noel Butler
On Thu, 2010-06-10 at 08:28 +1000, Noel Butler wrote:

 On Wed, 2010-06-09 at 21:48 +0200, Johannes Dröge wrote:
 
  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...
  
 
 
 should be able to ? how much disk space is free?
 this indicates what it says, there is not enough disk space 
 
 

I shouldn't do lists before I finish my first coffee of teh day :-

I missed your using system accounts so Charles may be on the right
track, you need to find the  size of your existing mailbox,  
search for mailbox_size_limit  if you have not altered this value in
main.cf use postconf -d to see its value, about 50MB I think.

postfix uses a rather small value as default size limit, you may not
have 6 MB free in that limit. alter it to 100MB or something like that.
You can also set it to  0  to disable the limit.

Cheers