From: Phillip Lord <phillip.lord@newcastle.ac.uk>
Subject: Re: emacs MUAs with working smtp authentication?
Date: Thu, 31 Aug 2006 12:11:53 +0100 [thread overview]
Message-ID: <ur6yxcg7a.fsf@newcastle.ac.uk> (raw)
In-Reply-To: mailman.6017.1156941211.9609.help-gnu-emacs@gnu.org
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>> From: "Bill White" <minutiae@gmail.com> Date: 29 Aug 2006
>> 21:28:54 -0700
>>
>> Are there any emacs-based MUAs that handle smtp authentication
>> more or less "out of the box" with the setting of a few
>> clearly-documented variables? If so, can you point me to the
>> documentation?
>>
>> I'm using cvs emacs from this afternoon.
Eli> I might misunderstand what you mean by ``smtp authentication'',
Eli> but it seems to me that smtpmail.el is what you are looking
Eli> for.
Eli> If smtpmail doesn't fit the bill, please tell what's missing
Eli> there.
Eli
I've been having the same problems. Quite a few people have been
having problems with setting up smtpmail to use authentication and
encryption.
I think that part of the problem is the protocol, part the
documentation, part of the problem is the lack of good defaults within
the code. Finally, part of the difficulty is that, as far as I can
tell, it just doesn't work on windows.
First, the protocol. SMTP uses tls for encryption. smtpmail uses
gnutls to support this. Why smtp can't use an SSL layer, as IMAP (and
most other things) does I don't know. Still, there is little that can
be done about this. No doubt there are reasons that I am unaware of --
network/mail protocols are something I know little about.
Second, the defaults. To use TLS, you have to reconfigure things like
the ports manually, and have to do so in multiple places. So, for
example, from the smtpmail documentation.....
;;(setq send-mail-function 'smtpmail-send-it) ; if you use `mail'
;;(setq message-send-mail-function 'smtpmail-send-it) ; if you use message/Gnus
;;(setq smtpmail-default-smtp-server "YOUR SMTP HOST")
;;(setq smtpmail-local-domain "YOUR DOMAIN NAME")
;;(setq smtpmail-sendto-domain "YOUR DOMAIN NAME")
;;(setq smtpmail-debug-info t) ; only to debug problems
;;(setq smtpmail-auth-credentials ; or use ~/.authinfo
;; '(("YOUR SMTP HOST" 25 "username" "password")))
;;(setq smtpmail-starttls-credentials
;; '(("YOUR SMTP HOST" 25 "~/.my_smtp_tls.key" "~/.my_smtp_tls.cert")))
Now authentication mail often uses a different port. So you have to
change this. But this is done in smtpmail-smtp-service. The 25's in
auth-credentials are only used to determine which credentials should
be used. Confusing. I don't know what the standards are, but most mail
readers you just click "SSL/TLS encryption" and the ports get set, or
guessed, automatically.
Third, the documentation. Take...
;;(setq smtpmail-starttls-credentials
;; '(("YOUR SMTP HOST" 25 "~/.my_smtp_tls.key" "~/.my_smtp_tls.cert")))
So, whats .my_smtp_tls.key then? Where does it come from? How do I get
it? Can I use gnutls to generate it? I have no idea at all. Further
investigation suggests that actually you can leave this blank, and it
should still work.
Finally, it doesn't seem to work on windows. I spent three hours with
a debugger a couple of days ago -- I figured this was the only way to
see if I had the configuration right. It appears that starttls.el uses
Unix specific process handling, so won't work with NTEmacs.
At the moment, I have access to a non TLS based stream, but this isn't
going to last for ever. I suspect that many people are in the same
boat.
Cheers
Phil
next prev parent reply other threads:[~2006-08-31 11:11 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 4:28 emacs MUAs with working smtp authentication? Bill White
2006-08-30 9:24 ` Peter Dyballa
2006-08-30 9:34 ` Alok G. Singh
2006-08-30 10:27 ` Phillip Lord
2006-08-30 12:33 ` Eli Zaretskii
[not found] ` <mailman.6017.1156941211.9609.help-gnu-emacs@gnu.org>
2006-08-30 14:39 ` Bill White
2006-08-30 17:01 ` Eli Zaretskii
2006-08-30 20:41 ` Ralf Angeli
2006-08-31 11:11 ` Phillip Lord [this message]
2006-09-01 8:53 ` Eli Zaretskii
2006-09-01 14:58 ` ken
2006-09-01 17:04 ` Eli Zaretskii
[not found] ` <mailman.6141.1157130256.9609.help-gnu-emacs@gnu.org>
2006-09-04 10:42 ` Phillip Lord
[not found] ` <mailman.6127.1157100814.9609.help-gnu-emacs@gnu.org>
2006-09-01 11:43 ` Phillip Lord
2006-09-01 17:44 ` Ralf Angeli
2006-09-04 6:39 ` Patricia J. Hawkins
2006-09-06 2:35 ` Ryo
2006-09-06 3:23 ` Eli Zaretskii
2006-09-13 18:04 ` Installing mew (editing Makefile.in) ken
[not found] ` <mailman.6890.1158170711.9609.help-gnu-emacs@gnu.org>
2006-09-13 19:34 ` Ryo
2006-09-13 20:15 ` Peter Dyballa
2006-09-14 0:44 ` ken
2006-09-13 22:32 ` Miles Bader
2006-09-14 0:24 ` ken
[not found] ` <mailman.6908.1158193497.9609.help-gnu-emacs@gnu.org>
2006-09-14 1:02 ` Miles Bader
[not found] ` <4508AF57.9070905@speakeasy.net>
[not found] ` <fc339e4a0609131848w705ed1den1b57dd8a2e2942a4@mail.gmail.com>
2006-09-15 1:39 ` ken
2006-09-15 7:58 ` Peter Dyballa
2006-09-18 11:20 ` emacs MUAs with working smtp authentication? Paul Puschmann
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ur6yxcg7a.fsf@newcastle.ac.uk \
--to=phillip.lord@newcastle.ac.uk \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).