[Dbmail-dev] SVN-1961: CRITICAL **: _handle_search_args: assertion `search_keys search_keys[*idx]' failed

2006-01-24 Thread Kevin
Got above error message prompt on the console, however the IMAP seems still
working.  Attached is the valgrind output.

Thanks,
Kevin
==22282== Memcheck, a memory error detector for x86-linux.
==22282== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==22282== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==22282== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==22282== Valgrind library directory: /usr/lib/valgrind
==22282== Command line
==22282==/usr/local/dbmail/2.1_svn1961/sbin/dbmail-imapd
==22282==-n
==22282== Startup, with flags:
==22282==--tool=memcheck
==22282==-v
==22282== Contents of /proc/version:
==22282==   Linux version 2.6.12.6-xenU ([EMAIL PROTECTED]) (gcc version 4.0.0 
20050519 (Red Hat 4.0.0-8)) #3 SMP Mon Dec 12 15:24:00 CST 2005
==22282== Reading syms from /usr/local/dbmail/2.1_svn1961/sbin/dbmail-imapd 
(0x8048000)
==22282== Reading syms from /lib/ld-2.3.4.so (0x1B8E4000)
==22282==object doesn't have any debug info
==22282== Reading syms from /usr/lib/valgrind/stage2 (0xB000)
==22282== Reading syms from /lib/ld-2.3.4.so (0xB100)
==22282==object doesn't have any debug info
==22282== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7C95000)
==22282== Reading syms from /lib/tls/i486/libc-2.3.4.so (0xB7EBE000)
==22282==object doesn't have any debug info
==22282== Reading syms from /lib/libdl-2.3.4.so (0xB7FD2000)
==22282==object doesn't have any debug info
==22282== Reading suppressions file: /usr/lib/valgrind/default.supp
==22282== REDIRECT soname:libc.so.6(__GI___errno_location) to 
soname:libpthread.so.0(__errno_location)
==22282== REDIRECT soname:libc.so.6(__errno_location) to 
soname:libpthread.so.0(__errno_location)
==22282== REDIRECT soname:libc.so.6(__GI___h_errno_location) to 
soname:libpthread.so.0(__h_errno_location)
==22282== REDIRECT soname:libc.so.6(__h_errno_location) to 
soname:libpthread.so.0(__h_errno_location)
==22282== REDIRECT soname:libc.so.6(__GI___res_state) to 
soname:libpthread.so.0(__res_state)
==22282== REDIRECT soname:libc.so.6(__res_state) to 
soname:libpthread.so.0(__res_state)
==22282== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==22282== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen)
==22282== REDIRECT soname:ld-linux.so.2(stpcpy) to 
*vgpreload_memcheck.so*(stpcpy)
==22282== REDIRECT soname:ld-linux.so.2(strchr) to 
*vgpreload_memcheck.so*(strchr)
==22282== 
==22282== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FA000)
==22282== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B8FF000)
==22282== TRANSLATE: 0x1B8F3FF0 redirected to 0x1B902100
==22282== Reading syms from 
/usr/local/dbmail/2.1_svn1961/lib/libdbmail.so.0.0.0 (0x1B906000)
==22282== Reading syms from 
/usr/local/dbmail/2.1_svn1961/lib/dbmail/libpgsql.so.0.0.0 (0x1B93D000)
==22282== Reading syms from /usr/local/pgsql/8.1.2/lib/libpq.so.4.1 (0x1B944000)
==22282==object doesn't have a symbol table
==22282==object doesn't have any debug info
==22282== Reading syms from 
/usr/local/dbmail/2.1_svn1961/lib/dbmail/libsort_sieve.so.0.0.0 (0x1B95E000)
==22282==object doesn't have any debug info
==22282== Reading syms from 
/usr/local/dbmail/2.1_svn1961/lib/dbmail/libauth_sql.so.0.0.0 (0x1B963000)
==22282== Reading syms from /usr/lib/libgmime-2.0.so.2.1.9 (0x1B974000)
==22282==object doesn't have a symbol table
==22282==object doesn't have any debug info
==22282== Reading syms from /usr/lib/libz.so.1.2.1.2 (0x1B9C4000)
==22282==object doesn't have a symbol table
==22282==object doesn't have any debug info
==22282== Reading syms from /lib/libnsl-2.3.4.so (0x1B9D5000)
==22282==object doesn't have any debug info
==22282== Reading syms from /usr/lib/libgobject-2.0.so.0.600.6 (0x1B9E9000)
==22282==object doesn't have a symbol table
==22282==object doesn't have any debug info
==22282== Reading syms from /usr/lib/libglib-2.0.so.0.600.6 (0x1BA26000)
==22282==object doesn't have a symbol table
==22282==object doesn't have any debug info
==22282== Reading syms from /lib/libcrypt-2.3.4.so (0x1BAB)
==22282==object doesn't have any debug info
==22282== Reading syms from /lib/tls/i486/libc-2.3.4.so (0x1BADE000)
==22282==object doesn't have any debug info
==22282== Reading syms from /lib/libresolv-2.3.4.so (0x1BBF2000)
==22282==object doesn't have any debug info
==22282== TRANSLATE: 0x1BB39988 redirected to 0x1B9028F8
==22282== TRANSLATE: 0x1BB39F14 redirected to 0x1B903326
==22282== TRANSLATE: 0x1BB396CC redirected to 0x1B903274
==22282== TRANSLATE: 0x1BB37B90 redirected to 0x1B902E24
==22282== TRANSLATE: 0x1BB3F090 redirected to 0x1B9026F4
==22282== Reading syms from /lib/libnss_files-2.3.4.so (0x1BD08000)
==22282==object doesn't have any debug info
* OK dbmail imap (protocol version 4r1) server 2.1 ready to run
. OK LOGIN completed
* 6 EXISTS
* 0 RECENT
* FLAGS (\Seen 

[Dbmail-dev] SVN-1961: IMAP: INBOX messages moved to Spam folder, but not me

2006-01-24 Thread Kevin
I found my messages in INBOX were moved to Spam folder mysteriously,
as I didn't issue such a command.  I have a filter setup in
SquirrelMail to move emails with header include X-DSPAM-Result: Spam
to Spam.  Certainly the moved emails are Innocent.

I grep the COMMAND from maillogin as below, any clue?

Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A001 LOGIN
x x]
Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A002 SELECT Spam]
Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A003 EXPUNGE]
Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A004 EXAMINE Spam]
Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A005 SELECT Spam]
Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A006 EXPUNGE]
Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A007 EXPUNGE]
Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A008 UID
SEARCH UID 1:21529]
Jan 24 14:29:59 centos42-03 dbmail/imap4d[22077]: COMMAND: [A009 UID
FETCH 1:* (FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To Cc
From Subject X-Priority Content-Type)])]
Jan 24 14:29:59 centos42-03 dbmail/imap4d[22077]: COMMAND: [A010 LOGOUT]
Jan 24 14:31:12 centos42-03 dbmail/imap4d[22079]: COMMAND: [. login x x]
Jan 24 14:31:25 centos42-03 dbmail/imap4d[22079]: COMMAND: [. SELECT Spam]
Jan 24 14:31:42 centos42-03 dbmail/imap4d[22079]: COMMAND: [. UID
SEARCH UID 1:21529]
Jan 24 14:32:27 centos42-03 dbmail/imap4d[22079]: COMMAND: [. logout]

Thanks,
Kevin


Re: [Dbmail-dev] SVN-1961: IMAP: INBOX messages moved to Spam folder, but not me

2006-01-24 Thread Paul J Stevens
why do you think things have moved to Spam? I don't see you selecting
INBOX at all here.

Kevin wrote:
 I found my messages in INBOX were moved to Spam folder mysteriously,
 as I didn't issue such a command.  I have a filter setup in
 SquirrelMail to move emails with header include X-DSPAM-Result: Spam
 to Spam.  Certainly the moved emails are Innocent.
 
 I grep the COMMAND from maillogin as below, any clue?
 
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A001 LOGIN
 x x]
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A002 SELECT 
 Spam]
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A003 EXPUNGE]
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A004 EXAMINE 
 Spam]
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A005 SELECT 
 Spam]
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A006 EXPUNGE]
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A007 EXPUNGE]
 Jan 24 14:29:58 centos42-03 dbmail/imap4d[22077]: COMMAND: [A008 UID
 SEARCH UID 1:21529]
 Jan 24 14:29:59 centos42-03 dbmail/imap4d[22077]: COMMAND: [A009 UID
 FETCH 1:* (FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To Cc
From Subject X-Priority Content-Type)])]
 Jan 24 14:29:59 centos42-03 dbmail/imap4d[22077]: COMMAND: [A010 LOGOUT]
 Jan 24 14:31:12 centos42-03 dbmail/imap4d[22079]: COMMAND: [. login x 
 x]
 Jan 24 14:31:25 centos42-03 dbmail/imap4d[22079]: COMMAND: [. SELECT Spam]
 Jan 24 14:31:42 centos42-03 dbmail/imap4d[22079]: COMMAND: [. UID
 SEARCH UID 1:21529]
 Jan 24 14:32:27 centos42-03 dbmail/imap4d[22079]: COMMAND: [. logout]
 
 Thanks,
 Kevin
 ___
 Dbmail-dev mailing list
 Dbmail-dev@dbmail.org
 http://twister.fastxs.net/mailman/listinfo/dbmail-dev
 

-- 
  
  Paul Stevens  paul at nfg.nl
  NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
  The Netherlandshttp://www.nfg.nl


Re: [Dbmail-dev] SORT capability

2006-01-24 Thread Paul J Stevens
I'll let things settle down a couple of days, and see if anything
critical pops up.

Kevin wrote:
 Just finished plugging all major leakage. Things look usable now.
 
 Cool, I'll try it out tonight.  Will you release 2.1.4 then?
 
 Cheers,
 Kevin
 
 
 
 
 ___
 Dbmail-dev mailing list
 Dbmail-dev@dbmail.org
 http://twister.fastxs.net/mailman/listinfo/dbmail-dev

-- 
  
  Paul Stevens  paul at nfg.nl
  NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
  The Netherlandshttp://www.nfg.nl


Re: [Dbmail-dev] SVN-1961: IMAP: INBOX messages moved to Spam folder, but not me

2006-01-24 Thread Kevin
I found out when I restarted the old dbmail-imapd (svn 1918), through
Outlook Express.  Spam folder suppose to have 3 emails but now have
200+, and INBOX is empty.

(I use both SquirrelMail and Outlook Express which makes it a little
bit confusing)

Kevin

On 1/23/06, Paul J Stevens [EMAIL PROTECTED] wrote:
 why do you think things have moved to Spam? I don't see you selecting
 INBOX at all here.


[Dbmail-dev] What about sieve?

2006-01-24 Thread Oleg Lapshin

Hello
I try to insert this sieve-script:

require fileinto;
if header :is X-Spam-Flag YES {
fileinto SPAM;}
else {
fileinto INBOX;}

with command:

dbmail-sievecmd -u loe -i spam1  sieve_spam1

and get:

*** dbmail-sievecmd ***
Opening connection to database...
Opening connection to authentication...
Ok. Connected!
Segmentation fault

This happens on this line in sievecmd.c:
res = sort_validate(user_idnr, @!temp-script!@, errmsg);

Last lines from strace:

fcntl64(6, F_SETFL, O_RDWR) = 0
write(6, Z\0\0\0\3SELECT script from dbmail_s..., 94) = 94
read(6, \271\0\0\1, 4)= 4
read(6, \377(\4#42000You have an error in yo..., 185) = 185
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


What did I do wrong?


-- 
Oleg Lapshin



Re: [Dbmail-dev] What about sieve?

2006-01-24 Thread Paul J Stevens
Oleg,

Sieve is a work-in-progress and unfinished. That's Aaron's brainchild. I
haven't a clue what the current status is, though I'm pretty sure Aaron
would have told us if it's in any way usable. Maybe Aaron can enlighten
us a bit here.


Oleg Lapshin wrote:
 Hello
 I try to insert this sieve-script:
 
 require fileinto;
 if header :is X-Spam-Flag YES {
 fileinto SPAM;}
 else {
 fileinto INBOX;}
 
 with command:
 
 dbmail-sievecmd -u loe -i spam1  sieve_spam1
 
 and get:
 
 *** dbmail-sievecmd ***
 Opening connection to database...
 Opening connection to authentication...
 Ok. Connected!
 Segmentation fault
 
 This happens on this line in sievecmd.c:
 res = sort_validate(user_idnr, @!temp-script!@, errmsg);
 
 Last lines from strace:
 
 fcntl64(6, F_SETFL, O_RDWR) = 0
 write(6, Z\0\0\0\3SELECT script from dbmail_s..., 94) = 94
 read(6, \271\0\0\1, 4)= 4
 read(6, \377(\4#42000You have an error in yo..., 185) = 185
 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
 +++ killed by SIGSEGV +++
 
 
 What did I do wrong?
 
 

-- 
  
  Paul Stevens  paul at nfg.nl
  NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
  The Netherlandshttp://www.nfg.nl


Re: [Dbmail-dev] Re: What about sieve?

2006-01-24 Thread Paul J Stevens


Oleg Lapshin wrote:
 I found error.
 patch:

applied

 Do sieve scripts work now?

Hardly. The wiki clearly states some pretty fundamental TODO's:

http://www.dbmail.org/dokuwiki/doku.php?id=sieve

but looking at modules/sortsieve.c, it doesn't look all that hard. The
framework looks to be quite complete.

Too bad Aaron doesn't seem to like unit-testing... (hint).

-- 
  
  Paul Stevens  paul at nfg.nl
  NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
  The Netherlandshttp://www.nfg.nl


Re: [Dbmail-dev] Re: What about sieve?

2006-01-24 Thread Aaron Stone
On Tue, 2006-01-24 at 09:48 +0100, Paul J Stevens wrote:
 Oleg Lapshin wrote:

  Do sieve scripts work now?
 
 Hardly. The wiki clearly states some pretty fundamental TODO's:
 http://www.dbmail.org/dokuwiki/doku.php?id=sieve
 but looking at modules/sortsieve.c, it doesn't look all that hard. The
 framework looks to be quite complete.

I'm been badly distracted by school this month. Two campus offices where
I do silly IT gruntwork have relocated, which means lots of moving
computers and listening to users tell you how much they appreciate your
help, but now wouldn't you just fix this one little thing...

The framework is in place, but I don't yet have an easy API within
DBMail to take action on messages at delivery time. When I did the Sieve
system the first time around a while back, I wrote a horrendous
abstraction layer for lists of generic message actions. It was too much
code for too little actual real work. Some might recall a big chunk of
sort.c disappearing around 2.0.4; it was that ugly code.

 Too bad Aaron doesn't seem to like unit-testing... (hint).

I haven't sat down to dig into the unit test framework at all. It might
have helped to catch that errant apostrophe. So, hint taken ;-)

Aaron




[Dbmail] using dbmail

2006-01-24 Thread khalid hussein

Hi all,
i installed dbmail, but i don't know how i can use it, i can add new user 
but i don't khnow how i can send mail to this user either using mail command 
line or from other MUA, i use sendmail+pop3 for my mail server and is 
running well, please help me if there any additional configuration for 
configuration files for the old mail server, and how i can use dbmail server 
for domains the host with running dbmail part of this domains.

thanks




Re: [Dbmail] using dbmail

2006-01-24 Thread Marc Dirix
There is an dbmailer.m4.

http://www.helgrim.com/dbmaildocs/files/dbmail.m4

You can put this in your /usr/share/sendmail/cf/mailer

and include in sendmail.mc :

MAILER('dbmail')

In mailertable you can add something like:

mydomaindbmail:mydomain

Or remove the MAILER('local') completely.

Secondly you can use the dbmailer-lsmtp
which is acts as a local smtp server to which you can forward the
mail.

Kind regards,

Marc Dirix


On Tue, Jan 24, 2006 at 10:07:35AM +, khalid hussein wrote:
 Hi all,
 i installed dbmail, but i don't know how i can use it, i can add new user 
 but i don't khnow how i can send mail to this user either using mail 
 command line or from other MUA, i use sendmail+pop3 for my mail server and 
 is running well, please help me if there any additional configuration for 
 configuration files for the old mail server, and how i can use dbmail 
 server for domains the host with running dbmail part of this domains.
 thanks
 
 
 ___
 Dbmail mailing list
 Dbmail@dbmail.org
 https://mailman.fastxs.nl/mailman/listinfo/dbmail


[Dbmail] Hardware Requirement

2006-01-24 Thread Tom Hancock
We are strongly considering deploying a Postfix/Dbmail email solution.
We will have 4 servers that will be running postfix, dbmail, and other
ISP related applications.  They will use a backend server for the
database storage.  The backend server will be running MySQL for Dbmail
storage and NFS for some other applications.  I do not envision NFS
being heavily utilized.  We currently have approximately 2500 email
accounts that get spam/virus filtered through Postini.

What hardware requirements would you recommend for the backend MySQL/NFS
server?  In particular I am interested in CPU and RAM requirements.

Any help will be appreciated.

Thank you,
Tom