Sendmail question

I have Redhat 8 with sendmail installed
If I havetwo domain (, was defined in /etc/mail/local-host-names
Les's say if I want to create two email accounts, ID--sales, PSW--123) ID--sales, PSW--12345)

Is it possible to use the same login ID if and are created ?
If yes, how can I do ?

Thanks you very much !

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If I understand you correctly you have a user called "sales" and you want them to have just one login account - but email directed to either or should end up in that one account.

In which case user /etc/virtusertable (you may want to check the virtusertable feature is enabled - do

grep virtusertable /etc/

to make sure. If you get no output from that command then get back to me.)

Lets say is the main domain and is an "alias" domain for all users then edit /etc/virtusertable and add

If this aliasing should only be done for specific users, e.g. sales, then make it

then do

cd /etc
makemap hash virtusertable < virtusertable

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.