Re: [Dovecot] Install Configuring and run.

2008-11-14 Thread Marko Weber

Hello Thorsten,
now on moving mail into SPAM folder seems okay in dspam.debug log =

16277: [11/14/2008 10:18:33] DSPAM Instance Startup
16277: [11/14/2008 10:18:33] input args: /usr/bin/dspam --source=error 
--class=spam --signature==?iso-8859-1?Q?1,491d3cb5151261000521152=0D?= 
--user clamav

16277: [11/14/2008 10:18:33] pass-thru args:
16277: [11/14/2008 10:18:33] processing user clamav
16277: [11/14/2008 10:18:33] uid = 207, euid = 207, gid = 207, egid = 1000
16277: [11/14/2008 10:18:33] loading preferences for user clamav
16277: [11/14/2008 10:18:33] Loading preferences for uid 1
16277: [11/14/2008 10:18:33] Loading preferences for uid 0
16277: [11/14/2008 10:18:33] Loading preferences for uid 0
16277: [11/14/2008 10:18:33] default preferences empty. reverting to 
dspam.conf preferences.

16277: [11/14/2008 10:18:33] Loading preferences from dspam.conf
16277: [11/14/2008 10:18:33] using 
/var/spool/dspam/opt-in/local/clamav.dspam as path
16277: [11/14/2008 10:18:33] using 
/var/spool/dspam/opt-out/local/clamav.nodspam as path

16277: [11/14/2008 10:18:33] sedation level set to: 0
16277: [11/14/2008 10:18:33] DSPAM Instance Shutdown.  Exit Code: 0

BUT, in systemlog  /var/log/messages i get this =

Nov 14 10:20:25 kraftwerk1 imap: antispam: /usr/bin/dspam --source=error 
--class=spam --signature==?iso-8859-1?Q?1,491d40b9162159695846858=0D?= ...
Nov 14 10:20:25 kraftwerk1 dspam[16295]: _ds_get_signature(): 
_mysql_drv_getpwuid(0) failed: aborting
Nov 14 10:20:25 kraftwerk1 dspam[16295]: Signature retrieval for 
'=?iso-8859-1?Q?1,491d40b9162159695846858=0D?=' failed
Nov 14 10:20:25 kraftwerk1 dspam[16295]: Unable to find a valid 
signature. Aborting.
Nov 14 10:20:25 kraftwerk1 dspam[16295]: process_message returned error 
-5.  dropping message.


maybe its cause now all is done with user clamav, and before incoming 
mails was checked as user clamav and moving mails was done by user 
postfix... dunno
but when incoming mails was scanned as user clamav and signatur was 
saved for clamav in db and now moving mails is also done by user clamav 
, why

he cant finde the signatur ?

i also added user clamav  postfix as Trust user in dspam.conf

marko





Thorsten Vollmer schrieb:

On Thu, 2008-11-13 at 23:44 +0100, Marko Weber wrote:
  

Hello Thorsten,
i got dovecot-antispam working now.
also moving mails now fully work.
but retraining dont seems to work fully.

emails that are delivered to mailbox are scanned with user  clamav

28799: [11/13/2008 23:26:25] DSPAM Instance Startup
28799: [11/13/2008 23:26:25] input args: /usr/bin/dspam --stdout 
--deliver=spam,innocent --mode=tum --tokenizer=chained,noise 
--enable-signature-headers --user clamav
28799: [11/13/2008 23:26:25] pass-thru args: --tokenizer=chained,noise 
--enable-signature-headers

28799: [11/13/2008 23:26:25] processing user clamav
28799: [11/13/2008 23:26:25] uid = 105, euid = 105, gid = 449, egid = 1000
28799: [11/13/2008 23:26:25] loading preferences for user clamav
28799: [11/13/2008 23:26:25] Loading preferences for uid 1


i dont have a maildrop filter ready yet that move spam tagged mails into 
SPAM folder.

all is delivered to incoming.
when i now move the mail to SPAM; this is done by user postfix



28917: [11/13/2008 23:40:17] DSPAM Instance Startup
28917: [11/13/2008 23:40:17] input args: /usr/bin/dspam --source=error 
--class=spam --signature==?iso-8859-1?Q?1,491930ac25229173225906=0D?=

28917: [11/13/2008 23:40:17] pass-thru args:
28917: [11/13/2008 23:40:17] processing user postfix
28917: [11/13/2008 23:40:17] uid = 207, euid = 207, gid = 207, egid = 1000
28917: [11/13/2008 23:40:17] loading preferences for user postfix
28917: [11/13/2008 23:40:17] Loading preferences for uid 6
28917: [11/13/2008 23:40:17] Loading preferences for uid 0
28917: [11/13/2008 23:40:17] Loading preferences for uid 0
28917: [11/13/2008 23:40:17] default preferences empty. reverting to 
dspam.conf preferences.

28917: [11/13/2008 23:40:17] Loading preferences from dspam.conf
28917: [11/13/2008 23:40:17] using 
/var/spool/dspam/opt-in/local/postfix.dspam as path
28917: [11/13/2008 23:40:17] using 
/var/spool/dspam/opt-out/local/postfix.nodspam as path

28917: [11/13/2008 23:40:17] sedation level set to: 0
28917: [11/13/2008 23:40:17] DSPAM Instance Shutdown.  Exit Code: 0


Now when i move the mail again into incoming (also done by user 
postfix), the mail dont get tagged with innocent , it is still tagged 
spam.


How do i get it work all under clamav



If you really have a single user for DSPAM, add antispam_dspam_args =
--user;clamav to dovecot.conf.

Also, the user running dovecot's mail process needs to be trusted by
DSPAM.

  

and why are the removed mails from spam to incoming not tagged with
inncoent ?



dovecot-antispam does not change any headers of the messages you move.

  

(do you need any logs?)

thank you

marko



  


--

