Email forwarding....

I'm using redhat 6.0 and need to setup an email account so that it forwards the email to another email address when a mail it....

I've edited the alias file in /etc but that does not seem to work as there is another file alias.db which needs to be edited aswell(Right???)

any ideas
djkdjkAsked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
After editing the /etc/aliases file you need to run newalias to get the data installed into the alias database
0
 
djkdjkAuthor Commented:
This is the error that I receive:

Updating the system alias file...
Couldn't open /usr/lib/aliases.text for input!
0
 
jlevieCommented:
That's interesting, okay try "sendmail -bi".

On systems running sendmail, newaliases is typically either a symbolic link to the sendmail executable (which knows it's supposed to execute with the "-bi" args because it was invoked as "newaliases"), or in some cases a shell script that runs "sendmail -bi". What does "man newaliases" say that it operates on (it should tell you in the text or in the "FILES" section)?
0
All Courses

From novice to tech pro — start learning today.