Exporting plain_pass using passwd driver

2014-12-03 Thread List
I am trying to get a postlogin script running that can see the 
plain_pass=%w while running the passwd driver.  This is running Dovecot 
2.0.7 and so far everything I have tried results in the value being empty.


maildir_empty_new = yes not working

2014-12-03 Thread Nikola Derikonjic
I need for my dovecot-uidlist to be updated with next id when new email arrives 
(moved from new/ to cur/). 
This only happens now when I check for new email with my client.
Setting maildir_empty_new = yes is not working. Do I have to uncomment 
something else as well maybe?

I want to do some proemial pipe lets say for 10 emails. All of them will have 
same UID since dovecot-uidlist is not updated. 
I am suing 2.2.13 dovecot on Gentoo 64bit.

This is my dovecot -n:

# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.5-gentoo x86_64 Gentoo Base System release 2.2
auth_mechanisms = plain login digest-md5
first_valid_gid = 500
last_valid_gid = 2000
last_valid_uid = 2000
login_greeting = Santa server is ready.
mail_gid = vmail
mail_location = /var/vmail/%d/%n/:INDEX=/var/vmail/%d/%n/indexes
mail_uid = vmail
maildir_empty_new = 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 duplicate
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox Sent Messages {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0666
user = postfix
  }
}
ssl_ca = /etc/ssl/dovecot/server.in.crt
ssl_cert = /etc/ssl/dovecot/server.csr.rapid
ssl_key = /etc/ssl/dovecot/server.key.rapid
ssl_key_password = notshown
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}

-- 
Nikola Derikonjic
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


incorrect column width for multi-byte characters by'doveadm -f table'

2014-12-03 Thread Hardy Flor
In calculating the column width multi-byte characters (eg umlauts, utf8) 
not properly analyzed:


Username mailboxmessages guid
sh_berger Spam   0 a7b32818c14e5b54bf556ad9a53c
sh_berger Entwürfe  0 a4b32818c14e5b54bf556ad9a53c
sh_berger Papierkorb 0 a6b32818c14e5b54bf556ad9a53c


Replication sieve scripts.

2014-12-03 Thread Jan Wideł
Hi,
according to changelog 2.2.rc3, dsync should replicate sieve scripts. Do
I need turn on or  switch some option(s), for this to work? Replication
of mailboxes works great, only sieve scripts not.
root@mail-1-proidea ~ # dpkg -l dovecot* | grep ^ii
ii  dovecot-core 2:2.2.15-1~auto+0
amd64secure POP3/IMAP server - core files
ii  dovecot-imapd2:2.2.15-1~auto+0
amd64secure POP3/IMAP server - IMAP daemon
ii  dovecot-ldap 2:2.2.15-1~auto+0
amd64secure POP3/IMAP server - LDAP support
ii  dovecot-lmtpd2:2.2.15-1~auto+0
amd64secure POP3/IMAP server - LMTP server
ii  dovecot-managesieved 2:2.2.15-1~auto+0
amd64secure POP3/IMAP server - ManageSieve server
ii  dovecot-pop3d2:2.2.15-1~auto+0
amd64secure POP3/IMAP server - POP3 daemon
ii  dovecot-sieve2:2.2.15-1~auto+0
amd64secure POP3/IMAP server - Sieve filters support

My configuration (doveconf-n):

