New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expiry of awl_* entries? #1

Closed
hildeb opened this Issue Sep 14, 2017 · 7 comments

Comments

Projects
None yet
3 participants
@hildeb

hildeb commented Sep 14, 2017

Could you add an option to automagically expire old entries? We usually use 90d...

benningm added a commit that referenced this issue Sep 24, 2017

Add support for entry expiration
This adds a new option

  auto_whitelist_redis_expire

If this new configuration option is set to a non-zero value
and timeout using redis EXPIRE is applied to all entries.

related #1
@benningm

This comment has been minimized.

Show comment
Hide comment
@benningm

benningm Sep 24, 2017

Owner

Please test the issue-1-expire-entries branch and give feedback if does what you expect.

Owner

benningm commented Sep 24, 2017

Please test the issue-1-expire-entries branch and give feedback if does what you expect.

@hildeb

This comment has been minimized.

Show comment
Hide comment
@hildeb

hildeb Oct 4, 2017

After installation I'm getting:

Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1608) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1609) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1329.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1610) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1330.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1611) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1331.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1612) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1334.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1613) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!

hildeb commented Oct 4, 2017

After installation I'm getting:

Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1608) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1609) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1329.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1610) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1330.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1611) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1331.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1612) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: Use of uninitialized value in addition (+) at /usr/share/perl5/Mail/SpamAssassin/Plugin/TxRep.pm line 1334.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: Attempt to reload Mail/SpamAssassin/RedisAddrList.pm aborted.\nCompilation failed in require at (eval 1613) line 1.
Oct  4 11:32:57 mail-cbf amavis[45271]: (45271-03) _WARN: TxRep: could not open storages, quitting!

@hildeb

This comment has been minimized.

Show comment
Hide comment
@hildeb

hildeb Oct 4, 2017

Oct  4 11:34:55 mail-cbf amavis[49089]: (49089-01) _WARN: TxRep: Global symbol "$addr" requires explicit package name (did you forget to declare "my $addr"?) at /usr/local/share/perl/5.22.1/Mail/SpamAssas
sin/RedisAddrList.pm line 123.\nCompilation failed in require at (eval 1576) line 1.

hildeb commented Oct 4, 2017

Oct  4 11:34:55 mail-cbf amavis[49089]: (49089-01) _WARN: TxRep: Global symbol "$addr" requires explicit package name (did you forget to declare "my $addr"?) at /usr/local/share/perl/5.22.1/Mail/SpamAssas
sin/RedisAddrList.pm line 123.\nCompilation failed in require at (eval 1576) line 1.
@hildeb

This comment has been minimized.

Show comment
Hide comment
@hildeb

hildeb Oct 4, 2017

Maybe that line 123 should be:
$self->_update_addr_expire($entry->{'addr'});

hildeb commented Oct 4, 2017

Maybe that line 123 should be:
$self->_update_addr_expire($entry->{'addr'});

@benningm

This comment has been minimized.

Show comment
Hide comment
@benningm

benningm Oct 11, 2017

Owner

Just fixed it.

Owner

benningm commented Oct 11, 2017

Just fixed it.

@tomsommer

This comment has been minimized.

Show comment
Hide comment
@tomsommer

tomsommer Oct 11, 2018

Contributor

Could you release this to cpan?

Contributor

tomsommer commented Oct 11, 2018

Could you release this to cpan?

@benningm

This comment has been minimized.

Show comment
Hide comment
@benningm

benningm Oct 11, 2018

Owner

Just pushed 1.02.

Owner

benningm commented Oct 11, 2018

Just pushed 1.02.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment