Postfix, Mutt And No Root Mail?

Peter Garrett peter.garrett at optusnet.com.au
Sat Sep 1 13:11:55 UTC 2007


On Fri, 31 Aug 2007 22:32:46 -0700 (PDT)
Leonard Chatagnier <lenc5570 at sbcglobal.net> wrote:

> 
> > On Fri, Aug 31, 2007 at 06:54:16AM -0400, Hal
> > Burgiss wrote:
> > > 
> > > $ echo hello there |mail -s lchata 
> > 
> > Sorry brain fart #2, should be 
> > 
> > echo hello there | mail -s testing lchata 
> > 
> > (Need subject and recipient!!!) Sorry ....
> > 
> > -- 
> > Hal
> > 
> Sorry Hal, still no joy. Ran the corrected command
> line
> and even the postaliases and postfix reload but mutt
> gives this output:
> Mutt:(no mailbox) and below this entry
> var/spool/mail/lchata: No such file or directory
> (errno = 2)
> Googled for the /var/spool* stuff but got no hits.
> 

ls -l /var/spool/mail
lrwxrwxrwx 1 root root 7 2007-03-26 20:31 /var/spool/mail -> ../mail

Looks like /var/spool/mail  is a symlink to /var/mail  in Ubuntu . Does
yours look like the above ?

If not, try

sudo ln -s /var/mail  /var/spool/mail

Also check your /var/mail   :

 ls -ld /var/mail
drwxrwsr-x 2 root mail 4096 2007-09-01 22:59 /var/mail

It is set to setgid  "mail" group  ( notice the "s" in the output)

That would be 
sudo chown root:mail /var/mail 
sudo chmod g+rws /var/mail

And of course "others" should have read and execute only, as above.

Peter




More information about the ubuntu-users mailing list