I don't have a script, but you could easily write one. Here's the files you should look for if you're using Dovecot like me.
/etc/virtual/domainowners - main emails for the domains hosted
/etc/virtual/sampledomain.com/aliases - forward emails for sampledomain.com
/etc/virtual/sampledomain.com/passwd - pop3 emails for sampledomain.com