On 21/Oct/10 08:04, Stefan Hornburg (Racke) wrote:
there is open bug in the Debian BTS about maildrop crashing when the log file
reaches
a certain size:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412767
This is an old bug, but it seems to be still happen with Courier 0.65.0-1.
Any idea why this does happen?
The only way I could reproduce it is with a device-full error. In
that case I get the following from the script attached.
1578-north:mdt$ . ../../../mdt.sh
-rw-r--r-- 1 ale staff 212595 2010-10-22 18:11 logtest
maildrop: Changing to /home/ale/tmp/mdt/foo/mdt
Message start at 0 bytes, envelope sender=ale
maildrop: Attempting .mailfilter
maildrop exit code: 0
-rw-r--r-- 1 ale staff 212740 2010-10-22 18:12 logtest
1578-north:mdt$ . ../../../mdt.sh
-rw-r--r-- 1 ale staff 212740 2010-10-22 18:12 logtest
maildrop: Changing to /home/ale/tmp/mdt/foo/mdt
Message start at 0 bytes, envelope sender=ale
maildrop: Attempting .mailfilter
maildrop: ./Maildir: No space left on device
maildrop exit code: 75
-rw-r--r-- 1 ale staff 212740 2010-10-22 18:12 logtest
IMHO, what happens is that Postfix doesn't know whether it was the
logfile or the message that couldn't be written, hence it tries again,
and again, and...
HTH
#! /bin/sh
# run this from a temporary directory
# e.g. a virtual block device made e.g. as
# dd if=/dev/zero of=loopfile bs=512 count=512
# losetup /dev/loop0 loopfile
# mkfs /dev/loop0
# mkdir foo
# mount /dev/loop0 foo
test -d Maildir || maildirmake Maildir
if [ ! -f mailfilter ]; then
printf 'logfile logtest\n' > .mailfilter
chmod go= .mailfilter
fi
if [ ! -f logtest ]; then
touch logtest
dd if=/dev/zero of=logtest bs=1 count=51200000
chmod go= logtest
fi
ls -l logtest
printf 'From: [email protected]\nsubject: test\n\nHi\n' > msg
HOME=$(pwd) maildrop -V 3 -d "$(whoami)" test < msg
printf 'maildrop exit code: %s\n' "$?"
ls -l logtest
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users