Dear All On my server , the /var/spool/mail/root is getting very big in size . To free up more space, can you please let me know how can I solve my problem ? Thank you
On 25.9.2012 12:02, Hadi Motamedi wrote:> > Dear All > On my server , the /var/spool/mail/root is getting very big in size . To free up more space, can you please let me know how can I solve my problem ? > Thank you- grow the partition /var/spool/mail is on - delete old mails - forward mails instead of delivering locally (/etc/aliases) If you take the 3rd approach, please promise not to ask what to do if your personal mailbox is getting very big in size. Assuming that some of this mails could be error messages, fix whatever is causing mails to root, or you will have the same problem again. -- Kind Regards, Markus Falb
Root is probably locally receiving logwatch and other various email messages. Take a look at the manpage for mail. Become root, run the 'mail' command, and delete some of the old emails. Going forward, you could/should consider forwarding mail destined for root to some mailbox you check. ---~~.~~--- Mike // SilverTip257 // On Tue, Sep 25, 2012 at 6:02 AM, Hadi Motamedi <motamedi24 at hotmail.com> wrote:> > Dear All > On my server , the /var/spool/mail/root is getting very big in size . To free up more space, can you please let me know how can I solve my problem ? > Thank you > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
> Date: Tue, 25 Sep 2012 12:13:40 +0200 > From: h.reindl at thelounge.net > To: centos at centos.org > CC: motamedi24 at hotmail.com > Subject: Re: [CentOS] /var/spool/mail ? > > > > Am 25.09.2012 12:02, schrieb Hadi Motamedi: > > > > Dear All > > On my server , the /var/spool/mail/root is getting very big in size . To free up more space, can you please let me know how can I solve my problem ? > > Thank you > > these are system-mails (cronjobs, logwatch, smartd, mdadm.....) > you should read them from the very beginning of the setup! > > /etc/aliases: > root: your-mail-address at yourdomain.tld > > call the command "newaliases" > > call "postqueue -f" if postfix is used to deliver existing mails > for sendmail -> no idea, i am postfix-user since many years > ______________________ > > you can also delete the mails before change the config to > relay them in future and restart the MTA >Thank you very much for your help.