# 2.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-grsec-amd64 x86_64 Debian 7.7 ext4
auth_mechanisms = plain login
auth_verbose = yes
default_client_limit = 5000
default_process_limit = 500
default_vsz_limit = 768 M
doveadm_password = x
doveadm_port = 10900
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_gid = vmail
mail_location = maildir:/srv/mail/virtual/%d/%u
mail_plugins =  notify replication mail_log
mail_uid = vmail
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 duplicate imapflags notify
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox Sent Messages {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap
}
plugin {
  mail_log_events = delete undelete expunge copy mailbox_delete
mailbox_rename
  mail_log_fields = uid box msgid size
  mail_replica = tcps:mail2.xxx:10900
  sieve = file:~/sieve;active=~/dovecot.sieve
  sieve_dir = ~/sieve
  sieve_extensions = +notify +imapflags
  sieve_global_dir = /etc/dovecot/sieve/global/
  sieve_global_path = /etc/dovecot/sieve/default.sieve
}
postmaster_address = postmas...@networkers.pl
protocols =  imap lmtp sieve pop3
replication_max_conns = 5
service aggregator {
  fifo_listener replication-notify-fifo {
user = vmail
  }
  unix_listener replication-notify {
user = vmail
  }
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-client {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-master {
group = vmail
mode = 0660
user = vmail
  }
  unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
  }
}
service doveadm {
  inet_listener {
address = x.x.x.x
port = 10900
ssl = yes
  }
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_limit = 500
  process_min_avail = 2
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0660
user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
}
service managesieve {
  process_limit = 1024
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
}
service replicator {
  process_min_avail = 1
  unix_listener replicator-doveadm {
group = vmail
mode = 0660
user = dovecot
  }
}
ssl = required
ssl_cert = /etc/dovecot/dovecot.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_key = /etc/dovecot/private/dovecot.pem
userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  default_fields = home=/srv/mail/virtual/%d/%u
  driver = ldap
}
protocol lmtp {
  mail_plugins =  notify replication mail_log quota sieve
  postmaster_address = postmas...@networkers.pl
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  mail_plugins =  notify replication mail_log sieve sieve autocreate
}
protocol imap {
  mail_max_userip_connections = 20
}
protocol sieve {
  managesieve_implementation_string = Dovecot Pigeonhole
  managesieve_max_line_length = 65536
}

-- 
Jan Wideł
Senior System Administrator
e-mail: jan.wi...@networkers.pl
mobile: +48 797 004 946
www: http://www.networkers.pl
GPG: http://networkers.pl/GPG/2E7359CD.asc


R: Re: R: Re: best file system ?

2014-12-03 Thread absolutely_f...@libero.it

Thank you very much for your detailed explaination!


Messaggio originale
Da: ama...@um.es
Data: 03/12/2014 8.13
A: dovecot@dovecot.org
Ogg: Re: R: Re: best file system ?

El 02/12/14 a las 16:38, absolutely_f...@libero.it escribió:
 Hi Angel,
 can you please share your dovecot configuration?

   I have attached our doveconf -n output. We have two imap servers (with 
the same configuration) and two more acting as proxy (with director) in 
front of them. These last direct user request to their corresponding server.

   For storage we are using our SAN (a HP 3PAR 7400) connecting to it with 
fibre channel. We have two XFS filesystems. One for mail indexes and the 
other for user mailboxes and attachment files.

   In these servers we are running ubuntu 12.04 with kernel 3.4.0.

 What webmail are you using (if any)?

   We are using horde.

-- 
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868887590
Fax: 86337



Manual (file system level) message deletion

2014-12-03 Thread absolutely_f...@libero.it
Hi,I use Dovecot + Postfix on CentOS server. I use maildir.
What happen if I manually delete some messages (eg. the ones older than 6 
months) for every use?I think that dovecot's indexes will be wrong... is this a 
potential performance issue?If so, how can I rebuild index file for every 
user?
Thank you


Re: Manual (file system level) message deletion

2014-12-03 Thread Thierry de Montaudry

 On 04 Dec 2014, at 01:03, absolutely_f...@libero.it wrote:
 
 Hi,I use Dovecot + Postfix on CentOS server. I use maildir.
 What happen if I manually delete some messages (eg. the ones older than 6 
 months) for every use?I think that dovecot's indexes will be wrong... is this 
 a potential performance issue?If so, how can I rebuild index file for every 
 user?
 Thank you

Hi,
As far as I experienced, dovecot can nicely recover from manually deleting some 
mails in a maildir tree, but still, I wouldn’t recommend it, as it take more 
time to resync a folder with a lot of mails.
In your case, I would rather recommend to use the ‘dovecot expunge’ command as 
it updates the indexes while removing files. I do use it to remove older files 
in Trash and Spam folder, and it can be used per user or for all users. Here’s 
and example of the command line to remove any mail older than 6 weeks in the 
Spam folder:

doveadm expunge -u “email  mailbox Spam savedbefore 6w

Replace '-u “email”’ with ‘-A’ to run it on all users.

Regards,
Thierry