Sounds like you want to rewrite Mail::POPRelay and Mail::POPRelay::Daemon ?
In reply to Re: Modules for _serving_ email by b10m in thread Modules for _serving_ email by jonadab