Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Sendmail: forward sent messages

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-08-2007   #1 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 2
Sendmail: forward sent messages

I was wondering if there was a way to forward a users sent mail to another user or I was also thinking I could have sendmail automatically BCC an email address whenever that user sends an email. I am using sendmail 8.12.8. Any help would be greatly appreciated.

Thanks.

Last edited by shmigga; 08-08-2007 at 07:02 PM.. Reason: BCC
shmigga is offline  


Reply With Quote
Old 08-09-2007   #2 (permalink)
Linux User
 
infoshirish's Avatar
 
Join Date: May 2007
Location: Pune, India
Posts: 397
Send a message via Yahoo to infoshirish
Hey,
To forward all the email arriving at your account, simply create a file called .forward in your home directory containing the address (or comma-seperated list of addresses) to which you want the mail forwarded. So if you want all your mail forwarded to another address user@domain, .forward should contain user@domain

Seconly if you Want one email to go to several different users
Then Alias to "Email Address" of for example friends "emailusername1,emailusername2,someotheruser@hotma il.com". Now if you email the friends alias, the email will get sent to those three addresses addresses.
These entries will also appear in /etc/aliases like friends: emailusername1,emailusername2,someotheruser@domain name.com.

For Bcc check the man pages and search for bcc option you will get that.
__________________
Regards,

who |grep -i blonde |
date; cd~; unzip; touch;
strip; finger; mount; gasp;
yes; uptime; umount;
sleep

Newbie clicks
http://www.linuxforums.org/forum/lin...ead-first.html
infoshirish is offline   Reply With Quote
Old 08-09-2007   #3 (permalink)
Just Joined!
 
Join Date: Aug 2007
Posts: 2
Thanks for the reply. Im not looking to forward mail messages sent to me. The alias thing sounds good but is not what I am looking to do. I am trying to make so whenever one user sends out an email it automatically sends that message to whoever they sent it to and another email address. Or to have it automatically BCC another email. thanks
shmigga is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:31 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2