patch for maps in check_relay

Last Update 1997-04-14
From: Gregory Neil Shapiro <gshapiro@WPI.EDU>
Newsgroups: comp.mail.sendmail
Subject: Re: Spamproofing a domain - the patches and hooks out there
Date: 24 Feb 1997 08:50:27 -0500
Organization: Worcester Polytechnic Institute, Worcester, MA 01609-2280
Sender: gshapiro@scooter.WPI.EDU
Message-ID: <x4n2su1ffg.fsf@scooter.WPI.EDU>
References: <5eqglp$obu$1@Jupiter.Mcs.Net> <x47mjybzw7.fsf@scooter.WPI.EDU>

As promised, here is a patch so check_relay will be able use maps as well.
This change should be in 8.8.6.  You should change from using classes to using
maps to avoid the need to restart.

*** src/daemon.c~	Thu Feb 20 21:55:43 1997
--- src/daemon.c	Sat Feb 22 19:18:52 1997
***************
*** 398,403 ****
--- 398,407 ----
  			OutChannel = outchannel;
  			DisConnected = FALSE;
  
+                         /* Open maps for check_relay ruleset in
+                            validate_connection */
+                         initmaps(FALSE, e);
+ 
  			/* validate the connection */
  			HoldErrs = TRUE;
  			nullconn = !validate_connection(&RealHostAddr, RealHostName, e);


[(links)] [Hints] [Avoiding Spam] [New]
Claus Aßmann Please send comments to: <ca@informatik.uni-kiel.de>