#! /bin/sh echo "DELETE FROM greylist_relays WHERE expire_time > 0 AND expire_time < strftime(\"%s\",\"now\");" | sqlite3 /var/spool/exim*/db/greylist.db