David <[EMAIL PROTECTED]> writes:

F> Felix Natter <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>... Sender ok
550 5.7.1 <[EMAIL PROTECTED]>... 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



_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to