Can i move Sendmail store folder to Home partition?

S Mohan smohan at VSNL.COM
Thu Aug 22 13:38:19 IST 2002


Are you looking at adding a drive. How else would you add a partition. Add a
drive, partition the drive using fdisk, make a ext3 file system on the
device. Create a directory called /var/spool1. Copy contents of /var/spool
to /var/spool1. Rename /var/spool as /var/spool.old. Recreate /var/spool
directory. Mount the new device say hdc1 as /var/spool using mount -t ext3
/dev/hdc1 /var/spool. Make this entry also in fstab so that it gets mounted
at every boot.

I guess you should be home now. During this whole trial, your machine must
be off the production network. I'd recommend you be cautious and make sure
back ups are available.

Good Luck.
Mohan

-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
Behalf Of Tan Lian Leong
Sent: 22 August 2002 16:09
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Can i move Sendmail store folder to Home partition?


How can i create new /var/spool/ filesystem (or partition) on the existing
Server? Thanks.


----- Original Message -----
From: "Matt Kettler" <mkettler at EVI-INC.COM>
To: <MAILSCANNER at JISCMAIL.AC.UK>
Sent: Thursday, August 22, 2002 12:30 PM
Subject: Re: Can i move Sendmail store folder to Home partition?


> making /var/spool/mail a link is a doable option, but probably
sub-optimal.
> Offhand it makes me a bit nervous as far as inheriting mount permissions
of
> the /home partition, and being re-linkable, but I'm a bit of a paranoid
> type and haven't had the chance to think about it deeply.
>
> If possible I'd make /var/spool/ its own filesystem (and partition) and
> quota that. If your fstab supports it, it would also be a good chance to
> mount it noexec, nosuid,nodev. (minor security bonus since nothings likely
> to exec there anyway, but it's not like anything ever needs to be
> executable or a special device there so why allow it?)
>
>
> At 12:19 PM 8/22/2002 +0800, Tan Lian Leong wrote:
> >
> >Thanks for reply. I plan to use imap for my mail server. So I would like
> >to enable quota on user mailbox. Do you think i should link the
> >/var/spool/mail to home and enable quota in /home file system or just
> >enable quota in /var file system is the better method? Do you have any
> >other good suggestion?
> >----- Original Message -----
> >From: <mailto:Matthew_doherty at DATAWATCH.COM>Matt Doherty
> >To: <mailto:MAILSCANNER at JISCMAIL.AC.UK>MAILSCANNER at JISCMAIL.AC.UK
> >Sent: Tuesday, August 20, 2002 9:02 PM
> >Subject: Re: Can i move Sendmail store folder to Home partition?
> >
> >make a link ,
> >mkdir /home/mail
> >cd /var/spool
> >ln -s /home/mail mail
> >
> >
> >do a ' man ln '
>



More information about the MailScanner mailing list