OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Relaying to a domain but *not* subdomains?

From: mouss (usebsdfree.fr)
Date: Wed Aug 02 2006 - 17:19:45 CDT


Matt Eckhaus wrote:
> I need to setup postfix to relay to a domain, say "example.com". But "
> virtual1.example.com" and "virtual2.example.com" are virtual domains
> hosted
> on this server.
>
> The problem is that "virtual.example.com" seems to match "example.com"
> as a
> relay domain, so Postfix considers it to be listed twice, as a relay
> and as
> a virtual domain.
>
> Is there any way to specify just 'example.com" without matching
> subdomains?
>
> Thanks,
> Matt
>
one recommended setup is
    parent_domain_matches_subdomains=
then add subdomains explicitly when needed.