Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I dont have knowledge on linux and how can i know which mail server is running on my linux box? Postfix/Exim? Btw Didn't found postfix folder in etc/, where can i find master.cf? .Any idea for modify cPPOP?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

For your second question, use locate to find master.cf

updatedb
locate master.cf
share|improve this answer

Easiest way might be to get the PID of what's listening on port 25:

 # lsof -i :25
 COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME
 master  5664 root   12u  IPv4  13732       TCP *:smtp (LISTEN)

Then find out what that process is:

 # ps p 5664
 PID TTY      STAT   TIME COMMAND
 5664 ?        Ss     0:12 /usr/lib/postfix/master

And I'm running postfix. For sendmail, it looks like this:

 # lsof -i :25
 COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
 sendmail 3445 root    4u  IPv4  12922       TCP localhost.localdomain:smtp (LISTEN)

Edit

Postfix config is under /etc/postfix

share|improve this answer
6  
netstat -ltnp |grep :25 to get it all in one step. –  womble Jan 8 '10 at 8:19
    
Good one! Much faster. –  Matt Simmons Jan 8 '10 at 15:25
    
Here is one more oneliner: lsof -n -i :25 –  Anonymous Jan 9 '10 at 22:22

most mail servers will identify themselves

justin@bert ~ % telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 xxxx ESMTP Exim 4.69 Sat, 09 Jan 2010 15:08:05 -0500
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.