Howto get user.root's mail ?

doncipo

Joined
Jun 3, 2010
Messages
18
Likes
0
Points
0
#1
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?
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#2
Hi doncipo,

You can run as root:

cat /var/spool/mail/root

or just

'mail' where you can find help with the ? key
 

doncipo

Joined
Jun 3, 2010
Messages
18
Likes
0
Points
0
#3
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.
 

trymes

Joined
Aug 19, 2009
Messages
228
Likes
0
Points
0
#4
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
 

dicko

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

doncipo

Joined
Jun 3, 2010
Messages
18
Likes
0
Points
0
#6
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.
 

bugbeta

Joined
Dec 29, 2008
Messages
15
Likes
0
Points
0
#7
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.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top