diff options
author | CoprDistGit <infra@openeuler.org> | 2025-10-11 03:24:48 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-10-11 03:24:48 +0000 |
commit | 18d5addc64e6606c659fcf16ccfca578eae814b5 (patch) | |
tree | 1dd233e8d7003043fc19aad1e814792b21371e73 /greylist-tidy.sh | |
parent | 7ac4d91ab9d703eb0d0dde081580514c9a7b3f3d (diff) |
automatic import of eximopeneuler24.03_LTS_SP2
Diffstat (limited to 'greylist-tidy.sh')
-rw-r--r-- | greylist-tidy.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/greylist-tidy.sh b/greylist-tidy.sh new file mode 100644 index 0000000..20251f4 --- /dev/null +++ b/greylist-tidy.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ -s /var/spool/exim/db/greylist.db ]; then + sqlite3 /var/spool/exim/db/greylist.db <<EOF +.timeout 5000 +DELETE FROM greylist WHERE expire < $((`date +%s` - 604800)); +EOF +fi |