Re: [Dovecot] Maildir Skeleton

2007-08-09 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 8 Aug 2007, Sebastian Ganschow wrote: deliver([EMAIL PROTECTED]): Aug 08 23:22:58 Info: cmusieve: Using sieve path: /var/vmail/[EMAIL PROTECTED]//.dovecot.sieve deliver([EMAIL PROTECTED]): Aug 08 23:22:58 Info: cmusieve: Executing script

Re: [Dovecot] Maildir Skeleton

2007-08-09 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 9 Aug 2007, Sebastian Ganschow wrote: But if the user creates his own rules, he also needs to create the spam rule. Otherwise his spam won't be delivered to the spam folder. I'm not really sure, if this is the solution i'd like to have.

Re: [Dovecot] Maildir Skeleton

2007-08-09 Thread Robert Schetterer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Ganschow schrieb: Steffen Kaiser schrieb: Dovecot-LDA is using _one_ script, when there is an user Sieve script, the global one is _not_ used. Okay now it works. But if the user creates his own rules, he also needs to create the

Re: [Dovecot] Maildir Skeleton

2007-08-09 Thread Timo Sirainen
On Thu, 2007-08-09 at 10:01 +0200, Steffen Kaiser wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 9 Aug 2007, Sebastian Ganschow wrote: But if the user creates his own rules, he also needs to create the spam rule. Otherwise his spam won't be delivered to the spam folder.

Re: [Dovecot] Maildir Skeleton

2007-08-09 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen schrieb: The new Sieve supports include feature, so it should be somewhat easy to support automatic includes. I think. Will this support be included in dovecot 1.1? Sebastian - -- Sebastian Ganschow Königsberger Str. 17 45770 Marl

Re: [Dovecot] Maildir Skeleton

2007-08-09 Thread Greg
Le jeudi 09 août 2007 09:47, Sebastian Ganschow a écrit : But if the user creates his own rules, he also needs to create the spam rule. Otherwise his spam won't be delivered to the spam folder. I'm not really sure, if this is the solution i'd like to have. Why not include a default sieve

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Aug 2007, Sebastian Ganschow wrote: /var/vmal/globalsieverc: require [fileinto]; # Move spam to spam folder if exists X-Spam-Flag { fileinto spam; # Stop here so that we do not reply on spams stop; } Is there anything else I need to

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Robert Schetterer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Ganschow schrieb: Robert Schetterer schrieb: so do you have any idea why global sieve-filter file does not work with your system? No I've got no idea. dovecot.conf: snip protocol lda { mail_plugin= quota, cmusieve

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Christian Schmidt
Hello Sebastian, Sebastian Ganschow, 07.08.2007 (d.m.y): Scott Silva schrieb: What are you using to create users? MAybe you could add something to the user creation system. I'm using postfixAdmin but I don't want to modify it. What you could do is create a wrapper script that 1. invokes

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Robert Schetterer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian Schmidt schrieb: Hello Sebastian, Sebastian Ganschow, 07.08.2007 (d.m.y): Scott Silva schrieb: What are you using to create users? MAybe you could add something to the user creation system. I'm using postfixAdmin but I don't want

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Tom Diehl
On Wed, 8 Aug 2007, Robert Schetterer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian Schmidt schrieb: Hello Sebastian, Sebastian Ganschow, 07.08.2007 (d.m.y): Scott Silva schrieb: What are you using to create users? MAybe you could add something to the user creation

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Ganschow schrieb: Steffen Kaiser schrieb: The compiled script needs to be written there by the user. Is it there? If not: you might pre-compile it with sievec (as root). If yes: I'm not sure, if Sieve errors can happen, when the script

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread pod
SG == Sebastian Ganschow [EMAIL PROTECTED] writes: SG Even if I set global_script_dir = /var/vmail dovecot won't use SG the global filter. shell$ cd dovecot-sieve-1.0.2 shell$ find . -type f -name \*.[ch] -print0 | xargs -0 grep -i -e global_script ./src/cmusieve-plugin.c:

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Timo Sirainen
On Wed, 2007-08-08 at 18:36 +0200, Sebastian Ganschow wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffen Kaiser schrieb: The compiled script needs to be written there by the user. Is it there? If not: you might pre-compile it with sievec (as root). If yes: I'm not sure, if

Re: [Dovecot] Maildir Skeleton

