Re: Problem with the Path argument in pigeonhole 0.4.3 at ubuntu 14.04

2015-08-31 Thread Stephan Bosch



Op 31-8-2015 om 14:51 schreef Jakob-Matthias Böttger:

Hello list members

I want dovecot managesieve to store its config unter ~/.dovecot.sieve
additionally dovecot should read as sieve_after the file ~/.sieve

It's working fine BUT dovecot managesieve is always symlinking the 
sieve file at activation to ~/.sieve and not to ~/.dovecot.sieve as i 
configured it.

Any idears about this strange behaviour?

dovecot is configured as follows



You can enable mail_debug=yes, which will log in detail what paths it is 
using and why.


Regards,

Stephan.



# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-53-generic x86_64 Ubuntu 14.04.3 LTS
auth_mechanisms = plain login
dict {
  acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = mysql:/etc/dovecot/dovecot-dict-expire.conf.ext
}
disable_plaintext_auth = no
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = *,[::]
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_plugins = " expire quota acl"
mail_privileged_group = vmail
maildir_very_dirty_syncs = yes
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 ihave

namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:%%h/Maildir:INDEXPVT=~/Maildir/shared/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  expire = Trash
  expire2 = Trash/*
  expire3 = Spam
  expire4 = Junk
  expire_dict = proxy::expire
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_after = ~/.sieve
}
postmaster_address = ad...@domain.tld
protocols = imap lmtp sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0600
user = vmail
  }
  user = root
}
service dict {
  unix_listener dict {
group = vmail
mode = 0660
user = vmail
  }
}
service imap-login {
  client_limit = 1000
  process_limit = 500
}
service lmtp {
  inet_listener lmtp {
address = 127.0.0.1
   port = 24
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
ssl = required
ssl_cert = 

'doveadm expunge' with -A and userdb { driver = passwd }

2015-08-31 Thread Grant
I'm expunging mail in my crontab like this:

doveadm search -u user1 mailbox INBOX.Trash savedbefore 30d
doveadm search -u user2 mailbox INBOX.Trash savedbefore 30d
doveadm search -u user3 mailbox INBOX.Trash savedbefore 30d
...

I'd rather do this:

doveadm search -A mailbox INBOX.Trash savedbefore 30d

but I'm told not to:

"If the -A option is present, the command will be performed for all
users. Using this option in combination with system users from userdb
{ driver = passwd } is not recommended, because it contains also users
with a lower UID than the one configured with the first_valid_uid
setting."

I'm using userdb { driver = passwd-file } but I'm guessing that's the
same thing.  Am I understanding this correctly?

- Grant


Re: HG port=0 changes still problematic

2015-08-31 Thread Benny Pedersen

Stephan Bosch skrev den 2015-08-31 02:13:


System with HG e1c7fcd62813 fails on

 inet_listener imaps {
port = 0
#port = 993
#ssl = yes
  }


Yes, yes, yes.. you may smack me now :)

http://hg.rename-it.nl/dovecot-2.2-patches/file/c51a10802ce6/in_port_t_fix_2.patch


but port 0 is valid, and your error msgs says invalid, hmm

maybe it works, but it should not say invalid when its supported as 
disable that service hack :=)


the above should say "imaps is disabled, cant use"


Problem with the Path argument in pigeonhole 0.4.3 at ubuntu 14.04

2015-08-31 Thread Jakob-Matthias Böttger

Hello list members

I want dovecot managesieve to store its config unter ~/.dovecot.sieve
additionally dovecot should read as sieve_after the file ~/.sieve

It's working fine BUT dovecot managesieve is always symlinking the sieve 
file at activation to ~/.sieve and not to ~/.dovecot.sieve as i 
configured it.

Any idears about this strange behaviour?

dovecot is configured as follows

# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-53-generic x86_64 Ubuntu 14.04.3 LTS
auth_mechanisms = plain login
dict {
  acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = mysql:/etc/dovecot/dovecot-dict-expire.conf.ext
}
disable_plaintext_auth = no
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = *,[::]
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_plugins = " expire quota acl"
mail_privileged_group = vmail
maildir_very_dirty_syncs = yes
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 ihave

namespace {
  inbox = yes
  location =
  prefix =
  separator = /
  type = private
}
namespace {
  list = children
  location = maildir:%%h/Maildir:INDEXPVT=~/Maildir/shared/%%u
  prefix = shared/%%u/
  separator = /
  subscriptions = yes
  type = shared
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  acl = vfile
  acl_shared_dict = proxy::acl
  expire = Trash
  expire2 = Trash/*
  expire3 = Spam
  expire4 = Junk
  expire_dict = proxy::expire
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_after = ~/.sieve
}
postmaster_address = ad...@domain.tld
protocols = imap lmtp sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0600
user = vmail
  }
  user = root
}
service dict {
  unix_listener dict {
group = vmail
mode = 0660
user = vmail
  }
}
service imap-login {
  client_limit = 1000
  process_limit = 500
}
service lmtp {
  inet_listener lmtp {
address = 127.0.0.1
   port = 24
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
ssl = required
ssl_cert = 

Re: question on autch cache parameters[Bug]

2015-08-31 Thread Matthias Lay
hi again,

On Thu, 27 Aug 2015 14:37:59 +0300
Teemu Huovila  wrote:


> 
> However, I am unable to reproduce this. Could you post your doveconf
> -n please? Im especially interested in your passdb and userdb
> configurations and auth-cache settings.
> 

just reproduced the bug with a fresh clean 2.2.18 install

ldap userdb an 2 masterusers with the ACL_GROUP attribut in passwd file


env output in imap-postlogin

first login:
AUTH_TOKEN=4adba75022f765fc3215ac5243337fd99adfdbf5
MASTER_USER=master2
SPUSER=private/johnd
LOCAL_IP=127.0.0.1
USER=johnd
AUTH_USER=master2
PWD=/run/dovecot
USERDB_KEYS=ACL_GROUPS HOME SPUSER MASTER_USER AUTH_TOKEN AUTH_USER 
SHLVL=1
HOME=/home/vmail/private/johnd
ACL_GROUPS=umareadmaster
IP=127.0.0.1
_=/usr/bin/env


logout and next login:

AUTH_TOKEN=83d7ede27b4fbc4de2abad58e84e65ac1073e4ec
MASTER_USER=master2
SPUSER=private/johnd
LOCAL_IP=127.0.0.1
USER=johnd
AUTH_USER=master2
PWD=/run/dovecot
USERDB_KEYS=HOME SPUSER MASTER_USER AUTH_TOKEN AUTH_USER 
SHLVL=1
HOME=/home/vmail/private/johnd
IP=127.0.0.1
_=/usr/bin/env


##
% doveconf -n:


# 2.2.18: /etc/dovecot/dovecot.conf
# OS: Linux 3.12.44-gentoo x86_64 Gentoo Base System release 2.2 
auth_cache_negative_ttl = 30 mins
auth_cache_size = 10 k
auth_master_user_separator = *
auth_use_winbind = yes
auth_username_chars = 
auth_verbose = yes
log_path = /var/log/dovecot.log
mail_gid = vmail
mail_home = /home/vmail/private/%u
mail_location = maildir:~/Maildir:LAYOUT=fs:INBOX=~/Maildir/INBOX
mail_uid = vmail
namespace {
  inbox = yes
  location = 
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  prefix = 
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  hidden = no
  inbox = no
  list = children
  location =
maildir:/home/vmail/public/%%Lu/Maildir:LAYOUT=fs:INBOX=/home/vmail/public/%%Lu/Maildir/INBOX
prefix = public/%%u/ separator = /
  subscriptions = no
  type = shared
}
passdb {
  args = /etc/dovecot/master-users1
  driver = passwd-file
  master = yes
}
passdb {
  args = /etc/dovecot/master-users2
  driver = passwd-file
  master = yes
}
service auth {
  unix_listener auth-client {
group = 
mode = 0600
user = $default_internal_user
  }
  unix_listener auth-login {
group = 
mode = 0600
user = $default_internal_user
  }
  unix_listener auth-master {
group = 
mode = 0600
user = $default_internal_user
  }
  unix_listener auth-userdb {
group = vmail
mode = 0660
user = $default_internal_user
  }
  unix_listener login/login {
group = 
mode = 0666
user = $default_internal_user
  }
  user = $default_internal_user
}
service imap-login {
  inet_listener imap {
port = 143
  }
}
service imap-postlogin {
  executable = script-login /usr/libexec/dovecot/imap-postlogin
  user = vmail
}
service imap {
  executable = imap imap-postlogin
}
ssl_cert = 

auth_master_user_separator = *

# Example master user passdb using passwd-file. You can use any passdb
though. passdb {
  driver = passwd-file
  master = yes
  args = /etc/dovecot/master-users1

  # Unless you're using PAM, you probably still want the destination
  user to # be looked up from passdb that it really exists. pass=yes
  does that. #pass = yes
}
passdb {
  driver = passwd-file
  master = yes
  args = /etc/dovecot/master-users2

  # Unless you're using PAM, you probably still want the destination
  user to # be looked up from passdb that it really exists. pass=yes
  does that. #pass = yes
}


###
% cat /etc/dovecot/master-users1

master1:{SHA}xxx=::userdb_acl_groups=umareadmaster
allow_nets=127.0.0.1




master2 is the same. 


Greetz


Re: HG port=0 changes still problematic

2015-08-31 Thread Thomas Leuxner
* Stephan Bosch  2015.08.31 02:13:

> Yes, yes, yes.. you may smack me now :)
> 
> http://hg.rename-it.nl/dovecot-2.2-patches/file/c51a10802ce6/in_port_t_fix_2.patch

I wouldn't go that far :) Latest HG works. Thanks


signature.asc
Description: Digital signature