[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mail (POP3/IMAP) using STARTTLS
From: |
Felix Natter |
Subject: |
Re: Mail (POP3/IMAP) using STARTTLS |
Date: |
Sun, 25 May 2008 12:16:16 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
David <de_bb@arcor.de> writes:
F> 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")))
Hello,
thanks for your answer. I am now using this:
(require 'smtpmail)
(setq message-send-mail-function 'smtpmail-send-it
send-mail-function 'smtpmail-send-it
smtpmail-smtp-server "smtp.inf.fh-bonn-rhein-sieg.de"
smtpmail-local-domain nil
smtpmail-debug-info t)
(setq smtpmail-starttls-credentials
'(("smtp.inf.fh-bonn-rhein-sieg.de" 587 nil nil)))
;; this is still needed, even with STARTTLS
(setq smtpmail-auth-credentials
'(("smtp.inf.fh-bonn-rhein-sieg.de" 587 "fnatte2s" "XXX")))
but I still get this when I send mail to accounts not on the university:
220 ux-2s11.inf.fh-bonn-rhein-sieg.de ESMTP Exim 3.12 #1 Sun, 25 May 2008
12:08:30 +0200
250-ux-2s11.inf.fh-bonn-rhein-sieg.de Hello pD9E8776C.dip.t-dialin.net
[217.232.119.108], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-STARTTLS
250-DELIVERBY
250 HELP
250 2.1.0 <felix.natter@smail.inf.fh-brs.de>... Sender ok
550 5.7.1 <fnatter@gmx.net>... Relaying denied. Proper authentication required.
221 2.0.0 ux-2s11.inf.fh-bonn-rhein-sieg.de closing connection
smtpmail-send-it: Sending failed; SMTP protocol error
Mark set
thanks,
--
Felix Natter