[spamdyke-users] How-to?

2007-11-09 Thread Steve Cole
I need to offer SMTP-Auth on one server which was previously using 
POP-before-SMTP and the issue I am running into is this:  I'd like to give 
them 90 days to get themselves moved over to SMTP-Auth, while continuing to 
use the existing configuration.  I am handling the RELAYCLIENT additions in 
tcpserver as per vpopmail's P-b-S scheme.

Where this falls apart is that spamdyke appears to strip RELAYCLIENT out and 
disallow relaying unless they do AUTH.  I've read the documentation and from 
what I see, if I had the access-file updated with existing P-b-S IPs, I could 
make it work, however the vpopmail data file is in CDB format.

Is there a way to do this or should I just bite the bullet and tell them that 
at a certain date we will switch?  That would be moderately ugly.

-- 
--
Cheers,
Steve
___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users


Re: [spamdyke-users] How-to?

2007-11-09 Thread Sam Clippinger
A bug!  Of 300 test scripts, not one of them tests this specific 
scenario.  Amazing.


Well, I don't have time today to create another release of spamdyke 
(I'll do that first thing next week), so until then you can apply the 
attached patch.  DISCLAIMER: I have not run all of the test scripts 
against this patch.  I don't _think_ it will cause any problems but I 
can't be sure.  Please test it carefully.  If in doubt, wait for the new 
version next week.


To use the patch: save the attachment, cd into the spamdyke folder and 
type:
	spamdyke-3.1.0/spamdyke$ patch -p0  
spamdyke-3.1.0-relayclient_envvar.patch

make

That should do it.  Copy the new spamdyke binary into place.

-- Sam Clippinger

Steve Cole wrote:
I need to offer SMTP-Auth on one server which was previously using 
POP-before-SMTP and the issue I am running into is this:  I'd like to give 
them 90 days to get themselves moved over to SMTP-Auth, while continuing to 
use the existing configuration.  I am handling the RELAYCLIENT additions in 
tcpserver as per vpopmail's P-b-S scheme.


Where this falls apart is that spamdyke appears to strip RELAYCLIENT out and 
disallow relaying unless they do AUTH.  I've read the documentation and from 
what I see, if I had the access-file updated with existing P-b-S IPs, I could 
make it work, however the vpopmail data file is in CDB format.


Is there a way to do this or should I just bite the bullet and tell them that 
at a certain date we will switch?  That would be moderately ugly.


diff -u ../../spamdyke-3.1.0_orig/spamdyke/spamdyke.c ./spamdyke.c
--- ../../spamdyke-3.1.0_orig/spamdyke/spamdyke.c   2007-11-09 
15:54:06.0 -0600
+++ ./spamdyke.c2007-11-09 15:54:45.0 -0600
@@ -2831,7 +2831,7 @@
   {
   strlen_envp = strlen(envp[j]);
 
-  if (strncasecmp(envp[j], ENVIRONMENT_ALLOW_RELAY, 
MAXVAL(STRLEN(ENVIRONMENT_ALLOW_RELAY), strlen_envp)) == 0)
+  if (strncasecmp(envp[j], ENVIRONMENT_ALLOW_RELAY, 
MINVAL(STRLEN(ENVIRONMENT_ALLOW_RELAY), strlen_envp)) == 0)
 current_settings-allow_relay = 1;
 
   if (((*destination_envp)[j] = malloc(sizeof(char) * 
(strlen_envp + 1))) != NULL)
___
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users