Link to home
Start Free TrialLog in
Avatar of acrocat
acrocat

asked on

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

I am running RedHat, Sendmail and have the following setup:

users:
support@me.com forwards to joe@me.com and sally@me.com

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 support@me.com so that support can log in and view the email.  When I add forwarding, the mail is moved to joe@me.com and sally@me.com and is removed from support@me.com.

How can I set this up so that the email stays on support@me.com>
Avatar of arrkerr1024
arrkerr1024
Flag of United States of America image

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.
Avatar of Hanno P.S.
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
Avatar of acrocat
acrocat

ASKER

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

/etc/mail/virtualusertable has things like:
joe@me.com joe_at_me_com
admin@me.com admin_at_me_com
sally@me.com sally_at_me_com

How should I proceed?
ASKER CERTIFIED SOLUTION
Avatar of arrkerr1024
arrkerr1024
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial