Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Header size

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


cgregoir99 at yahoo

Sep 29, 2009, 2:55 AM

Post #1 of 8 (913 views)
Permalink
Header size

Hello,

Is there a way, at ACL DATA time, to check for the header size ? I have a buggy MDA which crashes when handling messages such as those from mailing lists where recipients are not hidden thus with many header lines.

Thanks in advance.

Christian




--
## List details at http://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/


Lena at lena

Sep 29, 2009, 4:22 AM

Post #2 of 8 (862 views)
Permalink
Re: Header size [In reply to]

> From: Christian Gregoire

> Is there a way, at ACL DATA time, to check for the header size ? I have
> a buggy MDA which crashes when handling messages such as those from
> mailing lists where recipients are not hidden thus with many header lines.

You can check, but what'd you do?

condition = ${if >{${strlen:$message_headers_raw}}{10000}}

--
## List details at http://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/


awd-exim at awdcomp

Sep 29, 2009, 5:57 AM

Post #3 of 8 (863 views)
Permalink
Re: Header size [In reply to]

Lena [at] lena wrote:
>> From: Christian Gregoire
>
>> Is there a way, at ACL DATA time, to check for the header size ? I have
>> a buggy MDA which crashes when handling messages such as those from
>> mailing lists where recipients are not hidden thus with many header lines.
>
> You can check, but what'd you do?
>

You could tag it, then pipe it into some script that does whats
required, then delivers the email to the mailbox.


> condition = ${if >{${strlen:$message_headers_raw}}{10000}}
>


--
## List details at http://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/


cgregoir99 at yahoo

Sep 29, 2009, 7:32 AM

Post #4 of 8 (863 views)
Permalink
Re: Header size [In reply to]

Thanks ! I use a printed version of the v4.50 documentation, where this variable didn't exist. I can now issue a 5xx error during the SMTP session when it reaches 20kbytes, rather than sending a mailerdaemon with 'local delivery failed' afterwards.

The full story is that my MDA, a slighly modified version of the Atmail MDA, crashes when accessing the header via the Maill::Message Perl object :

Sep 29 15:24:30 webmail-5 exim[32417]: 1Mscgu-0008Qe-Gd ** <HIDDEN_ADDRESS> R=routeur T=transport: Child process of relais_externe_test transport (running command "/path/to/mymda.pl $sender_address $local_part@$domain") was terminated by signal 9 (Killed)



----- Original Message ----
From: "Lena [at] lena" <Lena [at] lena>
To: exim-users [at] exim
Sent: Tuesday, September 29, 2009 1:22:15 PM
Subject: Re: [exim] Header size

> From: Christian Gregoire

> Is there a way, at ACL DATA time, to check for the header size ? I have
> a buggy MDA which crashes when handling messages such as those from
> mailing lists where recipients are not hidden thus with many header lines.

You can check, but what'd you do?

condition = ${if >{${strlen:$message_headers_raw}}{10000}}

--
## List details at http://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/





--
## List details at http://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/


exim-users-20081202 at djce

Sep 29, 2009, 9:26 AM

Post #5 of 8 (850 views)
Permalink
Re: Header size [In reply to]

On Tue, Sep 29, 2009 at 07:32:20AM -0700, Christian Gregoire wrote:
> I can now issue a 5xx error during the SMTP session
> when it reaches 20kbytes, rather than sending a mailerdaemon with 'local
> delivery failed' afterwards.

Are you sure "headers_maxsize" isn't what you want?

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey
Attachments: signature.asc (0.19 KB)


exim-users-20081202 at djce

Sep 29, 2009, 9:27 AM

Post #6 of 8 (851 views)
Permalink
Re: Header size [In reply to]

On Tue, Sep 29, 2009 at 05:26:56PM +0100, Dave Evans wrote:
> On Tue, Sep 29, 2009 at 07:32:20AM -0700, Christian Gregoire wrote:
> > I can now issue a 5xx error during the SMTP session
> > when it reaches 20kbytes, rather than sending a mailerdaemon with 'local
> > delivery failed' afterwards.
>
> Are you sure "headers_maxsize" isn't what you want?

Sorry, "header_maxsize".

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey
Attachments: signature.asc (0.19 KB)


cgregoir99 at yahoo

Sep 30, 2009, 1:38 AM

Post #7 of 8 (844 views)
Permalink
Re: Header size [In reply to]

>----- Original Message ----
>From: "Lena [at] lena" <Lena [at] lena>
>To: Christian Gregoire <cgregoir99 [at] yahoo>
>Sent: Tuesday, September 29, 2009 6:02:29 PM
>Subject: Re: Header size

>> terminated by signal 9 (Killed)

>I suspect that possibly that's not the module's limit,
>but some monitor kills the process because its memory consumption
>exceeds some limit.

Sounds weird since the header_maxsize option defaults to 1Mbytes when the sample mail I work on is around 25k.

Has anyone had experienced such an issue yet ?




--
## List details at http://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/


cgregoir99 at yahoo

Sep 30, 2009, 5:20 AM

Post #8 of 8 (836 views)
Permalink
Re: Header size [In reply to]

Thanks, that works.



----- Original Message ----
From: Dave Evans <exim-users-20081202 [at] djce>
To: exim-users [at] exim
Sent: Tuesday, September 29, 2009 6:27:56 PM
Subject: Re: [exim] Header size

On Tue, Sep 29, 2009 at 05:26:56PM +0100, Dave Evans wrote:
> On Tue, Sep 29, 2009 at 07:32:20AM -0700, Christian Gregoire wrote:
> > I can now issue a 5xx error during the SMTP session
> > when it reaches 20kbytes, rather than sending a mailerdaemon with 'local
> > delivery failed' afterwards.
>
> Are you sure "headers_maxsize" isn't what you want?

Sorry, "header_maxsize".

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey





--
## List details at http://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/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.