> 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. Hmmm. RFC 2821 at 4.1.1.1 says a client should provide _fully-qualified_ domain name. And what if yours is simply localhost? In that case the client should send reverse address verbatim. So your MTA INcorrectly discards that 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) Great. But avoid dying when no '@' occured. Just complain of that would be enough IMHO. And, please, enclose the very first read of opt_from (domain=strchr...) in sane() to avoid issues. > Third, the enviroment variable HOSTNAME is a "reserverd" variable for > bash so I changed it to SMTPHOST. Personally, I would get completely rid of environ here. -H switch is good, and localhost is the sane fallback IMO. > Sendmail is a good addition to busybox. Thanks! Thank you! Let us tune it! -- Vladimir _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
