Re: Sieve can't find Extprograms or Extdata

2015-03-08 Thread E.B.
  Also, of course I have entered this in 90-plugins.conf
 
 
  plugin {
    seive_plugins = sieve_extdata sieve_extprograms

 maybe you have a typo...
 seive != sieve

Oh yes that was problem!! Thank you!! Tricky because it's the plugins
section, dovecot cannot lint it so typos won't be detected.

Thank you one time more!

And to Stephan Bosch, consider this a vote to keep Extdata alive.
It's better in many ways than spawning a script to do data lookups.
I hope the dovecot dict mechanism can be enhanced some day to
allow more elaborate controls and customization of lookups.


Re: dovecot auth-worker error happens when I enabled the dovecot to consider both the system account and the MySQL virtual mailbox databases.

2015-03-08 Thread Emmanuel Chanel
I've found this for a long time. But I didn't examined sudo apt-get 
libpam-smbpass till now... Doing that, my problem is solved...

http://ubuntuforums.org/showthread.php?t=2246951highlight=dovecot+auth+worker
libpam-smbpass has a bug of memory leak. I cannot tell surelyBut it 
returns the error... So the auth-worker would get down by that.

Dovecot uses both my system accounts and MySQL virtual mailboxes now...

--
Emmanuel Chanel( emmanuelcha...@gmail.com )


Re: Sieve can't find Extprograms or Extdata

2015-03-08 Thread E.B.
Also, of course I have entered this in 90-plugins.conf

plugin {
  seive_plugins = sieve_extdata sieve_extprograms
  sieve_extensions = +vnd.dovecot.filter +vnd.dovecot.extdata
}

And enabled sieve for lmtp (as I noted, I have tested that simple
sieve scripting is working OK)

protocol lmtp {
  mail_plugins =  sieve
}


 On a new install-from-source with Dovecot 2.2.16rc1,
 Piegeonhole 0.4.6 and a grab of the newest Extdata code, I
 confirmed basic Sieve functionality is working (made a
 simple sieve script with a test on message subject resulting
 in a fileinto action).
 
 But I cannot get Sieve to see Extdata or Extprograms. sievec
 reports Warning: sieve: ignored unknown extension
 'vnd.dovecot.filter' while configuring available extensions
 and the same for vnd.dovecot.extdata.  And of course
 for the user script, error: require command: unknown Sieve
 capability `vnd.dovecot.filter' (same with extdata)
 
 I'm pretty sure this is a library path problem, but I've
 tried symlinking and restarting dovecot with as many
 iterations of library paths as I can think of but still same
 problem.
 
 The lib90_sieve_extdata_plugin.so and
 lib90_sieve_extprograms_plugin.so are in
 /usr/local/lib/dovecot/sieve and all the rest of the normal
 dovecot libraries are one level above in
 /usr/local/lib/dovecot.
 
 I tried creating symlinks for a modules directory and a
 modules/sieve directory, I tried symlinking these two
 librarie files themselves into the top level dovecot library
 directory, and a few other ideas, but no luck.
 
 Is there a way I can tell where Sieve expects its libraries
 to reside? To see where it is looking? I didn't provide any
 arguments to the configure command for pigeonhole as well as
 extdata and it seems like the libs got placed somewhere
 sensible, but I don't know what else to do.



Re: Sieve can't find Extprograms or Extdata

2015-03-08 Thread J. Echter
Am 08.03.2015 um 09:08 schrieb E.B.:
 Also, of course I have entered this in 90-plugins.conf

 plugin {
   seive_plugins = sieve_extdata sieve_extprograms

maybe you have a typo... seive != sieve


Overriding dovecot.conf from Userdb Extras

2015-03-08 Thread E.B.
Hi,

I thought I read that anything from dovecot.conf can be overridden in a
userdb lookup. Or a passdb lookup with userdb_ prefix.

But I tried for fun change log_path but it never worked. Is that because
logging is special, already started logging before it comes to the
passdb/userdb lookups?  So are there some dovecot.conf settings
that cannot be overridden?

Thanks!


Re: Outlook 2013/2010 nightmare

2015-03-08 Thread Joseph Tam

David.M.Clark da...@davrom.com writes:


I do have some customers using Outlook or Windows Live Mail, and these
are for the most part working fine with IMAP - I don't do POP.
...
The issue starts when you add an IMAP user to the Outlook client and
upon opening it, initially, it tries to find a Sent Items folder under
IMAP to send from. To this end I have traditionally gone into the
dialogue box that opens, click on the IMAP account to receive a list of
possible folders, but it now immediately crashes indicating Outlook has
had an error, and it all goes to hell from there. Outlook then cannot
open but keeps crashing with its unknown error.
Up to last week at another site with Windows Live Mail, this was not an
issue.


Just a shot in the dark, but have you enabled the workarounds?

http://wiki2.dovecot.org/Clients

Some clients like, like Outlook, have known problems which dovecot can dance
around.  in 20-imap.conf

# Workarounds for various client bugs:
#   delay-newmail:
# Send EXISTS/RECENT new mail notifications only when replying to 
NOOP
# and CHECK commands. Some clients ignore them otherwise, for 
example OSX
# Mail (v2.1). Outlook Express breaks more badly though, without 
this it
# may show user Message no longer in server errors. Note that OE6 
still
# breaks even with this workaround if synchronization is set to
# Headers Only.
#   tb-extra-mailbox-sep:
# Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) 
and
# adds extra '/' suffixes to mailbox names. This option causes 
Dovecot to
# ignore the extra '/' instead of treating it as invalid mailbox 
name.
#   tb-lsub-flags:
# Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
# This makes Thunderbird realize they aren't selectable and show 
them
# greyed out, instead of only later giving not selectable popup 
error.
#
# The list is space-separated.
imap_client_workarounds = delay-newmail

Joseph Tam jtam.h...@gmail.com


Re: v2.2.16 release candidate released

2015-03-08 Thread Hardy Flor
Instead of deleting it, it should be marked deleted by renaming only. 
If it is then required, so it can be recovered. This directory can be 
deleted by another control process that searches the mbox files for 
references.




What has become of the question that attachments are not only saved as 
separate files? (mdbox-files over 2 MB from 17.03.2014)




Am 07.03.2015 um 17:33 schrieb Timo Sirainen:
... When mail is deleted, the hard link is deleted. If the link count 
had been 2, the original attachment file was deleted also.


Re: dovecot auth-worker error happens when I enabled the dovecot to consider both the system account and the MySQL virtual mailbox databases.

2015-03-08 Thread Emmanuel Chanel

This is the configuration...
---
$ sudo doveconf -n
# 2.2.15: /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.6 (3e924b1b6c5c+)
# OS: Linux 3.16.0-31-generic x86_64 Ubuntu 14.04.2 LTS
auth_debug = yes
auth_mechanisms = plain login
auth_verbose = yes
first_valid_uid = 1000
mail_debug = yes
mail_location = maildir:~/Maildir
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 {
  driver = pam
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  sieve = file:~/sieve;active=~/.dovecot.sieve
}
postmaster_address = emmanuelcha...@gmail.com
protocols =  imap
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
  }
}
ssl_cert = /etc/dovecot/dovecot.pem
ssl_cipher_list = 
ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS

ssl_key = /etc/dovecot/private/dovecot.pem
ssl_protocols = !SSLv2 !SSLv3
userdb {
  driver = passwd
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}


On 2015年03月07日 00:12, Emmanuel Chanel wrote:
Version: 2.2.9  2.2.15 ( 
http://ppa.launchpad.net/malte.swart/dovecot-2.2/ubuntu )

OS: Ubuntu 14.04 Server LTS
I installed Ubuntu 14.04.2 LTS newly on my new server...
And I try to configure the mail server considering both my system 
account and the virtual mailboxes, by seeing 
https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-mysql/
But when I configured by uncommenting #!include auth-sql.conf.ext , it 
doesn't auth...
Possibly, it's a trouble with the configurations of postfix and of 
dovecot. But I don't understand why...
When I enable either auth-system.conf.ext or auth-sql.conf.ext , it 
works...


My doveconf -n http://pastebin.com/MU1LL63d
dovecot-sql.conf.ext http://pastebin.com/PJkTnPB3
tail /var/log/mail.log by debug mode / dovecot 2.2.15
http://pastebin.com/1TRQL49d

Mar  6 07:45:12 gateway dovecot: auth: Debug: client
in:
AUTH#0114#011PLAIN#011service=imap#011secured#011session=xS6uSpIQvQDAqAAC#011lip=192.168.0.1#011rip=192.168.0.2#011lport=143#011rport=38333 



Mar  6 07:45:12 gateway dovecot: auth: Debug: client passdb out: 
CONT#0114#011

Mar  6 07:45:12 gateway dovecot: auth: Debug: client in: CONThidden
Mar  6 07:45:12 gateway dovecot: auth-worker(22933): Debug: 
pam(emmanuel,192.168.0.2): lookup service=dovecot
Mar  6 07:45:12 gateway dovecot: auth: Error: auth worker: Aborted 
PASSV request for emmanuel: Worker process died unexpectedly
Mar  6 07:45:12 gateway dovecot: auth-worker(22936): Debug: 
sql(emmanuel,192.168.0.2): query: SELECT username as user, password, 
'/home/vmail//emmanuel' as userdb_home, 
'maildir:/home/vmail//emmanuel' as userdb_mail, 65000 as userdb_uid, 8 
as userdb_gid FROM mailbox WHERE username = 'emmanuel' AND active = '1'
Mar  6 07:45:12 gateway dovecot: auth-worker(22933): Fatal: master: 
service(auth-worker): child 22933 killed with signal 11 (core dumped)
Mar  6 07:45:12 gateway dovecot: auth-worker(22936): 
sql(emmanuel,192.168.0.2): unknown user
Mar  6 07:45:12 gateway dovecot: auth-worker(23755): Debug: Loading 
modules from directory: /usr/lib/dovecot/modules/auth
Mar  6 07:45:12 gateway dovecot: auth-worker(23755): Debug: Module 
loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Mar  6 07:45:14 gateway dovecot: auth: Debug: client passdb out: 
FAIL#0114#011user=emmanuel#011temp
Mar  6 07:45:14 gateway dovecot: auth: Debug: client in: 
AUTH#0115#011LOGIN#011service=imap#011secured#011session=xS6uSpIQvQDAqAAC#011lip=192.168.0.1#011rip=192.168.0.2#011lport=143#011rport=38333
Mar  6 07:45:14 gateway dovecot: auth: Debug: client passdb out: 
CONT#0115#011VXNlcm5hbWU6

Mar  6 07:45:14 gateway dovecot: auth: Debug: client in: CONThidden
Mar  6 07:45:14 gateway dovecot: auth: Debug: client passdb out: 
CONT#0115#011UGFzc3dvcmQ6

Mar  6 07:45:14 gateway dovecot: auth: Debug: client in: CONThidden
Mar  6 07:45:14 gateway dovecot: auth-worker(22936): Debug: 
pam(emmanuel,192.168.0.2): lookup service=dovecot
Mar  6 07:45:14 gateway dovecot: auth: Error: auth worker: Aborted 
PASSV request for emmanuel: Worker process died unexpectedly
Mar  6 07:45:14 gateway dovecot: auth-worker(23755): Debug: 
sql(emmanuel,192.168.0.2): query: SELECT username as user, password, 
'/home/vmail//emmanuel' as userdb_home, 
'maildir:/home/vmail//emmanuel' as userdb_mail, 65000 as userdb_uid, 8 
as userdb_gid FROM mailbox WHERE username = 'emmanuel' AND active = '1'
Mar  6 07:45:14 gateway dovecot: auth-worker(22936): Fatal: master: 
service(auth-worker): child 22936 killed with signal 11 (core dumped)
Mar  6 07:45:14 gateway dovecot: auth-worker(23755): 
sql(emmanuel,192.168.0.2): unknown user
Mar  6 

Re: dovecot auth-worker error happens when I enabled the dovecot to consider both the system account and the MySQL virtual mailbox databases.

2015-03-08 Thread Emmanuel Chanel

Core Dump(?) from /var/log/apport.log on Ubuntu Server 14.04 LTS...
--
ERROR: apport (pid 29249) Mon Mar  9 01:26:31 2015: called for pid 
29239, signal 11, core limit 0
ERROR: apport (pid 29249) Mon Mar  9 01:26:31 2015: executable: 
/usr/lib/dovecot/auth (command line dovecot/auth -w)

ERROR: apport (pid 29249) Mon Mar  9 01:26:31 2015: Unhandled exception:
Traceback (most recent call last):
  File /usr/share/apport/apport, line 391, in module
if is_closing_session(pid, pidstat.st_uid):
  File /usr/share/apport/apport, line 213, in is_closing_session
env = e.read().split('\0')
  File /usr/lib/python3.4/encodings/ascii.py, line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xab in position 0: 
ordinal not in range(128)
ERROR: apport (pid 29249) Mon Mar  9 01:26:31 2015: pid: 29249, uid: 0, 
gid: 0, euid: 0, egid: 0

ERROR: apport (pid 29249) Mon Mar  9 01:26:31 2015: environment: environ({})
ERROR: apport (pid 29260) Mon Mar  9 01:26:37 2015: called for pid 
29241, signal 11, core limit 0
ERROR: apport (pid 29260) Mon Mar  9 01:26:37 2015: executable: 
/usr/lib/dovecot/auth (command line dovecot/auth -w)

ERROR: apport (pid 29260) Mon Mar  9 01:26:37 2015: Unhandled exception:
Traceback (most recent call last):
  File /usr/share/apport/apport, line 391, in module
if is_closing_session(pid, pidstat.st_uid):
  File /usr/share/apport/apport, line 213, in is_closing_session
env = e.read().split('\0')
  File /usr/lib/python3.4/encodings/ascii.py, line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xab in position 0: 
ordinal not in range(128)
ERROR: apport (pid 29260) Mon Mar  9 01:26:37 2015: pid: 29260, uid: 0, 
gid: 0, euid: 0, egid: 0

ERROR: apport (pid 29260) Mon Mar  9 01:26:37 2015: environment: environ({})
ERROR: apport (pid 29264) Mon Mar  9 01:26:43 2015: called for pid 
29250, signal 11, core limit 0
ERROR: apport (pid 29264) Mon Mar  9 01:26:43 2015: executable: 
/usr/lib/dovecot/auth (command line dovecot/auth -w)

ERROR: apport (pid 29264) Mon Mar  9 01:26:43 2015: Unhandled exception:
Traceback (most recent call last):
  File /usr/share/apport/apport, line 391, in module
if is_closing_session(pid, pidstat.st_uid):
  File /usr/share/apport/apport, line 213, in is_closing_session
env = e.read().split('\0')
  File /usr/lib/python3.4/encodings/ascii.py, line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xab in position 0: 
ordinal not in range(128)
ERROR: apport (pid 29264) Mon Mar  9 01:26:43 2015: pid: 29264, uid: 0, 
gid: 0, euid: 0, egid: 0

ERROR: apport (pid 29264) Mon Mar  9 01:26:43 2015: environment: environ({})

--
Emmanuel Chanel( emmanuelcha...@gmail.com )