[prev in list] [next in list] [prev in thread] [next in thread] 

List:       courier-users
Subject:    [courier-users] SA makes Cron suddenly stop mailing
From:       Alessandro Vesely <vesely () tana ! it>
Date:       2020-03-31 10:55:36
Message-ID: ef371b2b-49f8-42a4-e660-ac4463cfbbc7 () tana ! it
[Download RAW message or body]

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

[Attachment #2 (multipart/signed)]
This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

[Attachment #4 (multipart/mixed)]


Hi all,

some time ago I had the bad idea to enable a SpamAssassin daily job.  It
managed to disrupt Cron's ability to send mail.  For debugging, I've replaced
sendmail with the script pasted below.  That logged "local error: 67" and left
the failed message on disk.  Trying to send it manually I got:

534 Message header size exceeds policy limit.

That's quite misleading, as Cron's header was the same as always.  The file
contained an inordinate amount of SA logging, and with some trial and error I got:

$ head -818 /tmp/sendmail.JGBUs4 |tail -1 |wc
      1     782    8042

Courier uses a buffer of BUFSIZ, which on my system is 8192 (well above the
1000 octet size prescribed by rfc5321).  So that's not a valid message.

The fix obviously consists in disabling that daily job.  There seems to be
something more to do.  However, for the time being, I just keep the wrapper in
place.


Best
Ale
-- 

-----8<----- script start -----8<-----
#! /bin/sh
#
# sendmail wrapper (with log)
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645286

logger -t "sendmail" -p mail.info "local message: $*, started"
f=$(mktemp -p /tmp sendmail.XXXXXX)
cat > "$f"
/usr/local/bin/sendmail.courier "$@" <"$f"
code=$?
if [ $code = "0" ]; then
        rm -f "$f"
else
        logger -t "sendmail" -p mail.err "local error: $code"
fi
----->8----- script end ----->8-----

























["signature.asc" (application/pgp-signature)]



_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic