LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2006, 04:54 AM   #1
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Rep: Reputation: 15
Question What is Sendmail and Exim


Hi,

I have been reading about the two terms/software

Sendmail and Exim,

and really got confuse what they are. for me sendmail is a mailing server, and Exim .... not sure what it is.

Qmail is Mail server and you either need Sendmail or Qmail install in order to make a mail server, but not sure if Exim is mail server or something similar.

I am really confuse, and also I need a way that help me understanding these thinks better, and Like If I have to configure mail server on a computer that host 3-4 domains for Web hosting than how can I do taht..

Please help me
 
Old 05-15-2006, 05:31 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Sendmail and QMail, but also others like Postfix (a sendmail look-alike), are called MTAs (Mail Transport Agents). They are designed, as their name suggest, to transport mails over a network.
In the case of sendmail, you can also use it directly from the command line to send out mails, as if it was a MUA (Mail User Agent).

Basically, a MUA is a piece of software that acts as a mail client. It allows you to read mails and send them out. Most MUAs will simply initiate a connection to an MTA for sending out the mails. The MTA is considered responsible for the correct routing of the mail (and for performing some mail filtering).

On most hosts, an MTA like QMail or Sendmail is running and listening on port 25 (SMTP - Simple Mail Transfer Protocol). Any program that connects to this port and then issues commands following the SMTP protocol, will send out mails via the MTA. This is handy for sending out mails. Those MTAs are only listening to port 25 on the "localhost" loopback network interface (by default, for security reasons), so they cannot be used from other hosts than the one they are running on.

A "mail server", as you call it, however, is defined as a machine that:
-accepts incoming mails (again, port 25) from other machines
-allows the retrieval of mails that were received (ie via POP3 or IMAP protocols typically).
Since most MTAs on simple hosts do not accept mails from other machines, they are not to be considered as "complete mail servers".

Most MUAs know how to contact mail servers via SMTP to send out mails and via POP3/IMAP to retrieve mails.

Personnally, I don't know Exim, but on the Exim home page - http://www.exim.org/ -, the authors of Exim claim
that it is an MTA, just like sendmail and QMail.
 
Old 05-15-2006, 06:45 AM   #3
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your detail explanation of MTA and MUA. Obviously they arose some more question in my mind.
So, If I take Exim as MTA, than I can either have Exim or Sendmail or Qmail on my server, as port 25 is taken by one application only.

Actually some one confuse me on Exim been a MTA only

but it seems it is.

Thanks for your help, if anyone else as any info please share. I am doing a Project on email and don't know how to start with it. My project is like Email Management Software, where I need to configure email account on server for different virtual hosts of apache Web server.
 
Old 05-15-2006, 07:40 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Indeed, it is possible to install multiple MTAs on the same host, since only 1 application can
listen on port 25 of a given network interface.

However, it is often not advisable. I'll explain.
Historically, sendmail was probably the first. After that, a few look-alikes, like Postfix, were developed, because sendmail can be very tricky to configure (it can involve m4 macros and stuff like that).

Because Postfix is a "drop in" replacement for sendmail (it actually replaces the binaries of sendmail with symlinks to it's own), installing both postfix and sendmail on the same machine is a bad idea.
The same may hold for other MTAs as well.

Think also about the config files shared by those MTAs, like the /etc/aliases file for instance. If you decide to install multiple MTAs together on one host, you should keep this in mind too, to avoid conflicts.

Theoretically, you could install 1 MTA for each network interface you have (since each of the network interfaces has it's own port 25) - ie one for your public IP interface and one on localhost interface -. But this is also "not done", to avoid configuration issues like the ones 1 mentioned above.
 
Old 05-15-2006, 07:56 AM   #5
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Hi,

I was looking at My Local server which has Cpanel install on it. and as I told my application resemble in some sense to cpanel's Mail Working, it can help me as well.

anyways, there I found on PC that I have cpanel demo install it has both Exim and sendmail binaries, though I cannot figure out actually which one is working..

When I do
#sendmail -i
it gives Exim information , that is, Exim is MTA and blah blah...

and when I do
#exim
same information is shown



Anyone Else know about Exim and Sendmail please let me know...

timmeke your knowledge is great about the stuff. can you please share more of your knowledge on this ..

thanks
 
  


Reply

Tags
exim, mail, mta, sendmail, server


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
Replacing Sendmail with Exim jademan83 *BSD 0 06-13-2005 04:10 PM
Exim zaicheke Linux - Software 0 07-16-2004 09:12 PM
exim is failed !!! error:package exim is not installed apache Linux - Software 0 06-24-2004 05:55 AM
remove exim install sendmail waffe Debian 4 10-22-2003 01:15 PM
replacing sendmail with exim pbaumgar Linux - Software 1 08-15-2003 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01: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