exim/greylist-tidy.sh
2019-03-19 12:48:29 +01:00

9 lines
192 B
Bash
Executable File

#!/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