On 2009-11-12 Gaby Vanhegan wrote: > Is there a portable way to share postmapped file across machines? > > I have one postfix server running OpenBSD and another running CentOS, I > want the CentOS server to provide secondary services for for the BSD box. > The OpenBSD box uses virtual delivery: > > /etc/postfix/main.cf:(BSD box) > ... > # What are the domains that we handle mail for? > virtual_alias_domains = hash:/etc/postfix/virtual_domains > virtual_alias_maps = hash:/etc/postfix/virtual > > The two plain text versions of those files are copied over to the CentOS > server and renamed so they act as a relay reference: > > /etc/postfix.main.cf (CentOS box) > ... > # Relay for ourselves and other hosts > relay_domains = $mydestination, hash:/etc/postfix/relay_domains > relay_recipient_maps = hash:/etc/postfix/relay_recipients > > My setup currently copies the plain text versions and creates a flag > file. A cron job then looks for the flag file and postmaps the files if > needed.
Use incron instead of cron. Regards Ansgar Wiechers -- "All vulnerabilities deserve a public fear period prior to patches becoming available." --Jason Coombs on Bugtraq