On Tue, Mar 29, 2016 at 08:42:12AM -0700, Michael Fischer wrote: > On Tue, Mar 29, 2016 at 8:36 AM, /dev/rob0 <r...@gmx.co.uk> wrote: > > >> According to my reading of the documentation, if $relay_domains > >> includes ".example.com", it should relay mail for > >> "sub.example.com", regardless of whether or not "relay_domains" > >> is included in $parent_domain_matches_subdomains. > > > > This reading is wrong. > > > > The leading dot pattern never matches relay_domains if the > > p_d_m_s setting includes "relay_domains". It's not even looked > > up. > > Can you please point me to relevant sections of the documentation > that explain this? I looked and couldn't find anything other than > how p_d_m_s works for domains that are *not* dot-prefixed. > Documentation on dot-prefixed subdomains is not so clear. > > If it's not a bug, additional explanation in the documentation as > to its behavior would be useful.
I agree. I had the same question some years ago, until it was explained to me. The only documentation I know of is postconf.5.html#parent_domain_matches_subdomains and postconf.5.html#relay_domains : relay_domains (default: $mydestination) What destination domains (and subdomains thereof) this system will relay mail to. Subdomain matching is controlled with the parent_domain_matches_subdomains parameter. -- http://rob0.nodns4.us/ Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: