From owner-freebsd-questions@FreeBSD.ORG Thu Mar 27 15:34:49 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6FD8A211 for ; Thu, 27 Mar 2014 15:34:49 +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 2EC19EAB for ; Thu, 27 Mar 2014 15:34:48 +0000 (UTC) Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de ) by mailout06.t-online.de with smtp id 1WTCKH-0006GF-15; Thu, 27 Mar 2014 16:34:41 +0100 Received: from t-online.de (r28d-cZJghDUMpYQI8tiDXRPMx6rd4urF0xF6sWjZQTpRXTqMbpcfI-zeZHZUNwQ9n@[84.152.234.75]) by fwd07.t-online.de with esmtp id 1WTCK8-0duI4G0; Thu, 27 Mar 2014 16:34:32 +0100 Received: by t-online.de (nbSMTP-1.00) for uid 1001 johannes-maria@t-online.de; Thu, 27 Mar 2014 17:18:05 +0100 (CET) Date: Thu, 27 Mar 2014 17:18:04 +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: <20140327161804.GB23824@jmk.org> References: <20140326145149.GB2031@jmk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140326145149.GB2031@jmk.org> User-Agent: Mutt/1.4.2.3i X-ID: r28d-cZJghDUMpYQI8tiDXRPMx6rd4urF0xF6sWjZQTpRXTqMbpcfI-zeZHZUNwQ9n X-TOI-MSGID: 18be4f0f-1f04-4f4d-80ac-c5da53d32adb 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: Thu, 27 Mar 2014 15:34:49 -0000 Hello, some new information to my problem (I corrected one of my errors): On Wed, Mar 26, 2014 at 03:51:49PM +0100, Johannes-Maria Kaltenbach wrote: ... > With this description I was able to let sendmail try to connect > securesmtp.t-online.de instead of smtpmail.t-online.de via stunnel > but there remains a problem, which is perhaps some triviality > but I was not able to solve it: > > Authentication fails, the mails are not delivered, the connection > times out. > In /var/log/maillog I get messages like > sendmail[5931]: s2QDratA005931: to=johannes-maria@t-online.de, \ > ctladdr=jmk (1001/1001), delay=00:05:09, xdelay=00:05:09, mailer=relay, \ > pri=30051, relay=relay-domain.org. [62.157.140.133], dsn=4.0.0, \ > stat=Deferred: Operation timed out with relay-domain.org. > The mailer daemon sends a "Returned mail: see transcript for details"- > message with > Diagnostic-Code: SMTP; 530 5.7.0 Authentication required. > > > > When I try to telnet via stunnel to securesmtp.t-online.de > it stops after the 'Escape character' line: > | # telnet relay-domain.org 2525 > | Trying 62.157.140.133... > | Connected to relay-domain.org. > | Escape character is '^]'. > I expected now something like 220 securesmtp.t-online.de ESMTP ... > but it just stops here and I have to kill the process. > Probably same reason: failed authentication. ... this should have been 'telnet relay-domain 2525' of course and with this I got a 'connection refused' so I checked what I've done after compiling stunnel and found an error in /usr/local/etc/stunnel/stunnel.conf. After correction I now get: | # telnet relay-domain 2525 | Trying 127.0.0.1... | Connected to relay-domain. | Escape character is '^]'. | 220 fwd21.t-online.de T-Online ESMTP receiver fmsad15465 ready. \ | / T-Online ESMTP receiver securesmtp.t-online.de ready. | quit | 221 2.0.0 fwd21.t-online.de closing. / Closing. | Connection closed by foreign host. So the connection to securesmtp.t-online.de should be possible for sendmail but I still cannot send mails. In /var/log/maillog I find messages like: | sendmail[31489]: s2RFfEA4031489: timeout waiting for input from \ | relay-domain.org. during client greeting | sendmail[31489]: s2RFfEA4031489: to=johannes-maria@t-online.de, \ | ctladdr=jmk (1001/1001), delay=00:05:10, xdelay=00:05:10, \ | mailer=relay, pri=30317, relay=relay-domain.org. [80.156.86.78], \ | dsn=4.0.0, stat=Deferred: Operation timed out with relay-domain.org. This relay-domain.org in this log is the reason why I erroneously tried telnet relay-domain.org instead of telnet relay-domain. Nowhere in my configuration files appears a 'relay-domain.org', so why is it in maillog? In /etc/hosts I've added (after 127.0.0.1 localhost) the line | 127.0.0.1 relay-domain (as described in www.dawoodfall.net/index.php/en/relaying-sendmail-a-ssl) What should I do that sendmail uses relay=relay-domain [127.0.0.1] instead of relay=relay-domain.org. [80.156.86.78]? Thanks in advance, Johannes-Maria