[Mimedefang] MIME defang causing errors in HTMLmail?

Håkon Nilsen (Exinet AS) nilsen at xinet.no
Tue Sep 30 10:03:01 EDT 2003


Hi, David,

Thanks for your reply.

Nice call - you basically solved the issue. Now for a short tutorial on how
to remove this incredibly lame sendmail issue;

You have the L= equate, that defines how many chars on a line before it
breaks. Sendmail actually breaks the lines after 990 chars by default! This
is in the sendmail.cf file. Also, of the L= is triggered, the E= follows up,
which is \r\n by default. Causing a linebreak, a ! and an \r\n.

How silly is that? I've searched the net for this, and it doesn't seem like
anyone finds a use for this. At least not the !.

Anyway, here's what you do to remove it.

At the bottom of your sendmail.cf file, you'll find this:


Msmtp,          P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Mesmtp,         P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Msmtp8,         P=[IPC], F=mDFMuX8, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Mdsmtp,         P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
E=\r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=TCP $h
Mrelay,         P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP,
E=\r\n, L=2040,
                T=DNS/RFC822/SMTP,
                A=TCP $h


(or something equivalent to that).

Simply remove the E=\r\n and edit the L=990 to L=0 (or you can set L=9999
for all I care, but 0 removes the issue). Though, even if L=0, sendmail
STILL does the E=\r\n in my case, so I had to remove that entirely.


Hope someone else needed help with this too.


Best regards,
Haakon Nilsen

----- Original Message ----- 
From: "David F. Skoll" <dfs at roaringpenguin.com>
To: <mimedefang at lists.roaringpenguin.com>
Sent: Tuesday, September 30, 2003 2:08 PM
Subject: Re: [Mimedefang] MIME defang causing errors in HTMLmail?


> On Fri, 26 Sep 2003, Håkon Nilsen (Exinet AS) wrote:
>
> > I've gotten this html mail that's not working properly, and I've found
the
> > reason to why it isn't. In the HTML-code there are lines like this:
>
> > <td vAlign="top" align="left" width="70!
> >  0" backg
>
> This is most likely NOT a MIMEDefang issue, but a Sendmail issue.
> See a Sendmail book and read a discussion of the "L=" mailer equate.
> Sendmail wraps over-long lines by adding an exclamantion mark and
> then splitting.  I have no idea why it would wrap a relatively short
> line like the one you showed, but MIMEDefang never does anything like
> that.
>
> Regards,
>
> David.
>
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list