niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Exim
Questions about "Line too long"
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
Author Message
Jonas Meurer
*nix forums beginner


Joined: 20 Feb 2005
Posts: 47

PostPosted: Fri Jul 21, 2006 11:11 am    Post subject: Re: Questions about "Line too long" Reply with quote

On 20/07/2006 Matthew Byng-Maddick wrote:
Quote:
On Thu, Jul 20, 2006 at 10:34:44AM +0200, Steffen Heil wrote:
[>Attribution lost:]
16000 chars, while for the t-online RCPT header it is
something like 3000 chars.
AFAIK, no line may be longer then 1000 chars in SMTP....

But headers may have whitespace folding...

this means that they may be splitted by starting the second line with a
space char?

even if that is the case, i doubt that exim automatically breaks header
lines which are too long.

....
jonas

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Jonas Meurer
*nix forums beginner


Joined: 20 Feb 2005
Posts: 47

PostPosted: Fri Jul 21, 2006 11:08 am    Post subject: Re: Questions about "Line too long" Reply with quote

On 21/07/2006 Steffen Heil wrote:
Quote:
Hi

AFAIK, no line may be longer then 1000 chars in SMTP....

But headers may have whitespace folding...

I know, but the message was "500 5.6.1 Line too long", not "500 5.6.1
Subject too long" or "500 5.6.1 Header too long".

i don't think that the error message does really say what it means. with
subject lines that have 17000 chars, t-online gives exactly this error:
500 5.6.1 Header too long.

so i doubt that a body line is the reason for the error. i found out
now, that the newletter is sent to more than 1000 addresses. maybe
t-online really creates a header line with all recipients listed, and
this one for sure has more than 17000 chars, cause most email addresses
are longer than 17 characters.

i will investigate this and post more infos here.

...
jonas
Back to top
Steffen Heil
*nix forums beginner


Joined: 07 Feb 2005
Posts: 46

PostPosted: Thu Jul 20, 2006 10:30 pm    Post subject: Re: Questions about "Line too long" Reply with quote

Hi

Quote:
AFAIK, no line may be longer then 1000 chars in SMTP....

But headers may have whitespace folding...

I know, but the message was "500 5.6.1 Line too long", not "500 5.6.1
Subject too long" or "500 5.6.1 Header too long".

Regards,
Steffen
Back to top
Matthew Byng-Maddick
*nix forums addict


Joined: 03 Feb 2005
Posts: 93

PostPosted: Thu Jul 20, 2006 2:06 pm    Post subject: Re: Questions about "Line too long" Reply with quote

On Thu, Jul 20, 2006 at 10:34:44AM +0200, Steffen Heil wrote:
[>Attribution lost:]
Quote:
16000 chars, while for the t-online RCPT header it is
something like 3000 chars.
AFAIK, no line may be longer then 1000 chars in SMTP....

But headers may have whitespace folding...

Cheers

MBM

--
Matthew Byng-Maddick <mbm@colondot.net> http://colondot.net/
(Please use this address to reply)

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Steffen Heil
*nix forums beginner


Joined: 07 Feb 2005
Posts: 46

PostPosted: Thu Jul 20, 2006 8:34 am    Post subject: Re: Questions about "Line too long" Reply with quote

Hi

Quote:
sounds interesting, but according to the spec, the default is
already 100, and 100 email-addressed don't produce 16500 characters.

maybe the limit for header lines difffers, and for the
subject it is ca.
16000 chars, while for the t-online RCPT header it is
something like 3000 chars.

AFAIK, no line may be longer then 1000 chars in SMTP....

Quote:
i don't see any oterh way than investigating this with further tests.

Try to get such a mail. Post it here.

Regards,
Steffen
Back to top
Jonas Meurer
*nix forums beginner


Joined: 20 Feb 2005
Posts: 47

PostPosted: Wed Jul 19, 2006 6:42 pm    Post subject: Re: Questions about "Line too long" Reply with quote

On 19/07/2006 Marc Sherman wrote:
Quote:
Jonas Meurer wrote:

the problem is that newsletters are sent through this server, and some
of them have more than 50 t-online addresses subscribed. and for some
reason the error happens quite often.
i will see whether i can get one of the mails that produced such an
error. but the error occurs only for t-online addresses, all others
receive the newsletter.

Is it possible that t-online is adding a header containing all the RCPT
addresses on their server, and that's the line it's rejecting because
there are too many recipients? If so, then setting max_rcpt on your SMTP
transport might solve the problem.

http://exim.org/exim-html-4.62/doc/html/spec_html/ch30.html

sounds interesting, but according to the spec, the default is already
100, and 100 email-addressed don't produce 16500 characters.

maybe the limit for header lines difffers, and for the subject it is ca.
16000 chars, while for the t-online RCPT header it is something like
3000 chars.

i don't see any oterh way than investigating this with further tests.

thanks for your help

....
jonas

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Marc Sherman
*nix forums Guru


