Johan Björk writes: >>> Yes, that's right folks. Courier-imap segfaults if the error log (-stderr) exceeds >>> the maximum file size limit. >>> >>> On systems with a proper log rotation setup this problem won't occur but that >>> doesn't matter, I reccon courier-imap should be able to handle a simple thing like >this. >>> >> I don't know what you're doing, but the default Courier-IMAP install sends >> all logs to syslog, and doesn't write anything to any log file. >> >> If you modify the default configuration, the ball is in your court to make >> sure that everything is working correctly. > > > My courier-imap is being executed like this: > > /usr/lib/courier-imap/libexec/couriertcpd -address=0 >-stderr=/var/log/couriertcpd_imap_error -maxprocs=500 -maxperip=500 >-pid=/var/run/imapd.pid -nodnslookup -noidentlookup 143 >/usr/lib/courier-imap/sbin/imaplogin >/usr/lib/courier-imap/libexec/authlib/authvmailmgr >/usr/lib/courier-imap/libexec/authlib/authpam /usr/lib/courier-imap/bin/imapd Maildir > > To me it looks like I'm using pretty default configuration, and I'm using
Well, it's not. The default /usr/lib/courier-imap/libexec/imapd.rc runs logger: /usr/bin/env - /bin/sh -c " . /usr/lib/courier-imap/etc/imapd ; \ . /usr/lib/courier-imap/etc/imapd-ssl ; \ IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \ TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \ `sed -n '/^#/d;/=/p' </usr/lib/courier-imap/etc/imapd | \ sed 's/=.*//;s/^/export /;s/$/;/'` `sed -n '/^#/d;/=/p' </usr/lib/courier-imap/etc/imapd-ssl | \ sed 's/=.*//;s/^/export /;s/$/;/'` \ /usr/lib/courier-imap/libexec/couriertcpd -address=$ADDRESS \ -stderrlogger=/usr/lib/courier-imap/libexec/logger \ -stderrloggername=imapd \ -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \ -pid=$PIDFILE $TCPDOPTS \ $PORT /usr/lib/courier-imap/sbin/imaplogin $LIBAUTHMODULES \ /usr/lib/courier-imap/bin/imapd Maildir" > the by courier-imap supported option "-stderr", which makes my couriertcpd crash if >the file gets too big. Maybe you should remove the -stderr option then if it's not >safe. It's perfectly safe when it's used right. Just because this option exists does not mean that it can be used in every instance. -- Sam _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users