Hi Stefan,

On Wed, 07 May 2008 22:07:35 +0200
Stefan Priebe <[EMAIL PROTECTED]> wrote:
> I would like to see a real working tls in prefork server without the 
> need to do an exit in each child after tls.
Does the attached patch work for you? I can send several mails to a
test instance started with
 ./qpsmtpd-prefork --user $USER --port 2525 --children 1 
and 
  swaks --port 2525 --protocol ESMTPS --to [EMAIL PROTECTED] -f`

        Hanno
Index: plugins/tls
===================================================================
--- plugins/tls	(revision 890)
+++ plugins/tls	(working copy)
@@ -246,9 +246,9 @@
     # nothing to do on SSL only (SMTPS) and clear text communications
     return (DECLINED) if     $self->connection->local_port == 465;
     return (DECLINED) unless $self->connection->notes('tls_enabled');
-
-    $self->log(LOGWARN, "Exiting because 'tls_enabled' was true.");
-    exit;
+    $self->connection->notes('tls_socket')->close(SSL_no_shutdown => 1);
+    $self->connection->notes('tls_socket', undef);
+    return (DECLINED);
 }
 
 package UpgradeClientSSL;

Reply via email to