At 12:44 3/6/2002 -0800, diyanat wrote:
>is there any way i can clear and compress the logs or mails , i think i can
>use logrotate , but i got to figure out how it works , meanwhile ill dig the
>manuals and find out untill someone gives me a tip or two

Edit /etc/logrotate.conf and uncomment the "compress" setting.

>I also want to change the mail queue and spool from  /var  to other
>partition ,

One way to do this is to make a soft link from /var/spool/mail to the new 
partition:

  - Shut down the SMTP server: service sendmail stop

  - Shut down the POP3 server: service xinetd stop (this will also shutdown 
ftp and any other service that depends on xinetd)

  - Copy the mail files: cd /var/spool/mail ; cp -p * /new/location/

  - Make a soft link to the new location: cd .. ; ln -s mail /new/location

Now when you restart xinetd and sendmail, the mail should spool to the new 
location. You need to make sure that the permissions and ownership of the 
new directory match those on /var/spool/mail.

Tony
-- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05        HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to