hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Security and Technology Tutorials : How-to - Get eMail Sent to Root.
Reply

Forum Jump

How-to - Get eMail Sent to Root.

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-21-2004, 04:37 AM
MjrGaelic MjrGaelic is offline
Junior Guru Wannabe
 
Join Date: Jan 2004
Location: Alberta, Canada
Posts: 76

How-to - Get eMail Sent to Root.


Every night your system does the cron.daily routine and emails you a good deal of information to root@localhost; namely log highlights etc. This shows whos been logging in, and whos be "trying" to log in.

This will send "all" email directed to root@localhost to your specified email address..

Usage: (you must be root for this)

1. cd /root
2. vi .forward

type the following into .forward
Quote:
root:youremail@yourdomain.com
3. chmod 755 .forward

All done.

Removal:

Simply remove the .forward file.

1. rm .forward

Regards,

Ryan


Last edited by MjrGaelic; 01-21-2004 at 05:24 AM.
Reply With Quote


Sponsored Links
  #2  
Old 01-21-2004, 09:08 PM
eBoundary eBoundary is offline
Web Hosting Master
 
Join Date: May 2003
Location: Philadelphia
Posts: 968
you may want to specify which MTA this is for, not all SMTP servers honour the .forward and even if they do there are different formats for these files.

<edit>signature removed</edit>


Last edited by choon; 02-17-2004 at 03:32 PM.
Reply With Quote
  #3  
Old 01-21-2004, 09:13 PM
Winkie Winkie is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: UK
Posts: 846
Agreed, you may also with to add in that you can set up similar redirects using /etc/aliases


I'll write a tutorial on exim 4 w/mysql support soon

<edit>signature removed</edit>


Last edited by choon; 02-17-2004 at 03:32 PM.
Reply With Quote
Sponsored Links
  #4  
Old 01-21-2004, 10:10 PM
MjrGaelic MjrGaelic is offline
Junior Guru Wannabe
 
Join Date: Jan 2004
Location: Alberta, Canada
Posts: 76
My appologies..

This works for using Sendmail as your MTA, I have not tested it with other MTAs.

Ryan

Reply With Quote
  #5  
Old 01-29-2004, 03:35 AM
Cirrostratus Cirrostratus is offline
Web Hosting Master
 
Join Date: Jul 2003
Location: Texas
Posts: 785
FreeBSD 4.x / 5.x root mail

For folks running FreeBSD + Sendmail or any other MTA which uses the mailerconfig file you can do the following to get your root mail.


% vi or ee /etc/mail/aliases

Edit the entry for

# root: me@my.domain

Replace it with your email address.

root: foo@barfoo.com

Then save the file and type
% newaliases

You will see a message about success rebuild of the aliases db and you will be good to go from there.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Microsoft Apologizes, Details Online Services Outage Web Hosting News 2014-06-30 10:29:39
Web Hosting Sales and Promos Roundup – March 22, 2013 Web Hosting News 2014-05-23 15:43:14
SSHD Rootkit in the Wild Blog 2013-02-22 16:44:08
Mozilla Updates CA Certificate Policy for Software Products Web Hosting News 2013-02-19 12:32:22
Users Report Gmail Issues, Problems with Google Drive, Chrome Access Web Hosting News 2012-12-10 16:48:40


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?