SUMMARY: how to get tcpwrappers to mail info

From: richard n. frank <rootrnf_at_wolfram.llnl.gov>
Date: Fri, 07 May 1999 11:49:30 -0700 (PDT)

Many thanks to:

Mike Iglesias <iglesias_at_draco.acs.uci.edu>
Richard Bemrose <rb237_at_phy.cam.ac.uk>
Mandell Degerness <Mandell.Degerness_at_gems2.gov.bc.ca>
Robert R. Schneider <robert_at_pe.utexas.edu>

I had several problems.

1) Aparantly TCPwrappers stops processing when a match is made.
2) I was using the wrong mail program
3) I needed a subject switch

Solution:

# Hosts.allow
#
telnetd: 128.115.2., [... as many hosts as you want,] 128.115.82.:\
 spawn = /usr/sbin/safe_finger -l _at_%h | /usr/bin/mailx -s "%H-%h-%d" rnfrank_at_llnl.gov &

1) Attach the spawn line to the initial telnetd line
2) use "mailx" rather than "mail"
3) do "mailx -s"

Thanks again for the GREAT and SPEEDY help.
                                            rich frank
Received on Fri May 07 1999 - 18:47:42 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT