|Main Archive Page > Month Archives > postfix-users archives|
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 firstname.lastname@example.org instead of email@example.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
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).