Joined: 28 Jan 2005
Posts: 553

PostPosted: Wed Jul 19, 2006 6:18 pm    Post subject: Re: Questions about "Line too long" Reply with quote

Jonas Meurer wrote:
Quote:

the problem is that newsletters are sent through this server, and some
of them have more than 50 t-online addresses subscribed. and for some
reason the error happens quite often.
i will see whether i can get one of the mails that produced such an
error. but the error occurs only for t-online addresses, all others
receive the newsletter.

Is it possible that t-online is adding a header containing all the RCPT
addresses on their server, and that's the line it's rejecting because
there are too many recipients? If so, then setting max_rcpt on your SMTP
transport might solve the problem.

http://exim.org/exim-html-4.62/doc/html/spec_html/ch30.html

- Marc

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Jonas Meurer
*nix forums beginner


Joined: 20 Feb 2005
Posts: 47

PostPosted: Wed Jul 19, 2006 6:11 pm    Post subject: Re: Questions about "Line too long" Reply with quote

On 19/07/2006 Tony Finch wrote:
Quote:
On Wed, 19 Jul 2006, Jonas Meurer wrote:

is it the case here, that mailin06.sul.t-online.de rejects the mail
because it contains lines that exceed a specified limit?

Probably.

seems like a too long Subject may be one reason.
i tested long lines in the body and long subjects:
- body line with 20000 chars is no problem for mailin06.sul.t-online.de
- subject with 16373 chars is no problem for mailin06.sul.t-online.de
- subject with 16375 chars is rejected with "500 5.6.1 Line too long."

but i doubt that people send mail with subjects > 16373 characters. so
there may be other cases, where the t-online mailserver responds with
"500 5.6.1 Line too long.".
my tests also showed, that courier for example rejects any mails with
subjects longer than ca. 4990 lines.

Quote:
if this is true, does exim support to automatically break long lines
before transmitting the message to mailin06.sul.t-online.de?

No, though you could use a transport filter. However I fear what that may
break. Much better to just send sensible email in the first place, as
Suresh suggested.

the problem is that newsletters are sent through this server, and some
of them have more than 50 t-online addresses subscribed. and for some
reason the error happens quite often.
i will see whether i can get one of the mails that produced such an
error. but the error occurs only for t-online addresses, all others
receive the newsletter.

....
jonas

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Tony Finch
*nix forums Guru


Joined: 22 Mar 2002
Posts: 1222

PostPosted: Wed Jul 19, 2006 5:34 pm    Post subject: Re: Questions about "Line too long" Reply with quote

On Wed, 19 Jul 2006, Jonas Meurer wrote:
Quote:

is it the case here, that mailin06.sul.t-online.de rejects the mail
because it contains lines that exceed a specified limit?

Probably.

Quote:
if this is true, does exim support to automatically break long lines
before transmitting the message to mailin06.sul.t-online.de?

No, though you could use a transport filter. However I fear what that may
break. Much better to just send sensible email in the first place, as
Suresh suggested.

Tony.
--
<fanf@exim.org> <dot@dotat.at> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Jonas Meurer
*nix forums beginner


Joined: 20 Feb 2005
Posts: 47

PostPosted: Wed Jul 19, 2006 5:29 pm    Post subject: Questions about "Line too long" Reply with quote

Hello,

i run exim 4.50-8sarge2 on a debian/sarge server.

some mails to t-online.de addresses are rejected with the following
message:

** somebody@t-online.de <somebody@t-online.de> R=dnslookup
T=remote_smtp: SMTP error from remote mailer after end
of data: host mailin06.sul.t-online.de [194.25.134.11]:
500 5.6.1 Line too long.


i found only one useful link about this error:
http://www.exim.org/pipermail/exim-users/Week-of-Mon-20010625/027361.html

is it the case here, that mailin06.sul.t-online.de rejects the mail
because it contains lines that exceed a specified limit?

if this is true, does exim support to automatically break long lines
before transmitting the message to mailin06.sul.t-online.de?

....
jonas

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 1:44 am | All times are GMT
navigation Forum index » Apps » Exim
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts number of words in a line Fred J. C++ 3 Fri Jul 21, 2006 3:52 am
No new posts Net:TFTPd questions - Want to upload configs via TFTP Adam Perl 0 Thu Jul 20, 2006 4:59 pm
No new posts Net:TFTPd questions - Want to upload configs via TFTP Adam modules 1 Thu Jul 20, 2006 4:29 pm
No new posts blocking mails with long lines and giberish Dale Blount Postfix 4 Thu Jul 20, 2006 2:31 pm
No new posts Questions on bitfields and struct sarathy C 3 Thu Jul 20, 2006 1:58 pm

Remortgages | Personal Loans | Free Advertising | Bad Credit Mortgages | Mortgages
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2136s ][ Queries: 20 (0.1051s) ][ GZIP on - Debug on ]