El Jueves 12 Junio 2008, Steve escribió:
> -------- Original-Nachricht --------
> >  Hello folks.
> >
> >  I am in the process of building a platform for a local SMB that
> > wants to give professional services to its customers. The services
> > include anti-spam, anti-virus and webmail capabilities. It also
> > includes notifications sent via E-mail about junk kept in quarantine.
> >
> >
> >  I've already managed to find solutions for most of the requests, but
> > one thing I am still stuck with: To build per-domain merged groups. I
> > am using the following:
> >
> >  FreeBSD 7
> >  MySQL 5.1 (latest, from ports)
> >  Postfix (current, from ports, with virtual domains in MySQL)
> >  DSPAM (from ports)
> >  Postgrey (from ports)
> >  Apache 2.2 (from ports)
> >
> >  I'm using DSPAM as a Postfix content_filter (in master.cf), and
> > another port for re-injection.
> >
> >  Your help on how to build per-domain merged groups would be much
> > appreciated.
>
> Assuming your DSPAM users have the domain name in their DSPAM user name,
> then you could try something like that: groupname1:merged:[EMAIL PROTECTED]
> groupname2:merged:[EMAIL PROTECTED]
> groupname3:merged:[EMAIL PROTECTED]

Note, unless you're using dspam from a recent CVS, you'll need a patch to add 
that functionallity.

Attached is a patch to version 3.8.0 (patch later included in the CVS) but 
please see my other emails about segfaults before aplying as it may be 
related to this patch.

Regards,
-- 
Ricardo J. Barberis 
Senior SysAdmin - I+D 
Dattatec.com :: Soluciones de Web Hosting 
Su Hosting hecho Simple..! 


!DSPAM:1011,485157f1150921313745331!
## Posibilita el uso de mas de un grupo shared o merged.
## Incluido en el CVS.
diff -ur src/dspam.c.dist src/dspam.c
--- src/dspam.c.dist	Sat Oct 28 04:16:43 2006
+++ src/dspam.c	Sat Oct 28 04:17:04 2006
@@ -2321,8 +2321,8 @@
   
           while (user != NULL)
           {
-            if (!strcmp (user, username) || user[0] == '*' ||
-               (!strncmp(user, "*@", 2) && !strcmp(user+2, strchr(username,'@'))))
+            if (!strcmp (user, username) || !strcmp(user, "*") ||
+               (!strncmp(user, "*@", 2) && !strcmp(user+1, strchr(username,'@'))))
             {
   
               /* If we're reporting a spam, report it as a spam to all other

Reply via email to