On 11/17/2012 Noel Jones wrote:

> On 11/17/2012 3:07 PM, Daniel Luttermann wrote:
>> Hi,
>> I've changed my config to use memcache for postscreen and verify.
>> Now, I assume that the cache cleanup for the verify db doesn't run
>> anymore.
>> For postscreen, there are entries like this in /var/log/mail.info:
>> Nov 17 16:43:25 mail postfix/postscreen[863]: cache
>> memcache:/etc/postfix/memcache-postscreen.cf full cleanup:
>> retained=222 dropped=11 entries
>> Before memcache, there were similar entries like this in
>> /var/log/mail.info for the verify.db:
>> Nov 5 22:27:57 mail postfix/verify[11846]: cache
>> btree:/var/lib/postfix/verify_cache full cleanup: retained=6
>> dropped=0 entries
>> Since a few days I don't see any cache cleanup entries for the
>> verify database but the database in /var/lib/postfix gets updated
>> regularly.
>> Does the verify cleanup not run every 12 hours when using memcache?


> The cache cleanup will still run unless you've turned it off.
> # postconf | grep cleanup_interval

root@mail:~# postconf | grep cleanup_interval
address_verify_cache_cleanup_interval = 12h
postscreen_cache_cleanup_interval = 12h

>> Config:

> config unreadable.

Sorry, hopefully better now...

address_verify_map = memcache:/etc/postfix/verify-memcache.cf
address_verify_negative_expire_time = 3d 
address_verify_negative_refresh_time = 3h 
address_verify_positive_expire_time = 31d 
address_verify_positive_refresh_time = 7d 
postscreen_bare_newline_enable = yes 
postscreen_cache_map = memcache:/etc/postfix/memcache-postscreen.cf 
postscreen_non_smtp_command_enable = yes 
postscreen_pipelining_enable = yes 

/etc/postfix/verify-memcache.cf: 

memcache = inet:127.0.0.1:11211 
backup = proxy:btree:/var/lib/postfix/verify_cache_map 

/etc/postfix/memcache-postscreen.cf: 

memcache = inet:127.0.0.1:11211 
backup = proxy:btree:/var/lib/postfix/postscreen_cache_map

Thank you.

Daniel

Reply via email to