Sam Varshavchik wrote:
> Dino Ciuffetti writes:
>
> > > > On 2006-01-19, [EMAIL PROTECTED] wrote:
> > > > >
> > > > > I need a quick way to get the ip address of the esternal
> > > > > esmtp client that submit emails to my courier.
> > > >
> > > > You can find this information in the Received-Header. If you
> > > > enable SPF,
> > > courier also generates a Received-SPF header. Its probably easier
> > > to extract/parse the ip address out of the SPF header.
> > >
> > > Ok, thanks!! I'm now using courier's "Sender Policy Framework" to
> > > add the Received-SPF header, and it's working!! ;-)
> > >
> >
> > With SPF enabled, sometimes I have a problem: "534 Message header
> > size, or recipient list, exceeds policy limit." because SPF adds
> > lots of header lines.
> >
> > I know this policy is hardcoded, I just like to know if there's an
> > official patch for courier to make this as a parameter in a
> > configuration file (bofh, for ex?). Why did developers choose to
> > hardcode header size?
>
> The default maximum total header size is about 100Kb. By comparison,
> SPF's contribution are infinitessimal.
True, but the default maximum individual header size is about 5Kb.
I run into this problem often enough (usually due to someone sending an
email to their entire address book), that I make it a habit to always
remove this limit on my courier installations.
I don't have a patch, but it's only a one line change.
Edit courier/submit.C and change this line:
if (l > headerlimit || l > 5000)
to this:
if (l > headerlimit)
And then rebuild the rpms.
Note - The original line shown above came from memory as I don't have
the unmodified source handy. It may not be exactly right, but if you
open the file and search for "headerlimit", you should find it on the
second match.
--
Bowie
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users