LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-02-2006, 11:33 PM   #1
tradnbillies
LQ Newbie
 
Registered: Feb 2004
Posts: 23

Rep: Reputation: 15
forward users mail to email address


i have set up roots email to be forwarded to my username on my FC4 box using the /etc/aliases file. although I'm not even sure if that works. Should that be working as soon as mail enters root's box, or is it a job that sends it every so many minutes?
anyway, my real question is i want to send email that is in my linux inbox to a hotmail account. How can i achieve this?

Thanks for any help!
-Dave
 
Old 01-03-2006, 02:41 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
/etc/aliases is nothing more than just a file (database) with e-mail aliases. In order for these mail aliases
to be actually used, you of course need a mail server program.
Check if "sendmail", "postfix" or anything alike is installed and running on your system.

Typically, you can do this by running:
/sbin/chkconfig --list
and checking for the programs above (they should have got an "on" for levels 3-4-5 at least.
"/sbin/service <service_name> status" may also work (for valid service names, do "ls /etc/init.d"

To try your Linux to hotmail alias, you could also just set it up in /etc/aliases and try it out.
/var/log/maillog or something like that may give you a clue on what's going on/what's going wrong.
 
Old 01-03-2006, 06:24 PM   #3
tradnbillies
LQ Newbie
 
Registered: Feb 2004
Posts: 23

Original Poster
Rep: Reputation: 15
sendmail is up and running. I know it works because I can send email from the command line. If i put an entry in the /etc/aliases file like:

user: me@hotmail.com

that should work? do i need to make the database or anything? thanks.

-Dave
 
Old 01-04-2006, 01:33 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Yes, you should update your aliases database after having made the changes to the "aliases" (plain text) file.
Use the "newaliases" command for that. It'll recreate/update a binary file called "aliases.db".
See also "man aliases".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up FedCore3 4 WWW/Email Forward for Mass Users Thom_Redhat Linux - Newbie 2 07-20-2005 02:47 AM
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 07:16 PM
Our mail server is being flooded with email address to non-existent recipients. gaslq Linux - Networking 5 12-14-2004 08:29 PM
send mail to external email address hamish Linux - Networking 8 12-10-2004 09:17 AM
cant see .forward file in home directory >> mail forward/copy steve_babbage Linux - Newbie 0 03-02-2004 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration