Howto get user.root's mail ?

Discussion in 'General' started by doncipo, Oct 4, 2010.

  1. doncipo

    Joined:
    Jun 3, 2010
    Messages:
    18
    Likes Received:
    0
    Hi all,

    I'm using Elastix 1.6 also as an email server. All is Ok but I can't figure out how to get root account's mail. I see it's already over quota. Anybody can help?
     
  2. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    Hi doncipo,

    You can run as root:

    cat /var/spool/mail/root

    or just

    'mail' where you can find help with the ? key
     
  3. doncipo

    Joined:
    Jun 3, 2010
    Messages:
    18
    Likes Received:
    0
    Thank you for the reply but it doesn't work. I have already tried what you sugested:

    [root@mail /]# cat /var/spool/mail/root
    cat: /var/spool/mail/root: No such file or directory

    [root@mail /]# mail
    No mail for root

    The fact is the user.root account in an account built in cyrus-imap database and I have no idea on how to access it to get root's mail. I can already see it is over quota by now using the "quota" command as user cyrus.

    [root@mail /]# su cyrus
    bash-3.2$ /usr/lib/cyrus-imapd/quota
    Quota % Used Used Root
    ...
    10000 0 57 user/faxmaster
    ...
    10000 100 10075 user/root
    ...

    Same issue for user faxmaster.
     
  4. trymes

    Joined:
    Aug 19, 2009
    Messages:
    228
    Likes Received:
    0
    Have you tried accessing the mail using an IMAP client pointed at the elastix server? Use root as the username and the root PW as the password?

    Also, I would recommend that you edit /etc/aliases and point mail directed to root at another account so you get it with your normal e-mail.

    Tom
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    The last line (normally) in /etc/aliases can be uncommented and used to redirect root's mail to an email alias.
     
  6. doncipo

    Joined:
    Jun 3, 2010
    Messages:
    18
    Likes Received:
    0
    Thanks everybody for replying ! Actually it is a little bit more complicated than that. After further searching and reading over cyrus-imapd implementation I hat to manually edit the file /etc/postfix/virtual then add redirection to a real mail account for all root's and faxmaster's mail. I can now receive cron, logwatch and Hylafax log's output in my mailbox daily.
     
  7. bugbeta

    Joined:
    Dec 29, 2008
    Messages:
    15
    Likes Received:
    0
    in fact ,you should only modify /etc/postfix/main.cf , just comment out this line "mailbox_transport=cyrus",then "postfix reload". now ,you can have a test "echo aaa|mail root",and root can receive a email.
     

Share This Page