[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

Setting up mailertables

I am trying to set up mailertables with only some luck.

What I have is a host on my DMZ which will receive all mail for 2 domains and then redirect the mail internaly to the correct mailserver based upon the original domain the mail was sent to.

I set up a mailertable file like this:
domain1.com smtp:[host2.domain1.com]
domain2.com smtp:[host3.domain1.com]

The machine on the DMZ in called host1.domain1.com.

I was using sendmail -d38.4 -bs to trace what was happening and I saw this:

When I typed in mail from:louis@domain1.com it looks this up in the mailertable and excepts the mail.

When I typed in rcpt to:john@domain2.com it does not lookup the domain in the mailertable but does except the user.

After typing in some data it then lookes up domain2.com (using mx) and makes a conversation to the host.

Why is it not looking up domain2.com in the mailertable and just sending it to host3.domain1.com???

I do not have anything in my aliases file (I do not want to receive mail locally for anyone).

1 Solution
Did you makemap that mailertable and restart sendmail?  Have a look at http://www.garg.com/bob/sendmail/ for some more clues
masteryodaAuthor Commented:
This was not the problem.  Actualy the problem was that text maps are broken in 8.11 of sendmail.  I switched to dbm and all works fine now.

However, since you provided so many other good suggestions on your web page I will give you the points.

Thanks a lot,

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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