Hello,

        I have been running cyrus+qmail for quite some time now and recently, users 
have been complaining about large mails not being delivered.  I initially thought this 
was a problem with cyrus' deliver but it seems not to be the case.  When large mails 
(>175k) are sent in the normal way (qmail-inject. .qmail-queue. .deliver), I get the 
errors reported below about mmap() complaining.  However, when piping a 3MB file 
directly to '|deliver' from the command line, nothing complains.

Output from imapd.log:
 IOERROR: mapping new message file for user.csbell: Not enough space
Output from syslog:
942122791.318715 delivery 53726: deferral: 
421_4.3.0_deliver:_failed_to_mmap_new_message_file_/

        Also, it might be worthy to note that I'm using a modified version of a script 
I found on the list for my qmail-cyrus-wrapper.  Though it might be in fault, I cannot 
spot any logical deficiencies in it that could cause mmap() (and ultimately cyrus) not 
to deliver the message.  Anyhow, here it is:

# Modified version to use .qmail-dash and deliver to local mbox's
#!/bin/sh
QMAIL=`echo $LOCAL | tr "[:upper:] "[:lower:]"`
QMAIL_USER=`echo $QMAIL | cut -f1 -d -`

if [ "$EXT" !=  "" ]; then
    QMAIL_MBOX=`echo $EXT | cut -f2- -d -`
    QMAIL_MBOX="-m $QMAIL_MBOX"
fi
/usr/cyrus/bin/deliver -q -a $QMAIL_USER -e $QMAIL_MBOX $QMAIL_USER

# ripped codes from posted script
case $? in
  64|65|66|67|68|76|77|78)
      exit 100
      ;;
  0)
      exit 0
      ;;
  *)
      exit 111
      ;;
esac
                              
This script is called as |/var/qmail/bin/qmail-cyrus-wrapper in cyrus' .qmail-default.

Any input appreciated,

Cheers.

-- 
Christian Bell     | InfiniT: Le portail des Qu�b�cois - www.infinit.net/ |
[EMAIL PROTECTED]  | Systems Administrator           [[EMAIL PROTECTED]] |
--               --|--                                                    |

-do the math yourself, p=vi.

Reply via email to