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

Natanael Copa natanael.copa at gmail.com
Wed Sep 24 14:25:17 UTC 2008


Hi,

Finally I'm taking a closer look at replacing ssmtp with busybox
sendmail. Attatched is a patch (against 1.12.0) with what i needed to
make it work.

Most serious issue was the fact that current bb sendmail uses the from
address in the EHLO/HELO message. The rfc1869 (section 4.2) says it
should be a domain not an address. So my MTA correctly dicarded the
invalid EHLO. I solved this by using the domain part in the from
address. This requires that the from address has an '@' which i think is
ok in todays world (10 years ago it would be different)

Seconly, I added an -o option thats just ignored. It allows you to be
somewhat compatible: sendmail -oi ...

Third, the enviroment variable HOSTNAME is a "reserverd" variable for
bash so I changed it to SMTPHOST.

Sendmail is a good addition to busybox. Thanks!

-nc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-1.12.0-sendmail.patch
Type: text/x-patch
Size: 1683 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080924/cd397667/attachment-0002.bin 


More information about the busybox mailing list