OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
PATCH: How to distinguish server instances?

From: Wietse Venema (wietseporcupine.org)
Date: Sat Sep 02 2006 - 17:50:43 CDT


Heinz Ulrich Stille:
> -> syslog:
> Sep 2 18:56:26 mail postfix/lmtp[15197]: fatal: valid hostname or network
> address required in server description: inet:[127.0.0.1]:10028

This was broken when the LMTP client was merged into the SMTP client.

        Wietse

*** ./smtp_connect.c- Wed Jul 19 20:07:03 2006
--- ./smtp_connect.c Sat Sep 2 18:44:51 2006
***************
*** 663,671 ****
       * primary destination to be a list (it could be just separators).
       */
      sites = argv_alloc(1);
! argv_add(sites, request->nexthop, (char *) 0);
      if (sites->argc == 0)
! msg_panic("null destination: \"%s\"", request->nexthop);
      non_fallback_sites = sites->argc;
      if ((state->misc_flags & SMTP_MISC_FLAG_USE_LMTP) == 0)
          argv_split_append(sites, var_fallback_relay, ", \t\r\n");
--- 663,671 ----
       * primary destination to be a list (it could be just separators).
       */
      sites = argv_alloc(1);
! argv_add(sites, nexthop, (char *) 0);
      if (sites->argc == 0)
! msg_panic("null destination: \"%s\"", nexthop);
      non_fallback_sites = sites->argc;
      if ((state->misc_flags & SMTP_MISC_FLAG_USE_LMTP) == 0)
          argv_split_append(sites, var_fallback_relay, ", \t\r\n");