From owner-freebsd-questions@FreeBSD.ORG Fri Mar 28 15:46:22 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66CB31ED for ; Fri, 28 Mar 2014 15:46:22 +0000 (UTC) Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 214C7C3F for ; Fri, 28 Mar 2014 15:46:21 +0000 (UTC) Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de ) by mailout06.t-online.de with smtp id 1WTYyz-00020U-DC; Fri, 28 Mar 2014 16:46:13 +0100 Received: from t-online.de (bLCL9kZpZheNsV6Hza9crJDQlqtp9ILZOPL1E3lSUjibKjKLtweA0IJisF-z44+ZKn@[84.152.250.47]) by fwd16.t-online.de with esmtp id 1WTYyp-4GQzxI0; Fri, 28 Mar 2014 16:46:03 +0100 Received: by t-online.de (nbSMTP-1.00) for uid 1001 johannes-maria@t-online.de; Fri, 28 Mar 2014 17:29:36 +0100 (CET) Date: Fri, 28 Mar 2014 17:29:36 +0100 From: Johannes-Maria Kaltenbach To: freebsd-questions@freebsd.org Subject: Re: (still) problems with email/ssl and t-online.de/telekom.de Message-ID: <20140328162936.GA34081@jmk.org> References: <20140326145149.GB2031@jmk.org> <20140327161804.GB23824@jmk.org> <5334D72B.9010406@bananmonarki.se> <20140328102129.GA2387@jmk.org> <20140328143822.GB20777@jmk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140328143822.GB20777@jmk.org> User-Agent: Mutt/1.4.2.3i X-ID: bLCL9kZpZheNsV6Hza9crJDQlqtp9ILZOPL1E3lSUjibKjKLtweA0IJisF-z44+ZKn X-TOI-MSGID: 062831c5-40c1-45da-8b7f-c978fc3d2903 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2014 15:46:22 -0000 Hello, On Fri, Mar 28, 2014 at 03:38:22PM +0100, Johannes-Maria Kaltenbach wrote: ... > but can't send any messages due to problems with authentication: ... > and the mail delivery system returns the mail to me with the message > > 530 5.7.0 Authentication required. > 554 5.0.0 Service unavailable > (while talking to sfwdallmx.t-online.de) > > > I created a certificate with make cert in /usr/ports/security/stunnel > when I installed stunnel (as adviced in the pkg-message); the certificate > is stored in /usr/local/etc/stunnel. > And in stunnel.log I find: > | Loading cert from file: /usr/local/etc/stunnel/stunnel.pem > > > What is wrong and what else should I do for proper authentication? I tried to get a connection with telnet. For the authentication I encoded (with perl -MMIME::Base64) my login/mail-name (johannes-Maria) and the password I use for getting my emails from securepop.t-online.de into a string which I denote by ... in the example below. With telnet and stunnel/relay I try to connect to securesmtp.t-online.de: | # telnet relay-domain 2525 | Trying 127.0.0.1... | Connected to relay-domain. | Escape character is '^]'. | 220 fwd14.t-online.de T-Online ESMTP receiver fmsad15465 ready. \ | / T-Online ESMTP receiver securesmtp.t-online.de ready. | EHLO localhost | 250-fwd14.t-online.de ready. | 250-SIZE 52428800 | 250-8BITMIME | 250-AUTH=LOGIN PLAIN | 250-AUTH LOGIN PLAIN | 250-ENHANCEDSTATUSCODES | 250 HELP | MAIL From: | 530 5.7.0 Authentication required. | AUTH PLAIN ... | 235 2.5.0 Authentication successful. / Authentifizierung erfolgreich. | quit | 221 2.0.0 fwd14.t-online.de closing. / Verbindung wird getrennt. | Connection closed by foreign host. Where do I put this authentication string in the sendmail and/or stunnel configuration so that authentication works also for sending mails? Thanks in advance, Johannes-Maria