--
*Marko Weber* | Administration

*SALON DIGITAL* Media GmbH
Rothenbaumchaussee 19a
20148 Hamburg

T. 

Re: [Dovecot] Mailbox Hashing

2008-11-14 Thread Charles Marcus
On 11/13/2008, Kyle Wheeler ([EMAIL PROTECTED]) wrote:
 (ReiserFS is often viewed as a purely experimental filesystem, and
 not reliable for production systems)

Please stop spreading FUD.

-- 

Best regards,

Charles


Re: [Dovecot] Install Configuring and run.

2008-11-14 Thread Marko Weber

Hello Thorsten , Hello All in List,

i got to write again,
ok : dspam workinng , dovecot-antispam working

moving mails to or out of spam seems to work and is listed in the logs;
BUT the logs shows this on moving a mail to or from spam =


Nov 14 11:31:57 kraftwerk1 imap: antispam: /usr/bin/dspam --source=error 
--class=innocent 
--signature==?iso-8859-1?Q?1,491d521770551288576733=0D?= ...
Nov 14 11:31:57 kraftwerk1 dspam[7203]: _ds_get_signature(): 
_mysql_drv_getpwuid(0) failed: aborting
Nov 14 11:31:57 kraftwerk1 dspam[7203]: Signature retrieval for 
'=?iso-8859-1?Q?1,491d521770551288576733=0D?=' failed
Nov 14 11:31:57 kraftwerk1 dspam[7203]: Unable to find a valid 
signature. Aborting.
Nov 14 11:31:57 kraftwerk1 dspam[7203]: process_message returned error 
-5.  dropping message.


incoming mails are scanned by user clamav and mails are moved now by 
user clamav after the the Tip of  Thorsten adding this to dovecot.conf =


antispam_dspam_args = --user;clamav

the following point in the logs  mysql_drv_getpwuid(0)  , looks for me 
like dspam tries with User-ID 0 to work,

but User clamav is in the mysql-db with User ID 1

do i have to set any special entires in dovecot.conf or dspam.conf ?

marko









Marko Weber schrieb:

Hello Thorsten,
now on moving mail into SPAM folder seems okay in dspam.debug log =

16277: [11/14/2008 10:18:33] DSPAM Instance Startup
16277: [11/14/2008 10:18:33] input args: /usr/bin/dspam --source=error 
--class=spam --signature==?iso-8859-1?Q?1,491d3cb5151261000521152=0D?= 
--user clamav

16277: [11/14/2008 10:18:33] pass-thru args:
16277: [11/14/2008 10:18:33] processing user clamav
16277: [11/14/2008 10:18:33] uid = 207, euid = 207, gid = 207, egid = 
1000

16277: [11/14/2008 10:18:33] loading preferences for user clamav
16277: [11/14/2008 10:18:33] Loading preferences for uid 1
16277: [11/14/2008 10:18:33] Loading preferences for uid 0
16277: [11/14/2008 10:18:33] Loading preferences for uid 0
16277: [11/14/2008 10:18:33] default preferences empty. reverting to 
dspam.conf preferences.

16277: [11/14/2008 10:18:33] Loading preferences from dspam.conf
16277: [11/14/2008 10:18:33] using 
/var/spool/dspam/opt-in/local/clamav.dspam as path
16277: [11/14/2008 10:18:33] using 
/var/spool/dspam/opt-out/local/clamav.nodspam as path

16277: [11/14/2008 10:18:33] sedation level set to: 0
16277: [11/14/2008 10:18:33] DSPAM Instance Shutdown.  Exit Code: 0

BUT, in systemlog  /var/log/messages i get this =

Nov 14 10:20:25 kraftwerk1 imap: antispam: /usr/bin/dspam 
--source=error --class=spam 
--signature==?iso-8859-1?Q?1,491d40b9162159695846858=0D?= ...
Nov 14 10:20:25 kraftwerk1 dspam[16295]: _ds_get_signature(): 
_mysql_drv_getpwuid(0) failed: aborting
Nov 14 10:20:25 kraftwerk1 dspam[16295]: Signature retrieval for 
'=?iso-8859-1?Q?1,491d40b9162159695846858=0D?=' failed
Nov 14 10:20:25 kraftwerk1 dspam[16295]: Unable to find a valid 
signature. Aborting.
Nov 14 10:20:25 kraftwerk1 dspam[16295]: process_message returned 
error -5.  dropping message.


maybe its cause now all is done with user clamav, and before incoming 
mails was checked as user clamav and moving mails was done by user 
postfix... dunno
but when incoming mails was scanned as user clamav and signatur was 
saved for clamav in db and now moving mails is also done by user 
clamav , why

he cant finde the signatur ?

i also added user clamav  postfix as Trust user in dspam.conf

marko





Thorsten Vollmer schrieb:

On Thu, 2008-11-13 at 23:44 +0100, Marko Weber wrote:
 

Hello Thorsten,
i got dovecot-antispam working now.
also moving mails now fully work.
but retraining dont seems to work fully.

emails that are delivered to mailbox are scanned with user  clamav

28799: [11/13/2008 23:26:25] DSPAM Instance Startup
28799: [11/13/2008 23:26:25] input args: /usr/bin/dspam --stdout 
--deliver=spam,innocent --mode=tum --tokenizer=chained,noise 
--enable-signature-headers --user clamav
28799: [11/13/2008 23:26:25] pass-thru args: 
--tokenizer=chained,noise --enable-signature-headers

28799: [11/13/2008 23:26:25] processing user clamav
28799: [11/13/2008 23:26:25] uid = 105, euid = 105, gid = 449, egid 
= 1000

28799: [11/13/2008 23:26:25] loading preferences for user clamav
28799: [11/13/2008 23:26:25] Loading preferences for uid 1


i dont have a maildrop filter ready yet that move spam tagged mails 
into SPAM folder.

