Results 1 to 3 of 3

Thread: How do I fix this? (system mail)

  1. #1
    Join Date
    Jan 2007
    Beans
    601
    Distro
    Ubuntu

    How do I fix this? (system mail)

    I have rkhunter installed and it writes to /var/spool/mail/mail but when I type "mail" into the terminal it says there is no mail for me. I know that /var/spool/mail/mail has content in it because the file isn't empty.

    Code:
    -rw------- 1 mail mail 745 2008-11-22 07:49 /var/spool/mail/mail
    In a previous install of Ubuntu I was able to read mail simply by typing in "mail" in the terminal.

    I was thinking I need to add myself to the mail group in order to read/write to /var/spool/mail/mail but System > Administration > Users and Groups has no mail group in it, though there is a mail group in /etc/group.

    How do I fix this?
    1) Add myself to the mail group? If so, how?
    2) sudo chown me:mail /var/spool/mail/mail && sudo chmod 660 /var/spool/mail/mail ?
    3) reconfigure mail to send to me (/var/spool/mail/me) instead of mail? If so, how?

  2. #2
    Join Date
    Jan 2007
    Beans
    45
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I fix this? (system mail)

    Have you set up your smtp server correctly. Rkhunter does not write directly to your mail spool file. By default, exim4 is installed along with rkhunter. You can check this by typing
    Code:
    aptitude show exim4
    If you are using exim4, just do a quick google search for configuration instructions. You can also use a different SMTP server altogether (i.e. postfix or sendmail).
    --
    Steven (stebalien.com)

  3. #3
    Join Date
    Jan 2007
    Beans
    601
    Distro
    Ubuntu

    Re: How do I fix this? (system mail)

    Quote Originally Posted by Stebalien View Post
    Have you set up your smtp server correctly. Rkhunter does not write directly to your mail spool file. By default, exim4 is installed along with rkhunter. You can check this by typing
    Code:
    aptitude show exim4
    If you are using exim4, just do a quick google search for configuration instructions. You can also use a different SMTP server altogether (i.e. postfix or sendmail).
    I've never installed an SMTP server on this machine (had the machine for 3 years) and this problem didn't exist in the previous install of Ubuntu 8.10. In the previous install, there was no mail (username=mail) file in /var/spool/mail, but there was a me (my username) file in /var/spool/mail. exim4 is installed though.
    Last edited by ardchoille42; November 23rd, 2008 at 02:10 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •