I solved this issue by not rotating any logs since I changed my cron job to look like this: Code: /usr/local/bin/pflogsumm -u 5 -h 5 --problems_first -d today /var/log/mail.log | mail -s "pflogsumm report `date`" root notice the "today" part? that means only stuff from the same day is proccessed so I don't care about any log rotation anymore.