exim/greylist-tidy.sh
2007-02-07 12:48:17 +00:00

9 lines
192 B
Bash
Executable File

#!/bin/bash
if [ -r /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