Date: Tue, 13 Mar 2001 07:24:22 +0100 From: dirk.meyer@dinoex.sub.org (Dirk Meyer) To: freebsd-isp@FreeBSD.ORG Subject: Re: SMTP mail interception Message-ID: <I7Nac5T56i@dmeyer.dinoex.sub.org> References: <200103130351.f2D3pZI02375@spooky.eis.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Ernie Elu wrote, > Is there anyway of getting sendmail to make an archive copy of all smtp > emails in and out of a FreeBSD server, or do I have to run some other > interception program on port 25? There are diffrent ways to archive this. a) use the sample filer in "libmilter/README" +--------------------------+ | SOURCE FOR SAMPLE FILTER | +--------------------------+ Note that the filter below may not be thread safe on some operating systems. You should check your system man pages for the functions used below to verify the functions are thread safe. /* A trivial filter that logs all email to a file. */ [....] b) define new mailers, for input and oputput (LOCAL/RELAY/SMPTP). There are some shell scrips or C-Programs that can do this. I used one of the "bsmpt/rsmpt" packages to save a mail with the full envelope into a quue. Mostly used for uucp-sites with high traffic. Mbsmtp, P=/usr/bin/bsmtp, F=0, # no MX lookup for destination F=DFMx, # Need Date,From,Message-Id,Full-Name F=m, # Multiple receipients F=u, # Preserve uppercase for username F=S, # Assume specified uid and gid F=n, # Don't use Unix-Style From in header F=C, # Add domainame to all local Users F=X, # Add extra dots in Body (BSMTP) S=EnvFromSMTP/HdrFromSMTP, R=ifdef(`_ALL_MASQUERADE_', `EnvToSMTP/HdrFromSMTP', `EnvToSMTP') E=\r\n, M=10000000, T=X-UUCP/X-UUCP/X-Unix, U=uucp:uucp, A=bsmtp -spool /var/spool/bsmtp/$h $f $u kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?I7Nac5T56i>