Re: [dspam-users] Re: Dspam Project still active?

2008-12-21 Thread Alexander Prinsier
Jani Partanen wrote:
> Dov Zamir wrote:
>> OK, So at least some people agree. Now let's do something about it,
>> and get this on the road. Let's try to enumerate the things that need
>> to be done to fork DSPAM, and then decide who does what.
>>
> 
> What we need:
> * Core team
> * New name (My suggestion is dspam-new or dspam-ng)
> * Domain (.org .com .net does anyone run some business what can sponsor
> this?)
> * Homepage
> * SVN or some other (Better to use already available solutions)
> * Wiki (Mediawiki would be best)
> * Forum (phpBB3 is free. Someone was working with this. Speak up please)
> * Postlist (Mailman would be good)
> * SSL certificate for domains (Not required but would give more pro look
> to people. Again sponsor is required)
> * A plan!
> 
> 
> What I can do:
> * Some testing
> * System administration

I can do the mailing lists + webinterface for them.

I believe Paul Cockings offered some domain name(s). I suggest using
CACert for the SSL certificate (I can get this done if needed).

We could consider sourceforge or the like of course. My own experience
is that sourceforge servers are a bit overloaded (slow). But they do
offer useful groupware features out of the box... And if some person who
is helping right now drops out later, then we're stuck without eg a
webserver... If we choose for sourceforge, then we have all the
services, and don't need to find people/time to maintain them.

Are we going to do it ourselves or not?

Alexander

!DSPAM:1011,494eb9b8150924272195622!




Re: [dspam-users] Re: Dspam Project still active?

2008-12-21 Thread Alexander Prinsier
Dov Zamir wrote:
> I say, "let's just do it". Let SN do whatever they want to do. They can
> leave us or join us, who cares? I believe that everyone on this list
> wants to get DSPAM back where it was two years ago. So let's just do it.
> Let's not wait for the developers to show up on this list and say their
> ready to help. Developers typically do not read the user's list, they
> have their own list. They'll come along when they're needed.if we can
> get the project up again as a community project. DSPAM is just too good
> to let SN, or anyone else kill it!!

I agree.

In the past, several people showed up and said they were willing to
setup basic services like subversion/git, a mailing list, bug tracking
system, etc. Could those people come forward now? I think it's time.

Personally I'm offering to install and maintain one of the above
services, I have experience in this kind of system administration, just
not the time to maintain _all_ those services.

Alexander

!DSPAM:1011,494e3223150922811358197!




Re: [dspam-users] Dspam not reconnecting to mysql database when connection is dropped

2008-11-08 Thread Alexander Prinsier
David Coffey wrote:
>> Is there anyone who knows how to tell dspam to reconnect when the
>> database connection is dropped, or at least stop accepting new mail? Is
>> there a patch around for this issue?
> 
> Do you have "MySQLReconnect true" in your dspam.conf?

If I only knew this option existed! I put it in the config file now.
Hope it works :)

Thanks!

Alexander

!DSPAM:1011,4915fde3150923682223985!




[dspam-users] Dspam not reconnecting to mysql database when connection is dropped

2008-11-08 Thread Alexander Prinsier
Hello,

When the connection between dspam and the mysql server gets dropped,
dspam makes no attempt to setup a new one. Instead dspam just processes
mails without filtering them.

Is there anyone who knows how to tell dspam to reconnect when the
database connection is dropped, or at least stop accepting new mail? Is
there a patch around for this issue?

Thanks,
Alexander

!DSPAM:1011,4915d12d150921250820653!




Re: [dspam-users] Simple Question about DeliveryProto

2008-11-07 Thread Alexander Prinsier
Yes, you set DeliveryProto and DeliveryHost to the postfix smtp server,
on another port than where your incoming mail came in. Then you
configure postfix to deliver the mail using dovecot's "deliver" program.

Don't forget to set
TrustedDeliveryAgent "/usr/sbin/sendmail"
(otherwise dspam won't have a way to get the mail back to postfix).

Alexander

Claudio Prono wrote:
> Hi to all,
> 
> Here is the scenario: i have postfix with mysql, dovecot as lda and
> dspam as antispam.
> If i set in dspam.conf DeliveryProto SMTP, the incoming mail do that thing?
> 
> incoming mail -> postfix smtp -> dspam check -> postfix smtp -> deliver
> with dovecot deliver to maibox
> 
> Is important for me to know this, because i use virtual quota with
> dovecot, so the deliver must be done always with the deliver program of
> dovecot. Works in that manner or i am wrong?
> 
> Thank u,
> 
> Claudio Prono.
> 


!DSPAM:1011,49142587150922067810002!




Re: AW: [dspam-users] email lost?

2008-10-18 Thread Alexander Prinsier
Imposit.com - Webmaster wrote:
> It means dspam is unable to initialize the tool context *gg*

Well, that part I already understood :)
> 
> First this isn’t an clairvoyante mailing list so please tell us how do you 
> setup dspam otherwise no one serious help.
> There so many ways of dspam installation and every has his own traps  :-)

Sorry, should have given more background.

