From owner-freebsd-isp Thu Nov 30 17:47:22 2000 Delivered-To: freebsd-isp@freebsd.org Received: from metva.com.au (metva.com.au [202.0.82.1]) by hub.freebsd.org (Postfix) with ESMTP id 73CE537B400 for ; Thu, 30 Nov 2000 17:47:17 -0800 (PST) Received: (from enno@localhost) by metva.com.au id MAA14864 for freebsd-isp@FreeBSD.ORG; Fri, 1 Dec 2000 12:47:00 +1100 (EST) From: Enno Davids Message-Id: <200012010147.MAA14864@metva.com.au> Subject: Re: Email Monitoring To: freebsd-isp@FreeBSD.ORG Date: Fri, 1 Dec 2000 12:47:00 +1100 (EST) X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org | You could set up an alias for each of their users so that incoming E-mail | goes to both the user and the administrator, but that doesn't cover outgoing | E-mail. | | A Perl script to scan the mail log for each of your users that would run on | a nightly basis would be a way to monitor outgoing recipients, but actually | intercepting content of outgoing E-mail would require a separate application | to interface with Sendmail or some other mail server program you intend on | using. You can do this with SMTPD if you want. If you don't know it SMTPD is, primarily aimed at people who want to get away from the sendmail bug of the month club (which is admittedly much less of a problem now than some years back). It also has good control over non-relaying and who gets to use your service. The idea is to have an inet spawned service which does SMTP _only_ and saves to a chrooted spool area. A delivery daemon picks up the spooled email and drops it in your real mailer for delivery (i.e. you can still use sendmail and its great flexibility to do delivery for you). For this purpose though it pays to know that the delivery can be made through an arbitrary mailer program (but one which supports a small subset of sendmail's command line arguments and has similar return codes is easiest). This means you can write a script which copies out those emails from the client being monitored and then does delivery and substitute it for the straight call to /usr/lib/sendmail. You may need to recompile to change the delivery agent though. Enno. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message