[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mail (POP3/IMAP) using STARTTLS
From: |
David |
Subject: |
Re: Mail (POP3/IMAP) using STARTTLS |
Date: |
Fri, 23 May 2008 12:11:44 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
Felix Natter <felix.natter@smail.inf.fh-brs.de> writes:
>I am using STARTTLS to connect to my institution's smtp-server:
>
>(setq smtpmail-starttls-credentials
> '(("smtp.inf.fh-bonn-rhein-sieg.de" 587 "" "")))
>
>(setq mail-sources
> '((imap :server "imap.inf.fh-brs.de"
> :stream ssl
> :user "fnatte2s"
> :password "XXX")))
>
>(but I'd be happy with POP3 as well)
SMTP is for sending mail. IMAP/POP3 is for receiving mail.
> However, I don't have a certificate, I'd like to authenticate via
> username/password. Unfortunately, smtpmail.el says:
>
> smtpmail-starttls-credentials is a variable defined in `smtpmail.el'.
> Documentation:
> Specify STARTTLS keys and certificates for servers.
> This is a list of four-element list with `servername' (a string),
> `port' (an integer), `key' (a filename) and `certificate' (a filename).
As the doc string further says:
"If you do not have a certificate/key pair, leave the `key' and
`certificate' fields as `nil'. A key/certificate pair is only needed if
you want to use X.509 client authenticated connections."
Therefore, you'd use something like this:
(setq smtpmail-starttls-credentials
'(("smtp.inf.fh-bonn-rhein-sieg.de" 587 nil nil)))
(setq smtpmail-auth-credentials
'(("smtp.inf.fh-bonn-rhein-seig.de" 587 "login" "password")))
-David