Unix Technical Forum

/var/mail -vs- /var/spool/mail

This is a discussion on /var/mail -vs- /var/spool/mail within the Linux Operating System forums, part of the Unix Operating Systems category; --> Would be better to have: lrwxrwxrwx 1 root root 10 Apr 19 12:18 /var/mail -> spool/mail drwxrwxrwt 2 root ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 08:27 AM
phil-news-nospam@ipal.net
 
Posts: n/a
Default /var/mail -vs- /var/spool/mail

Would be better to have:

lrwxrwxrwx 1 root root 10 Apr 19 12:18 /var/mail -> spool/mail
drwxrwxrwt 2 root root 72 Apr 19 12:18 /var/spool/mail

or:

drwxrwxrwt 2 root root 72 Apr 19 12:18 /var/mail
lrwxrwxrwx 1 root root 10 Apr 19 12:18 /var/spool/mail -> ../mail

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 08:27 AM
Davide Bianchi
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net> wrote:
> Would be better to have:
> lrwxrwxrwx 1 root root 10 Apr 19 12:18 /var/mail -> spool/mail
> drwxrwxrwt 2 root root 72 Apr 19 12:18 /var/spool/mail


Make /var/spool/mail a separate partition and you can also set userquota
on the various inboxes.

Davide

--
Windows 95 is not a virus. Viruses actually do something.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 08:27 AM
phil-news-nospam@ipal.net
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

On Tue, 19 Apr 2005 19:49:03 +0200 Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
| On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net> wrote:
|> Would be better to have:
|> lrwxrwxrwx 1 root root 10 Apr 19 12:18 /var/mail -> spool/mail
|> drwxrwxrwt 2 root root 72 Apr 19 12:18 /var/spool/mail
|
| Make /var/spool/mail a separate partition and you can also set userquota
| on the various inboxes.

I was going to do the separate partition, though for using the noatime
option on all the other paritions, but not for mail. But while I am
working on this, the question in my mind is whether that partition should
be mounted at /var/mail or at /var/spool/mail (and have the other point
to where mounted). I suppose mounting with --bind at both is an option
as well.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 08:27 AM
Davide Bianchi
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net> wrote:
> working on this, the question in my mind is whether that partition should
> be mounted at /var/mail or at /var/spool/mail (and have the other point


Well, this is more a matter of your preferences, I prefer to have it
under /var/spool/mail and have /var/mail as a symlink.

Davide

--
"I'm not lean and mean, I'm surly and anorexic".
-- Chris "Saundo" Saunderson on alt.sysadmin.recovery
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 08:27 AM
phil-news-nospam@ipal.net
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

On Tue, 19 Apr 2005 22:41:35 +0200 Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
| On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net> wrote:
|> working on this, the question in my mind is whether that partition should
|> be mounted at /var/mail or at /var/spool/mail (and have the other point
|
| Well, this is more a matter of your preferences, I prefer to have it
| under /var/spool/mail and have /var/mail as a symlink.

I'm looking for any reasoning one way or the other. Could you describe
what you feel might be wrong if you had a system with the the opposite
way from your preference?

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 08:27 AM
Bill Marcum
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

On 19 Apr 2005 18:13:37 GMT, phil-news-nospam@ipal.net
<phil-news-nospam@ipal.net> wrote:
> On Tue, 19 Apr 2005 19:49:03 +0200 Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
>| On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net> wrote:
>|> Would be better to have:
>|> lrwxrwxrwx 1 root root 10 Apr 19 12:18 /var/mail -> spool/mail
>|> drwxrwxrwt 2 root root 72 Apr 19 12:18 /var/spool/mail
>|
>| Make /var/spool/mail a separate partition and you can also set userquota
>| on the various inboxes.
>
> I was going to do the separate partition, though for using the noatime
> option on all the other paritions, but not for mail. But while I am
> working on this, the question in my mind is whether that partition should
> be mounted at /var/mail or at /var/spool/mail (and have the other point
> to where mounted). I suppose mounting with --bind at both is an option
> as well.
>

I don't think there would be much difference between mounting a
partition at /var/mail or /var/spool/mail. There is a third option,
mounting a partition at /var/spool. Might be useful if you run a news
server.


--
"I deleted a file from my PC last week and I have just realized that I
need it. If I turn my system clock back two weeks will I have my file
back again?"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 08:27 AM
Davide Bianchi
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net> wrote:
> I'm looking for any reasoning one way or the other. Could you describe
> what you feel might be wrong


Nothing, the systems I was working on in the beginning were this way
and I kept them this way.

Davide

--
Windows Tip of the Day:
Add DEVICE=FNGRCROS.SYS to your CONFIG.SYS file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-18-2008, 08:28 AM
phil-news-nospam@ipal.net
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

On Tue, 19 Apr 2005 17:41:59 -0400 Bill Marcum <bmarcum@iglou.com.urgent> wrote:
| On 19 Apr 2005 18:13:37 GMT, phil-news-nospam@ipal.net
| <phil-news-nospam@ipal.net> wrote:
|> On Tue, 19 Apr 2005 19:49:03 +0200 Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
|>| On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net> wrote:
|>|> Would be better to have:
|>|> lrwxrwxrwx 1 root root 10 Apr 19 12:18 /var/mail -> spool/mail
|>|> drwxrwxrwt 2 root root 72 Apr 19 12:18 /var/spool/mail
|>|
|>| Make /var/spool/mail a separate partition and you can also set userquota
|>| on the various inboxes.
|>
|> I was going to do the separate partition, though for using the noatime
|> option on all the other paritions, but not for mail. But while I am
|> working on this, the question in my mind is whether that partition should
|> be mounted at /var/mail or at /var/spool/mail (and have the other point
|> to where mounted). I suppose mounting with --bind at both is an option
|> as well.
|>
| I don't think there would be much difference between mounting a
| partition at /var/mail or /var/spool/mail. There is a third option,
| mounting a partition at /var/spool. Might be useful if you run a news
| server.

True. But then, news might warrant it's own private partition. I have
run those before. RAID storage is helpful.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-18-2008, 08:28 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail


<phil-news-nospam@ipal.net> wrote in message
news:d43sia020g5@news4.newsguy.com...
> On Tue, 19 Apr 2005 22:41:35 +0200 Davide Bianchi
> <davideyeahsure@onlyforfun.net> wrote:
> | On 2005-04-19, phil-news-nospam@ipal.net <phil-news-nospam@ipal.net>
> wrote:
> |> working on this, the question in my mind is whether that partition
> should
> |> be mounted at /var/mail or at /var/spool/mail (and have the other point
> |
> | Well, this is more a matter of your preferences, I prefer to have it
> | under /var/spool/mail and have /var/mail as a symlink.
>
> I'm looking for any reasoning one way or the other. Could you describe
> what you feel might be wrong if you had a system with the the opposite
> way from your preference?


If you run other tools that have lots of little files that need backup less
often, such as a news server or mailing list or even some databases,
/var/spool has been a historically consistent place to put them.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-18-2008, 08:28 AM
Jeff Makey
 
Posts: n/a
Default Re: /var/mail -vs- /var/spool/mail

It isn't important which of /var/mail and /var/spool/mail is the
real directory and which is the symbolic link pointing to the other.
I recommend leaving it set up however your distribution does it in a
standard installation so package updates don't get confused. If you
really want to optimize, however, you could survey the tools you use
that access the mail spool directly (/bin/mail, pine, IMAP server,
etc.) and make the most popular path the real directory.

:: Jeff Makey
jeff@sdsc.edu

Department of Tautological Pleonasms and Superfluous Redundancies Department
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com