Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sendmail vs SMTP

Tags:

A rails application in production should use smtp or sendmail to send mails?

like image 507
dwaynemac Avatar asked Aug 25 '09 00:08

dwaynemac


People also ask

Is sendmail still used?

In 1996, approximately 80% of the publicly reachable mail-servers on the Internet ran Sendmail. More recent surveys have suggested a decline, with 3.64% of mail servers in March 2021 detected as running Sendmail in a study performed by E-Soft, Inc.

What replaced sendmail?

Postfix -- the Sendmail Replacement.

What is the difference between SMTP and SMTP?

SMTPs is a method for securing SMTP with transport layer security and is intended to provide authentication of the communication partners. SMTPs is not an extension of SMTP; it is a way to secure SMTP at the transport layer.

What is sendmail and how it works?

The sendmail program collects a message from a program like mailx or mailtool , edits the message header as required by the destination mailer, and calls appropriate mailers to deliver mail or to queue the mail for network transmission. The sendmail program never edits or changes the body of a message.


Video Answer


1 Answers

SMTP is the protocol that is used by nearly all Internet hosts to send mail. This protocol is spoken by sendmail. Sendmail determines where to send your message and how.

Some mail programs (most, today) will connect directly to a mail server and speak SMTP to it. However, the "traditional" method - and arguable the better method - is to let sendmail do it.

There are two reasons for this: 1) nearly every program in UNIX that does what sendmail does is designed to be a drop-in replacement (this includes Postfix and Exim for instance); and 2) sendmail or its replacement was designed to handle mail and nothing else - by using sendmail you don't have to design a SMTP client.

The Mutt email client for UNIX is one email client that still refuses to talk SMTP directly to a mail server; a good (technical) description is on the wiki.

If you have a choice (on UNIX anyway) of talking SMTP directly or using sendmail, use sendmail - especially on servers.

like image 118
Mei Avatar answered Sep 28 '22 10:09

Mei