Thanks.  My default as shown by postconf -d is… 



_______________________

… which seems reasonable, if perhaps irrelevant.  Each of my hosts is meant to 
receive mail only for its virtual_alias_domains.  I'm not entirely clear if its 
even necessary to receive under any of the mydestinations. 

My goal is simply to have each host receive mail for its virtual_alias_domains, 
act as MX backup for its relay_domains, and reject everything else.  I'm still 
unclear why this requires using virtual_alias_maps to map every address for 
which a given host isn't primary to itself, but without entires like…

br...@sourdough.com     br...@sourdough.com

…hosts decide they're responsible for the domain and keep all mail sent to it 
for themselves, rather than relaying it.

-Bryan

_______________________

On Nov 9, 2010, at 7:54 PM, Wietse Venema wrote:

> /dev/rob0:
>> On Tue, Nov 09, 2010 at 03:13:01PM -0800, Bryan Harrison wrote:
>>> Viktor:
>>>> Perhaps the original domain is incorrectly listed in 
>>>> $mydestination
>>> 
>>> I have no mydestination entry.  Can I use one to force the correct 
>>> behavior?
>> 
>> Not listing mydestination in main.cf means you get the default 
>> setting for mydestination, which is rarely what people want for 
>> mydestination. That's a setting which should not be left to chance 
>> (the vagaries of gethostbyname() resolution.)[1]
> 
> To avoid brain-dead failure modes, the mydestination default uses
> gethostname(2) (the node name in the local kernel) not gethostbyname(3)
> (some remote lookup service).  Using gethostbyname(3) would cause
> Postfix processes to hang when the network is down.
> 
>       Wietse
> 
>> You might benefit from review of the Basic Configuration README. 
>> Check your settings for those configuration items.
>> 
>> 
>> [1] That might sound like a criticism of the default for
>>    mydestination, but it is not. The default is as good as
>>    possible, but human supervision is necessary to set up a MTA.
>> -- 
>>    Offlist mail to this address is discarded unless
>>    "/dev/rob0" or "not-spam" is in Subject: header
>> 
>> 
> 

Reply via email to