Allowing mail from multiple domains

From: Phil Stracchino <phils_at_caerllewys.net>
Date: Sat, 19 Apr 2014 15:17:06 -0400

I've recently installed OpenDKIM with Postfix on Gentoo Linux using
basically the out-of-the-box recommended configuration. However, my
configuration is a little more complex than some.

I have two domains, babcom.com and caerllewys.net. However, babcom.com
neither sends nor accepts mail; all mail is sent and received as
caerllewys.net. Postfix on my mailserver is configured to
masquerade-all as caerllewys.net. For historical and other reasons, my
internal hosts have hostnames in both domains; some have caerllewys.net
as their primary hostname, some have babcom.com. As an example, my
workstation identifies and reverse-resolves as babylon5.babcom.com. It
is configured to originate mail as prydain.caerllewys.net, and my
mailserver, epsilon3.caerllewys.net, accepts mail delivery and relay
from it with no problem.

However, OpenDKIM complains that "external host" babylon5.babcom.com is
attempting to send mail as caerllewys.net, and refuses to sign the mail.

How can I configure OpenDKIM such that it will sign messages originated
by internal hosts which reverse-resolve as babcom.com hosts? Or to put
that another way, what I want is a way to tell OpenDKIM that internal
hosts are *allowed* to send mail as x.caerllewys.net even if their
internal IP reverse-resolves as x.babcom.com.


What is the best way to accomplish this?


-- 
  Phil Stracchino
  Babylon Communications
  phils_at_caerllewys.net
  phil_at_co.ordinate.org
  Landline: 603.293.8485
Received on Sat Apr 19 2014 - 19:17:16 PST

This archive was generated by hypermail 2.3.0 : Sat Apr 19 2014 - 19:27:02 PST