From owner-freebsd-questions@FreeBSD.ORG Fri Mar 28 02:10:55 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 D07621FF for ; Fri, 28 Mar 2014 02:10:55 +0000 (UTC) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3FF828AD for ; Fri, 28 Mar 2014 02:10:53 +0000 (UTC) Received: from kw.news4all.se (localhost [127.0.0.1]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id s2S1w3NT041331; Fri, 28 Mar 2014 02:58:03 +0100 (CET) (envelope-from bah@bananmonarki.se) Message-ID: <5334D72B.9010406@bananmonarki.se> Date: Fri, 28 Mar 2014 02:58:03 +0100 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Johannes-Maria Kaltenbach , freebsd-questions@freebsd.org Subject: Re: (still) problems with email/ssl and t-online.de/telekom.de References: <20140326145149.GB2031@jmk.org> <20140327161804.GB23824@jmk.org> In-Reply-To: <20140327161804.GB23824@jmk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 02:10:56 -0000 On 2014-03-27 17:18, Johannes-Maria Kaltenbach wrote: > 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]? Have you set define(`SMART_HOST', `your.isp.mail.server') In /etc/mail/fqdn.mc