From owner-freebsd-questions@FreeBSD.ORG Wed Apr 2 12:55:23 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 1FE8DDA2 for ; Wed, 2 Apr 2014 12:55:23 +0000 (UTC) Received: from mailout01.t-online.de (mailout01.t-online.de [194.25.134.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass CA 1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC916CD9 for ; Wed, 2 Apr 2014 12:55:22 +0000 (UTC) Received: from fwd17.aul.t-online.de (fwd17.aul.t-online.de [172.20.27.64]) by mailout01.t-online.de (Postfix) with SMTP id B10E419ABC; Wed, 2 Apr 2014 14:55:13 +0200 (CEST) Received: from t-online.de (EkIU2UZDghmPXouYCMRy8ALi46U2-WZmznYaYU2mGXR8n2J0z1IuRcRX+vrRaMRQDM@[84.145.250.76]) by fwd17.t-online.de with esmtp id 1WVKhD-1Tc2EK0; Wed, 2 Apr 2014 14:55:11 +0200 Received: by t-online.de (nbSMTP-1.00) for uid 1001 (using TLSv1/SSLv3 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) johannes-maria@t-online.de; Wed, 2 Apr 2014 15:38:50 +0200 (CEST) Date: Wed, 2 Apr 2014 15:38:49 +0200 From: Johannes-Maria Kaltenbach To: freebsd-questions@freebsd.org, Thomas Mueller Subject: Re: (still) problems with email/ssl and t-online.de/telekom.de [solved] Message-ID: <20140402133849.GA16958@jmk.org> References: <20140326145149.GB2031@jmk.org> <20140327161804.GB23824@jmk.org> <5334D72B.9010406@bananmonarki.se> <20140328102129.GA2387@jmk.org> <20140328143822.GB20777@jmk.org> <20140328162936.GA34081@jmk.org> <53363B8C.8080302@weboutsourcing.cz> <20140329141500.GC2248@jmk.org> <20140330095353.GB1795@jmk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140330095353.GB1795@jmk.org> User-Agent: Mutt/1.4.2.3i X-ID: EkIU2UZDghmPXouYCMRy8ALi46U2-WZmznYaYU2mGXR8n2J0z1IuRcRX+vrRaMRQDM X-TOI-MSGID: be3c4e88-e3ac-4075-9c9a-6b3fc9fa90e3 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: Wed, 02 Apr 2014 12:55:23 -0000 Hello, On Sun, Mar 30, 2014 at 11:53:53AM +0200, Johannes-Maria Kaltenbach wrote: > ... When/if the problem is solved I will inform you. Thanks for all the help! I'm now able to send emails via securesmtp.t-online.de with ssl. The 'solved' is not quite correct since I still don't know what I've done wrong. I now inform you what I've done in case someone else has similar problems. On Mon, Mar 31, 2014 at 09:28:13AM +0000, Thomas Mueller wrote: > In my case, I don't use sendmail at all. > I use msmtp and mpop on command line, ... Getting the mails from securepop.t-online.de (with POP3+SSL) works so I stay with getmail but I tried msmtp instead of sendmail. The connection to securesmtp.t-online.de was made but the mail not sent with the error message 'the server sent an empty reply'. So I looked for something similar and found nbsmtp. I installed it, created the necessary ~/.nbsmtprc and added in muttrc | set sendmail="/usr/local/bin/nbsmtp -h securesmtp.t-online.de -p 465 ... With this I got in /var/log/maillog: | nbSMTP[4131]: Creating SSL connection to host (securesmtp.t-online.de:465) | nbSMTP[4131]: Error issuing MAIL command | nbSMTP[4131]: Server said: '5.7.0 Authentication required.' | nbSMTP[4131]: Something went wrong. Mail NOT sent. \ | Activate debug for more info I looked for a debug option in man nbsmtp and found | -D Enable debug to syslog so I added a -D in muttrc: | set sendmail="/usr/ports/mail/nbsmtp/work/nbsmtp-1.00/nbsmtp -D \ | set sendmail="/usr/local/bin/nbsmtp -D -h securesmtp.t-online.de -p 465 ... But now I didn't get an error message with debug info but better: now the mail was sent (but I don't know why; I did nothing but adding the -D option). The mail was sent and /var/log/maillog says: | nbSMTP[12626]: Creating SSL connection to host (securesmtp.t-online.de:465) | nbSMTP[12626]: Authentication succeded [johannes-maria] | nbSMTP[12626]: Recipient accepted [johannes-maria@t-online.de] | nbSMTP[12626]: Mail sent for johannes-maria@t-online.de. Closing connection Thanks very much for your patience and help, Johannes-Maria