Hi, I've been able to set up a mail server retrieving (fetchmail) mail and sending (sendmail) mail from separate pop mailboxes but would like to know how i could maybe filter all mail from a catchall domain mailbox (e.g test.com) and place it into separate mailboxes by examining the name preceding the domain (e.g. john@test.com would be dropped into the john mailbox etc)

Any help would be greatly appreciated.