Hey!

That's neat!

I'll give it a go later on :)

-----Original Message-----
From: Serge Caron [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 18, 2002 5:39 PM
To: LEAF
Subject: [Leaf-devel] Small SMTP send-only MTA


Hello all,

Here is a small (5277 bytes, 5.5kb on floppy) send only MTA
http://leaf.sourceforge.net/devel/scaron/smtpclnt.lrp (and here is the
v1.0.1 source http://leaf.sourceforge.net/devel/scaron/smtpclnt.tgz ).

smtpclient is Copyright (c) 1997 Ralf S. Engelschall, All rights reserved.
and has been under GNU GPL since its publication.

This is SMTPclient Version 1.0.1 (17-03-2002): I had to fix a (very) small
issue with MIME quote-printables for us poor souls who need more than 127
characters in their daily alphabet :)

The program has a nice feature set and is very compatible with Charles's
mail command. Errors can be syslogged and there is debugging information
when talking to the mail host.

smtpclient reads the message from stdin and has the following command line
arguments:

Usage: smtp [options] recipients ...

Message Header Options:
  -s, --subject=STR      subject line of message
  -f, --from=ADDR        address of the sender
  -r, --reply-to=ADDR    address of the sender for replies
  -e, --errors-to=ADDR   address to send delivery errors to
  -c, --carbon-copy=ADDR address to send copy of message to

Processing Options:
  -S, --smtp-host=HOST   host where MTA can be contacted via SMTP
  -P, --smtp-port=NUM    port where MTA can be contacted via SMTP
  -M, --mime-encode      use MIME-style translation to quoted-printable
  -L, --use-syslog       log errors to syslog facility instead of stderr

Giving Feedback:
  -v, --verbose          enable verbose logging messages
  -V, --version          display version string
  -h, --help             display this page

Here is a sample verbose output:
10.4.5.6 --> 220 piggies-blanket.pcevolution.com Microsoft ESMTP MAIL
Service, Version: 5.0.2195.2096 ready at  Mon, 18 Mar 2002 11:12:37 -0500
10.4.5.6 <-- HELO localhost 10.4.5.6 --> 250 piggies-blanket.pcevolution.com
Hello [10.0.0.28] 10.4.5.6 <-- MAIL FROM: <root@localhost> 10.4.5.6 --> 250
2.1.0 [EMAIL PROTECTED] OK 10.4.5.6 <-- RCPT TO:
<[EMAIL PROTECTED]> 10.4.5.6 --> 250 2.1.5
[EMAIL PROTECTED] 10.4.5.6 <-- DATA 10.4.5.6 --> 354 Start mail
input; end with <CRLF>.<CRLF> 10.4.5.6 <-- . 10.4.5.6 --> 250 2.6.0
<[EMAIL PROTECTED]> Queued mail
for delivery 10.4.5.6 <-- QUIT 10.4.5.6 --> 221 2.0.0
piggies-blanket.pcevolution.com Service closing transmission channel

Enjoy!

Serge Caron




_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to