LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
Posts: 3,935
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration