Annotation of embedaddon/mini_sendmail/README, revision 1.1.1.1
1.1 misho 1: mini_sendmail - accept email on behalf of real sendmail
2: version 1.3.6 of 29jun2005
3:
4: mini_sendmail reads its standard input up to an end-of-file and
5: sends a copy of the message found there to all of the addresses
6: listed. The message is sent by connecting to a local SMTP server.
7: This means mini_sendmail can be used to send email from inside a
8: chroot(2) area.
9:
10: See the manual entry for more details.
11:
12: Files in this distribution:
13:
14: README this
15: Makefile guess
16: mini_sendmail.c source file
17: mini_sendmail.8 manual entry
18:
19: To build: If you're on a SysV-like machine (which includes old Linux systems
20: but not new Linux systems), edit the Makefile and uncomment the SYSV_LIBS
21: line. Otherwise, just do a make.
22:
23: After it's built, you must test it to make sure your local sendmail
24: daemon is (a) running and (b) accepting local mail for delivery
25: elsewhere. Here's what a successful test run might look like:
26:
27: % echo 'Subject: test' | ./mini_sendmail -v jef@mail.acme.com
28: <<<< 220 gate.acme.com ESMTP Sendmail; Thu, 16 Dec 1999 17:17:37 -0800 (PST)
29: >>>> HELO localhost
30: <<<< 250 gate.acme.com Hello localhost [127.0.0.1], pleased to meet you
31: >>>> MAIL FROM:<jef@gate.acme.com>
32: <<<< 250 <jef@gate.acme.com>... Sender ok
33: >>>> RCPT TO:<jef@mail.acme.com>
34: <<<< 250 <jef@mail.acme.com>... Recipient ok
35: >>>> DATA
36: <<<< 354 Enter mail, end with "." on a line by itself
37: <<<< 250 RAA58877 Message accepted for delivery
38: >>>> QUIT
39: <<<< 221 gate.acme.com closing connection
40: %
41:
42: And here's an unsuccessful run where there's no local sendmail
43: daemon running:
44:
45: % echo 'Subject: test' | ./mini_sendmail -v jef@mail.acme.com
46: ./mini_sendmail: connect: Connection refused
47: %
48:
49:
50: Feedback is welcome - send bug reports, enhancements, checks, money
51: orders, etc. to the addresses below.
52:
53: Jef Poskanzer jef@mail.acme.com http://www.acme.com/jef/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>