Ralf Hildebrandt:
> * Wietse Venema <wie...@porcupine.org>:
> 
> > This will not work.  You can't have two postscreen processes writing
> > to the same postscreen_cache file.
> 
> > Instead, you must specify
> > 
> >     memcache = inet:mail.charite.de:11211
> >     backup = proxy:btree:/var/lib/postfix/postscreen_cache
> > 
> > (and be sure that "postconf proxy_write_maps" shows the
> > btree:/var/lib/postfix/postscreen_cache table).
> 
> I must admit I have not understood this. I always assumed the
> postscreen processes on mail & mail2 use ONE memcache instance, but
> their own local "backup"

Why share the cache and not the databases? That way you will almost
never benefit from sharing information.  Most email is spam and
most spammers will not contact all your MTAs.

> Now I made the changes (added proxy:) and now I'm getting:
> 
> Dec 28 21:34:23 mail postfix/proxymap[4387]: warning: request for unapproved 
> table: "btree:/var/lib/postfix/postscreen_cache"

> So, what should be listed?
> btree:/var/lib/postfix/postscreen_cache
> or
> proxy:btree:/var/lib/postfix/postscreen_cache

As described in memcache_table(5), section "backup":

              NOTE  2:  In  the  case of a proxied database, the full database
              name (including the "proxy:" prefix) must be  specified  in  the
              proxymap  server's  proxy_read_maps  or proxy_write_maps setting
              (depending on whether the access is read-only or read-write).

        Wietse

Reply via email to