From owner-freebsd-questions Sat Apr 28 8:44:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (everest.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 92A5437B422 for ; Sat, 28 Apr 2001 08:44:33 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 14tWUE-0002Mq-00 for freebsd-questions@FreeBSD.ORG; Sat, 28 Apr 2001 18:18:18 +0300 Date: Sat, 28 Apr 2001 18:18:18 +0300 From: Odhiambo Washington To: FBSD-Q Subject: Re: Moving mail Message-ID: <20010428181818.A9059@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , FBSD-Q References: <20010428114955.A89268@everest.wananchi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010428114955.A89268@everest.wananchi.com>; from "Odhiambo Washington" on Sat, Apr 28, 2001 at 11:49:55AM +0300 X-Operating-System: FreeBSD everest.wananchi.com 4.3-STABLE FreeBSD 4.3-STABLE X-Location: Nairobi, KE, East Africa. X-Uptime: 6:14PM up 1 day, 8:17, 5 users, load averages: 0.14, 0.06, 0.06 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Odhiambo Washington [20010428 11:50]: writing on the = subject 'Moving mail' Odhiambo> URGENT! Script gurus..... Odhiambo>=20 Odhiambo> I am trying out this from a file and it is failing me! I feel lik= e crying Odhiambo> but I am not a kid ;/ Odhiambo>=20 Odhiambo> # Odhiambo> cd /var/spool/mail Odhiambo> for i in 'ls -1' ; do Odhiambo> formail -s sendmail -t $i@wananchi.com < /var/spool/mail/$i Odhiambo> done Odhiambo> # Odhiambo>=20 Odhiambo> It tells me ambiguous redirect!!!! Why???? Sorry I am replying to my own mail again. A gentleman sorted out my problem by pointing out that I should try `ls -1` which worked but I have another issue.=20 I was to use this to re-inject the mails into sendmail to send out. I have over 2000 users and they have enough mail. I actually tried this thing out and sendmail hiccuped - too many files open. I am moving the users from a Linux box running Sendmail as MTA to a FreeBSD box running Exim as MTA. Is there a good way of handling this??? TIA -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. Newlan's Truism: An "acceptable" level of unemployment means that the government economist to whom it is acceptable still has a job. --vkogqOf2sHV7VnPd 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 iD8DBQE66t86n7LIsuxjem8RApy2AJwOGQO1iiBg2y1ITHXYGP2Gro5r1wCggVx2 WjqDPzo2ZqpBj8n2ZZAWp9k= =Koj8 -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message