check smtp settings linux code example Example: linux show mail server #you can see what mail servers process is listening to mail port lsof -i :25