On Tue, Apr 07, 2015 at 03:21:10PM +0200, i...@itrezero.it wrote:

> Many thanks Dr. Venema.
> I just compiled with -DUSE_SASL_AUTH flag using these command:
> 
> ###> make -f Makefile.init makefiles "CCARGS=-DUSE_SASL_AUTH -DHAS_PCRE
> `pcre-config --cflags`" "AUXLIBS_PCRE=`pcre-config --libs`"
> 
> But compilation exit with:
> 
> ###############
> [src/smtpd]
> gcc -I. -I../../include -DUSE_SASL_AUTH -DNO_EAI -DHAS_PCRE
> -UUSE_DYNAMIC_LIBS -DDEF_SHLIB_DIR=\"no\" -UUSE_DYNAMIC_MAPS
> -Wmissing-prototypes -Wformat -Wno-comment -g -O -I. -I../../include
> -DLINUX2 -c smtpd.c
> smtpd.c: In function ?xclient_cmd?:
> smtpd.c:4028: error: ?SMTPD_STATE? has no member named ?tls_context?
> make: *** [smtpd.o] Error 1
> make: *** [update] Error 1
> ###############

Try postfix-3.1-20150330 or also enable TLS support.  Alternatively
apply the attached path to the 3.0 source tree.

-- 
        Viktor.
>From 12cc17ea482c79fc26adac9ad9c711548a7cb9c7 Mon Sep 17 00:00:00 2001
From: Wietse Venema <wie...@porcupine.org>
Date: Mon, 16 Feb 2015 00:00:00 -0500
Subject: [PATCH 1/1] postfix-3.1-20150216

---
 src/smtpd/smtpd.c                 | 10 +++++----

diff --git a/src/smtpd/smtpd.c b/src/smtpd/smtpd.c
index 6a704b4..abc00d9 100644
--- a/src/smtpd/smtpd.c
+++ b/src/smtpd/smtpd.c
@@ -4025,12 +4025,14 @@ static int xclient_cmd(SMTPD_STATE *state, int argc, 
SMTPD_TOKEN *argv)
        if (got_login)
            saved_username = mystrdup(state->sasl_username);
        smtpd_sasl_deactivate(state);
-       if (state->tls_context == 0)            /* TLS from XCLIENT proxy? */
-           smtpd_sasl_activate(state, VAR_SMTPD_SASL_OPTS,
-                               var_smtpd_sasl_opts);
-       else
+#ifdef USE_TLS
+       if (state->tls_context != 0)            /* TLS from XCLIENT proxy? */
            smtpd_sasl_activate(state, VAR_SMTPD_SASL_TLS_OPTS,
                                var_smtpd_sasl_tls_opts);
+       else
+#endif
+           smtpd_sasl_activate(state, VAR_SMTPD_SASL_OPTS,
+                               var_smtpd_sasl_opts);
        if (got_login) {
            smtpd_sasl_auth_extern(state, saved_username, XCLIENT_CMD);
            myfree(saved_username);
-- 
2.1.0

Reply via email to