HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   mail from root@server1 (http://www.howtoforge.com/forums/showthread.php?t=61092)

pawan 22nd March 2013 20:02

mail from root@server1
 
Mail Log:
What is this log is about, I don't have a mailbox root also I couldn't find a way of adding such mailbox.

My Server name is replaced by example.com


Code:

Mar 23 00:09:02 server1 postfix/qmgr[2615]: 9EC442100751: from=<root@server1.mywebsolutions.co.in>, size=1444, nrcpt=1 (queue active)
Mar 23 00:09:02 server1 amavis[12341]: (12341-08) Passed CLEAN, DKIM_ALWAYS <root@server1.mywebsolutions.co.in> -> <root@server1.mywebsolutions.co.in>, Message-ID: <20130322183902.07038210106B@server1.mywebsolutions.co.in>, mail_id: Jh1OpovA3-sW, Hits: -1.901, size: 907, queued_as: 9EC442100751, 649 ms
Mar 23 00:09:02 server1 postfix/smtp[17611]: 07038210106B: to=<root@server1.mywebsolutions.co.in>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.93, delays=0.27/0.01/0/0.65, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9EC442100751)
Mar 23 00:09:02 server1 postfix/qmgr[2615]: 07038210106B: removed
Mar 23 00:09:02 server1 postfix/local[17615]: 9EC442100751: to=<root@server1.mywebsolutions.co.in>, relay=local, delay=0.22, delays=0.14/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 23 00:09:02 server1 postfix/qmgr[2615]: 9EC442100751: removed


hklcf 22nd March 2013 20:16

login ssh with your root account
# mail

pawan 24th March 2013 00:06

I am not using SSH. is there no other way to check mails for root. for example forwarding these mails to another mail ID which can be accessed via webmail.

pititis 24th March 2013 00:21

Hi,

You can edit /etc/aliases and add the alias:

Code:

root: email@domain.com
and run the command
Code:

newaliases
Cheers

Hairy 24th March 2013 00:23

Quote:

Originally Posted by pawan (Post 294606)
I am not using SSH. is there no other way to check mails for root. for example forwarding these mails to another mail ID which can be accessed via webmail.

Yes. If you are sitting in front of the computer, go to the command line, log in as root and type:
Code:

mail
I wouldn't want anyone being able to log into my server via a webmail application as root.

pawan 25th March 2013 22:57

Thanks Pititis & Hairy for your support.
Honestly I found the Pitis solution simpler.
I tried mail in the terminal, but I am getting the message that mail is not installed, do you want to install it.
Pititis
The alias to existing mail id is working fine, but how can I pull the existing mails in root to the aliased ID.

pititis 26th March 2013 00:31

Try this, is a mbox to email script:

https://gist.github.com/wojdyr/1176398

Hairy 26th March 2013 01:30

Quote:

Originally Posted by pawan (Post 294701)
Thanks Pititis & Hairy for your support.
Honestly I found the Pitis solution simpler.
I tried mail in the terminal, but I am getting the message that mail is not installed, do you want to install it.
Pititis
The alias to existing mail id is working fine, but how can I pull the existing mails in root to the aliased ID.

Just install it. It's a good program to have installed because you can check root's mail simply by typing
Code:

mail
That seems simpler than editing config files to me. That way, it also keeps root's email separate from your other email accounts.

To install it type:
Code:

yum install mail
or maybe you use apt-get install on your system. I don't know what your setup is.


All times are GMT +2. The time now is 14:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.