Sendmail auto forwarding to many addresses

Posted on 2008-11-14
Last Modified: 2012-05-05
How can I setup sendmail so it will auto forward mail from one address to another or a number of addresses, but still keep the original copy in the users inbox?

Thanks for any help.
Question by:dr34m3rs
    LVL 6

    Accepted Solution


    You can do this in the aliases file.
    Little example :
    adding the below line will forward all mail to user1@hostname to user1 his mailbox, user2 his mailbox and to the external email

    user1: user1, user2,

    You can add as many aliases as you want.

    Hope this helps
    LVL 15

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now