Advertisement

04.09.2008 at 01:45PM PDT, ID: 23309708
[x]
Attachment Details

Multiple Domain Email hosting with Sendmail

Asked by henage in SendMail Email Server

Tags: Sendmail, Sendmail

I had Sendmail working in the past with one domain on my dedicated server, all emails were being forwarded correctly. When I've tried to add a second domain, the first domain's email forwards still works, however, the second domain's email forwarding does not work.  I actually opened this questioned up earlier, and was suggested to add my new domain to the virtuser-domain file.  I've included all the steps I have done to try to add an extra domain.  Let me know if there is any other information that might be of use.  

I've located virtusertable and added the line (it already contained email forwarding for echoboost.com):
@superiordesign.com      user@example.com

*Note - I've put in the real email in place of user@example.com, I just don't want it to scraped and spammed.

I've ran the code in putty:
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

*Note - I've checked and confirmed that the file virtusertable.db has been updated.

And I have even tried restarting sendmail in putty:
service sendmail restart

I've created the virtuser-domain put in the following lines:

  superiordesign.com
  mail.superiordesign.com

I added both because I wasn't sure which one to add, but I've tried both separately as well. I then and added the lines of code to the sendmail.mc:

  dnl Use the virtusertable for mail routing
  FEATURE(`virtusertable')
  dnl Load $={VirtHost} from a file
  VIRTUSER_DOMAIN_FILE(`/etc/mail/virtuser-domains')
  dnl Interpret the values in $={VirtHost} as domain names
  FEATURE(`virtuser_entire_domain')

I compiled the sendmail.mc and restarted sendmail in putty:

  m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.mc
  service sendmail restart

I've even done some testing in putty:
  sendmail -bt
  > /map virtuser @superiordesign.com
  # map_lookup: virtuser (@superiordesign.com) returns henage@gmail.com (0)
  > $={VirtHost}
  # mail.superiordesign.com
  # superiordesgin.com
  >$=w
  # localhost.localdomain
  # localhost
  # echoboost.com
  # echoboost
  # [127.0.0.1]
  # echoboost.theplanet.host

My DNS configuration for echoboost.com and superiordesign.com are as follows:

Echoboost:
  echoboost.com.           IN MX    10 mail
  mail                              IN A     209.62.77.18

SuperiorDesign:
  superiordesign.com.          IN MX    10 mail
  mail                                    IN A     209.62.77.20
Start Free Trial
[+][-]04.11.2008 at 06:11PM PDT, ID: 21339400

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SendMail Email Server
Tags: Sendmail, Sendmail
Sign Up Now!
Solution Provided By: PsiCop
Participating Experts: 1
Solution Grade: B
 
 
[+][-]04.11.2008 at 06:43PM PDT, ID: 21339469

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 08:14PM PDT, ID: 21339686

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 08:15PM PDT, ID: 21339687

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628