postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: RE: com.com weirdness and relay_domains warning

RE: com.com weirdness and relay_domains warning

From: Steve Jenkins <steve_at_nospam>
Date: Fri Oct 22 2010 - 19:29:44 GMT
To: <postfix-users@postfix.org>

On October 22, 2010 9:38 AM I wrote:

-------------------
First, I'm trying to figure out why it's giving me that trivial-rewrite
warning because teamsites.com appears only in virtual_alias_domains in
main.cf. The only references I can find with Google seem to address
subdomains of the primary domain, but that's not the case here.

Second, it seems that Postfix thinks that the local hostname or domain is
"com.com" instead of "booyahmedia.com" because it's trying to deliver the
message to testaccount@com.com instead of testaccount@booyahmedia.com. That
one's really got me scratching my head.
-------------------

Ok -I think I just figured it out and wanted to post the solution here in
case it helps someone else. Google didn't find the answer - it was there in
the main.cf comments:

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.

So I decided just to "hard-code" the following in my main.cf:

mydomain = booyahmedia.com
myhostname = booyahmedia.com

and leave myorigin set as:

myorigin = $mydomain

That solved BOTH problems. No more trivial-rewrite warning (although I'm not
sure WHY this solved that one), and Postfix now knows the correct domain and
hostname of the server (that one I DO understand why this fix works).

Best,

Steve