[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 969
  • Last Modified:

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>
0
acrocat
Asked:
acrocat
  • 2
1 Solution
 
arrkerr1024Commented:
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.
0
 
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
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
0
 
acrocatAuthor Commented:
/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?
0
 
arrkerr1024Commented:
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@me.com support_at_me_com

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now