exim/greylist-tidy.sh

9 lines
192 B
Bash
Raw Normal View History

2007-02-07 12:18:24 +00:00
#!/bin/bash
if [ -r /var/spool/exim/db/greylist.db ]; then
2007-02-07 12:48:17 +00:00
sqlite3 /var/spool/exim/db/greylist.db <<EOF
2007-02-07 12:18:24 +00:00
.timeout 5000
DELETE FROM greylist WHERE expire < $((`date +%s` - 604800));
EOF
fi