Re: [Dovecot] mbox file too large error with deliver

2008-11-24 Thread Gokdeniz Karadag
 Timo Sirainen [EMAIL PROTECTED] wrote:
  Setting mailbox_size_limit to 0 made deliveries possible. a limit of  
  20 (2GB) also did not show the errors. Thank you ! :)
 
  My issue is fixed but deliver might have a bug, so I will explain  
  things, sorry for not being clear previously.
 
  Old mail server was 32 bit(an old version of debian) and used  
  procmail for deliveries, that setup worked with the given limit of  
  5GB and mailbox sizes above 1GB.
 
  After migrating to an 64 bit server (debian etch) and dovecot's  
  deliver, the stated delivery errors appeared for mailboxes above 1  
  GB. As I stated at the beginning of my reply, setting  
  mailbox_size_limit below 2GB made deliveries possible. I tried with  
  edge values, mailbox_size_limit=2147483648 (exactly 2GB) would give  
  the following error in postfix logs:
 
  fatal: main.cf configuration error: mailbox_size_limit is smaller  
  than message_size_limit
 
  A limit of 2147483648 - 1 worked fine.
 
  There are two distinct bugs probably, one in postfix and one in  
  dovecot.
 
 Postfix clearly is using signed 32bit integer here, which could be  
 considered a bug. But why do you think there's a bug in Dovecot? Note  
 that Dovecot never even sees this value. It's the kernel that enforces  
 it, Dovecot simply reacts to a write() failure.

The logs stating the File too large errors belong to dovecot's deliver
process. While I was searching for a solution, I read that deliver honors
mailbox_size_limit setting of postfix, I'm not sure if that is correct or not.

Note that the destination mailboxes are smaller than 2GB here, but still gets
File too large error. The machine is 64-bit, so no fs related kernel limits
on file size.

I have not dived into postfix and/or dovecot internals, but my guess is ,
dovecot gets the mailbox size limit and behaves accordingly. If that is the
case, the problem can be fixed in dovecot's deliver code.

If postfix sets file size limit with ulimit before execing deliver, OR uses a
similar process which is out of deliver's control, then there is nothing
concerning dovecot. If someone can clarify the issue I would be happy.

-- 
Gokdeniz Karadag



[Dovecot] mbox file too large error with deliver

2008-11-23 Thread Gokdeniz Karadag

Hi,

I am using dovecot on debian, with version 1.0.rc15-2etch4. Along with postfix.

The deliver binary cannot deliver to large mailboxes. I cannot state an exact 
size limit but mbox mailboxes above 1GB seem to be affected.


I have these in in postfix/main.cf
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 512000

The user.log file shows these (I believe if no logging is specified, deliver 
binary tries to log with logger and they go to user ?)


user.log.3.gz:Nov  8 21:23:01 guvercin deliver(dummy): write() failed with mbox 
file /var/mail/dummy: File too large
user.log.3.gz:Nov  8 21:23:01 guvercin deliver(dummy): 
msgid=[EMAIL PROTECTED]: save failed to INBOX
user.log.3.gz:Nov  8 21:23:01 guvercin deliver(dummy): sieve runtime error: 
Keep: Generic Error


The /var/mail/dummy file exists and is 1.9GB, so my filesystem certainly 
supports files 1G


What may be the problem ?


dovecot -n output follows :


log_timestamp: %Y-%m-%d %H:%M:%S
syslog_facility: local1
protocols: imaps pop3s
ssl_cert_file(default): /etc/ssl/certs/imap-cert.pem
ssl_cert_file(imap): /etc/ssl/certs/imap-cert.pem
ssl_cert_file(pop3): /etc/ssl/certs/pop-cert.pem
ssl_key_file(default): /etc/ssl/private/imap-key.pem
ssl_key_file(imap): /etc/ssl/private/imap-key.pem
ssl_key_file(pop3): /etc/ssl/private/pop-key.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: 
mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/indexes/%u
mbox_read_locks: fcntl dotlock
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): outlook-idle tb-extra-mailbox-sep
imap_client_workarounds(imap): outlook-idle tb-extra-mailbox-sep
imap_client_workarounds(pop3): outlook-idle
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xv%08Xu
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:


Re: [Dovecot] dovecot Digest, Vol 67, Issue 60

2008-11-23 Thread Gokdeniz Karadag



