Most common Email Transfer Agents (MTA) for web servers

 

Mail transfer from server are done through varous Mail Transfer Agents only. You will see an overview and their related functionality in below article.

There are some technuiqe/tools to deliver email from server . Most commons email tranfer agents are

*. exim

*. sendmail

*. postfix

*. Exim: This is a mail tranfer agent (MTA) that is freely distributed under GPL licence.Exim4 is currently default MTA under debian/linux systems. In terms of performance exim has been usually deployed in busy environment where large number of emails to be delivered immediately without queuing however its queue based performance is not at part if queue is large. So from that perspective its only suited for low traffic websites not on high traffic websites.

*. SendMail: Sendmail is general purpose MTA which support many kinds of mail delivery and mail transfer methods including SMTP, ESMTP, DECnet’s Mail-11, HylaFax, QuickPage and UUCP.Sendmail was acquired by Proofpoint, Inc on 1 October 2013.

Send mail through command line using sendmail

To check if sendmail is configured on server or not (run below code on command line)

sendmail test.shekhar@gmail.com

hello

.

it should send an email

*. Postfix: Postfix is free open source MTA which routes and delivers e-mails. It was created as an alternative of sendmail MTA. In terms of performance Postfix can deliver 300 message delivery per second or more than that based on server to server. This MTA does very good even in case of large queue of emails transfer.

How to debug if mails are being send from server or not from command line on Linux:

linux command to check maillog on Linux machine

 

cd /var/log/maillog

tail -20 maillog

It will show last 20 mails logs

like

Apr  2 11:16:02 sd-57605 postfix/cleanup[18563]: 5DB7B501690: message-id=<201404                                                                                        02091602.5DB7B501690@sd-57605.localdomain>

Apr  2 11:16:02 sd-57605 postfix/qmgr[5973]: 5DB7B501690: from=<test@test.com>, size=3329, nrcpt=1 (queue active)

Apr  2 11:16:05 sd-57605 postfix/smtp[18565]: 5DB7B501690: to=<test1@test1.com                                                    >, relay=mx-indiabiz.mail.gm0.yahoodns.net[106.10.149.139]:25, delay=2.                                                                                        7, delays=0.01/0/0.82/1.9, dsn=2.0.0, status=sent (250 ok dirdel)

Apr  2 11:16:05 sd-57605 postfix/qmgr[5973]: 5DB7B501690: removed

Apr  2 13:35:58 sd-57605 postfix/pickup[18691]: D2655501690: uid=48 from=<apache                                                                                        >

Related posts:

The following two tabs change content below.

Chandra Shekhar

Consultant at Infogain
Chandra Shekhar is a LAMP Developer,Thinker,Blogger and currently working as Magento(Ecommerce) specialist.. I am always open to learn new things in LAMP as well as other newer technology. In the journey of my last 9 years of web and product development, I have decided to share my knowledge and experience to Open Source Community in 2011. In this regard I have started CuteHits.com. Since then I am actively sharing my knowledge on various LAMP technology through CuteHits.com’s technical ... Read More about Chandra Shekhar

Latest posts by Chandra Shekhar (see all)