SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
doveadm
Search Examples
Find messages that user1@domain.com sent to user2@domain.com before 2011-01-01:
doveadm search -u user@domain.com mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01
Same query but display the physical size of the messages, along with the message filename:
doveadm fetch -u user@domain.com size.physical mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01
Display just the physical size of the messages found:
doveadm -f tab fetch -u user@domain.com size.physical mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01
A little awk
addition to total up the message sizes and display it in megabytes:
doveadm -f tab fetch -u user@domain.com size.physical mailbox Sent TO user2@domain.com SENTBEFORE 2011-01-01 | awk '{s+=$1} END {print s/1024/1024}'
- Log in to post comments
Credits
Various bits of code, scripts, and procedures were put together with information from John Simpson's qmail.jms1.net website. It's an excellent resource on managing and setting up a Qmail server.