[EMAIL PROTECTED] demis ki::

Send dovecot mailing list submissions to
dovecot@dovecot.org

To subscribe or unsubscribe via the World Wide Web, visit
http://dovecot.org/cgi-bin/mailman/listinfo/dovecot
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of dovecot digest...


Today's Topics:

   1. mbox file too large error with deliver (Gokdeniz Karadag)
   2. Re: mbox file too large error with deliver (Charles Marcus)
   3. Re: mbox file too large error with deliver (Seth Mattinen)
   4. Re: core in lazy_expunge plugin (Timo Sirainen)
   5. Re: mbox file too large error with deliver (Timo Sirainen)
   6. v1.1.7 released (Timo Sirainen)
   7. Re: v1.1.7 released (Dave McGuire)
   8. Re: v1.1.7 released (Laurent Blume)
   9. v1.2.alpha4 released (Timo Sirainen)
  10. Re: v1.1.7 released (Timo Sirainen)
  11. Re: v1.1.7 released (Timo Sirainen)


--

Message: 1
Date: Sun, 23 Nov 2008 23:55:15 +0200
From: Gokdeniz Karadag [EMAIL PROTECTED]
Subject: [Dovecot] mbox file too large error with deliver
To: dovecot@dovecot.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,

I am using dovecot on debian, with version 1.0.rc15-2etch4. Along with postfix.

The deliver binary cannot deliver to large mailboxes. I cannot state an exact 
size limit but mbox mailboxes above 1GB seem to be affected.


I have these in in postfix/main.cf
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 512000

The user.log file shows these (I believe if no logging is specified, deliver 
binary tries to log with logger and they go to user ?)


user.log.3.gz:Nov  8 21:23:01 guvercin deliver(dummy): write() failed with mbox 
file /var/mail/dummy: File too large
user.log.3.gz:Nov  8 21:23:01 guvercin deliver(dummy): 
msgid=[EMAIL PROTECTED]: save failed to INBOX
user.log.3.gz:Nov  8 21:23:01 guvercin deliver(dummy): sieve runtime error: 
Keep: Generic Error


The /var/mail/dummy file exists and is 1.9GB, so my filesystem certainly 
supports files 1G


What may be the problem ?


dovecot -n output follows :


log_timestamp: %Y-%m-%d %H:%M:%S
syslog_facility: local1
protocols: imaps pop3s
ssl_cert_file(default): /etc/ssl/certs/imap-cert.pem
ssl_cert_file(imap): /etc/ssl/certs/imap-cert.pem
ssl_cert_file(pop3): /etc/ssl/certs/pop-cert.pem
ssl_key_file(default): /etc/ssl/private/imap-key.pem
ssl_key_file(imap): /etc/ssl/private/imap-key.pem
ssl_key_file(pop3): /etc/ssl/private/pop-key.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: 
mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/spool/dovecot/indexes/%u
mbox_read_locks: fcntl dotlock
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): outlook-idle tb-extra-mailbox-sep
imap_client_workarounds(imap): outlook-idle tb-extra-mailbox-sep
imap_client_workarounds(pop3): outlook-idle
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xv%08Xu
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
   mechanisms: plain login
   passdb:
 driver: pam
   userdb:
 driver: passwd
   socket:
 type: listen
 client:
   path: /var/spool/postfix/private/auth
   mode: 432
   user: postfix
   group: postfix
 master:


--

Message: 2
Date: Sun, 23 Nov 2008 16:59:08 -0500
From: Charles Marcus [EMAIL PROTECTED]
Subject: Re: [Dovecot] mbox file too large error with deliver
To: Dovecot Mailing List dovecot@dovecot.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=UTF-8

On 11/23/2008, Gokdeniz Karadag ([EMAIL PROTECTED]) wrote:

dovecot -n output follows :


log_timestamp: %Y-%m-%d %H:%M:%S 


Either this is an old version or you snipped the version from the top of
the dovecot -n output...

What version of dovecot?

Also, OS/version info may help too...





Message: 5
Date: Mon, 24 Nov 2008 00:12:56 +0200
From: Timo Sirainen [EMAIL PROTECTED]
Subject: Re: [Dovecot] mbox file too large error with deliver
To: Dovecot Mailing List dovecot@dovecot.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii

On Sun, 2008