> smtpd truncates the length of line in the header of email to 255
characteres.
> This is done in lines 1900-1904 of smtpd.c. Looking at the code, I believe
> that I can simply comment out these lines to remove this feature.
Hmm, that size restriction seems to be in violation of RFC 2821 (obsoletes
RFC 821 - SMTP, etc).
Section 4.5.3.1 "Size limits and minimums" gives several instances that go
way beyond that. For instance:
domain
The maximum total length of a domain name or number is 255
characters.
path
The maximum total length of a reverse-path or forward-path is 256
characters (including the punctuation and element separators).
[...]
text line
The maximum total length of a text line including the <CRLF> is
1000 characters (not counting the leading dot duplicated for
transparency). This number may be increased by the use of SMTP
Service Extensions.
However, I would urge caution about simply removing the feature - without
careful inspection you don't know what side effects such as buffer overruns
you may introduce. Caveat emptor, batteries not included, dangerous when
not used as directed, etc..
HTH, HAND.
cheers,
Chris
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug