[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem with /var/mail and procmail



On Mon, Sep 27, 2004 at 12:00:38PM +0200, Francisco Castillo wrote:
> Yesterday i decide to move /var/mail folder to /mnt/var/mail where i has
> another partition but this has caused to stop working my mail system.
> 
> In order to do this i do
> 
> cp /var/mail/* /mnt/var/mail

this is the cause of your problems.  plain "cp" will copy the files, but they
will be owned by the current user (root, most likely), and permissions will be
set according to the current umask.

try "cp -a" instead.  this copies the files AND preserves ownership and
permissions.  "-a" will also recurse subdirectories.

e.g.

	cp -a /var/mail /mnt/var

NOTE: stop postfix and your POP/IMAP daemons before copying and restart them
afterwards.  you don't want new mail to arrive or old mail to be deleted while
the copy is in progress.  in fact, you don't want either of those things
to happen until you're sure that the changes are working without problem.

craig
-- 
craig sanders <cas@taz.net.au>

The next time you vote, remember that "Regime change begins at home"



Reply to: