How to configure sendmail user to forward to itself and another user

Posted on 2007-10-10
Last Modified: 2013-12-18
I am running RedHat, Sendmail and have the following setup:

users: forwards to and

All three of thse have mailboxes that they can login to and view their mail.

the problem is that i want the emails to stay on so that support can log in and view the email.  When I add forwarding, the mail is moved to and and is removed from

How can I set this up so that the email stays on>
Question by:acrocat
    LVL 14

    Expert Comment

    Do you have the aliases set up in /etc/aliases?  If so, just add the user to the list of forwards, like this:
    support:    joe,sally,support
    then run "newaliases"

    It only runs through the aliases file once, so you won't get stuck in a loop.
    LVL 16

    Expert Comment

    by:Hanno Schröder
    It sounds you have a .forward in support's HOME directory.
    If you enter (logged in as "support", using bash or ksh)
      # echo "joe,sally,\support" > ~/.forward
    you will get incoming emails copied  to all three users' mailboxes

    Author Comment

    /etc/aliases has stuff like:
    ## ----- Begin HSPC generated text. Do not edit! -----
    admin_at_me_com: /var/spool/vmail/
    joe_at_me_com: /var/spool/vmail/
    sally_at_me_com: /var/spool/vmail/

    /etc/mail/virtualusertable has things like: joe_at_me_com admin_at_me_com sally_at_me_com

    How should I proceed?
    LVL 14

    Accepted Solution

    Ahhh, you're using a control panel.  Can you not do this through the control panel?

    If not, do this:
    in /etc/mail/virtualusertable you should see support_at_me_com

    and then in /etc/mail/aliases you should see:
    support_at_me_com: /var/spool/vmail/, /var/spool/vmail/
    just add /var/spool/vmail/ to the end (comma-separated).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This short article will present "How to import ICS Calendar onto Office 365 Calendar". I was searching for free (or not free) tools to convert ICS to CSV without success. The only tools I found & working well were online tools...this was too hard to…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    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.:
    The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

    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

    7 Experts available now in Live!

    Get 1:1 Help Now