Postfix is configured with content_filter=lmtp:inet:127.0.0.1:24
and dspam is configured with DeliveryHost 127.0.0.1, DeliveryPort 10026
and DeliveryProto SMTP. (and postfix accepts mail there :)).

I'm also using the mysql driver:
StorageDriver /usr/lib/dspam/libmysql_drv.so (and I configured
MySQLServer etc). All the rest is pretty standard I think.

Thanks,
Alexander

> 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Alexander 
> Prinsier
> Gesendet: Samstag, 18. Oktober 2008 11:03
> An: dspam-users@lists.nuclearelephant.com
> Betreff: [dspam-users] email lost?
> 
> Hello,
> 
> I'm testing dspam out, but then I got this in my logs. Dspam gave an
> error, but it still says it got the mail to postfix. And now the mail is
> lost... Shouldn't dspam tell it didn't have it, to prevent this loss of
> mail?
> 
> Oh, and what does "unable to initialize tools context" mean?:)
> 
> Oct 17 21:48:26 mx1 postfix/smtpd[17924]: connect from
> localhost.localdomain[127.0.0.1]
> Oct 17 21:48:39 mx1 postfix/smtpd[17924]: 272E92F2C460:
> client=localhost.localdomain[127.0.0.1]
> Oct 17 21:48:45 mx1 postfix/cleanup[17927]: 272E92F2C460:
> message-id=<[EMAIL PROTECTED]>
> Oct 17 21:48:45 mx1 postfix/qmgr[17918]: 272E92F2C460:
> from=<[EMAIL PROTECTED]>, size=401, nrcpt=1 (queue active)
> Oct 17 21:48:45 mx1 dspam[1674]: unable to initialize tools context
> Oct 17 21:48:45 mx1 last message repeated 2 times
> Oct 17 21:48:45 mx1 postfix/lmtp[17929]: 272E92F2C460:
> to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1]:24, delay=13,
> delays=12/0.03/0.04/0.04, dsn=2.6.0, status=sent (250 2.6.0
> <[EMAIL PROTECTED]> Message accepted for delivery)
> Oct 17 21:48:45 mx1 postfix/qmgr[17918]: 272E92F2C460: removed
> 
> Thanks,
> 
> Alexander
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


!DSPAM:1011,48f9ba1b150921973269664!




[dspam-users] email lost?

2008-10-18 Thread Alexander Prinsier
Hello,

I'm testing dspam out, but then I got this in my logs. Dspam gave an
error, but it still says it got the mail to postfix. And now the mail is
lost... Shouldn't dspam tell it didn't have it, to prevent this loss of
mail?

Oh, and what does "unable to initialize tools context" mean?:)

Oct 17 21:48:26 mx1 postfix/smtpd[17924]: connect from
localhost.localdomain[127.0.0.1]
Oct 17 21:48:39 mx1 postfix/smtpd[17924]: 272E92F2C460:
client=localhost.localdomain[127.0.0.1]
Oct 17 21:48:45 mx1 postfix/cleanup[17927]: 272E92F2C460:
message-id=<[EMAIL PROTECTED]>
Oct 17 21:48:45 mx1 postfix/qmgr[17918]: 272E92F2C460:
from=<[EMAIL PROTECTED]>, size=401, nrcpt=1 (queue active)
Oct 17 21:48:45 mx1 dspam[1674]: unable to initialize tools context
Oct 17 21:48:45 mx1 last message repeated 2 times
Oct 17 21:48:45 mx1 postfix/lmtp[17929]: 272E92F2C460:
to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1]:24, delay=13,
delays=12/0.03/0.04/0.04, dsn=2.6.0, status=sent (250 2.6.0
<[EMAIL PROTECTED]> Message accepted for delivery)
Oct 17 21:48:45 mx1 postfix/qmgr[17918]: 272E92F2C460: removed

Thanks,

Alexander

!DSPAM:1011,48f9a641150922012912715!




[dspam-users] dspam as relay for multiple servers

2008-10-10 Thread Alexander Prinsier
Hello,

Does anyone know how to setup dspam as a smtp relay for _multiple_
regular smtp servers?

So the regular smtp servers relay to dspam, and somehow dspam should be
smart enouph to be able to forward the tagged message to the original
regular smtp server.

It seems it's only possible to set 1 general forward server, not several
depending on where it came from...

Thanks!

Alexander


!DSPAM:1011,48ef5f7c150927643141691!




Re: [dspam-users] Issues using cvs snapshot

2008-05-24 Thread Alexander Prinsier
Hugo Monteiro wrote:
>> *No idea why configure doesn't complain about zlib anymore after
>> installing libldap2-dev.
>>   
> When you say you want --enable-external-lookup you are including LDAP
> support.
My apologies, I was a bit confused. I could reproduce the error I found
earlier. The problem is that the configure script doesn't check for the
required ldap headers.

