[PATCH] sendmail: EHLO/HELO should use a domain

Natanael Copa natanael.copa at gmail.com
Thu Sep 25 12:14:56 UTC 2008


On Thu, 2008-09-25 at 14:23 +0400, Vladimir Dronnikov wrote:
>         > So would you rediff and send the result?
> 
> I meant your EHLO patch. 

Attatched.

It fixes this error that i currently get from postfix:
501 5.5.2 <natanael.copa?gmail.com>: Helo command rejected: Invalid name

techincally it would be mo correct to use safe_gethostname()....
whatever...

>         I started look at it, but it looks like sendmail is designed
>         to only do
>         attatchments and attatchments only.
> 
> Not true.

if there is no attatchement then the input is converted to an
"attatchment". Makes sense if you really want attatchment support as you
then can treat all parts equally more or less.

Converting the applet to a dumb mail sender would require some redesign.

> And we could inhibit encoding unless an attachment(s) is present.

That would be great. Support for attatchemnt is higly nonstandard and
should be an configure option.

> The problems still are: 1) plain text should be 7-bit clean; I assure
> you there are people who can not afford that.

Isn't that a job for the script/program that creates the message in
first place? sendmails job is to send mails. not compose them, nor edit
them.

> 2) Plain '.' in message: message body needs to be analyzed and
> mangled.

ssmtp solves that by inserting an '.' in front of all lines starting
with '.'

> But why doesn't the remote end correctly process well-packed MIME
> messages?! 

Because recepient is a stupid program. (gnats)

>         I think I will have to go back to ssmtp which does what I
>         need: stupidly send plain text emails, not
>         attatchments.
> 
> 
> Pity.

Yes. unfortunally i have releases to make.

>         I don't have time for a busybox sendmail rewrite or
>         fundamental redesign.
> 
> I do. Please, request for features and find time to test the changes.

Thats great! I'll be happy to give it another try.

I'd like to have a sendmail that just sends mail and don't bother whats
in there.

If you want smart subject rewriting and attatchment support, the please
make those as config options. But IMO sendmail have nothing to do with
the contents of the email (encoding, attatchemts and such)

Have a look at how others does it. ssmtp is a good example.

> --
> Vladimir
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-r23493-sendmail.patch
Type: text/x-patch
Size: 1679 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080925/3be1ddfc/attachment-0002.bin 


More information about the busybox mailing list