all is delivered to incoming.
when i now move the mail to SPAM; this is done by user postfix



28917: [11/13/2008 23:40:17] DSPAM Instance Startup
28917: [11/13/2008 23:40:17] input args: /usr/bin/dspam 
--source=error --class=spam 
--signature==?iso-8859-1?Q?1,491930ac25229173225906=0D?=

28917: [11/13/2008 23:40:17] pass-thru args:
28917: [11/13/2008 23:40:17] processing user postfix
28917: [11/13/2008 23:40:17] uid = 207, euid = 207, gid = 207, egid 
= 1000

28917: [11/13/2008 23:40:17] loading preferences for user postfix
28917: [11/13/2008 23:40:17] Loading preferences for uid 6
28917: [11/13/2008 

Re: [Dovecot] Dovecot error with Symbian mail client

2008-11-14 Thread Jan Seeger
Thanks for the replies.

I guess Timo is right, since I already
upgraded from 1.0.9 to version 1.0.13. So I probably need to change my
openssl version. What would be the easiest way to do that, since I'm
on an debian etch server, which (I think) I cant upgrade?

Regards,
Jan Seeger


Re: [Dovecot] Dovecot error with Symbian mail client

2008-11-14 Thread Marko Weber

Hi Jan,

normally on debian server u do this :

# aptitude update
# aptitude upgrade

look on aptitude upgrade if openssl is listed to be updated with a newer 
version nr


marko





Jan Seeger schrieb:

Thanks for the replies.

I guess Timo is right, since I already
upgraded from 1.0.9 to version 1.0.13. So I probably need to change my
openssl version. What would be the easiest way to do that, since I'm
on an debian etch server, which (I think) I cant upgrade?

Regards,
Jan Seeger

  


--

--
*Marko Weber* | Administration

*SALON DIGITAL* Media GmbH
Rothenbaumchaussee 19a
20148 Hamburg

T. (040) 429 48 68 - 23
F. (040) 429 48 68 - 20

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.salondigital.de http://www.salondigital.de

--
Geschäftsführung: Stephan Michalik, Ekkehart Opitz
Registergericht: Amtsgericht Hamburg, NR: HRB 78111

NOTE: This communication is confidential and is intended for the use of 
the individual or entity to which it is directed. It may contain 
information that is privileged and exempt from disclosure under 
applicable law. If you are not the intended recipient please notify us 
immediately. You should not copy it or disclose its contents to any 
other person.




Re: [Dovecot] Install Configuring and run.

2008-11-14 Thread Thorsten Vollmer
On Fri, 2008-11-14 at 11:40 +0100, Marko Weber wrote:
 Hello Thorsten , Hello All in List,
 
 i got to write again,
 ok : dspam workinng , dovecot-antispam working
 
 moving mails to or out of spam seems to work and is listed in the logs;
 BUT the logs shows this on moving a mail to or from spam =
 
 
 Nov 14 11:31:57 kraftwerk1 imap: antispam: /usr/bin/dspam --source=error 
 --class=innocent 
 --signature==?iso-8859-1?Q?1,491d521770551288576733=0D?= ...
 Nov 14 11:31:57 kraftwerk1 dspam[7203]: _ds_get_signature(): 
 _mysql_drv_getpwuid(0) failed: aborting
 Nov 14 11:31:57 kraftwerk1 dspam[7203]: Signature retrieval for 
 '=?iso-8859-1?Q?1,491d521770551288576733=0D?=' failed
 Nov 14 11:31:57 kraftwerk1 dspam[7203]: Unable to find a valid 
 signature. Aborting.
 Nov 14 11:31:57 kraftwerk1 dspam[7203]: process_message returned error 
 -5.  dropping message.
 
 incoming mails are scanned by user clamav and mails are moved now by 
 user clamav after the the Tip of  Thorsten adding this to dovecot.conf =
 
 antispam_dspam_args = --user;clamav

I just realized that you enabled MySQLUIDInSignature. Thus specifying
the user is not strictly necessary.

You may also try to disable MySQLUIDInSignature.

 the following point in the logs  mysql_drv_getpwuid(0)  , looks for me 
 like dspam tries with User-ID 0 to work,
 but User clamav is in the mysql-db with User ID 1
 
 do i have to set any special entires in dovecot.conf or dspam.conf ?
 
 marko



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot error with Symbian mail client

2008-11-14 Thread Jan Seeger
At Fri, 14 Nov 2008 11:57:17 +0100,
Marko Weber wrote:
 
 Hi Jan,
 
 normally on debian server u do this :
 
 # aptitude update
 # aptitude upgrade

Greetings!

I do have the latest versions of all packages installed, so an upgrade
won't do anything. A downgrade seems not to be possible, so I should
probably look into doing a dist-upgrade...

Regards,
Jan Seeger


Re: [Dovecot] Dovecot error with Symbian mail client

2008-11-14 Thread Charles Marcus
On 11/14/2008, Jan Seeger ([EMAIL PROTECTED]) wrote:
 I guess Timo is right, since I already
 upgraded from 1.0.9 to version 1.0.13.

1.1.16 is the current stable version...

-- 

Best regards,

Charles


Re: [Dovecot] Install Configuring and run.

2008-11-14 Thread Marko Weber

Hi Thorsten,

now it looks different to old log before,

I disabled  MySQLUIDInSignature like you said ,
now when i move a  mail to SPAM folder  dspam.debug tells this =

2376: [11/14/2008 14:02:51] DSPAM Instance Startup
2376: [11/14/2008 14:02:51] input args: /usr/bin/dspam --source=error 
--class=spam --signature==?iso-8859-1?Q?491d76cb23581804284693=0D?= 
--user clamav

2376: [11/14/2008 14:02:51] pass-thru args:
2376: [11/14/2008 14:02:51] processing user clamav
2376: [11/14/2008 14:02:51] uid = 207, euid = 207, gid = 207, egid = 1000
2376: [11/14/2008 14:02:51] loading preferences for user clamav
2376: [11/14/2008 14:02:51] Loading preferences for uid 1
2376: [11/14/2008 14:02:51] Loading preferences for uid 0
2376: [11/14/2008 14:02:51] Loading preferences for uid 0
2376: [11/14/2008 14:02:51] default preferences empty. reverting to 
dspam.conf preferences.

2376: [11/14/2008 14:02:51] Loading preferences from dspam.conf
2376: [11/14/2008 14:02:51] using 
/var/spool/dspam/opt-in/local/clamav.dspam as path
2376: [11/14/2008 14:02:51] using 
/var/spool/dspam/opt-out/local/clamav.nodspam as path

2376: [11/14/2008 14:02:51] sedation level set to: 0
2376: [11/14/2008 14:02:51] mysql_fetch_row() failed in _ds_get_signature
2376: [11/14/2008 14:02:51] DSPAM Instance Shutdown.  Exit Code: 0

failed on fetch_row

the /var/log/messages tells this =

Nov 14 14:02:51 kraftwerk1 imap: antispam: /usr/bin/dspam --source=error 
--class=spam --signature==?iso-8859-1?Q?491d76cb23581804284693=0D?= ...
Nov 14 14:02:51 kraftwerk1 dspam[2376]: Signature retrieval for 
'=?iso-8859-1?Q?491d76cb23581804284693=0D?=' failed
Nov 14 14:02:51 kraftwerk1 dspam[2376]: Unable to find a valid 
signature. Aborting.
Nov 14 14:02:51 kraftwerk1 dspam[2376]: process_message returned error 
-5.  dropping message.


when i search with phpmyadmin in the database the signatur 
491d76cb23581804284693 is there.


i really dont get it what can be wrong.

thanks

marko






Thorsten Vollmer schrieb:

On Fri, 2008-11-14 at 11:40 +0100, Marko Weber wrote:
  

Hello Thorsten , Hello All in List,

i got to write again,
ok : dspam workinng , dovecot-antispam working

moving mails to or out of spam seems to work and is listed in the logs;
BUT the logs shows this on moving a mail to or from spam =


Nov 14 11:31:57 kraftwerk1 imap: antispam: /usr/bin/dspam --source=error 
--class=innocent 
--signature==?iso-8859-1?Q?1,491d521770551288576733=0D?= ...
Nov 14 11:31:57 kraftwerk1 dspam[7203]: _ds_get_signature(): 
_mysql_drv_getpwuid(0) failed: aborting
Nov 14 11:31:57 kraftwerk1 dspam[7203]: Signature retrieval for 
'=?iso-8859-1?Q?1,491d521770551288576733=0D?=' failed
Nov 14 11:31:57 kraftwerk1 dspam[7203]: Unable to find a valid 
signature. Aborting.
Nov 14 11:31:57 kraftwerk1 dspam[7203]: process_message returned error 
-5.  dropping message.


incoming mails are scanned by user clamav and mails are moved now by 
user clamav after the the Tip of  Thorsten adding this to dovecot.conf =


antispam_dspam_args = --user;clamav



I just realized that you enabled MySQLUIDInSignature. Thus specifying
the user is not strictly necessary.

You may also try to disable MySQLUIDInSignature.

  
the following point in the logs  mysql_drv_getpwuid(0)  , looks for me 
like dspam tries with User-ID 0 to work,

but User clamav is in the mysql-db with User ID 1

do i have to set any special entires in dovecot.conf or dspam.conf ?

marko



  


--

--
*Marko Weber* | Administration

*SALON DIGITAL* Media GmbH
Rothenbaumchaussee 19a
20148 Hamburg

T. (040) 429 48 68 - 23
F. (040) 429 48 68 - 20

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.salondigital.de http://www.salondigital.de

--
Geschäftsführung: Stephan Michalik, Ekkehart Opitz
Registergericht: Amtsgericht Hamburg, NR: HRB 78111

NOTE: This communication is confidential and is intended for the use of 
the individual or entity to which it is directed. It may contain 
information that is privileged and exempt from disclosure under 
applicable law. If you are not the intended recipient please notify us 
immediately. You should not copy it or disclose its contents to any 
other person.




Re: [Dovecot] Install Configuring and run.

2008-11-14 Thread Thorsten Vollmer
On Fri, 2008-11-14 at 14:09 +0100, Marko Weber wrote:
 now it looks different to old log before,
 
 I disabled  MySQLUIDInSignature like you said ,
 now when i move a  mail to SPAM folder  dspam.debug tells this =
 
 2376: [11/14/2008 14:02:51] DSPAM Instance Startup
 2376: [11/14/2008 14:02:51] input args: /usr/bin/dspam --source=error 
 --class=spam --signature==?iso-8859-1?Q?491d76cb23581804284693=0D?= 
 --user clamav
 2376: [11/14/2008 14:02:51] pass-thru args:
 2376: [11/14/2008 14:02:51] processing user clamav
 2376: [11/14/2008 14:02:51] uid = 207, euid = 207, gid = 207, egid = 1000
 2376: [11/14/2008 14:02:51] loading preferences for user clamav
 2376: [11/14/2008 14:02:51] Loading preferences for uid 1
 2376: [11/14/2008 14:02:51] Loading preferences for uid 0
 2376: [11/14/2008 14:02:51] Loading preferences for uid 0
 2376: [11/14/2008 14:02:51] default preferences empty. reverting to 
 dspam.conf preferences.
 2376: [11/14/2008 14:02:51] Loading preferences from dspam.conf
 2376: [11/14/2008 14:02:51] using 
 /var/spool/dspam/opt-in/local/clamav.dspam as path
 2376: [11/14/2008 14:02:51] using 
 /var/spool/dspam/opt-out/local/clamav.nodspam as path
 2376: [11/14/2008 14:02:51] sedation level set to: 0
 2376: [11/14/2008 14:02:51] mysql_fetch_row() failed in _ds_get_signature
 2376: [11/14/2008 14:02:51] DSPAM Instance Shutdown.  Exit Code: 0
  
 failed on fetch_row
 
 the /var/log/messages tells this =
 
 Nov 14 14:02:51 kraftwerk1 imap: antispam: /usr/bin/dspam --source=error 
 --class=spam --signature==?iso-8859-1?Q?491d76cb23581804284693=0D?= ...
 Nov 14 14:02:51 kraftwerk1 dspam[2376]: Signature retrieval for 
 '=?iso-8859-1?Q?491d76cb23581804284693=0D?=' failed
 Nov 14 14:02:51 kraftwerk1 dspam[2376]: Unable to find a valid 
 signature. Aborting.
 Nov 14 14:02:51 kraftwerk1 dspam[2376]: process_message returned error 
 -5.  dropping message.
 
 when i search with phpmyadmin in the database the signatur 
 491d76cb23581804284693 is there.
 
 i really dont get it what can be wrong.

This is obviously no problem with dovecot-antispam. I am sure that you
will get more help on DSPAM's mailing list.

Regards,
Thorsten



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Mailbox Hashing

2008-11-14 Thread Kyle Wheeler

On Friday, November 14 at 05:30 AM, quoth Charles Marcus:

On 11/13/2008, Kyle Wheeler ([EMAIL PROTECTED]) wrote:

(ReiserFS is often viewed as a purely experimental filesystem, and
not reliable for production systems)


Please stop spreading FUD.


shrug I'm not saying that's *true*, I'm just saying I've heard that 
a lot... It's entirely possible that ReiserFS is just as reliable as 
any other filesystem *now* but someone pushed it into the mainline 
Linux kernel before it was ready, thereby biting the early adopters 
with bugs that hadn't been worked out yet and creating the impression 
that it isn't very stable.


~Kyle
--
Unthinking respect for authority is the greatest enemy of truth.
-- Albert Einstein


pgpsppJdKgVt8.pgp
Description: PGP signature


Re: [Dovecot] antispam plugin claims antispam signature not found

2008-11-14 Thread Guillaume HILT



Johannes Berg a écrit :

On Tue, 2008-11-11 at 11:42 +0100, Johannes Berg wrote:

  

Not sure, I personally think that moving them silently makes errors
harder to diagnose. I'll add an option since then you can set this
option (antispam_missing_signature = [error|move]) to move after you've
tested and verified that it works just fine.



Try this patch please, I have only compiled it so far. (there might be
rejects in the signature-log.c file unless you update to the current git
tree but you don't care about that)

diff --git a/antispam.7 b/antispam.7
index d07c1d0..e26db69 100644
--- a/antispam.7
+++ b/antispam.7
@@ -108,6 +108,13 @@ plugin {
 # mail signature (used with any backend requiring a signature)
 antispam_signature = X-DSPAM-Signature
 
+# action to take on mails without signature

+# (used with any backend requiring a signature)
+# (we recommend only setting this to 'move' after verifying that the
+# whole setup is working)
+# antispam_signature_missing = move # move silently without training
+antispam_signature_missing = error
+
 # semicolon-separated list of Trash folders (default unset i.e. none)
 # antispam_trash =
 # antispam_trash = trash;Trash;Deleted Items
diff --git a/signature-log.c b/signature-log.c
index ab8cd6d..5b7b306 100644
--- a/signature-log.c
+++ b/signature-log.c
@@ -99,7 +99,12 @@ int backend_handle_mail(struct mailbox_transaction_context 
*t,
return -1;
}
 
-	signature = signature_extract(t, mail);

+   ret = signature_extract(t, mail, signature);
+   if (ret)
+   return ret;
+
+   if (!signature)
+   return 0;
 
 	switch (wanted) {

case CLASS_SPAM:
diff --git a/signature.c b/signature.c
index 7f9d83b..7ad29d6 100644
--- a/signature.c
+++ b/signature.c
@@ -5,6 +5,7 @@
 #include mail-storage-private.h
 
 const char *signature_hdr = X-DSPAM-Signature;

+static int signature_nosig_ignore = 0;
 
 void signature_init(void)

 {
@@ -12,6 +13,16 @@ void signature_init(void)
if (tmp)
signature_hdr = tmp;
debug(signature header line is \%s\\n, signature_hdr);
+
+   tmp = get_setting(SIGNATURE_MISSING);
+   if (!tmp)
+   tmp = error;
+   if (strcmp(tmp, move) == 0) {
+   signature_nosig_ignore = 1;
+   debug(will silently move mails with missing signature\n);
+   } else if (strcmp(tmp, error) != 0) {
+   debug(invalid signature_missing setting '%s', ignoring\n, 
tmp);
+   }
 }
 
 int signature_extract_to_list(struct mailbox_transaction_context *t,

@@ -23,10 +34,14 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,
 
 	signatures = get_mail_headers(mail, signature_hdr);

if (!signatures || !signatures[0]) {
-   mail_storage_set_error(t-box-storage,
-  ME(NOTPOSSIBLE)
-  antispam signature not found);
-   return -1;
+   if (!signature_nosig_ignore) {
+   mail_storage_set_error(t-box-storage,
+  ME(NOTPOSSIBLE)
+  antispam signature not found);
+   return -1;
+   } else {
+   return 0;
+   }
}
 
 	while (signatures[1])

@@ -42,23 +57,30 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,
return 0;
 }
 
-const char *signature_extract(struct mailbox_transaction_context *t,

- struct mail *mail)
+int signature_extract(struct mailbox_transaction_context *t,
+ struct mail *mail, const char **signature)
 {
const char *const *signatures;
 
 	signatures = get_mail_headers(mail, signature_hdr);

if (!signatures || !signatures[0]) {
-   mail_storage_set_error(t-box-storage,
-  ME(NOTPOSSIBLE)
-  antispam signature not found);
-   return NULL;
+   if (!signature_nosig_ignore) {
+   mail_storage_set_error(t-box-storage,
+  ME(NOTPOSSIBLE)
+  antispam signature not found);
+   return -1;
+   } else {
+   *signature = NULL;
+   return 0;
+   }
}
 
 	while (signatures[1])

signatures++;
 
-	return signatures[0];

+   *signature = signatures[0];
+
+   return 0;
 }
 
 void signature_list_free(struct siglist **list)

diff --git a/signature.h b/signature.h
index e25d1b5..1384924 100644
--- a/signature.h
+++ b/signature.h
@@ -16,8 +16,8 @@ void signature_init(void);
 int signature_extract_to_list(struct mailbox_transaction_context *t,
 

Re: [Dovecot] antispam plugin claims antispam signature not found

2008-11-14 Thread Guillaume HILT

I have the same problem and i'm wondering how should i use this patch ?
I'm not familiar with the patch command.

Thanks.

PS: Sorry for the empty mail

Johannes Berg a écrit 

On Tue, 2008-11-11 at 11:42 +0100, Johannes Berg wrote:

  

Not sure, I personally think that moving them silently makes errors
harder to diagnose. I'll add an option since then you can set this
option (antispam_missing_signature = [error|move]) to move after you've
tested and verified that it works just fine.



Try this patch please, I have only compiled it so far. (there might be
rejects in the signature-log.c file unless you update to the current git
tree but you don't care about that)

diff --git a/antispam.7 b/antispam.7
index d07c1d0..e26db69 100644
--- a/antispam.7
+++ b/antispam.7
@@ -108,6 +108,13 @@ plugin {
 # mail signature (used with any backend requiring a signature)
 antispam_signature = X-DSPAM-Signature
 
+# action to take on mails without signature

+# (used with any backend requiring a signature)
+# (we recommend only setting this to 'move' after verifying that the
+# whole setup is working)
+# antispam_signature_missing = move # move silently without training
+antispam_signature_missing = error
+
 # semicolon-separated list of Trash folders (default unset i.e. none)
 # antispam_trash =
 # antispam_trash = trash;Trash;Deleted Items
diff --git a/signature-log.c b/signature-log.c
index ab8cd6d..5b7b306 100644
--- a/signature-log.c
+++ b/signature-log.c
@@ -99,7 +99,12 @@ int backend_handle_mail(struct mailbox_transaction_context 
*t,
return -1;
}
 
-	signature = signature_extract(t, mail);

+   ret = signature_extract(t, mail, signature);
+   if (ret)
+   return ret;
+
+   if (!signature)
+   return 0;
 
 	switch (wanted) {

case CLASS_SPAM:
diff --git a/signature.c b/signature.c
index 7f9d83b..7ad29d6 100644
--- a/signature.c
+++ b/signature.c
@@ -5,6 +5,7 @@
 #include mail-storage-private.h
 
 const char *signature_hdr = X-DSPAM-Signature;

+static int signature_nosig_ignore = 0;
 
 void signature_init(void)

 {
@@ -12,6 +13,16 @@ void signature_init(void)
if (tmp)
signature_hdr = tmp;
debug(signature header line is \%s\\n, signature_hdr);
+
+   tmp = get_setting(SIGNATURE_MISSING);
+   if (!tmp)
+   tmp = error;
+   if (strcmp(tmp, move) == 0) {
+   signature_nosig_ignore = 1;
+   debug(will silently move mails with missing signature\n);
+   } else if (strcmp(tmp, error) != 0) {
+   debug(invalid signature_missing setting '%s', ignoring\n, 
tmp);
+   }
 }
 
 int signature_extract_to_list(struct mailbox_transaction_context *t,

@@ -23,10 +34,14 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,
 
 	signatures = get_mail_headers(mail, signature_hdr);

if (!signatures || !signatures[0]) {
-   mail_storage_set_error(t-box-storage,
-  ME(NOTPOSSIBLE)
-  antispam signature not found);
-   return -1;
+   if (!signature_nosig_ignore) {
+   mail_storage_set_error(t-box-storage,
+  ME(NOTPOSSIBLE)
+  antispam signature not found);
+   return -1;
+   } else {
+   return 0;
+   }
}
 
 	while (signatures[1])

@@ -42,23 +57,30 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,
return 0;
 }
 
-const char *signature_extract(struct mailbox_transaction_context *t,

- struct mail *mail)
+int signature_extract(struct mailbox_transaction_context *t,
+ struct mail *mail, const char **signature)
 {
const char *const *signatures;
 
 	signatures = get_mail_headers(mail, signature_hdr);

if (!signatures || !signatures[0]) {
-   mail_storage_set_error(t-box-storage,
-  ME(NOTPOSSIBLE)
-  antispam signature not found);
-   return NULL;
+   if (!signature_nosig_ignore) {
+   mail_storage_set_error(t-box-storage,
+  ME(NOTPOSSIBLE)
+  antispam signature not found);
+   return -1;
+   } else {
+   *signature = NULL;
+   return 0;
+   }
}
 
 	while (signatures[1])

signatures++;
 
-	return signatures[0];

+   *signature = signatures[0];
+
+   return 0;
 }
 
 void signature_list_free(struct siglist **list)

diff --git a/signature.h b/signature.h
index e25d1b5..1384924 100644
--- a/signature.h
+++ 

Re: [Dovecot] antispam plugin claims antispam signature not found

2008-11-14 Thread Guillaume HILT

Ok, i updated the files by hand, and it's working like a charm :)
Thanks for the patch Johannes.

Guillaume HILT a écrit :

I have the same problem and i'm wondering how should i use this patch ?
I'm not familiar with the patch command.

Thanks.

PS: Sorry for the empty mail

Johannes Berg a écrit

On Tue, 2008-11-11 at 11:42 +0100, Johannes Berg wrote:

 

Not sure, I personally think that moving them silently makes errors
harder to diagnose. I'll add an option since then you can set this
option (antispam_missing_signature = [error|move]) to move after you've
tested and verified that it works just fine.



Try this patch please, I have only compiled it so far. (there might be
rejects in the signature-log.c file unless you update to the current git
tree but you don't care about that)

diff --git a/antispam.7 b/antispam.7
index d07c1d0..e26db69 100644
--- a/antispam.7
+++ b/antispam.7
@@ -108,6 +108,13 @@ plugin {
 # mail signature (used with any backend requiring a signature)
 antispam_signature = X-DSPAM-Signature
 
+# action to take on mails without signature

+# (used with any backend requiring a signature)
+# (we recommend only setting this to 'move' after verifying that 
the

+# whole setup is working)
+# antispam_signature_missing = move # move silently without 
training

+antispam_signature_missing = error
+
 # semicolon-separated list of Trash folders (default unset i.e. 
none)

 # antispam_trash =
 # antispam_trash = trash;Trash;Deleted Items
diff --git a/signature-log.c b/signature-log.c
index ab8cd6d..5b7b306 100644
--- a/signature-log.c
+++ b/signature-log.c
@@ -99,7 +99,12 @@ int backend_handle_mail(struct 
mailbox_transaction_context *t,

 return -1;
 }
 
-signature = signature_extract(t, mail);

+ret = signature_extract(t, mail, signature);
+if (ret)
+return ret;
+
+if (!signature)
+return 0;
 
 switch (wanted) {

 case CLASS_SPAM:
diff --git a/signature.c b/signature.c
index 7f9d83b..7ad29d6 100644
--- a/signature.c
+++ b/signature.c
@@ -5,6 +5,7 @@
 #include mail-storage-private.h
 
 const char *signature_hdr = X-DSPAM-Signature;

+static int signature_nosig_ignore = 0;
 
 void signature_init(void)

 {
@@ -12,6 +13,16 @@ void signature_init(void)
 if (tmp)
 signature_hdr = tmp;
 debug(signature header line is \%s\\n, signature_hdr);
+
+tmp = get_setting(SIGNATURE_MISSING);
+if (!tmp)
+tmp = error;
+if (strcmp(tmp, move) == 0) {
+signature_nosig_ignore = 1;
+debug(will silently move mails with missing signature\n);
+} else if (strcmp(tmp, error) != 0) {
+debug(invalid signature_missing setting '%s', ignoring\n, 
tmp);

+}
 }
 
 int signature_extract_to_list(struct mailbox_transaction_context *t,
@@ -23,10 +34,14 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,
 
 signatures = get_mail_headers(mail, signature_hdr);

 if (!signatures || !signatures[0]) {
-mail_storage_set_error(t-box-storage,
-   ME(NOTPOSSIBLE)
-   antispam signature not found);
-return -1;
+if (!signature_nosig_ignore) {
+mail_storage_set_error(t-box-storage,
+   ME(NOTPOSSIBLE)
+   antispam signature not found);
+return -1;
+} else {
+return 0;
+}
 }
 
 while (signatures[1])
@@ -42,23 +57,30 @@ int signature_extract_to_list(struct 
mailbox_transaction_context *t,

 return 0;
 }
 
-const char *signature_extract(struct mailbox_transaction_context *t,

-  struct mail *mail)
+int signature_extract(struct mailbox_transaction_context *t,
+  struct mail *mail, const char **signature)
 {
 const char *const *signatures;
 
 signatures = get_mail_headers(mail, signature_hdr);

 if (!signatures || !signatures[0]) {
-mail_storage_set_error(t-box-storage,
-   ME(NOTPOSSIBLE)
-   antispam signature not found);
-return NULL;
+if (!signature_nosig_ignore) {
+mail_storage_set_error(t-box-storage,
+   ME(NOTPOSSIBLE)
+   antispam signature not found);
+return -1;
+} else {
+*signature = NULL;
+return 0;
+}
 }
 
 while (signatures[1])

 signatures++;
 
-return signatures[0];

+*signature = signatures[0];
+
+return 0;
 }
 
 void signature_list_free(struct siglist **list)

diff --git a/signature.h b/signature.h
index e25d1b5..1384924 100644
--- a/signature.h
+++ b/signature.h
@@ -16,8 +16,8 @@ void signature_init(void);
 int signature_extract_to_list(struct mailbox_transaction_context *t,
   struct mail *mail, struct siglist **list,
   enum classification wanted);
-const char *signature_extract(struct 

[Dovecot] Error message in logs since 1.1.6 upgrade

2008-11-14 Thread Guy
Hi,

I've got two imap boxes, one is running 1.1.5 and hasn't exhibited the
error below, but the one that's been upgraded to 1.1.6 is showing
them.

Nov 14 16:06:31 mink dovecot: imap-login: Disconnected (no auth
attempts): rip=x.x.x.x, lip=x.x.x.x, TLS handshaking: SSL_accept()
failed: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed
or bad record mac

If this isn't already a known error, is there any extra data I can
collect that would help diagnose what's causing it? I haven't a clue
where to start with this sort of debugging I'm afraid.

Thanks
Guy

-- 
Don't just do something...sit there!


Re: [Dovecot] Mailbox Hashing

2008-11-14 Thread Charles Marcus
On 11/14/2008 10:02 AM, Kyle Wheeler wrote:
 On Friday, November 14 at 05:30 AM, quoth Charles Marcus:
 On 11/13/2008, Kyle Wheeler ([EMAIL PROTECTED]) wrote:
 (ReiserFS is often viewed as a purely experimental filesystem, and
 not reliable for production systems)

 Please stop spreading FUD.

 shrug I'm not saying that's *true*, I'm just saying I've heard that a
 lot...

Thats called spreading FUD. If you don't know, you don't know, so why
say it? I've heard plenty of horror stories about ext2/ext3, xfs, etc
ALL losing data...

The fact is, I've been using reiserfs on numerous boxes for many years
with ZERO problems.

The biggest issue is unclean shutdowns, but that problem is not unique
to reiserfs, and can be minimized/eliminated by being smart - using
battery backed up RAID controllers (if you're using hardware RAID),
using good UPSs, using UPS s/w to cleanly shutdown a system before the
UPS battery dies in the event of an extended power loss, etc...

Anyway, this is completely OT...

-- 

Best regards,

Charles


Re: [Dovecot] Mailbox Hashing

2008-11-14 Thread Kyle Wheeler

On Friday, November 14 at 11:51 AM, quoth Charles Marcus:
shrug I'm not saying that's *true*, I'm just saying I've heard 
that a lot...


Thats called spreading FUD.


No, it's not. FUD would be a strategic attempt to influence public 
opinion by disseminating negative (and vague) information.


I am not trying to influence public opinion, I'm reporting existing 
public opinion. The consensus opinion of the sysadmins I trust most 
highly is that ReiserFS is still relatively experimental and has not 
yet earned their trust---several of them have been bitten by ReiserFS 
bugs on their development machines (read: data loss due to 
unrecoverable filesystem corruption). That said, their problems were 
several years ago. Unfortunately, in the world of filesystem 
reliability, trust comes slowly once lost (check out how recently 
ReiserFS has been fixing quota-related problems, including ACL 
deadlocks).


In any case, I have no strategic purpose here. I have no interest or 
stake in any filesystem taking over the world. If ReiserFS is 
extremely stable and extremely reliable, then that's awesome, but it 
does have a bit of a reputation problem. Denying that it has a 
negative reputation, or claiming that anyone who describes its 
reputation is spreading FUD, is not only pointless but also counter 
productive. If you want to say well, that may be what you've heard, 
but I've used ReiserFS on several large, heavily-used, 
mission-critical systems for several years and have not had any 
problems, then that would be a useful and important statement. You'd 
even be helping ReiserFS's reputation. But by having such a knee-jerk 
reaction to the fact that it's got a negative reputation, you're 
making the filesystem seem like it's used largely by proselytizers and 
zealots---which is not a good way to build ReiserFS's reputation.


I've heard plenty of horror stories about ext2/ext3, xfs, etc ALL 
losing data...


Of course - any filesystem can loose data in bad situations (such as 
power loss, bad disks, etc.). Ext3 is certainly not perfect for all 
situations. For example, it's a bad idea on flash media because it 
keeps its journal file in a fixed spot on the drive, which can wear 
out that part of a flash drive quickly. The real question is: what are 
the reputations of those filesystems, and why? Ext2/3 have been around 
for a very long time, and are extremely well-tested by virtue of their 
popularity, and as such tend to be more trusted for mission-critical 
systems (unless there's a reason they shouldn't be used).


The fact is, I've been using reiserfs on numerous boxes for many 
years with ZERO problems.


Excellent! What kind of systems are we talking about? How heavily 
loaded? Did you use it with LVM? Did you ever have to use the recovery 
tools? How well did they work?


~Kyle
--
The next best thing to solving a problem is finding some humor in it.
 -- Frank A. Clark


pgpEn3WGrrFWb.pgp
Description: PGP signature


Re: [Dovecot] Mailbox Hashing

2008-11-14 Thread Charles Marcus
On 11/14/2008, Kyle Wheeler ([EMAIL PROTECTED]) wrote:
 FUD would be a strategic attempt to influence public opinion by
 disseminating negative (and vague) information.

Well, no need to be pedantic about it... ;)

 The fact is, I've been using reiserfs on numerous boxes for many
 years with ZERO problems.

 Excellent! What kind of systems are we talking about?

Nothing fancy... single and dual opteron mostly, with 3ware RAID crds
(don't use/recommend those any more - much prefer Areca now)

 How heavily loaded?

Nothing special here either... so I'd say low to moderate loads...

 Did you use it with LVM?

Yes, on most of them...

 Did you ever have to use the recovery tools? How well did they work?

Never had to use them (knock on wood)... :)

-- 

Best regards,

Charles


Re: [Dovecot] PLAIN password scheme question

2008-11-14 Thread Dmitri V. Ivanov
On Thu, Nov 13, 2008 at 08:16:17PM +0200, Timo Sirainen wrote:
 
 v1.1+ supports {plain.b64} or {plain.hex}.
 

As far as I can see (well - grep is used) You are implemented something
(I don't untderstand code jet - just from comments within
src/auth/password-scheme.c). It seems like to look for .hex,.b64 and .base64,
But I'm wrong to find anything about it from wiki or NEWS.

Where I'm wrong?

WBR
Dmitri Ivanov



Re: [Dovecot] antispam plugin claims antispam signature not found

2008-11-14 Thread Guillaume HILT

Not really, I haven't tried it with some new mails.
I had this problem with some old one I imported from my previous server 
(i used spamassassin and courier-imap).
I'll try to test the training and if it's not working, I'll revert to 
the svn version.
It's not a big deal anyway if I can't use some old mails to train the 
plugin.


Johannes Berg a écrit :

On Fri, 2008-11-14 at 16:53 +0100, Guillaume HILT wrote:
  

Ok, i updated the files by hand, and it's working like a charm :)
Thanks for the patch Johannes.



Umm, you realise that now it's not training at all, right? That's why
the docs there say don't use this patch unless you verified that it
works first. Unless you really had this problem only with some large
emails?

johannes
  


--
 Guillaume Hilt