Re: [Dovecot] Sieve 0.2.2 how to use sievec

2011-01-18 Thread Nikita Koshikov
On Tue, 18 Jan 2011 06:23:42 -0500
Charles Marcus wrote:

> On 2011-01-18 5:04 AM, Nikita Koshikov wrote:
> > 2.6.26-gentoo-r4 i686 Gentoo Base System release 1.12.14
> 
> Why are you using a kernel that is no longer even in portage?
> 
It just working and well tested under current server's hardware. Updating is 
planned once a year.


Re: [Dovecot] Sieve 0.2.2 how to use sievec

2011-01-18 Thread Charles Marcus
On 2011-01-18 5:04 AM, Nikita Koshikov wrote:
> 2.6.26-gentoo-r4 i686 Gentoo Base System release 1.12.14

Why are you using a kernel that is no longer even in portage?

-- 

Best regards,

Charles


Re: [Dovecot] Sieve 0.2.2 how to use sievec

2011-01-18 Thread Nikita Koshikov
On Tue, 18 Jan 2011 11:56:29 +0200
Timo Sirainen wrote:

> On 17.1.2011, at 10.02, Nikita Koshikov wrote:
> 
> > sievec(root): Error: user root: Initialization failed: Namespace '': 
> > mkdir(/root/data) failed: Permission denied (euid=8(mail) egid=12(mail) 
> > missing +w perm: /root, euid is not dir owner)
> 
> Show your doveconf -n output.
> 
> 
root@mail dovecot 0:0 # doveconf -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-gentoo-r4 i686 Gentoo Base System release 1.12.14 
auth_cache_negative_ttl = 0
auth_cache_size = 5 k
auth_cache_ttl = 15 mins
auth_default_realm = domain.com
auth_failure_delay = 1 secs
auth_master_user_separator = *
auth_mechanisms = plain login
auth_username_format = %Lu
auth_worker_max_count = 50
debug_log_path = /var/log/dovecot/debug.log
dict {
  acl = sqlite:/etc/dovecot/plugins/acl.conf
  expire = sqlite:/etc/dovecot/plugins/expire.conf
}
first_valid_gid = 12
first_valid_uid = 8
info_log_path = /var/log/dovecot/dovecot.log
last_valid_gid = 12
last_valid_uid = 8
listen = *
log_path = /var/log/dovecot/dovecot-error.log
login_greeting = Server ready.
mail_gid = 12
mail_location = maildir:~/.data
mail_log_prefix = "%Us(%u %r): "
mail_plugins = acl quota trash virtual zlib
mail_uid = 8
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date spamtest notify
namespace {
  inbox = yes
  list = yes
  location = maildir:~/data
  prefix = 
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  hidden = yes
  list = yes
  location = virtual:/var/mail/virtual:INDEX=MEMORY:LAYOUT=maildir++
  prefix = Company/
  separator = /
  subscriptions = no
  type = private
}
namespace {
  list = children
  location = maildir:%%h/data:INDEX=~/shared/%%u
  prefix = Shared/%%u/
  separator = /
  subscriptions = no
  type = shared
}
passdb {
  args = /etc/dovecot/passdb/master.pwd
  driver = passwd-file
  master = yes
}
passdb {
  args = /etc/dovecot/passdb/users.pwd
  driver = passwd-file
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  acl = vfile:/etc/dovecot/acl:cache_secs=300
  acl_shared_dict = proxy::acl
  antispam_allow_append_to_spam = no
  antispam_backend = mailtrain
  antispam_mail_notspam = --ham
  antispam_mail_sendmail = /etc/dovecot/plugins/spam.sh
  antispam_mail_sendmail_args = -u mail
  antispam_mail_spam = --spam
  antispam_mail_tmpdir = /tmp
  antispam_spam = Spam
  antispam_trash = Trash
  autocreate = Drafts
  autocreate2 = Sent
  autocreate3 = Spam
  autocreate4 = Trash
  autosubscribe = Drafts
  autosubscribe2 = Sent
  autosubscribe3 = Spam
  autosubscribe4 = Trash
  expire = Trash
  expire2 = Trash/*
  expire3 = Spam
  expire_dict = proxy::expire
  quota = maildir:Mailbox quota
  quota_rule = *:storage=750M
  quota_rule2 = Trash:storage=+10%%
  quota_warning = storage=90%% quota-warning 95 %u
  sieve = ~/.dovecot.sieve
  sieve_after = /etc/dovecot/sieve/default-after.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +notify +spamtest
  sieve_spamtest_max_value = 10
  sieve_spamtest_status_header = X-Spam-Scan-Score
  sieve_spamtest_status_type = score
  trash = /etc/dovecot/plugins/dovecot-trash.conf
}
protocols = imap pop3 sieve
service anvil {
  client_limit = 3096
}
service auth-worker {
  unix_listener auth-worker {
group = dovecot_auth
mode = 0660
  }
  user = dovecot_auth
}
service auth {
  client_limit = 12288
  unix_listener auth-client {
group = dovecot_auth
mode = 0660
user = mail
  }
  unix_listener auth-userdb {
mode = 0600
user = mail
  }
  user = dovecot_auth
}
service dict {
  unix_listener dict {
mode = 0600
user = mail
  }
  user = mail
}
service imap-login {
  inet_listener imap {
port = 0
  }
  process_limit = 2048
  process_min_avail = 50
}
service imap {
  drop_priv_before_exec = yes
  process_limit = 2048
}
service managesieve-login {
  process_limit = 50
  process_min_avail = 3
}
service managesieve {
  drop_priv_before_exec = yes
  process_limit = 50
}
service pop3-login {
  inet_listener pop3 {
port = 0
  }
  process_limit = 20
  process_min_avail = 5
}
service pop3 {
  drop_priv_before_exec = yes
  process_limit = 20
}
service quota-warning {
  executable = script /etc/dovecot/plugins/quota_warning.sh
  unix_listener quota-warning {
mode = 0600
user = mail
  }
  user = mail
}
ssl_cert = 

Re: [Dovecot] Sieve 0.2.2 how to use sievec

2011-01-18 Thread Timo Sirainen
On 17.1.2011, at 10.02, Nikita Koshikov wrote:

> sievec(root): Error: user root: Initialization failed: Namespace '': 
> mkdir(/root/data) failed: Permission denied (euid=8(mail) egid=12(mail) 
> missing +w perm: /root, euid is not dir owner)

Show your doveconf -n output.




Re: [Dovecot] Sieve 0.2.2 how to use sievec

2011-01-17 Thread Nikita Koshikov
On Tue, 18 Jan 2011 01:02:14 +0100
fakessh @ wrote:

> 
> I managed to run in the root folder lda and sievec . I add the group
> mail to root more +w flag and everything should work properly
> 

My global scripts located in /etc/dovecot/sieve. IMHO it's not a good idea to 
allow write access to this folder or add group mail to root. I think, the 
problem can be easy enclosed if sievec won't drop privileges and have 
comandline option to redefine user's home dir. 


Re: [Dovecot] Sieve 0.2.2 how to use sievec

2011-01-17 Thread fakessh @

I managed to run in the root folder lda and sievec . I add the group
mail to root more +w flag and everything should work properly

Le lundi 17 janvier 2011 à 10:02 +0200, Nikita Koshikov a écrit :
> Hello list, 
> 
> How can I compile sieve script under new 0.2.2 version from comandline? 
> 
> Under root:
> #sievec default-before.sieve
> sievec(root): Error: user root: Initialization failed: Namespace '': 
> mkdir(/root/data) failed: Permission denied (euid=8(mail) egid=12(mail) 
> missing +w perm: /root, euid is not dir owner)
> sievec(root): Fatal: Invalid user settings. Refer to server log for more 
> information.
-- 
gpg --keyserver pgp.mit.edu --recv-key 092164A7
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x092164A7


signature.asc
Description: Ceci est une partie de message	numériquement signée