encrypted tmda-ofmipd

Zoran Bosnjak <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Organization via
Message-ID <[email protected]>
Dear tmda experts,
please help me with stunnel + ofmipd configuration. I am trying to 
encrypt smtp communication between client and server.

When I setup configuration as descriebed in:
tmda/contrib/ofmipd-stunnel-xinetd, the client is not able to send mail 
via port 8026. It disconnects with popup error message (actual popup 
window in Slovenian language):
"Pri pošiljanju pošte je prišlo do napake: Strežnik je poslal nepravilen 
pozdrav: 20 buco.home ESMTP tmda-ofmipd + stunnel"
which means something like:
"Error sending mail: The Server sent wrong hello message: 20 buco.home 
ESMTP tmda-ofmipd + stunnel"

On the server side log from tmda-ofmipd-starttls-stunnel-wrapper:
2006.12.26 01:50:06 LOG5[5017:3086268096]: Negotiations for smtp (server 
side) started
2006.12.26 01:50:08 LOG3[5017:3086268096]: Unexpected socket close 
(fdgetline)
2006.12.26 01:50:08 LOG5[5017:3086268096]: Connection reset: 0 bytes 
sent to SSL, 0 bytes sent to socket

On the other hand, the client talks to tmda-ofmipd unencrypted just 
fine, by running command (as root):
/usr/local/tmda/bin/tmda-ofmipd -d -f -p 0.0.0.0:8025 -a /etc/tofmipd
... client connects to port 8025 and sends the mail. Also the whitelist 
is updated, so the mail goes via tmda-ofmipd for sure.

Also, client is able talk to postfix on port 25 via TLS.

In fact everything works fine, unless stunnel is involved.

system info (server):
- tmda 1.1.9 (tarbal)
- python 2.4.4 (rpm)
- stunnel 4.15 (rpm)
- postfix (rpm)
- fedora core 6
- configuration from tmda/contrib/ofmipd-stunnel-xinetd

client:
- Thunderbird 1.5.0.9
- outgoing server setting port 8026, TLS

Thanks for your answer.

Zoran
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.