Re: DB files across machines

From: Ansgar Wiechers (no email)
Date: Thu Nov 12 2009 - 14:10:40 EST

  • Next message: Alex: "Re: Relaying problems"

    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/ 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/ (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.

    Ansgar Wiechers

    "All vulnerabilities deserve a public fear period prior to patches
    becoming available."
    --Jason Coombs on Bugtraq

  • Next message: Alex: "Re: Relaying problems"

    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs

    Powered By FreeBSD   Powered By FreeBSD