From owner-freebsd-questions Thu May 17 8:40:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (pop.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 13F4637B42C for ; Thu, 17 May 2001 08:40:37 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 150Pr9-0003Ym-00; Thu, 17 May 2001 18:38:27 +0300 Date: Thu, 17 May 2001 18:38:27 +0300 From: Odhiambo Washington To: Joe Guetler Cc: FBSD-Q Subject: Re: Need a way to duplicate every message on mail server Message-ID: <20010517183827.F10090@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , Joe Guetler , FBSD-Q References: <45ba5b45ac14.45ac1445ba5b@mbox.com.au> <20010517161930.C35403@everest.wananchi.com> <3B03E69B.D2331192@axiomadvertising.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="HG+GLK89HZ1zG0kk" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B03E69B.D2331192@axiomadvertising.com>; from "Joe Guetler" on Thu, May 17, 2001 at 09:56:26AM -0500 X-Operating-System: FreeBSD everest.wananchi.com 4.3-STABLE FreeBSD 4.3-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Nairobi, KE, East Africa. X-Uptime: 6:36PM up 20 days, 8:39, 3 users, load averages: 0.33, 0.23, 0.15 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --HG+GLK89HZ1zG0kk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Joe Guetler [20010517 17:55]: writing on the s= ubject 'Re: Need a way to duplicate every message on mail server' Joe> =09 Joe> Odhiambo Washington wrote: Joe> >=20 Joe> > * Konstantin V. SEMENOV [20010517 13:41]: writin= g on the subject 'RE: Need a way to duplicate every message on mail server' Joe> > Konstantin> Joe> > Konstantin> Joe> > Konstantin> > -----Original Message----- Joe> > Konstantin> > From: owner-freebsd-questions@FreeBSD.ORG Joe> > Konstantin> > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf = Of BSD Freak Joe> > Konstantin> > Sent: Thursday, May 17, 2001 2:16 PM Joe> > Konstantin> > To: freebsd-questions@FreeBSD.ORG Joe> > Konstantin> > Subject: Need a way to duplicate every message on mail= server Joe> > Konstantin> > Joe> > Konstantin> > Joe> > Konstantin> > Hi everyone, Joe> > Konstantin> > Joe> > Konstantin> > I run several FreeBSD mail servers (sendmail) and need= a way to Joe> > Konstantin> > duplicate every user's incoming messages to a single m= ailbox for Joe> > Konstantin> > archival purposes. Can this also be done for outgoing = (SMTP) messages? Joe> > Konstantin> > Look forward to enlightenment from the list, Joe> > Konstantin> > Joe> > Konstantin> > Best Regards...... and thanks in advance..... :-) Joe> > Konstantin> > Joe> > Konstantin> Joe> > Konstantin> use /etc/mail/aliases Joe> > Konstantin> ie - user1: user1, archive Joe> > Konstantin> Joe> > Konstantin> don't forget to execute newaliases afterwards Joe> >=20 Joe> > What happens if you have over 5K users and they were already Joe> > existent on the system?? well you can have the file in db Joe> > format, yes so that it's processed more quickly by your MTA but you'= ll Joe> > need some script which can take the output of `ls -1` and append it = to Joe> > the alias file with a ':' and the two names besides it. Joe> >=20 Joe> > First create the user called 'archive'. Joe> >=20 Joe> > I am an amateur at this but I believe the script below will automate= the Joe> > process. Joe> >=20 Joe> > NB: I still DON'T know how to insert TAB character but I believe spa= ce Joe> > will do!! Joe> >=20 Joe> > cd /usr/home Joe> > for i in `ls -1` ; do Joe> > echo $i: "" $i, archive >> /etc/mail/aliases Joe> > done Joe> > /usr/bin/newaliases Joe> > exit Joe> >=20 Joe>=20 Joe> I'm no expert, but wouldn't a procmail recipe be able to duplicate Joe> incoming and outgoing mail to an archive? Joe> btw, I just starting learning procmail, so don't look to me to write t= he Joe> recipe if it can :) Joe>=20 Joe> Joe In that case you'll need to have used Procmail as the Local mailer. You could have dug deeper and given us a recipe. I use procmail to process my _personal_ emails but never used it on the main MTA.=20 -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286, 00100-NAIROBI,KE. Utility is when you have one telephone, luxury is when you have two, opulence is when you have three -- and paradise is when you have none. -- Doug Larson --HG+GLK89HZ1zG0kk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7A/Bzn7LIsuxjem8RAumAAKCJMDV9LbzWHiKVZV907Fr3shhvQACeJ8TJ iwVEnAaByEQqK6mKEvCuTL0= =k6D2 -----END PGP SIGNATURE----- --HG+GLK89HZ1zG0kk-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message