$ ./configure --enable-daemon --enable-external-lookup --enable-clamav
--enable-debug --enable-syslog --enable-preferences-extension
--enable-long-usernames --enable-virtual-users
--with-mysql-includes=/usr/include/mysql/ --enable-verbose-debug
[snip]
$ make
[snip]
gcc -DHAVE_CONFIG_H -DLOGDIR=\"/usr/local/var/dspam/log\"
-DCONFDIR=\"/usr/local/etc\"
-DCONFIG_DEFAULT=\"/usr/local/etc/dspam.conf\" -D_THREAD_SAFE
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -I. -g -O2 -Wall
-Wmissing-prototypes -Wmissing-declarations -MT external_lookup.lo -MD
-MP -MF .deps/external_lookup.Tpo -c external_lookup.c  -fPIC -DPIC -o
.libs/external_lookup.o
external_lookup.c:48:18: error: ldap.h: No such file or directory
external_lookup.c: In function 'ldap_lookup':
external_lookup.c:148: error: 'LDAP' undeclared (first use in this function)

> 
> As for zlib, it's used by the mysql driver for some time now. But i also
> have no idea why does it stop complaining about zlib if you install
> libldap2-dev. It's not even a dependency for that package.

This symptom remains a bit strange, though not very important. :)

Also I might have found the reason for the statistics going a bit crazy.
I was using the snapshot functionality of dspam_stats, and was
monitoring the statistics from some point in time. After upgrading this
date of snapshot seems to have been reset, so that I'm seeing the data
since the beginning (=totals, even when running dspam_stats -s).

I know that in the beginning the user had alot of false positives etc,
so that would explain the odd stats.

Can anyone tell me where dspam_stats keeps it's data when taking a
snapshot? I guess this location is not the same between the original
debian package and the one I installed manually.

Sorry for all the fuzz.

Alexander

!DSPAM:1011,4838a52c150926730914339!




Re: [dspam-users] Issues using cvs snapshot

2008-05-24 Thread Alexander Prinsier
Hugo Monteiro wrote:
> Alexander Prinsier wrote:
>> Hello,
>>
>> As suggested I tried the latest cvs snapshot. Here are some thoughts
>> on it:
>>
>> -Can ldap be made optional through the configure script?
>>
>>   
> 
> --enable-ldap was substituted by the --enable-external-lookup directive.
> Besides the built-in LDAP lookup you can also choose a more generic user
> lookup method by using external scripting. For configuration, look for
> the ExtLookup* directives in dspam.conf.
Oh! that's a great new feature. Looking forward for a built-in mysql
lookup method ;)

But when I don't use --enable-external-lookup, then ldap shouldn't be
compiled in right? If that's the case it's not working :)

It's no real problem for me though, I just installed the ldap headers.
> 
>> -I previously was using the dspam package from debian stable. It has
>> some patches like the 'Include' directive. Obviously that wasn't working
>> anymore :) Any reason why these patches don't get integrated?
>>
>>   
> 
> From what i recall, the actual code gets properly patched with those
> patches. Problem is with the patch for the dspam.conf file. I have
> rolled out my own debs with the cvs version. You might want to try them.

What's the problem with the patch for the dspam.conf file?
> 
> check them here:
> 
> http://hmonteiro.net/repository:debian
> 
>> -I only have one user configured, but that user's 'False Positives' went
>> up quite alot suddenly. I'm sure it wasn't this high 2 days ago. Could
>> this upgrade have anything to do with it? (Ham strike rate went from
>> 0.4% to 8.3%).
>>
>>   
> 
> Actually i also found a slight increase of false positives right after i
> upgraded, but still not as high as you report.
> 
> I've retrained those messages and the number of false positives has
> droped to the small volume i had before.

Something mysterious is definitely happening here. Before this release
goes out as stable, this should be mentioned somewhere. You can imagine
that your users start to freak when they suddenly see their efficiency
drop alot :)

Alexander

!DSPAM:1011,4837ff2b150923848415725!




[dspam-users] Issues using cvs snapshot

2008-05-23 Thread Alexander Prinsier
Hello,

As suggested I tried the latest cvs snapshot. Here are some thoughts on it:

-Can ldap be made optional through the configure script?

-I previously was using the dspam package from debian stable. It has
some patches like the 'Include' directive. Obviously that wasn't working
anymore :) Any reason why these patches don't get integrated?

-I only have one user configured, but that user's 'False Positives' went
up quite alot suddenly. I'm sure it wasn't this high 2 days ago. Could
this upgrade have anything to do with it? (Ham strike rate went from
0.4% to 8.3%).

Alexander

!DSPAM:1011,4836ba06150922046817469!




[dspam-users] training with --signature, can't parse uid from signature?

2008-05-09 Thread Alexander Prinsier
Hello,

I've setup a mail system where dspam uids are logged to a database when
the user selects it to be spam/not spam. Now I'm writing a script that
feeds these signatures to dspam every day (so that it can train when the
server is mostly idle).

My script executes this:

dspamc --source=error --class=innocent
--signature=1003,481a8426182865547872000

But then I get this error in syslog: dspam[31876]: Unable to determine
the destination user

When I add a --user emailaddr then it works. Can't dspam determine the
recipient using the signature? His uid is in it...

If it's currently not possible, could you give some directions on how I
can change it, so I can perhaps make a patch?

Thanks,

Alexander



!DSPAM:1011,4824283b150921601424983!