I have an out-of-box package-based installation of Sendmail on a CentOS 5.4 machine and am attempting to configure it to act as the public-facing relay server for various internal servers that handle e-mail for various domains. All the proper MX entries point to this public-facing server.
I've performed these steps so far:
- Installed sendmail via yum, which gave me stock sendmail.{mc,cf} files.
- Ensured that the
mailertableoption in sendmail.mc is defined and not commented out. - Ensured that the
Kmailertableoption appears in sendmail.cf after runningmake. - Edited
mailertableto include the domains I wish to relay to internal servers in lieu of using MX. (i.e.,domainx.com: relay:mail1.internal.com) - Run
makeand ensured that changes were committed tomailertable.db. - Restarted sendmail.
The problem occurs when I actually attempt to relay mail destined for one of the mailertable domains through this box. The resulting entry in maillog reports config error: mail loops back to me (MX problem?) and subsequently DSN: Local configuration error. At no point does it mention attempting to use the relays I've explicitly provided; it is doing pure MX-based routing instead. This is the same end result I get when I disable mailertable, so it appears it's completely disregarding it altogether. As a side note I've attempted using domainx.com: smtp:mail1.internal.com with no change.
Is there a step in the process that I'm missing to get this working correctly?