Yes, you can set up Samba on linux (both server and client) as well as NFS shares.
Here is a good guide in the ubuntu documentation:https://help.ubuntu.com/community/SettingUpSamba
Note: Samba is an implementation of the SMB protocol used by windows. More information can be found here: http://www.samba.org/
Windows can also be configured to access NFS shares.
Edit: linux_0 I think he wanted to set up a mail server, so in that case its also possible. But still stay away from exchange
'courier' is a popular mail server for linux, and fairly easy to setup.https://help.ubuntu.com/community/Courier