From owner-freebsd-isp Fri Aug 25 8:25:45 2000 Delivered-To: freebsd-isp@freebsd.org Received: from euclid.cs.niu.edu (euclid.cs.niu.edu [131.156.145.14]) by hub.freebsd.org (Postfix) with ESMTP id 4A72337B424; Fri, 25 Aug 2000 08:25:41 -0700 (PDT) Received: from localhost (rickert@localhost [127.0.0.1]) by euclid.cs.niu.edu (8.11.1.Alpha0/8.11.1.Alpha0) with ESMTP id e7PFPBW06002; Fri, 25 Aug 2000 10:25:11 -0500 (CDT) X-Mailer: exmh version 2.1.2 06/08/2000 To: "Dave Wilson" Cc: freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG, sendmail-questions@sendmail.org Reply-To: sendmail-questions@sendmail.org Subject: Re: Redelivering delivered mail References: <006501c00ea3$6d8b7cd0$112821c4@sai.co.za> In-Reply-To: Message from "Dave Wilson" of "Fri, 25 Aug 2000 16:47:37 +0200." <006501c00ea3$6d8b7cd0$112821c4@sai.co.za> Date: Fri, 25 Aug 2000 10:25:11 -0500 Message-ID: <5998.967217111@euclid.cs.niu.edu> From: Neil W Rickert Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Dave Wilson" wrote: >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 ;-) Unless the mailbox format for the new system is badly incompatible, why not just copy the directory over. Or use 'rdist', or cd /var tar cf - mail | rsh newsystem "cd /var ; tar xpf -" In any case, this is not a sendmail problem. If you really want to remail all of those messages, there are probably ways of doing it with 'formail', a utility that comes with 'procmail'. -NWR To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message