blaise, > From: Blaise Lab <[EMAIL PROTECTED]> > Date: Wed, 24 Oct 2001 11:30:58 +0200 > > Hello, > > I tried the command : > mnc host 25 > HELO > MAIL FROM:[EMAIL PROTECTED] > RCPT TO:[EMAIL PROTECTED] > DATA > blabla > . > QUIT > > And it worked fine ! And now I would to make a script with these > commands... I wrote that script but it doesn't work... > > #!/bin/ash > mnc 192.168.100.4 25 > HELO > MAIL FROM:[EMAIL PROTECTED] > RCPT TO:[EMAIL PROTECTED] > DATA > blabla > > . > QUIT
This is perhaps a little off-thread for this list, but as I happen also to follow the "Postfix" mailing list... SMTP (what you were typing above) is (in general) a half-duplex protocol: You say something, the server replies, etc. etc. Perhaps when you typed your commands in by hand, you gave the server time to reply before typing the *next* command. Your script probably went at full speed! One possibility (it does depend on the mail server) is instead of saying "HELO <my-host-name>" try "EHLO <my-host-name>". The server will then give a list of the extened features it supports. If "pipelining" (or somesuch) is mentioned there, you can use your script above, the server will then re-thread the exchanges into the correct sequence. If "pipelining" is not avavilable you have a problem with this approach ;-( BTW it is better to say "MAIL FROM: <[EMAIL PROTECTED]>" and "RCPT TO: <[EMAIL PROTECTED]>". i.e. with "<" and ">". > Thank you for your help... Greetings Mark _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
