How to realize something like MS Exchange event sinks in GroupWise ?

It is necessary for me to register reception and sending of emails through
a server

Thanks