Mail server created in java