LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-28-2009, 05:32 PM   #1
yanghwanim
LQ Newbie
 
Registered: Mar 2009
Location: Honolulu, Hawaii
Distribution: CentOS/Fedora/Ubuntu/RedHat
Posts: 18

Rep: Reputation: 0
Smile How to tell what mail system your running on Linux!


Hi,

I am trying to figure out if I am running Qmail, exim, postfix, etc. Or basically what mail system my Linux box is running. Anyone now how I would figure this out? I am running a CentOS 5 box.

Thanks in advance!!!
 
Old 05-28-2009, 05:45 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
I don't know of a way to reliably determine which MTA (among the variety you mentioned) is active, but you can look for clues by checking: installed packages, config files, executing processes, etc.

In the case of CentOS 5, by default it is sendmail.
 
Old 05-28-2009, 05:55 PM   #3
yanghwanim
LQ Newbie
 
Registered: Mar 2009
Location: Honolulu, Hawaii
Distribution: CentOS/Fedora/Ubuntu/RedHat
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
I don't know of a way to reliably determine which MTA (among the variety you mentioned) is active, but you can look for clues by checking: installed packages, config files, executing processes, etc.

In the case of CentOS 5, by default it is sendmail.
I see that sendmail is installed, however I also see Qmail running, and is located @ /var/qmail, very complicated, but fun.
 
Old 05-28-2009, 07:11 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
As root at cli:

alternatives --display mta

alternatives --config mta
 
Old 06-01-2009, 01:54 PM   #5
yanghwanim
LQ Newbie
 
Registered: Mar 2009
Location: Honolulu, Hawaii
Distribution: CentOS/Fedora/Ubuntu/RedHat
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
As root at cli:

alternatives --display mta

alternatives --config mta
Dang Chris!! That worked like a charm! I bow down to you Jedi-Masta! Thanks again!
 
Old 06-01-2009, 02:08 PM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Just in case the alternatives command doesn't work for you (doesn't work on my system for instance) you can use netstat

Code:
it-lenny:~# netstat -alnp | grep :25
tcp        0      0 127.0.0.1:25      0.0.0.0:*    LISTEN    3654/exim4 
 
Old 06-01-2009, 06:21 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
Yeah, that's specific to RH based systems I believe, but the config option makes it easy to switch between mtas to see which one you prefer.
 
  


Reply

Tags
mail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server now behind linux router: Mail system broken binary1011100 Linux - Server 2 07-02-2007 09:37 AM
how to configure Linux mail client with existing mail server running on WindowsXP? Senthilvnr Linux - Networking 1 07-11-2006 12:02 AM
How to re-partition a running Linux system? Maarten_Holland Linux - General 1 04-19-2005 03:35 PM
linux running off of win system Lost_linux_Noob Linux - Newbie 5 10-10-2003 09:21 PM
Linux Corporate Mail System aastal Linux - Networking 5 08-26-2003 01:39 PM


All times are GMT -5. The time now is 11:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration