Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Sendmail question

Posted on 2003-02-25
Medium Priority
Last Modified: 2013-12-15
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 !

Question by:erase010

Accepted Solution

ianmate earned 300 total points
ID: 8024849
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

Expert Comment

ID: 9076674
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.

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

581 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