all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Schroeder <alex@emacswiki.org>
Subject: Re: Emacs Manual: Mail sending via SMTP
Date: Sun, 23 Feb 2003 15:25:49 +0100	[thread overview]
Message-ID: <87d6ljaxaq.fsf@emacswiki.org> (raw)
In-Reply-To: <iluadgn8a3l.fsf@latte.josefsson.org> (Simon Josefsson's message of "Sun, 23 Feb 2003 13:17:34 +0100")

Simon Josefsson <jas@extundo.com> writes:

> Since it is now a standalone manual, I think everything that we can
> say about the library is appropriate.

Yay!  Maybe we can expand it a bit more?  :)

Russel's answer to my original intro-paragraph made it clear that a
separate section might be appropriate -- explain MTA, MUA, SMTP (we
have these three already), POP3, IMAP (the two major players only),
spool, procmail (mail delivery agent, MDA?).

Here is an expanded version.

Cheers,

Alex "Document Mode" Schroeder.  :)




How Mail Works

   On the Internet, mail is sent from mail host to mail host using the
simple mail transfer protocol (SMTP).  To send and receive mail, you
must get it from and send it to a mail host.  Every mail host runs a
mail transger agent (MTA) such as sendmail that accepts mails and
passes them on.  The communication between a mail host and other
clients does not necessarily involve SMTP, however.  Here is short
overview of what is involved.

   The mail program -- also called a mail user agent (MUA) -- usually
sends outgoing mail to a mail host.  When your computer is permanently
connected to the internet, it might even be a mail host itself.  In
this case, the MUA will send mail to the SMTP port on the same
computer.  A local mail transfer agent (MTA) such as exim or sendmail
will take care of your mail and pass it on to the next mail host.

   When you are only connected to the internet from time to time, your
internet service provider (ISP) has probably told you which mail host
to use.  You must configure your MUA to use that mail host.  Since you
are reading this manual, you probably want to configure Emacs to use
SMTP to send mail to that mail host.  More on that in the next
section.

   Things are different when reading mail.  The mail host responsible
for your mail keeps it in a file somewhere.  When your computer is
that mail host, this file is called a spool, and sometimes located in
the directory /var/spool/mail/.  All your MUA has to do is read mail
from the spool, then.

   When your computer is not always connected to the Internet, you
must get the mail from the remote mail host using a protocol such as
POP3 or IMAP.  POP3 essentially downloads all your mail from the mail
host to your computer.  The mail is stored in some file on your
computer, and again, all your MUA has to do is read mail from the
spool.  Sometimes mail is passed to yet another program, a mail
delivery agent (MDA) such as procmail.  These delivery agents often
allow you to filter and munge your mails before you get to see it.

   When you read mail from various machines, downloading mail from the
mail host to your current machine is not convenient.  In that case,
you will probably want to use the IMAP protocol.  Your mail is kept on
the mail host, and you can read it while you are connected via IMAP to
the mail host.

   So how does reading mail via the web work, you ask.  In that case,
the web interface just allows you to remote-control a MUA on the web
host.  Whether the web host is also a mail host, and how all the
pieces interact is completely irrelevant.  You usually cannot use
Emacs to read mail via the web, unless you use software that parses
the ever-changing HTML of the web interface.

Emacs speaks SMTP 

   Emacs includes a package for sending your mail to a SMTP server and
have it take care of delivering it to the final destination, rather
than letting the MTA on your local system take care of it.  ...

  reply	other threads:[~2003-02-23 14:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-22  0:21 Emacs Manual: Mail sending via SMTP Simon Josefsson
2003-02-22  0:29 ` Simon Josefsson
2003-02-22 10:33 ` Kai Großjohann
2003-02-23 12:17   ` Simon Josefsson
2003-02-23 14:25     ` Alex Schroeder [this message]
2003-02-23 16:51       ` Simon Josefsson
2003-02-22 11:51 ` Alex Schroeder
2003-02-22 13:12   ` Robert J. Chassell
2003-02-22 13:32     ` Alex Schroeder
2003-02-22 14:43     ` Benjamin Riefenstahl
2003-02-22 16:34   ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d6ljaxaq.fsf@emacswiki.org \
    --to=alex@emacswiki.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.