Bug#256038: moreinfo?

2007-03-18 Thread Josip Rodin
On Thu, Mar 01, 2007 at 10:14:14AM +0100, Josip Rodin wrote:
   Oh, it just occured to me to RTFM :))
   http://www.postfix.org/postconf.5.html#mailbox_command says:
   
   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.
   
   So, this is not a bug in maildrop?
  
  Seems not, unless there is something better it can do if it fails to
  write its log file.
 
 Hmm, we could probably make it barf to stderr in that case if it doesn't
 already.

About that then... it does:

if (maildrop.logfile.Open(b, O_CREAT | O_WRONLY | O_APPEND,
0600)  0)
throw Unable to create log file.;

I don't know why you never saw the error message. Postfix threw it... away? :)

-- 
 2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#256038: moreinfo?

2007-03-01 Thread Josip Rodin
On Wed, Feb 28, 2007 at 11:38:18PM -0500, Joey Hess wrote:
  Oh, it just occured to me to RTFM :))
  http://www.postfix.org/postconf.5.html#mailbox_command says:
  
  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.
  
  So, this is not a bug in maildrop?
 
 Seems not, unless there is something better it can do if it fails to
 write its log file.

Hmm, we could probably make it barf to stderr in that case if it doesn't
already.

-- 
 2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#256038: moreinfo?

2007-02-28 Thread Josip Rodin
On Tue, Feb 27, 2007 at 07:57:24PM -0500, Joey Hess wrote:
 I just experienced this bug again today.
 
 I don't understand why this bug is tagged moreinfo.

Did you reproduce it with 1.5.x or with 2.x?

-- 
 2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#256038: moreinfo?

2007-02-28 Thread Joey Hess
Josip Rodin wrote:
 On Tue, Feb 27, 2007 at 07:57:24PM -0500, Joey Hess wrote:
  I just experienced this bug again today.
  
  I don't understand why this bug is tagged moreinfo.
 
 Did you reproduce it with 1.5.x or with 2.x?

0.53.2-3 as I said earlier in this bug report; also 0.53.3-5

(I've cloned the bug to courier-maildrop since that's the version I'm
using.)

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#256038: moreinfo?

2007-02-28 Thread Josip Rodin
On Wed, Feb 28, 2007 at 04:16:25AM -0500, Joey Hess wrote:
   I just experienced this bug again today.
   
   I don't understand why this bug is tagged moreinfo.
  
  Did you reproduce it with 1.5.x or with 2.x?
 
 0.53.2-3 as I said earlier in this bug report; also 0.53.3-5

Okay. Versions pose a bit of a problem here because there are two separate
trees, with the same code: maildrop/main.C from maildrop proper 2.0.3-1 is
revision 1.54; maildrop/main.C from courier 0.53.3 is revision 1.52.

I think I couldn't reproduce this with maildrop proper the last time around,
and then I marked it as moreinfo. I'll try again to be sure, but can you
try, too? Just generate a long file that is almost as large, and then log to
it with a maildrop using a temporary mailfilter file.

-- 
 2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#256038: moreinfo?

2007-02-28 Thread Joey Hess
Josip Rodin wrote:
 I think I couldn't reproduce this with maildrop proper the last time around,
 and then I marked it as moreinfo. I'll try again to be sure, but can you
 try, too? Just generate a long file that is almost as large, and then log to
 it with a maildrop using a temporary mailfilter file.

[EMAIL PROTECTED]:~head -3 .mailfilter
#!perl # not really, but close enough for vim
VERBOSE=1
logfile $HOME/.maildrop-log
[EMAIL PROTECTED]:~ls -l .maildrop-log 
-rw-r--r-- 1 joey joey 104857600 Feb 28 14:08 .maildrop-log
[EMAIL PROTECTED]:~maildrop
fofofo
[EMAIL PROTECTED]:~ls -l .maildrop-log
-rw-r--r-- 1 joey joey 104857725 Feb 28 14:11 .maildrop-log

