Sendmail question

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

Is it possible to use the same login ID if sales@abc.com and sales@xyz.com are created ?
If yes, how can I do ?

Thanks you very much !


erase010Asked:
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.

ianmateCommented:
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 sales@abc.com or sales@xyz.com 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/sendmail.cf

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

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

@xyz.com       %1@abc.com

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

sales@xyz.com       sales@abc.com

then do

cd /etc
makemap hash virtusertable < virtusertable
0

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
CleanupPingCommented:
erase010:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
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
Linux

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.