From owner-freebsd-questions Fri Aug 25 8:32:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.alpha1.net (mail.alpha1.net [216.88.112.3]) by hub.freebsd.org (Postfix) with ESMTP id 9861F37B43C; Fri, 25 Aug 2000 08:32:40 -0700 (PDT) Received: from beaker.alpha1.net (beaker.alpha1.net [216.88.237.14]) by mail.alpha1.net (8.9.3/8.9.3) with ESMTP id KAA11414; Fri, 25 Aug 2000 10:32:38 -0500 Date: Fri, 25 Aug 2000 10:32:38 -0500 (CDT) From: Marius Strom To: Phillip Salzman Cc: Dave Wilson , freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG, sendmail-questions@sendmail.org Subject: Re: Redelivering delivered mail In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Install procmail from /usr/ports/mail/procmail, then do: formail -b -Y -f -s /usr/lib/sendmail -oi \ $USERNAME@new.mail.server < /var/mail/$USERNAME -- Marius Strom Professional Geek/Unix System Administrator Alpha1 Internet http://www.marius.org/marius.pgp 0x42C74CBA Turn off the faucet? We're too busy mopping up the floor! On Fri, 25 Aug 2000, Phillip Salzman wrote: > If you're going to another UNIX (or sendmail) system, simply use > a tool like scp, rsync, or even ftp, to move the files. > > What type of system are you moving too? > > If it's one that does Maildir format, I have a script (somewhere) that > will convert your var/mail/$USER file into Maildir (for something like > qmail), but will have to locate it... I haven't used it in a long time. > > --- > Phillip Salzman > phill@freebsd.org > > On Fri, 25 Aug 2000, Dave Wilson wrote: > > > Hi guys, howzit going ? > > > > We are in the process of moving all our mail accounts (800 accounts) off a > > FreeBSD4.0 box to a new mailserver. > > Is there a way to redeliver the mail that has already been written to > > /var/mail/$user ? > > In other words user@mydomain.com has all his mail waiting in /var/mail/user > > to be collected, now what we want to do is change the MX for mydomain.com > > and point it to the new mail server and somehow forward all his mail from > > /var/mail/user to the new mail server ? > > Obviously we could log in as each user, retrieve his/her mail and then > > forward it but that would be a bit heavy for 800 accounts ;-) > > > > Any ideas ? > > > > Regards > > Dave Wilson > > The S.A. Internet > > (033) 3456777 > > 0825496159 > > http://www.sai.co.za > > "Who is General Failure and why is he reading my hard drive ?" > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-isp" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message