This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: mailx mail replacement - solution in shell script
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 11 May 2004 08:46:47 -0700
- Subject: Re: mailx mail replacement - solution in shell script
- Organization: My own little world...
- References: <NUTMEGOeIiGXix4A2Dr0000006a@NUTMEG.CAM.ARTIMI.COM>
- Reply-to: cygwin at cygwin dot com
Dave Korn wrote:
> > Yes, it relies on MTA (and I thought that ssmtp is good default for
> > Cygwin) since original mailx does the same. Althought one could simply
> > use netcat, but that brakes SMTP protocol and this behaviour
> > is recently becoming forbidden.
>
> I'm curious: in what way does using netcat break the smtp protocol?
I'm guessing because it just blasts the entire SMTP conversation at the
remote server and hopes that it accepts it. The standard says you
musn't send anything until the server first sends its banner, and each
command waits for the status code of the previous, etc. Some mailers
(e.g. exim) will drop the session with a "violated SMTP synchronization"
error.
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/