Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jul 24, 2012 7:35 pm 
Offline
Senior Newbie

Joined: Tue Jul 24, 2012 7:23 pm
Posts: 5
Is there anyway to find out what email program is being used on a server whether it's sendmail, postfix, exim or whatever?


Top
   
PostPosted: Wed Jul 25, 2012 12:41 am 
Offline
Junior Member
User avatar

Joined: Tue Dec 27, 2005 1:33 am
Posts: 43
Location: USA
Try running
Code:
telnet localhost 25
on the server. The mail server should reply saying what software it is. For example, sendmail would reply with this:

Code:
$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 zeus.example.com ESMTP Sendmail 8.14.4/8.14.4; Tue, 24 Jul 2012 23:37:32 -0500


If that doesn't work you can run
Code:
ps -ef
to get a list of running processes, and look through the list for exim, sendmail, postfix, etc. You can pipe that to the grep command to search for a particular process, like this:

Code:
$ ps -ef |grep sendmail
root      1672     1  0 Jun10 ?        00:00:39 sendmail: accepting connections       
smmsp     1675     1  0 Jun10 ?        00:00:00 sendmail: Queue runner@00:25:00 for /var/spool/clientmqueue
root     13028  1672  0 21:37 ?        00:00:00 sendmail: server localhost [127.0.0.1] cmd read


Top
   
PostPosted: Wed Jul 25, 2012 1:58 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You could also run netstat -lpnt and see what's listening on port 25
Code:
netstat -lpnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2026/master     
tcp6       0      0 ::1:25                  :::*                    LISTEN      2026/master   


In this case postfix shows as master

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Wed Jul 25, 2012 1:51 pm 
Offline
Senior Newbie

Joined: Tue Jul 24, 2012 7:23 pm
Posts: 5
Thank you Agwa, that was very helpful.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group