Hello,
thank you all for the quick answers.
Unfortunately, while the copy/paste of the stunnel.conf config and main.cf 
config were correct (and showed matching local ports), my command line 
involving telnet contained a typo: I had tried indeed to connect to the correct 
local port 11125, even if I wrote "465" in the email. I tried again after your 
suggestions:

$ telnet localhost 11125
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 ns0.ovh.net ssl0.ovh.net. You connect to mail31.ha.ovh.net ESMTP
quit
221 ns0.ovh.net ssl0.ovh.net. You connect to mail31.ha.ovh.net
Connection to localhost closed by foreign host.

but… surprise! Now I tried this:

$ telnet 127.0.0.1 11125
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

I checked stunnel.conf and I replaced "accept = localhost:11125" with "accept = 
11125".
Now I can telnet using both 127.0.0.1 and localhost.
One problem solved, thank you!

So I tried again to set postfix and I restarted. If I use:
relayhost=localhost:11125
I get
(Host or domain name not found. Name service error for name=localhost type=A: 
Host not found)
and if I use
relayhost=[127.0.0.1]:11125
I get
(local data error while talking to 127.0.0.1[127.0.0.1])

The first error message makes me wonder… is my /etc/hosts file wrong?
Would you please give it a look? I have two NICs with two static IPs and my 
local network, even with an external dynamic IP, has a 3rd level domain 
associated with it. This is my /etc/hosts:

127.0.0.1       localhost
::1             localhost
192.168.2.5     OmniOS.3rd-level.domain.ext
192.168.2.5     OmniOS
192.168.2.6     OmniOS.3rd-level.domain.ext
192.168.2.6     OmniOS

If there is any another file I should look into, please let me know: the 
"(local data error while talking to 127.0.0.1[127.0.0.1])" sounds like the 
issue is somewhere else. I checked ipf.conf already and there are no rules and 
google is not of help concerning that error message.

Thank you in advance for the help and thanks also for the previous suggestions 
:)
Olaf

Reply via email to