Postfix, Mutt And No Root Mail?

Peter Garrett peter.garrett at optusnet.com.au
Sat Sep 1 15:07:22 UTC 2007


On Sat, Sep 01, 2007 at 07:53:46AM -0700, Leonard Chatagnier wrote:
> 
> >
> > 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
> > 
> ls -l /var/spool/mail gives me the same but the actual
> /var/spool/mail dir only shows the dir, lchata, with
> nothing in it.
> lchata at ubuntu:/var/spool/mail$ ls -l /var/spool/mail
> lrwxrwxrwx 1 root root 7 2007-06-16 16:52
> /var/spool/mail -> ../mail
> lchata at ubuntu:/var/spool/mail$
> Link is not broken.
> 
> > Looks like /var/spool/mail  is a symlink to
> > /var/mail  in Ubuntu . Does
> > yours look like the above ?
> > 
> Exactly as said 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)
> > 
> Same here:
> lchata at ubuntu:/var/spool/mail$ ls -ld /var/mail
> drwxrwsr-x 3 root mail 4096 2007-07-06 12:07 /var/mail
> lchata at ubuntu:/var/spool/mail$
> 
> > 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
> > 
> seems I'm OK on this but does this relate to the Mutt
> errors or is that another issue?
> > 

/var/mail/ichata should be a *file* , not a directory.

Try removing it or moving it out of the way.

For example

sudo mv /var/mail/ichata /var/mail/ichata.bak

Then create a file:

sudo touch /var/mail/ichata
sudo chown ichata:mail /var/mail/ichata
sudo chmod 600 /var/mail/ichata

That should fix at least the problem with it being a directory - wwhich it shouldn't be.

Peter




More information about the ubuntu-users mailing list