Re: Starting tmda-ofmipd with tcpserver and stunnel

Stephen Warren <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
> My tmda-ofmipd-wrapper contains:
> #!/bin/sh
> exec /usr/src/tmda/tmda-1.1.7/bin/tmda-ofmipd -f -1 -d -R
> imaps://mail.ercolano.net \
>                 -S /usr/src/tmda/tmda-1.1.7/contrib/vpopmail-vdir.sh \
>                 2>&1

This command redirects tmda-ofmipd's stderr (to which debug logs are
sent) to tmda-ofmipd's stdout (which is handling the SMTP session).

As such, stunnel is receiving tmda-ofmipd's debug log, and attempting to
interpret is as an SMTP protocol stream, hence the messages:

> 2006.10.10 04:48:03 LOG3[17137:3083996048]: Unknown server welcome
> 2006.10.10 04:48:03 LOG5[17137:3083996048]: Protocol negotiation failed
> 2006.10.10 04:48:03 LOG3[17137:3083996048]: Protocol negotiations failed

To fix this, redirect stderr somewhere else, e.g.:

> My tmda-ofmipd-wrapper contains:
> #!/bin/sh
> exec /usr/src/tmda/tmda-1.1.7/bin/tmda-ofmipd -f -1 -d -R
> imaps://mail.ercolano.net \
>                 -S /usr/src/tmda/tmda-1.1.7/contrib/vpopmail-vdir.sh \
>                 2> /var/log/something
signature.asc (application/pgp-signature, 250 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFK71Whk3bo0lNTrURAiN6AKDB7w7dQbo4xzNBaK8vUwakihxqWwCgxR1X
0d2R82kWJm3sgAGXOLTfcBY=
=LIwC
-----END PGP SIGNATURE-----
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.