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

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

Linux Mail Conifg Virtural

I have set up a virtual mail server and need to know what else i can do to make sure that it is functioning the proper way.  I use Redhat Linux 4.0ES.   I currently have 2 business customers on the box.  I do the following to set up mail.

1.  Set up the DNS on my name servers  (I know that is correct) Pointed the domian to my name servers.


On the mail server itself

1.  I edit /etc/hosts  (add mail.customer.com and associate that with the IP I have assigned.)
2.  apply the ip address to the /etc/sysconfig/network-scripts directory (ifcfg-eth0:4) and bring the interface up.
3.  Edit /etc/mail/sendmail.mc  ( I add the Cwcustomer.com line) and compile;  make -C /etc/mail
4.  add mail.customer.com to /etc/mail/local-host-names
5.  add the usernames and passwords /usr/sbin/useradd -c "Name" name
6.  modify the users /use/sbin/usermod -s /bin/false

My issue is this.  How can i group the customers by company such that if two or more of the companies want to use    HR@company.com, for example, (use the username HR), they will be exclusive of one another?

Regards
0
marchopkins
Asked:
marchopkins
1 Solution
 
arrkerr1024Commented:
You'll never be able to have multiple accounts with the same name, but what you can do is create an account called hr-company1 and hr-company2 and have hr@company1 go to hr-company1, etc.  So the logins will be hr-company1 and hr-company2.

You do this by enabling FEATURE(`virtusertable')dnl in yoru sendmail.cf
then
makemap hash /etc/mail/virtusertable < sourcefile

If I could make a suggestion - if you are going to have more than 2 companies this is going to get out of hand, and confusing, really quickly.  I'd suggesting using qmail with vpopmail which has a really nice interface and is a lot easier to manage and scale - there are great step-by-step instructions at http://www.qmailrocks.org/.
0
 
marchopkinsAuthor Commented:
i'll check it out.
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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