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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bounced email fwding???

Status
Not open for further replies.

arisp

Programmer
Mar 6, 2002
1
GB
Hi there... I hava a Linux server running sendmail, which i am using to send out emails... Sometimes addresses are incorrect, so they bounce back.. Problem is that i am interested in which addresses bounced... So i would like to have failed and returned emails coming to my mailbox, which is on another, windows machine... How can I do that.. All from fields in my emails sent, have my email address, nevertheless, returned emails come back to Linux box, and are listed in /var/spool/mail/root... Can anybody help me in making all that returned mail come back to my email address, (or get sendmail to forward all such emails for that matter....). I'd be grateful for a prompt reply....
Thanks in advance,

Aris
 
Here is what I did:

edit the /etc/aliases file...

You should see an entry near the bottom that is commented out...

#root: someuser@someaddr

You want to uncomment it (take out the #) and replace the username/email that is their with the email address/username you want ALL of roots email to go.

After your done save the file and type: newaliases at the command prompt.

The other way is to create a file in the home directory of root called ".forward" in that file type the email address you want the email forwarded to.

Either way works it is just a matter of preference.

Bill

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top