[Postfixbuch-users] altermime | mime_alter.c:866:ERROR

Andreas Rau linux at stoeckel-grimmler.de
Mi Mär 28 13:35:55 CEST 2007


Hallo zusammen,

im Zuge der Anforderungen bei Geschaeftsbriefen via E-Mail, haben auch 
wir auf alterMIME 0.3.7 zurueckgegriffen. Dies funktioniert soweit ganz 
gut bis auf wenige Ausnahmen:

Es kann vereinzelt vorkommen, dass bei der Beantwortung von Mails 
alterMIME die Mails nicht "bearbeitet" und mit einer 
Mailer-Daemon-Mitteilung abbricht. Im Verbose-Modus von alterMIME 
erhalten wir dann Meldungen wie untenstehend. Als Mailclients haben M$ 
OE bzw. Thunderbird im Einsatz. Unabhaengig vom Mailclient ist der 
Fehler reproduzierbar. Die Analyse des Logs brachte uns auch nicht weiter.

Das einzige was uns bis jetzt aufgefallen ist, dass es sich immer Mails 
handelte, die urspruenglich von einem Lotus Notes - Server gesendet 
wurden (X-Mailer Tag). Wir moechten aber dennoch nicht ausschließen, 
dass die Ursache auch andere Gruende haben könnte.

Ergaenzende Informationen über unsere Konfiguration (master.cf, ) findet 
Ihr ebenfalls weiter unten.

Ueber Hinweise zur Findung oder Nennung der Ursache waeren wir dankbar.

Gruesse
Andreas Rau




-----------------------------------------------------------------
alterMIME - Fehlermeldung:

This is the Postfix program at host mail.server.local.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<user _at_ urspruenglicher_sender.de>: service unavailable. Command output:
   mime_alter.c:866:ERROR - Cannot stat '' (No such file or directory)
   mime_alter.c:866:ERROR - Cannot stat '' (No such file or directory)
   Attempting to add disclaimer mime_alter.c:1537:AM_add_disclaimer:DEBUG:
   Reading main headers mime_alter.c:758:AM_read_headers:DEBUG: Starting to
   read headers MIME_headers.c:3011:MIMEH_parse_headers:DEBUG: Start
   [F=0xbffefcf0, hinfo=0xbffebdd0]
   MIME_headers.c:3017:MIMEH_parse_headers:DEBUG: Getting headers
   MIME_headers.c:1100:MIMEH_read_headers:DEBUG: File position = 0 [0x0]
   MIME_headers.c:1120:MIMEH_read_headers: Data
   In=[sz=46:tb=0:mem=(nil)]'Return-Path: <user _at _ foo.de> '
   MIME_headers.c:1126:MIMEH_read_headers:DEBUG: saving to file...
   MIME_headers.c:1161:MIMEH_read_headers:DEBUG: realloc'ing dataspace
   MIME_headers.c:1173:MIMEH_read_headers:DEBUG: Initial appending of 
head to
   dataspace headerline = NULL  realloc block = 0x805e2f8 linestart =
   0xbffeb950 linesize = 46 MIME_headers.c:1120:MIMEH_read_headers: Data
   In=[sz=49:tb=0:mem=0x805e2f8]'Received: from WINXP20 (unknown
   [195.70.170.44]) ' MIME_headers.c:1126:MIMEH_read_headers:DEBUG: 
saving to
   file... MIME_headers.c:1161:MIMEH_read_headers:DEBUG: realloc'ing 
dataspace
   MIME_headers.c:1181:MIMEH_read_headers:DEBUG: Appending of new data to
   existing header  existing-headerline = 0x805e2f8  new realloc block =
   0x805e2f8 linestart = 0xbffeb950 linesize = 49
   MIME_headers.c:1220:MIMEH_read_headers:DEBUG: Memcopying line, source =
   0xbffeb950, dest = 0x805e326, size = 49
   MIME_headers.c:1120:MIMEH_read_headers: Data 
In=[sz=54:tb=0:mem=0x805e2f8]'
   by mail.server.local (Postfix) with SMTP id E436FF327E4 '
   MIME_headers.c:1126:MIMEH_read_headers:DEBUG: saving to file...
   MIME_headers.c:1161:MIMEH_read_headers:DEBUG: realloc'ing dataspace
   MIME_headers.c:1181:MIMEH_read_headers:DEBUG: Appending of new data to
   existing header  existing-headerline = 0x805e2f8  new realloc block =
   0x805e2f8 linestart = 0xbffeb950 linesize = 54
   MIME_headers.c:1205:MIMEH_read_headers:DEBUG: unwrapping headers
   headers=0x805e2f8, p = 0x805e356
   MIME_headers.c:1208:MIMEH_read_headers:DEBUG: Removing trailing space
   p=[0x805e356] MIME_headers.c:1220:MIMEH_read_headers:DEBUG: Memcopying
   line, source = 0xbffeb950, dest = 0x805e356, size = 54
   MIME_headers.c:1120:MIMEH_read_headers: Data 