2007-08-08 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Sirainen schrieb: Set mail_debug=yes. Make deliver log its info and errors to a single file: protocol lda { log_path = /var/log/deliver.log info_log_path = /var/log/deliver.log } Now after trying to deliver a mail, what does the

[Dovecot] Maildir Skeleton

2007-08-07 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm setting up a new mailserver with postfix and Dovecot. I'd like to prepare a skeleton for the users maildir to create i.e. a spam folder and a sieve file per default. Is there any chance to realize this with dovecot? Regards Sebastian - --

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Aug 2007, Sebastian Ganschow wrote: I'd like to prepare a skeleton for the users maildir to create i.e. a spam folder and a sieve file per default. Is there any chance to realize this with dovecot? Try:

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Peter Hessler
If your OS uses /etc/skel to build new users from (many do), you can create it there. Most OSs that use /etc/skel merely copy files from there, then chown them to the appropriate user and group. Perms shouldn't be modified. On 2007 Aug 07 (Tue) at 14:37:03 +0200 (+0200), Sebastian Ganschow

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Hessler schrieb: If your OS uses /etc/skel to build new users from (many do), you can create it there. Most OSs that use /etc/skel merely copy files from there, then chown them to the appropriate user and group. Perms shouldn't be

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Patrick Ben Koetter
* Sebastian Ganschow [EMAIL PROTECTED]: Peter Hessler schrieb: If your OS uses /etc/skel to build new users from (many do), you can create it there. Most OSs that use /etc/skel merely copy files from there, then chown them to the appropriate user and group. Perms shouldn't be

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Charles Marcus
That's no problem either. The question is: Are you looking for an automated process or does cp -a template_maildir/ /srv/mail/newuser/ the job? It should be automated. A possible solution would be a cronjob, which checks every few minutes if there is a new user without a maildir. But this

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Scott Silva
Sebastian Ganschow spake the following on 8/7/2007 9:38 AM: Patrick Ben Koetter schrieb: * Sebastian Ganschow [EMAIL PROTECTED]: Peter Hessler schrieb: If your OS uses /etc/skel to build new users from (many do), you can create it there. Most OSs that use /etc/skel merely copy files from

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott Silva schrieb: What are you using to create users? MAybe you could add something to the user creation system. I'm using postfixAdmin but I don't want to modify it. Sebastian - -- Sebastian Ganschow Königsberger Str. 17 45770 Marl Germany

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charles Marcus schrieb: Why not just do this with a post-logon script? http://wiki.dovecot.org/PostLoginScripting This would only work, if the user logs in before he gets the first mail. Sebastian - -- Sebastian Ganschow Königsberger Str. 17

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Udo Rader
On Tue, 2007-08-07 at 19:22 +0200, Sebastian Ganschow wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charles Marcus schrieb: Why not just do this with a post-logon script? http://wiki.dovecot.org/PostLoginScripting This would only work, if the user logs in before he gets

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Charles Marcus
Why not just do this with a post-logon script? http://wiki.dovecot.org/PostLoginScripting This would only work, if the user logs in before he gets the first mail. Ahh, right, sorry... this would not be the best way anyway, since as someone else pointed out, the script would run every time

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Udo Rader schrieb: procmail for example could make you happy here (man procmailex). May be, but I'm using dovecots deliver. another (more sane) option would be to write the list of newly created users into a file/database/... and have a cronjob

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread albinootje
Sebastian Ganschow wrote: If the cronjob will be executed every minute, the chance for some mails getting in before the maildir has been created will be very low, because the created alias has to be synchronized to the mailrelay first. This happens every 15 minutes. I think the cronjob

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 albinootje schrieb: am i missing something ? i am using postfixadmin+dovecot+dovecot-LDA and i thought the spam-folder gets created the moment there's spam to be delivered in the spam-folder so why not just simply have a global sieve-file ?

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Robert Schetterer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Ganschow schrieb: albinootje schrieb: am i missing something ? i am using postfixadmin+dovecot+dovecot-LDA and i thought the spam-folder gets created the moment there's spam to be delivered in the spam-folder so why not just simply

Re: [Dovecot] Maildir Skeleton

2007-08-07 Thread Sebastian Ganschow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Schetterer schrieb: so do you have any idea why global sieve-filter file does not work with your system? No I've got no idea. dovecot.conf: snip protocol lda { mail_plugin= quota, cmusieve global_script_path =