Re: [Dovecot] antispam plugin signature-log backend with v1.1.2

2008-09-22 Thread Alexander Prinsier
Johannes Berg wrote: > On Mon, 2008-09-22 at 00:59 +0200, Alexander Prinsier wrote: >> Hello, >> >> Is the signature-log backend of the antispam plugin broken when >> compiling with dovecot version 1.1.2? I'm using version 1.0 of the >> antispam plugin. I

[Dovecot] antispam plugin signature-log backend with v1.1.2

2008-09-21 Thread Alexander Prinsier
Hello, Is the signature-log backend of the antispam plugin broken when compiling with dovecot version 1.1.2? I'm using version 1.0 of the antispam plugin. It looks like there isn't anything more recent. cc -c -DCONFIG_DEBUG -DDEBUG_SYSLOG -fPIC -shared -Wall -Wextra -DPLUGINNAME=antispam -DHAVE_

Re: [Dovecot] enabling quota.

2008-06-30 Thread Alexander Prinsier
Mauro Sanna wrote: > Il giorno lun, 30/06/2008 alle 13.32 +0200, Alexander Prinsier ha > scritto: >> Mauro Sanna wrote: >>> if I use dovecot deliver, in dovecot.conf I need to enable only >>> >>> protocol lda { >>> mail_plugins = quota >>&g

Re: [Dovecot] enabling quota.

2008-06-30 Thread Alexander Prinsier
Mauro Sanna wrote: > if I use dovecot deliver, in dovecot.conf I need to enable only > > protocol lda { > mail_plugins = quota > } > > or I must enable also > > protocol pop3 { > mail_plugins = quota > } > > and in case I have imap > > protocol imap { > mail_plugins = quota imap_quota >

Re: [Dovecot] enabling quota.

2008-06-30 Thread Alexander Prinsier
Mauro Sanna wrote: > I'm reading http://wiki.dovecot.org/Quota to enable quota management > with dovecot. > The first question is: I need to enable dovecot deliver, lda protocol, > to have quota work? > It depends on the backend you use. If you use filesystem quota's, then there is no need to use

[Dovecot] quote-warning details

2008-06-18 Thread Alexander Prinsier
Hello, I have some questions on how quota-warning is supposed to work. -Does it keep a state, so that it doesn't send the same warning several times? Or should the script itself do something to remember it already sent a warning? -When exactly does it run? Does it run when deliver runs? Or only

Re: [Dovecot] dovecot as gmail imap proxy

2008-06-17 Thread Alexander Prinsier
To have a speed increase, dovecot needs direct access to the emails. So you'll need them stored locally. You can't use it as a proxy, just to speed up things, because dovecot would just need to wait for gmail too, to load an email (except if dovecot would cache the emails, but then again, it's just

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Alexander Prinsier
Jeff Kowalczyk wrote: > Any thoughts on a variant using find -name that could safely iterate over > /home/*/Maildir for all users? Otherwise I would script it in python. What about: find /home/*/Maildir/.Junk/cur -type f -delete Alexander

Re: [Dovecot] Dovecot quota for mailadministrator

2008-05-27 Thread Alexander Prinsier
Markus Hofer wrote: > plugin { > quota = maildir > quota_rule = *:storage=1G > quota_rule2 = Trash:storage=100M > } Ok, so you are using the Maildir++ format. > I have the possibility to see the user LIMITs? You could write a script that checks the contents of the maildirsize files inside eac

Re: [Dovecot] Dovecot quota for mailadministrator

2008-05-27 Thread Alexander Prinsier
Markus Hofer wrote: > With that way the administrator could have always a look if some > users have quota problems. > > My question is, if dovecot has some similar command for the administrator? It depends on what quota backend you use. If you use filesystem quota's like I do, you can use the lin

Re: [Dovecot] Dovecot or postfix Quota

2008-05-21 Thread Alexander Prinsier
Johannes Berg wrote: >> Instead I think it's a cleaner (and more logical) way to let the mail >> delivery agent take care of this, hence by deliver from dovecot. > > Any self-respecting mail administrator should avoid sending bounces like > the plague, hence the need to check whatever you possibly

Re: [Dovecot] Dovecot or postfix Quota

2008-05-21 Thread Alexander Prinsier
Hello, First of all, postfix doesn't support quota's by default. There is the quota patch of course. But there is a reason that it isn't included by default. (but I'm not sure what the exact reason is, if it's not the one below). Secondly, how do you define the quota of a mailbox? There are many

Re: [Dovecot] Run command when moving messages

2008-04-20 Thread Alexander Prinsier
Hi, The easiest way to do this seems to me is adapting the dspam backend of the antispam plugin to a generic "exec" backend, that calls some program. The antispam plugin was designed to do exactly this, monitoring moving messages, so you better make use of it ;) Alexander Juan Asensio Sánchez w

[Dovecot] using mysql from within a plugin

2008-04-19 Thread Alexander Prinsier
Hello, I'm trying to access a mysql database in a plugin. -What special compiler flags do I need? I discovered that when I don't explicitly link lib-sql/libsql.a in, then I get an undefind symbol error about sql_init when loading the plugin. Shouldn't the imap process itself have sql support lin

Re: [Dovecot] building a simple antispam plugin

2008-04-19 Thread Alexander Prinsier
Johannes Berg wrote: > Hi, > >> I'm trying to build another antispam plugin, but some things are a bit >> unclear. > > What are you trying to achieve? Just build another backend for my > antispam plugin? Yes, just another backend. It would be logging the signatures to a mysql database, so that I

[Dovecot] building a simple antispam plugin

2008-04-19 Thread Alexander Prinsier
Hello, I'm trying to build another antispam plugin, but some things are a bit unclear. In backend_handle_mail I put store the signature returned from signature_extract into my antispam_transaction_context. In backend_commit it appears that the signature is empty. (It wasn't in backend_handle_mail

Re: [Dovecot] localhost deliver([EMAIL PROTECTED]): setgid(5001) failed with euid=8, gid=8, egid=8: Operation not permitted

2008-04-12 Thread Alexander Prinsier
You realize that this way anyone can send email do any mailbox directly by invoking deliver? The instructions told you to make a subdirectory, and only give access to that subdirectory to users that need to be able to deliver to any user. Then place a copy of deliver with setuid root in that subdir

Re: [Dovecot] localhost deliver([EMAIL PROTECTED]): setgid(5001) failed with euid=8, gid=8, egid=8: Operation not permitted

2008-04-12 Thread Alexander Prinsier
;user = mail >group = mail > } > > [EMAIL PROTECTED]:~# ls -al /usr/lib/dovecot/deliver > -rwxr-xr-x 1 root root 563112 2008-03-31 21:05 /usr/lib/dovecot/deliver > [EMAIL PROTECTED]:~# > > i am sorry i dont understand what i need to do ? > > On Sat, Apr 12, 2008 at 4:0

Re: [Dovecot] localhost deliver([EMAIL PROTECTED]): setgid(5001) failed with euid=8, gid=8, egid=8: Operation not permitted

2008-04-12 Thread Alexander Prinsier
Install it setuid root as described here http://wiki.dovecot.org/LDA. Alexander Gert Cuykens wrote: > How can i give lda dovecot permision to set user and goup id to 5001 > > dovecot unix - n n - - pipe > flags=DRhu user=mail:mail argv=/usr/lib/dovecot/delive

Re: [Dovecot] [PATCH] deliver tries to compile already compiled sieve script

2008-04-01 Thread Alexander Prinsier
her automated. Apparently mtime doesn't have a good resolution in time... Patch to dovecot-sieve-1.1.4 is attached, can it be included? Thanks, Alexander Alexander Prinsier wrote: > I should have mentioned I'm running dovecot 1.1.rc3 > > Alexander > > Alexander Prinsier

Re: [Dovecot] deliver tries to compile already compiled sieve script

2008-03-31 Thread Alexander Prinsier
I should have mentioned I'm running dovecot 1.1.rc3 Alexander Alexander Prinsier wrote: > Hello, > > I'm trying to setup dovecot with sieve support in a way where all sieve > scripts are precompiled. All sieve scripts are in /var/cache/sieve/. > > I believe I disco

[Dovecot] deliver tries to compile already compiled sieve script

2008-03-31 Thread Alexander Prinsier
Hello, I'm trying to setup dovecot with sieve support in a way where all sieve scripts are precompiled. All sieve scripts are in /var/cache/sieve/. I believe I discovered a bug here. I describe below how to reproduce it. Dovecot and the user that deliver runs as do not have write permission in /