Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2014 17:18:04 +0100
From:      Johannes-Maria Kaltenbach <johannes-maria@t-online.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: (still) problems with email/ssl and t-online.de/telekom.de
Message-ID:  <20140327161804.GB23824@jmk.org>
In-Reply-To: <20140326145149.GB2031@jmk.org>
References:  <mailman.67.1395835202.72916.freebsd-questions@freebsd.org> <20140326145149.GB2031@jmk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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









Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140327161804.GB23824>