Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2000 10:32:38 -0500 (CDT)
From:      Marius Strom <marius@alpha1.net>
To:        Phillip Salzman <phill@FreeBSD.ORG>
Cc:        Dave Wilson <davew@sai.co.za>, freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG, sendmail-questions@sendmail.org
Subject:   Re: Redelivering delivered mail
Message-ID:  <Pine.BSF.4.20.0008251031400.87042-100000@beaker.alpha1.net>
In-Reply-To: <Pine.BSF.4.21.0008250826110.31666-100000@vyrus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <marius@alpha1.net>
Professional Geek/Unix System Administrator
Alpha1 Internet <http://www.alpha1.net>;
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0008251031400.87042-100000>