README
1 mini_sendmail - accept email on behalf of real sendmail
2 version 1.3.9 of 19Oct2015
3
4mini_sendmail reads its standard input up to an end-of-file and
5sends a copy of the message found there to all of the addresses
6listed. The message is sent by connecting to a local SMTP server.
7This means mini_sendmail can be used to send email from inside a
8chroot(2) area.
9
10See the manual entry for more details.
11
12Files in this distribution:
13
14 README this
15 Makefile guess
16 mini_sendmail.c source file
17 mini_sendmail.8 manual entry
18
19To build: If you're on a SysV-like machine (which includes old Linux systems
20but not new Linux systems), edit the Makefile and uncomment the SYSV_LIBS
21line. Otherwise, just do a make.
22
23After it's built, you must test it to make sure your local sendmail
24daemon is (a) running and (b) accepting local mail for delivery
25elsewhere. 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
42And here's an unsuccessful run where there's no local sendmail
43daemon running:
44
45 % echo 'Subject: test' | ./mini_sendmail -v jef@mail.acme.com
46 ./mini_sendmail: connect: Connection refused
47 %
48
49
50Feedback is welcome - send bug reports, enhancements, checks, money
51orders, etc. to the addresses below.
52
53 Jef Poskanzer jef@mail.acme.com http://www.acme.com/jef/
54