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 [email protected]

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                                                                                        [email protected]>

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

Apr  2 11:16:05 sd-57605 postfix/smtp[18565]: 5DB7B501690: to=<[email protected]                                                    >, 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                                                                                        >

The following two tabs change content below.

Chandra Shekhar

GCP Architect
Chandra Shekhar Pandey is Google certified Cloud engineer, I am Magento2 Trained developer. Having huge experience in designing cloud solution. I have around 12 years of experience with world enterprise IT companies and fortune 500 clients. During my architecture design I am always caring about high availability, fast performance and resilient system. From the programmer background I have huge experience in LAMP stack as well. Throughout my carrier I have worked on Retail, E-Learning, Video Conferencing and social media domain. The motive of creating cutehits was just to share the knowledge/solutions I get to know during my day to day life so that if possible I can help someone for same problems/solutions. CuteHits.com is a really a very effort for sharing knowledge to rest of the world. For any query/suggestion about same you can contact me on below details:- Email: shekharmca2005 at gmail.com Phone: +91-9560201363

Latest posts by Chandra Shekhar (see all)

You may also like...