• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..02-Mar-201281

FILESH A D22-Mar-201064

MakefileH A D22-Mar-20101.1 KiB

mini_sendmail.8H A D22-Mar-20102.3 KiB

mini_sendmail.cH A D22-Mar-201018.3 KiB

READMEH A D22-Mar-20101.9 KiB

sendalarmH A D22-Mar-20102.6 KiB

version.hH A D22-Mar-2010167

README

1     mini_sendmail - accept email on behalf of real sendmail
2                   version 1.3.2 of 21nov2002
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@acme.com
28    <<<< 220 bomb.acme.com ESMTP Sendmail; Thu, 16 Dec 1999 17:17:37 -0800 (PST)
29    >>>> HELO localhost
30    <<<< 250 bomb.acme.com Hello localhost [127.0.0.1], pleased to meet you
31    >>>> MAIL FROM:<jef@bomb.acme.com>
32    <<<< 250 <jef@bomb.acme.com>... Sender ok
33    >>>> RCPT TO:<jef@acme.com>
34    <<<< 250 <jef@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 bomb.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@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@acme.com  http://www.acme.com/jef/
54