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

RE: weirdness and relay_domains warning

From: Steve Jenkins <steve_at_nospam>
Date: Fri Oct 22 2010 - 19:29:44 GMT
To: <>

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 appears only in virtual_alias_domains in 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
"" instead of "" because it's trying to deliver the
message to instead of 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 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

mydomain =
myhostname =

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).