Hello!
I receive mails from courier cron with
/usr/bin/maildrop: 60 Time(s)
I have searched maillogs and found such kind of errors:
Feb 24 02:58:37 ns courierlocal: id=0004A604.47C03DB9.000072AF,from=<
[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: sh: -c: line 0:
unexpected EOF while looking for matching `''
Feb 24 02:58:37 ns courierlocal: id=0004A604.47C03DB9.000072AF,from=<
[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: sh: -c: line 1: syntax
error: unexpected end of file
Feb 24 02:58:37 ns courierlocal: id=0004A604.47C03DB9.000072AF,from=<
[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: maildrop: error writing
to filter.
Feb 24 02:58:37 ns courierlocal: id=0004A604.47C03DB9.000072AF,from=<
[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: /usr/bin/maildrop:
Unable to filter message.
Feb 24 02:58:37 ns courierlocal: id=0004A604.47C03DB9.000072AF,from=<
[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,status: deferred
Feb 24 02:58:37 ns courierd: completed,id=0004A604.47C03DB9.000072AF
What could cause this error?
I use:
rpm -qa | grep courier
courier-maildrop-wrapper-0.54.2-1.4AS
courier-webadmin-0.54.2-1.4AS
courier-authlib-0.60.2-1.rh4AS
drweb-courier-4.33-rh4
courier-0.54.2-1.4AS
courier-mlm-0.54.2-1.4AS
courier-maildrop-0.54.2-1.4AS
courier-mysql-0.54.2-1.4AS
courier-webmail-0.54.2-1.4AS
courier-analog-0.15-1
courier-imapd-0.54.2-1.4AS
courier-pop3d-0.54.2-1.4AS
courier-authlib-mysql-0.60.2-1.rh4AS
on
uname -a
Linux ns.mstuca.ru 2.6.9-67.0.4.ELsmp #1 SMP Fri Jan 18 05:00:58 EST 2008
i686 i686 i386 GNU/Linux
/etc/courier > cat maildroprc
import SENDER
import RECIPIENT
import HOME
import USER
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/libexec/courier
MAILDIR="$HOME/Maildir"
INBOX="Maildir/"
DEFAULT="$INBOX"
SENT="$MAILDIR/.Sent"
TRASH="$MAILDIR/.Trash"
SPAM="$MAILDIR/.Spam"
HAM="$MAILDIR/.Ham"
TEST="$MAILDIR/.Test"
QUARANTINE="$MAILDIR/.Quarantine"
if ($SENDER ne "")
{
FROM=$SENDER
}
else
{
FROM="unknown"
}
CLEAN_FROM=escape($FROM);
#xfilter "reformail -A 'X-Maildrop-SENDER: $FROM' -A 'X-Maildrop-RECIPIENT:
$RECIPIENT'"
# create some needed directories
`test -d $MAILDIR`
if ( $RETURNCODE == 1 )
{
`maildirmake $MAILDIR`
}
`test -d $SPAM`
if ( $RETURNCODE == 1 )
{
`maildirmake -f Spam $MAILDIR`
`echo INBOX.Spam >> $MAILDIR/courierimapsubscribed`
}
`test -d $HAM`
if ( $RETURNCODE == 1 )
{
`maildirmake -f Ham $MAILDIR`
`echo INBOX.Ham >> $MAILDIR/courierimapsubscribed`
}
`test -d $TRASH`
if ( $RETURNCODE == 1 )
{
`maildirmake -f Trash $MAILDIR`
# `echo INBOX.Trash >> $MAILDIR/courierimapsubscribed`
}
`test -d $SENT`
if ( $RETURNCODE == 1 )
{
`maildirmake -f Sent $MAILDIR`
# `echo INBOX.Sent >> $MAILDIR/courierimapsubscribed`
}
`test -d $QUARANTINE`
if ( $RETURNCODE == 1 )
{
`maildirmake -f Quarantine $MAILDIR`
# `echo INBOX.Quarantine >> $DEFAULT/courierimapsubscribed`
}
# filter messages
###############################################################################
#
# Use ClamAV to scan for viruses.
#
###############################################################################
if ( $SIZE < 5242880 )
{
exception {
xfilter "/usr/bin/clamscan.sh"
}
}
if(/^X-Virus-Status:.*INFECTED/)
{
exception {
to "${QUARANTINE}"
}
}
###############################################################################
#
# Use SpamAssassin to filter SPAM
#
###############################################################################
if ( !/^Received: from .* \(.*\[194\.226\.40\.[0-9]{1,3}\]\)/ )
{
if ( $SIZE < 524288 )
{
exception {
xfilter "/usr/bin/spamc -u $RECIPIENT"
}
}
}
if ( /^To:.*undisclosed-recipients:/ )
{
exception {
to "${TRASH}"
}
}
if ( /^X-Spam-Flag: *YES/ )
{
`test -f $MAILDIR/courierpop3dsizelist && test ! -f
$MAILDIR/courierimapuiddb`
if ( $RETURNCODE == 0 )
{
SUBJECT=`/usr/bin/reformail -x Subject:`
xfilter "/usr/bin/reformail -A'Subject: *****SPAM***** ${SUBJECT}'"
}
else
{
exception {
to "${SPAM}"
}
}
}
--
Best Regards,
Vasiliy Kotikov
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users