Home | History | Annotate | Line # | Download | only in proto
MEMCACHE_README.html revision 1.1.1.1.6.2
      1 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
      2         "http://www.w3.org/TR/html4/loose.dtd">
      3 
      4 <html>
      5 
      6 <head>
      7 
      8 <title>Postfix memcache client Howto</title>
      9 
     10 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
     11 
     12 </head>
     13 
     14 <body>
     15 
     16 <h1><img src="postfix-logo.jpg" width="203" height="98" ALT="">Postfix memcache client Howto</h1>
     17 
     18 <hr>
     19 
     20 <h2>Introduction</h2>
     21 
     22 <p>The Postfix memcache client allows you to hook up Postfix to a
     23 memcache server. The current implementation supports one memcache
     24 server per Postfix table, with one optional Postfix database that
     25 provides persistent backup.  The Postfix memcache client supports
     26 the lookup, update, delete and sequence operations.  The sequence
     27 (i.e. first/next) operation requires a backup database that supports
     28 this operation. </p>
     29 
     30 <p> Typically, the Postfix memcache client is used to reduce query
     31 load on a persistent database, but it may also be used to query a
     32 memory-only database for low-value, easy-to-recreate, information
     33 such as a reputation cache for postscreen(8), verify(8) or greylisting.
     34 </p>
     35 
     36 <h2>Limitations</h2>
     37 
     38 <ul>
     39 
     40 <li> <p> The Postfix memcache client cannot be used for security-sensitive
     41 tables such as <tt>alias_maps</tt> (these may contain "<tt>|command</tt>"
     42 and "<tt>/file/name</tt>" destinations), or <tt>virtual_uid_maps</tt>,
     43 <tt>virtual_gid_maps</tt> and <tt>virtual_mailbox_maps</tt> (these
     44 specify UNIX process privileges or "<tt>/file/name</tt>" destinations).
     45 Typically, a memcache database is writable by any process that can
     46 talk to the memcache server; in contrast, security-sensitive tables
     47 must never be writable by the unprivileged Postfix user.  </p>
     48 
     49 <li> <p> The Postfix memcache client requires additional configuration
     50 when used as postscreen(8) or verify(8) cache.  For details see the
     51 <tt>backup</tt> and <tt>ttl</tt> parameter discussions in the
     52 memcache_table(5) manual page. </p>
     53 
     54 </ul>
     55 
     56 <h2>Building Postfix with memcache support</h2>
     57 
     58 <p>The Postfix memcache client has no external dependencies,
     59 and is therefore built into Postfix by default. </p>
     60 
     61 <h2>Configuring memcache lookup tables</h2>
     62 
     63 <p> Configuration is described in the memcache_table(5) manpage. </p>
     64 
     65 <h2>Credits</h2>
     66 
     67 <p> The first memcache client for Postfix was written by Omar Kilani,
     68 and was based on the libmemcache library. </p>
     69 
     70 <p> Wietse wrote the current memcache client from the ground up for
     71 Postfix version 2.9.  This implementation does not use libmemcache,
     72 and bears no resemblance to earlier work.  </p>
     73 
     74 </body>
     75 
     76 </html>
     77