In=[sz=69:tb=0:mem=0x805e2f8]'
   for <user _at_ urspruenglicher_sender.de>; Wed, 28 Mar 2007 08:35:00 
+0200 (CEST) '
   MIME_headers.c:1126:MIMEH_read_headers:DEBUG: saving to file...
   MIME_headers.c:1161:MIMEH_read_headers:DEBUG: realloc'ing dataspace
   MIME_headers.c:1181:MIMEH_read_headers:DEBUG: Appending of new data to
   existing header  existing-headerline = 0x805e2f8  new realloc block =
   0x805e2f8 linestart = 0xbffeb950 linesize = 69
   MIME_headers.c:1205:MIMEH_read_headers:DEBUG: unwrapping headers
   headers=0x805e2f8, p = 0x805e38b
   MIME_headers.c:1208:MIMEH_read_headers:DEBUG: Removing trailing space
   p=[0x805e38b] MIME_headers.c:1220:MIMEH_read_headers:DEBUG: Memcopying
   line, source = 0xbffeb950, dest = 0x805e38b, size = 69
   MIME_headers.c:1120:MIMEH_read_headers: Data
   In=[sz=53:tb=0:mem=0x805e2f8]'Message-ID:
   <000d01c77103$40799960$2caa46c3 at WINXP20> '
   MIME_headers.c:1126:MIMEH_read_headers:DEBUG: saving to file...
   MIME_headers.c:1161:MIMEH_read_headers:DEBUG: realloc'ing dataspace
   MIME_headers.c:1181:MIMEH_read_headers:DEBUG: Appending of new data to
   existing header  existing-headerline = 0x805e2f8  new realloc block =
   0x805e2f8 linestart = 0xbffeb950 linesize = 53
   MIME_headers.c:1220:MIMEH_read_headers:DEBUG: Memcopying line, source =
   0xbffeb950, dest = 0x805e3d0, size = 53
   MIME_headers.c:1120:MIMEH_read_headers: Data
   In=[sz=74:tb=0:mem=0x805e2f8]'From: =?iso-8859-1?Q?Paula_W=F6rle?=
   <user _at _ foo.de> '
   MIME_headers.c:1126:MIMEH_read_headers:DEBUG: saving to file...
   MIME_headers.c:1161:MIMEH_read_headers:DEBUG: realloc'ing dataspace
   MIME_headers.c:1181:MIMEH_read_headers:DEBUG: Appending of new data to
   existing header  existing-headerline = 0x805e2f8  new realloc block =
   0x805e2f8 linestart = 0xbffeb950 linesize = 74
   MIME_headers.c:1220:MIMEH_read_headers:DEBUG: Memcopying line, source


-----------------------------------------------------------------
master.cf (relevante Sektionen f. alterMIME):

195.70.170.3:smtp   inet  n       -       y       -       -        smtpd
         -o content_filter=disclaimer:

disclaimer   unix -        n       n       -       -     pipe
  flags=Rq  user=filter argv=/etc/postfix/filter/add_disclaimer.sh -f 
${sender} -- ${recipient}


-----------------------------------------------------------------
add_disclaimer.sh

ALTERMIME=/usr/local/bin/altermime
ALTERMIME_DIR=/var/spool/altermime
SENDMAIL=/usr/sbin/sendmail
DISCLAIMER=/etc/postfix/disclaimer/company.txt
DISCLAIMER_HTML=/etc/postfix/disclaimer/company.html
LOGFILE=/var/log/altermime
TEMPFAIL=75
UNAVAILABLE=69
cd $ALTERMIME_DIR || { echo $ALTERMIME_DIR does not exist; exit $TEMPFAIL; }
trap "rm -f in.$$" 0 1 2 3 15
cat >in.$$ || { echo Cannot write to $ALTERMIME_DIR; exit $TEMPFAIL; }
cat in.$$ >> /var/log/altermime
$ALTERMIME  --input=in.$$ \
            --debug \
            --disclaimer=$DISCLAIMER \
            --disclaimer-html=$DISCLAIMER_HTML || \
            { echo Message content rejected; exit $UNAVAILABLE; }

$SENDMAIL "$@" <in.$$
exit $?



*******************************************************************************

Stoeckel & Grimmler KG, Gartenstr. 25, 95213 MUENCHBERG, GERMANY
Tel./Phone: +49 9251 89-0   |   Fax: +49 9251 89-110

Amtsgericht Hof, HRA 564



Mehr Informationen über die Mailingliste Postfixbuch-users