Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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 06:02 PM. Reason: BCC

  2. #2
    Linux User infoshirish's Avatar
    Join Date
    May 2007
    Location
    Pune, India
    Posts
    397
    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

  3. #3
    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

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •