From owner-freebsd-questions Fri Jul 18 09:26:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA01448 for questions-outgoing; Fri, 18 Jul 1997 09:26:45 -0700 (PDT) Received: (from jmb@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA01438; Fri, 18 Jul 1997 09:26:38 -0700 (PDT) From: "Jonathan M. Bresler" Message-Id: <199707181626.JAA01438@hub.freebsd.org> Subject: Re: mail account monitoring To: gcrutchr@nightflight.com (Gary Crutcher) Date: Fri, 18 Jul 1997 09:26:38 -0700 (PDT) Cc: questions@freebsd.org In-Reply-To: <3.0.3.32.19970718074921.007d19e0@nightflight.com> from "Gary Crutcher" at Jul 18, 97 07:49:21 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Gary Crutcher wrote: > > Hi, > > I need to monitor someone's mail account. > How can I get copies of incoming and outgoing mail for > an account? I would like for all mail this person sends > or receives to be copied to a file, without having > to log all incoming and outgoing mail. a couple people have suggested methods for inbound (/etc/aliases or .forward) outbound may be impossible. 1. "telnet some.host 25" and do the smtp conversation by hand. 2. write a little expect script to do it. 3. write a little perl script to connect to the smtp socket of the other machine. 4. "telnet localhost 25" and dummy it up (same as 1. above) is the user savy? can you prevent these? what about news-to-gateways? sorry to be so pessimistic about this. jmb