Blocking outgoing connection to ports/host in solaris

Hi,
I want to block all outgoing connection ( the IMAP ) to my exchnage . I have to do it in my solaris server; from solaris host no outgoing connection can be made to the imap server.
Please help me to configure that.

I am new in solaris.

Kind regards,
Akhtar

It would help telling what Solaris version you are running.

bash-2.05$ cat /etc/release
Solaris 9 9/05 HW s9s_u9wos_06b SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 25 September 2006
bash-2.05$ uname -r
5.9
bash-2.05$ uname -a
SunOS gnedxbebstest 5.9 Generic_118558-34 sun4u sparc SUNW,A70
bash-2.05$