So it has logged, this is used the maildrop package. Now I switch to
courier-maildrop:

[EMAIL PROTECTED]:~head -2 .mailfilter  
[EMAIL PROTECTED]:~dd if=/dev/zero of=.maildrop-log bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.733954 seconds, 143 MB/s
[EMAIL PROTECTED]:~ls -l .maildrop-log 
-rw-r--r-- 1 joey joey 104857600 Feb 28 14:15 .maildrop-log
[EMAIL PROTECTED]:~maildrop
fofofo
[EMAIL PROTECTED]:~ls -l .maildrop-log
-rw-r--r-- 1 joey joey 104857725 Feb 28 14:15 .maildrop-log

Ok, that's unexpected. If courier-maildrop doesn't choke on long log files
on its own, it must have to do with how it's being run, which on my mail
server is from postfix.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#256038: moreinfo?

2007-02-28 Thread Josip Rodin
On Wed, Feb 28, 2007 at 02:19:43PM -0500, Joey Hess wrote:
 Ok, that's unexpected. If courier-maildrop doesn't choke on long log files
 on its own, it must have to do with how it's being run, which on my mail
 server is from postfix.

Er, above you were using 1048576xx; but in the original bug report, it says
that 51200 is the magic mark. :)

-- 
 2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#256038: moreinfo?

2007-02-28 Thread Joey Hess
Josip Rodin wrote:
 On Wed, Feb 28, 2007 at 02:19:43PM -0500, Joey Hess wrote:
  Ok, that's unexpected. If courier-maildrop doesn't choke on long log files
  on its own, it must have to do with how it's being run, which on my mail
  server is from postfix.
 
 Er, above you were using 1048576xx; but in the original bug report, it says
 that 51200 is the magic mark. :)

You added a zero, it says 5120. 100 mb should be more than enough.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#256038: moreinfo?

2007-02-28 Thread Josip Rodin
On Wed, Feb 28, 2007 at 02:35:35PM -0500, Joey Hess wrote:
   Ok, that's unexpected. If courier-maildrop doesn't choke on long log files
   on its own, it must have to do with how it's being run, which on my mail
   server is from postfix.
  
  Er, above you were using 1048576xx; but in the original bug report, it says
  that 51200 is the magic mark. :)
 
 You added a zero, it says 5120. 100 mb should be more than enough.

Okay. Maybe Postfix is imposing ulimit -f on it? You use it via
mailbox_command? Can you log some ulimit output into a file and see if it's
there?

-- 
 2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#256038: moreinfo?

2007-02-28 Thread Josip Rodin
On Wed, Feb 28, 2007 at 09:02:47PM +0100, Josip Rodin wrote:
Ok, that's unexpected. If courier-maildrop doesn't choke on long log 
files
on its own, it must have to do with how it's being run, which on my mail
server is from postfix.
   
   Er, above you were using 1048576xx; but in the original bug report, it 
   says
   that 51200 is the magic mark. :)
  
  You added a zero, it says 5120. 100 mb should be more than enough.
 
 Okay. Maybe Postfix is imposing ulimit -f on it? You use it via
 mailbox_command? Can you log some ulimit output into a file and see if it's
 there?

Oh, it just occured to me to RTFM :))
http://www.postfix.org/postconf.5.html#mailbox_command says:

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.

So, this is not a bug in maildrop?

-- 
 2. That which causes joy or happiness.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#256038: moreinfo?

2007-02-28 Thread Joey Hess
Josip Rodin wrote:
 Oh, it just occured to me to RTFM :))
 http://www.postfix.org/postconf.5.html#mailbox_command says:
 
 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.
 
 So, this is not a bug in maildrop?

Seems not, unless there is something better it can do if it fails to
write its log file.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#256038: moreinfo?

2007-02-27 Thread Joey Hess
I just experienced this bug again today.

I don't understand why this bug is tagged moreinfo.

-- 
see shy jo


signature.asc
Description: Digital signature