On 9/3/2017 6:28 AM, Davide Marchi wrote:
> Il 2017-09-01 22:57 Noel Jones ha scritto:
> [..]
>>
>> On the backup MX:
>>
>>
>> DO NOT list the domain in mydestination, virtual_alias_domains, or
>> mailbox_domains parameters.  These list domains for local delivery.
> 
> 
> You mean: do not list the domain of the *primary server* in
> mydestination, virtual_alias_domains, or mailbox_domains parameters,
> confirm?

Yes, I'm referring to the primary domain; the domain this box is a
secondary MX for.


> 
>>
>> DO list the domain in relay_domains
> 
> Here I've the virtual domain list on mysql table (replicated/synced
> with the primary server), could I use a mysql query here? 

Yes, you can use any supported map type.

> This query
> should exclude the primary sever domain from the list? And the query
> output could be the list of all domain one for each row?

Your question is unclear.  If the domain your secondary for is
"example.com", then example.com should be a key in the table with
any result.  Do not return a list of domains.
If this is for only one or a few domains, probably easier to just
list them in master.cf rather than using a table.
http://www.postfix.org/postconf.5.html#relay_domains

>>
>> DO NOT list the valid recipients in virtual_mailbox_maps, or
>> virtual_alias_maps.  These list local recipients.
> 
> here could I simply comment the above parameters
> (virtual_mailbox_maps, and virtual_alias_maps)?

Yes, if you don't need them for local purposes.


> 
>> DO list valid recipients in relay_recipient_maps
> 
> Here, as above, could I use a MySQL query for list the all valid
> recipients (included the alias), one for each row? The list contains
> addresses for the primary server domain. Do I also have to remove
> references to the primary server domain here?


Yes, you can use mysql for this map.  Each valid recipient is a
separate row.  Every address listed here will be accepted to relay
to the primary server; unlisted addresses will be rejected as unknown.
http://www.postfix.org/ADDRESS_CLASS_README.html#relay_domain_class





  -- Noel Jones

Reply via email to