Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd September 2011, 21:35
GioMBG GioMBG is offline
Junior Member
 
Join Date: Dec 2009
Location: Rimini
Posts: 24
Thanks: 2
Thanked 1 Time in 1 Post
Default how to configure centos 6 + sendmail with multiple domain

Hi All,
I have a centos 6 + sendmail that go perfect on the unique domain set, it send and regularly receive without problem on this unique domain.
Now I have point to this machine a new domain, how I have to do to be able the machine to receive and send with this new domain?
thx
GioMBG
Reply With Quote
Sponsored Links
  #2  
Old 9th October 2011, 19:18
nbhadauria nbhadauria is offline
Member
 
Join Date: Aug 2010
Location: New Delhi, India
Posts: 79
Thanks: 1
Thanked 13 Times in 13 Posts
Send a message via Skype™ to nbhadauria
 
Default

Method 1

The first step is to make sure that the following feature is included in your sendmail.mc file prior to installing Sendmail:
FEATURE(`virtusertable', `dbm /etc/mail/virtusertable')dnl

This lets Sendmail know that you will be creating a virtual user table to allow support for multiple domains.

Once that is set up and Sendmail is installed, you can work with virtual hosting by using the file /etc/mail/virtusertable, which will look something like this:

tom@domain1.com tom
harry@domain2.com harry
tom@domain2.com tom2
@domain1.com root

The first argument above is the intended recipient as received by Sendmail, and the second argument is the target is for local delivery (or for forwarding to another Internet e-mail address). On mail servers that host mail for many domains, it might be a good idea to create a separate file for each domain and concatenate them with a simple script.

After creating the necessary /etc/mail/virtusertable, there's one more step: A database must be created. Sendmail will not load the plain text file in this case but will look for virtusertable.db. You can create this file with the following command (run as root):

makemap dbm /etc/mail/virtusertable < /etc/mail/virtusertable

Method 2:

Use Webmin
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
Postfix not forwarding for some domains flappy Installation/Configuration 3 21st November 2010 17:57
Multiple Email Routing for the same domain alzuin Installation/Configuration 1 5th November 2010 14:37
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51


All times are GMT +2. The time now is 01:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.