Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Tobias Brink <tobias.brinkNO.SPAM@gmail.com>
To: info-gnus-english@gnu.org
Subject: SMTP-AUTH and TLS
Date: Tue, 02 Oct 2007 15:07:13 +0200	[thread overview]
Message-ID: <87odfh1x8e.fsf@tobe.homeunix.org> (raw)

Hello.

I want to send mail via SMTP.  The server in question demands clients
to connect encrypted and authenticate using SMTP-AUTH PLAIN.  The
server refuses unencrypted authentication and refuses to relay mail
from unauthenticated connections.

I have the following in my .gnus.el:

  (setq send-mail-function 'smtpmail-send-it)
  (setq message-send-mail-function 'smtpmail-send-it)
  (setq smtpmail-starttls-credentials
      '(("smtp.myserver.tld" 25 nil nil)))
  (setq smtpmail-default-smtp-server "smtp.myserver.tld")

and something like the following in .authinfo:

  machine smtp.myserver.tld login tobias password secret

From setting `smtpmail-debug-info' and `smtpmail-debug-verb' to `t' I
see that Gnus doesn't even try to use TLS and authenticate (at least I
interpret the following output to mean that):

Sending...
Sending via mail...
220 smtp.myserver.tld ESMTP Postfix
250-smtp.myserver.tld
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
250 2.1.0 Ok
554 5.7.1 <someone@someisp.tld>: Relay access denied
221 2.0.0 Bye
smtpmail-send-it: Sending failed; SMTP protocol error

Setting up KMail to use this server works so the error must be in my
Gnus configuration, only I don't know where.

Versions: Gnus 5.11, GNU Emacs 22.1.1

Thanks in advance,
Tobias

             reply	other threads:[~2007-10-02 13:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 13:07 Tobias Brink [this message]
2007-10-03 23:05 ` Tobias Brink
2007-10-04 16:44   ` Reiner Steib
2007-10-08 18:03   ` someusernamehere
2007-10-08 18:40     ` Tobias Brink
2007-10-08 20:54       ` someusernamehere

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=87odfh1x8e.fsf@tobe.homeunix.org \
    --to=tobias.brinkno.spam@gmail.com \
    --cc=info-gnus-english@gnu.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.
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 NNTP newsgroup(s).