Also, how to I know if the imap server is still running?
for the command line you can see what is listing.
netstat -atl
you should see the service something like this
tcp 0 0 *:pop3 *:* LISTEN
tcp 0 0 *:imap *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN