Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

small sendmail question

Status
Not open for further replies.

peterve

IS-IT--Management
Mar 19, 2000
1,348
NL
Hi,

how can I configure my local RH7.2 Sendmail system so
- all mails to root@localhost are relayed to a remote smtp server, and sent to username@domain.com where username = another username...

thanks

Peter --------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------
 
Well, you could setup an alias for root, or just a forward file for root:

In /root/.forward

username@domain.com


I usually do this on all my remote machines, so all the mail for root forwards to one account. Bruce Garlock
bruceg@tiac.net
 
We do it with an /etc/alias file.

Just create a file in the /etc directory with the entry:

root:newemail@somewhere.com

Works great!
 
thanks ! --------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------
 
ok,
If I want to alias to say three users who exist in nis-maps as user1@domain.com user2@mydomain.com user3@mydomain.com and I want mails sent to group1@mydomain.com sent to all of them, how do I do it ??
Mind you, group1 is does not have a nis nor a local account. So, should I create one before that then ??
????????????????????????///
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top