Re: [exim] Exim Input Spool Header Format?

Inizio della pagina
Delete this message
Reply to this message
Autore: Mark Murawski
Data:  
To: exim-users
Oggetto: Re: [exim] Exim Input Spool Header Format?
Thanks everyone... I went over the spool file spec again and found my
issue. It has to do with character lengths.. when I made the
modification the length was off.




On 3/30/22 09:31, Jethro Binks via Exim-users wrote:
> Actually, to follow-up on my own, my "damage" was to -D files rather than -H files ...
>
> Jethro.
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . .
>
> Jethro R Binks, Network Manager,
>
> Information Services Directorate, University Of Strathclyde, Glasgow, UK
>
>
> The University of Strathclyde is a charitable body, registered in Scotland, number SC015263.
>
> ________________________________
> From: Jethro Binks <jethro.binks@???>
> Sent: 30 March 2022 14:30
> To: exim-users@??? <exim-users@???>
> Subject: Re: [exim] Exim Input Spool Header Format?
>
> This may not help, but ...
>
> A/a vague memory from a long time ago, but I used to have issues with spool files not ending with a newline, and I think the error then was the same "Format error in spool file". It was actually caused by MailScanner at the time I think. As a quick fix, I wrote (or maybe stole) something to go over the queue and add a newline if there wasn't one.
>
> Check yours have the newline with something like "cat -e /path/1nYsDq-0007Ah-Bg-H" and check the last line ends with "$".
>
> FWIW, my script makes these remarks:
>
> Is this Exim bug relevant:
>
>    https://bugs.exim.org/show_bug.cgi?id=1974

>
> See also:
>
>    https://github.com/Exim/exim/blob/master/src/util/chunking_fixqueue_finalnewlines.pl

>
> J.
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . .
>
> Jethro R Binks, Network Manager,
>
> Information Services Directorate, University Of Strathclyde, Glasgow, UK
>
>
> The University of Strathclyde is a charitable body, registered in Scotland, number SC015263.
>
> ________________________________
> From: Exim-users <exim-users-bounces+jethro.binks=strath.ac.uk@???> on behalf of Mark Murawski via Exim-users <exim-users@???>
> Sent: 29 March 2022 18:05
> To: exim-users@??? <exim-users@???>
> Subject: [exim] Exim Input Spool Header Format?
>
> Hi,
>
> I'm having trouble with a spool file I need to fix. it looks like this,
> in-between ---
>
> ---
> 1nYsDq-0007Ah-Bg-H
> pbx 1000 1000
> <foo@bar>
> 1648484882 0
> -received_time_usec .362252
> -ident foo
> -received_protocol local
> -body_linecount 5969
> -max_received_linelength 103
> -auth_id foo
> -auth_sender foo@bar
> -allow_unqualified_recipient
> -allow_unqualified_sender
> -local
> XX
> 1
> greggw@???
>
> 204P Received: from abc by bar with local (Exim 4.92)
>           (envelope-from <foo@bar>)
>           id 1nYsDq-0007Ah-Bg
>           for user@???; Mon, 28 Mar 2022 12:28:02 -0400
> 038  Date: Mon, 28 Mar 2022 12:28:02 -0400
> 043F From: "System" <notify@bar>
> 046T To: "User" <user@???>
> 045  Subject: New message
> 061I Message-ID: <A-9-1596072492-247-23131notify@bar>
> 018  MIME-Version: 1.0
> 076  Content-Type: multipart/mixed;
> boundary="----voicemail_9247231312086389261"
> ---

>
>
> 2022-03-29 13:03:25 1nYsDq-0007Ah-Bg Format error in spool file
> 1nYsDq-0007Ah-Bg-H: size=926
>
>
> What's the issue with the file?
> I've been going through
> https://www.exim.org/exim-html-current/doc/html/spec_html/ch-format_of_spool_files.html,
> but I'm still having a hard time finding the issue since the error is so
> vague... I have no idea what's missing or invalid.
>
> Thanks!
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/