Re: [Dovecot] postfix and dovecot - no emails in new folder

2013-11-25 Thread Kai Hendry
You probably need to set dovecot as the Local Delivery Agent, like so:

$ grep mailbox /etc/postfix/main.cf
mailbox_command = /usr/lib/dovecot/deliver


[Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Frerich Raabe

Hi,

I run a small IMAP server for a dozen guys in the office, serving about 
55GB of Maildir. I recently became aware of the Zlib plugin ( 
http://wiki2.dovecot.org/Plugins/Zlib ) and wondered


1. given that there is about zero CPU load on my IMAP server, is 
enabling the plugin a no-brainer or are there other things (except CPU 
load) to consider?


2. For enabling the plugin, I suppose you compress all the existing 
mail just once and then add 'zlib' to mail_plugins in order to have all 
future incoming mail saved?


Any insight by people familiar with the plugin would be much 
appreciated - thanks!


--
Frerich Raabe - ra...@froglogic.com
www.froglogic.com - Multi-Platform GUI Testing


[Dovecot] Problem with Thunderbird and mailbox with SPECIAL-USE flag

2013-11-25 Thread Sylvain
Hi !

I have an old Courier IMAP and in front of it, I have put a proxy cache
with the great Dovecot.

SOGo webmail is connected to the proxy and works great (very very more
fast) but I have a problem with Thunderbird : mailbox with « SPECIAL USE »
aren't automatically detected.
To make that works, I must :
- in Dovecot : define the namespace inbox : « prefix = » and « separator =
. »
- in Thunderbird : force in the account, the personal namespace to INBOX.
and untick « Allow server to exceed namespace » (sorry : personal
translation :D).

If I define in the namespace inbox as the dovecot wiki said : « prefix =
INBOX. » and « separator = . », TB see a sub-folder INBOX and mailbox with
special use aren't automatically detected. :-(
I must have forgotten a parameter in my Dovecot configuration but I don't
see it.. Can you have a look please ?
Here my configuration :

# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.2
auth_debug_passwords = yes
auth_mechanisms = plain login
disable_plaintext_auth = no
first_valid_uid = 100
imapc_host = xx
mail_gid = imapproxy
mail_home = /var/local/cache/dovecot/%1Mu/%1.1Mu/%u
mail_location = imapc:~/imapc
mail_uid = imapproxy
namespace inbox {
  inbox = yes
  list = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Junk {
special_use = \Junk
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix =
  separator = .
  type = private
}
passdb {
  args = host=xx port=143
  default_fields = userdb_imapc_user=%u userdb_imapc_password=%w
  driver = imap
}
protocols = imap
ssl_cert = /etc/dovecot/dovecot.pem
ssl_key = /etc/dovecot/private/dovecot.pem
userdb {
  driver = prefetch
}

Sylvain


[Dovecot] Dovecot 2.1.16

2013-11-25 Thread paolo.brocchi
Hi,
i would ask you a question about a particular dovecot configuration.

I would like to have in INBOX folder some emails (e.g email with a header key).

The same emails i would like to have into the folders, under INBOX, create by 
users.

How can i do?

Thanks

Paolo





[Dovecot] prohibit deletion of Junk folder

2013-11-25 Thread Alexandre Ellert
Hi,

I have an issue with a sieve_before rule (the script move incoming email to 
Junk folder when DMARC=fail and policy is quarantine) because one of my user 
delete his Junk folder :

dovecot: lda(myu...@domain.com): Error: sieve: execution of script 
/etc/dovecot/sieve_before/01-dmarc-fail.sieve failed, but implicit keep was 
successful: 1 Time(s)
dovecot: lda(myu...@domain.com): Error: sieve: 
msgid=20131124212217.5f346580...@anotherdomain.com: failed to store into 
mailbox 'Junk': Mailbox doesn't exist: Junk: 1 Time(s)

How can I do to prohibit the deletion of Junk folder by end users ?
Tell me if you need 'dovecot -n' and thanks for your advices.

Alexandre.

Re: [Dovecot] prohibit deletion of Junk folder

2013-11-25 Thread Tom Hendrikx
On 11/25/2013 12:50 PM, Alexandre Ellert wrote:
 Hi,
 
 I have an issue with a sieve_before rule (the script move incoming email to 
 Junk folder when DMARC=fail and policy is quarantine) because one of my user 
 delete his Junk folder :
 
 dovecot: lda(myu...@domain.com): Error: sieve: execution of script 
 /etc/dovecot/sieve_before/01-dmarc-fail.sieve failed, but implicit keep was 
 successful: 1 Time(s)
 dovecot: lda(myu...@domain.com): Error: sieve: 
 msgid=20131124212217.5f346580...@anotherdomain.com: failed to store into 
 mailbox 'Junk': Mailbox doesn't exist: Junk: 1 Time(s)
 
 How can I do to prohibit the deletion of Junk folder by end users ?
 Tell me if you need 'dovecot -n' and thanks for your advices.
 
 Alexandre.
 

Can't you make sieve re-create the folder when it's missing?  Simply set
lda_mailbox_autocreate=yes if you use dovecot lDA, and/or use 'fileinto
:create Junk;' in the sieve script.

Regards,
Tom



signature.asc
Description: OpenPGP digital signature


[Dovecot] Dovecot 2.2.7/2.2.8 failing to call dspam with antispam

2013-11-25 Thread Guillaume Hilt

Hello again,

I'm running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam :
dovecot 2.2.8 (it was working fine with 2.2.6 after doing a chmod 4511 
on dspam binary), dspam 3.10.2-r1 and dovecot-antispam-2.0_pre20130429 
(recompiled after each dovecot upgrade).


I've set dspam to debug, and mail_debug to yes.

uid 1001 is user vmail (dovecot is running under vmail)
gid 12 is group mail (vmail is a member, with 
mail,postfix,dspam,dovecot,apache)

All the necessary users are trusted in dspam configuration.

Here's my plugin settings :
antispam_verbose_debug = 1
antispam_debug_target = syslog
antispam_backend = dspam
antispam_allow_append_to_spam = NO
antispam_skip_from_line = NO
antispam_spam = Spam
antispam_trash = Trash
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = error
antispam_dspam_binary = /usr/bin/dspam
antispam_dspam_args = --user;%u;--deliver=;--source=error;--signature=%%s
antispam_dspam_spam = --class=spam
antispam_dspam_notspam = --class=innocent
antispam_dspam_result_header = X-DSPAM-Result

When i'm moving an email to the dspam folder, Thunderbird throw me an 
error : Failed to call dspam (email is dropped in the Spam folder 
anyway, but a copy stay on my INBOX)


== /var/log/mail/mail/log ==
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Loading modules from 
directory: /usr/lib64/dovecot
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Module loaded: 
/usr/lib64/dovecot/lib90_antispam_plugin.so
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Added userdb setting: 
plugin/maildir=shadowprojects.org/ghilt/
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug: 
Effective uid=1001, gid=12, home=/home/vmail/shadowprojects.org/ghilt/
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug: 
Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, 
list=yes, subscriptions=yes 
location=maildir:/home/vmail/shadowprojects.org/ghilt/.maildir
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug: 
maildir++: root=/home/vmail/shadowprojects.org/ghilt/.maildir, index=, 
indexpvt=, control=, 
inbox=/home/vmail/shadowprojects.org/ghilt/.maildir, alt=
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug: 
Namespace : Using permissions from 
/home/vmail/shadowprojects.org/ghilt/.maildir: mode=0770 gid=default
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug: 
dspam error:29764 prefix=imap(gh...@shadowprojects.org):
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug: 
executing /usr/bin/dspam failed: 13 (uid=1001, gid=12)

Nov 25 13:01:04 srv1 dovecot: imap: Error:
Nov 25 13:01:04 srv1 dovecot: imap: Error:

== /var/log/dspam/dspam.debug ==
9976: [11/25/2013 13:12:23] DSPAM Instance Startup
9976: [11/25/2013 13:12:23] input args: /usr/bin/dspam --user 
gh...@shadowprojects.org --deliver= --source=error 
--signature=89,52900600118151560172939 --class=spam

9976: [11/25/2013 13:12:23] pass-thru args:
9976: [11/25/2013 13:12:23] processing user gh...@shadowprojects.org
9976: [11/25/2013 13:12:23] uid = 1001, euid = 0, gid = 12, egid = 12
9976: [11/25/2013 13:12:23] loading preferences for user 
gh...@shadowprojects.org

...
9976: [11/25/2013 13:06:08] DSPAM Instance Shutdown.  Exit Code: 99
9976: [11/25/2013 13:06:08] process_users() failed on error 9

If i try to call dspam like this, it works :
sudo -u vmail /usr/bin/dspam --source=error --class=spam 
--signature=4be87a9f953248352114216 --client --user vmail


Any idea ?

Thanks,

--
  Guillaume Hilt



Re: [Dovecot] Dovecot 2.2.7/2.2.8 failing to call dspam with antispam

2013-11-25 Thread Tom Hendrikx
On 11/25/2013 01:17 PM, Guillaume Hilt wrote:
 Hello again,
 
 I'm running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam :
 dovecot 2.2.8 (it was working fine with 2.2.6 after doing a chmod 4511
 on dspam binary), dspam 3.10.2-r1 and dovecot-antispam-2.0_pre20130429
 (recompiled after each dovecot upgrade).
 
 I've set dspam to debug, and mail_debug to yes.
 
 uid 1001 is user vmail (dovecot is running under vmail)
 gid 12 is group mail (vmail is a member, with
 mail,postfix,dspam,dovecot,apache)
 All the necessary users are trusted in dspam configuration.
 
 Here's my plugin settings :
 antispam_verbose_debug = 1
 antispam_debug_target = syslog
 antispam_backend = dspam
 antispam_allow_append_to_spam = NO
 antispam_skip_from_line = NO
 antispam_spam = Spam
 antispam_trash = Trash
 antispam_signature = X-DSPAM-Signature
 antispam_signature_missing = error
 antispam_dspam_binary = /usr/bin/dspam
 antispam_dspam_args = --user;%u;--deliver=;--source=error;--signature=%%s

Configured to use the mail recipient

 antispam_dspam_spam = --class=spam
 antispam_dspam_notspam = --class=innocent
 antispam_dspam_result_header = X-DSPAM-Result
 
 When i'm moving an email to the dspam folder, Thunderbird throw me an
 error : Failed to call dspam (email is dropped in the Spam folder
 anyway, but a copy stay on my INBOX)
 
 == /var/log/mail/mail/log ==
 Nov 25 13:01:04 srv1 dovecot: imap: Debug: Loading modules from
 directory: /usr/lib64/dovecot
 Nov 25 13:01:04 srv1 dovecot: imap: Debug: Module loaded:
 /usr/lib64/dovecot/lib90_antispam_plugin.so
 Nov 25 13:01:04 srv1 dovecot: imap: Debug: Added userdb setting:
 plugin/maildir=shadowprojects.org/ghilt/
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 Effective uid=1001, gid=12, home=/home/vmail/shadowprojects.org/ghilt/
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no,
 list=yes, subscriptions=yes
 location=maildir:/home/vmail/shadowprojects.org/ghilt/.maildir
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 maildir++: root=/home/vmail/shadowprojects.org/ghilt/.maildir, index=,
 indexpvt=, control=,
 inbox=/home/vmail/shadowprojects.org/ghilt/.maildir, alt=
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 Namespace : Using permissions from
 /home/vmail/shadowprojects.org/ghilt/.maildir: mode=0770 gid=default
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 dspam error:29764 prefix=imap(gh...@shadowprojects.org):
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 executing /usr/bin/dspam failed: 13 (uid=1001, gid=12)
 Nov 25 13:01:04 srv1 dovecot: imap: Error:
 Nov 25 13:01:04 srv1 dovecot: imap: Error:
 
 == /var/log/dspam/dspam.debug ==
 9976: [11/25/2013 13:12:23] DSPAM Instance Startup
 9976: [11/25/2013 13:12:23] input args: /usr/bin/dspam --user
 gh...@shadowprojects.org --deliver= --source=error
 --signature=89,52900600118151560172939 --class=spam

Called using the mail recipient

 9976: [11/25/2013 13:12:23] pass-thru args:
 9976: [11/25/2013 13:12:23] processing user gh...@shadowprojects.org
 9976: [11/25/2013 13:12:23] uid = 1001, euid = 0, gid = 12, egid = 12
 9976: [11/25/2013 13:12:23] loading preferences for user
 gh...@shadowprojects.org
 ...
 9976: [11/25/2013 13:06:08] DSPAM Instance Shutdown.  Exit Code: 99
 9976: [11/25/2013 13:06:08] process_users() failed on error 9
 
 If i try to call dspam like this, it works :
 sudo -u vmail /usr/bin/dspam --source=error --class=spam
 --signature=4be87a9f953248352114216 --client --user vmail

Called spam using some other user.

 
 Any idea ?
 

The user ghilt@... is not recognized in your dspam setup. You should
change the antispam config to use a static username, or make dspam
accept your recipient addresses.


Regards,
Tom


Re: [Dovecot] Dovecot 2.2.7/2.2.8 failing to call dspam with antispam

2013-11-25 Thread Guillaume Hilt

It works, there was just a mistake in my command line :

$ sudo -u vmail /usr/bin/dspam --source=error --class=spam 
--signature=89,52900600118151560172939 --client --user 
gh...@shadowprojects.org


...
16004: [11/25/2013 13:43:46] destroying/freeing configuration
16004: [11/25/2013 13:43:46] match attribute 'Broken' with value 
'returnCodes'

16004: [11/25/2013 13:43:46] find attribute 'Broken'
16004: [11/25/2013 13:43:46]  - found attribute 'Broken' with value 
'returnCodes'
16004: [11/25/2013 13:43:46]  - matched attribute 'Broken' with value 
'returnCodes'

16004: [11/25/2013 13:43:46] DSPAM Instance Shutdown.  Exit Code: 99
16004: [11/25/2013 13:43:46] SEND: 250 2.6.0 gh...@apteo.com Message 
accepted for delivery: SPAM

16004: [11/25/2013 13:43:46] checking trusted user list for root(0)
16004: [11/25/2013 13:43:46] SRECV: QUIT

The user ghilt@ exists in mysql dspam_virtual_uids table.

  Guillaume Hilt

Le 25/11/2013 13:39, Tom Hendrikx a écrit :

On 11/25/2013 01:17 PM, Guillaume Hilt wrote:

 Hello again,

I'm running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam :
dovecot 2.2.8 (it was working fine with 2.2.6 after doing a chmod 4511
on dspam binary), dspam 3.10.2-r1 and dovecot-antispam-2.0_pre20130429
(recompiled after each dovecot upgrade).

I've set dspam to debug, and mail_debug to yes.

uid 1001 is user vmail (dovecot is running under vmail)
gid 12 is group mail (vmail is a member, with
mail,postfix,dspam,dovecot,apache)
All the necessary users are trusted in dspam configuration.

Here's my plugin settings :
antispam_verbose_debug = 1
antispam_debug_target = syslog
antispam_backend = dspam
antispam_allow_append_to_spam = NO
antispam_skip_from_line = NO
antispam_spam = Spam
antispam_trash = Trash
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = error
antispam_dspam_binary = /usr/bin/dspam
antispam_dspam_args = --user;%u;--deliver=;--source=error;--signature=%%s

Configured to use the mail recipient


antispam_dspam_spam = --class=spam
antispam_dspam_notspam = --class=innocent
antispam_dspam_result_header = X-DSPAM-Result

When i'm moving an email to the dspam folder, Thunderbird throw me an
error : Failed to call dspam (email is dropped in the Spam folder
anyway, but a copy stay on my INBOX)

== /var/log/mail/mail/log ==
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Loading modules from
directory: /usr/lib64/dovecot
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Module loaded:
/usr/lib64/dovecot/lib90_antispam_plugin.so
Nov 25 13:01:04 srv1 dovecot: imap: Debug: Added userdb setting:
plugin/maildir=shadowprojects.org/ghilt/
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
Effective uid=1001, gid=12, home=/home/vmail/shadowprojects.org/ghilt/
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no,
list=yes, subscriptions=yes
location=maildir:/home/vmail/shadowprojects.org/ghilt/.maildir
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
maildir++: root=/home/vmail/shadowprojects.org/ghilt/.maildir, index=,
indexpvt=, control=,
inbox=/home/vmail/shadowprojects.org/ghilt/.maildir, alt=
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
Namespace : Using permissions from
/home/vmail/shadowprojects.org/ghilt/.maildir: mode=0770 gid=default
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
dspam error:29764 prefix=imap(gh...@shadowprojects.org):
Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
executing /usr/bin/dspam failed: 13 (uid=1001, gid=12)
Nov 25 13:01:04 srv1 dovecot: imap: Error:
Nov 25 13:01:04 srv1 dovecot: imap: Error:

== /var/log/dspam/dspam.debug ==
9976: [11/25/2013 13:12:23] DSPAM Instance Startup
9976: [11/25/2013 13:12:23] input args: /usr/bin/dspam --user
gh...@shadowprojects.org --deliver= --source=error
--signature=89,52900600118151560172939 --class=spam

Called using the mail recipient


9976: [11/25/2013 13:12:23] pass-thru args:
9976: [11/25/2013 13:12:23] processing user gh...@shadowprojects.org
9976: [11/25/2013 13:12:23] uid = 1001, euid = 0, gid = 12, egid = 12
9976: [11/25/2013 13:12:23] loading preferences for user
gh...@shadowprojects.org
...
9976: [11/25/2013 13:06:08] DSPAM Instance Shutdown.  Exit Code: 99
9976: [11/25/2013 13:06:08] process_users() failed on error 9

If i try to call dspam like this, it works :
sudo -u vmail /usr/bin/dspam --source=error --class=spam
--signature=4be87a9f953248352114216 --client --user vmail

Called spam using some other user.


Any idea ?


The user ghilt@... is not recognized in your dspam setup. You should
change the antispam config to use a static username, or make dspam
accept your recipient addresses.


Regards,
Tom





Re: [Dovecot] Dovecot 2.2.7/2.2.8 failing to call dspam with antispam

2013-11-25 Thread Tom Hendrikx
On 11/25/2013 01:47 PM, Guillaume Hilt wrote:
 It works, there was just a mistake in my command line :
 
 $ sudo -u vmail /usr/bin/dspam --source=error --class=spam
 --signature=89,52900600118151560172939 --client --user
 gh...@shadowprojects.org
 
 ...
 16004: [11/25/2013 13:43:46] destroying/freeing configuration
 16004: [11/25/2013 13:43:46] match attribute 'Broken' with value
 'returnCodes'
 16004: [11/25/2013 13:43:46] find attribute 'Broken'
 16004: [11/25/2013 13:43:46]  - found attribute 'Broken' with value
 'returnCodes'
 16004: [11/25/2013 13:43:46]  - matched attribute 'Broken' with value
 'returnCodes'
 16004: [11/25/2013 13:43:46] DSPAM Instance Shutdown.  Exit Code: 99
 16004: [11/25/2013 13:43:46] SEND: 250 2.6.0 gh...@apteo.com Message
 accepted for delivery: SPAM
 16004: [11/25/2013 13:43:46] checking trusted user list for root(0)
 16004: [11/25/2013 13:43:46] SRECV: QUIT
 
 The user ghilt@ exists in mysql dspam_virtual_uids table.
 

The test is still different: dovecot config doesn't use '--client', but
commandline does. Also: the debug log for dspam shows a different
username as you are passing in.

Anyway: DSPAM is simply returning an error which is why the antispam
plugin reports failure. You're having a DSPAM config issue, not a
dovecot/antispam issue.

   Guillaume Hilt
 
 Le 25/11/2013 13:39, Tom Hendrikx a écrit :
 On 11/25/2013 01:17 PM, Guillaume Hilt wrote:
  Hello again,

 I'm running Gentoo AMD64 2013 with postfix, mysql, dovecot and dspam :
 dovecot 2.2.8 (it was working fine with 2.2.6 after doing a chmod 4511
 on dspam binary), dspam 3.10.2-r1 and dovecot-antispam-2.0_pre20130429
 (recompiled after each dovecot upgrade).

 I've set dspam to debug, and mail_debug to yes.

 uid 1001 is user vmail (dovecot is running under vmail)
 gid 12 is group mail (vmail is a member, with
 mail,postfix,dspam,dovecot,apache)
 All the necessary users are trusted in dspam configuration.

 Here's my plugin settings :
 antispam_verbose_debug = 1
 antispam_debug_target = syslog
 antispam_backend = dspam
 antispam_allow_append_to_spam = NO
 antispam_skip_from_line = NO
 antispam_spam = Spam
 antispam_trash = Trash
 antispam_signature = X-DSPAM-Signature
 antispam_signature_missing = error
 antispam_dspam_binary = /usr/bin/dspam
 antispam_dspam_args =
 --user;%u;--deliver=;--source=error;--signature=%%s
 Configured to use the mail recipient

 antispam_dspam_spam = --class=spam
 antispam_dspam_notspam = --class=innocent
 antispam_dspam_result_header = X-DSPAM-Result

 When i'm moving an email to the dspam folder, Thunderbird throw me an
 error : Failed to call dspam (email is dropped in the Spam folder
 anyway, but a copy stay on my INBOX)

 == /var/log/mail/mail/log ==
 Nov 25 13:01:04 srv1 dovecot: imap: Debug: Loading modules from
 directory: /usr/lib64/dovecot
 Nov 25 13:01:04 srv1 dovecot: imap: Debug: Module loaded:
 /usr/lib64/dovecot/lib90_antispam_plugin.so
 Nov 25 13:01:04 srv1 dovecot: imap: Debug: Added userdb setting:
 plugin/maildir=shadowprojects.org/ghilt/
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 Effective uid=1001, gid=12, home=/home/vmail/shadowprojects.org/ghilt/
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no,
 list=yes, subscriptions=yes
 location=maildir:/home/vmail/shadowprojects.org/ghilt/.maildir
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 maildir++: root=/home/vmail/shadowprojects.org/ghilt/.maildir, index=,
 indexpvt=, control=,
 inbox=/home/vmail/shadowprojects.org/ghilt/.maildir, alt=
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 Namespace : Using permissions from
 /home/vmail/shadowprojects.org/ghilt/.maildir: mode=0770 gid=default
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 dspam error:29764 prefix=imap(gh...@shadowprojects.org):
 Nov 25 13:01:04 srv1 dovecot: imap(gh...@shadowprojects.org): Debug:
 executing /usr/bin/dspam failed: 13 (uid=1001, gid=12)
 Nov 25 13:01:04 srv1 dovecot: imap: Error:
 Nov 25 13:01:04 srv1 dovecot: imap: Error:

 == /var/log/dspam/dspam.debug ==
 9976: [11/25/2013 13:12:23] DSPAM Instance Startup
 9976: [11/25/2013 13:12:23] input args: /usr/bin/dspam --user
 gh...@shadowprojects.org --deliver= --source=error
 --signature=89,52900600118151560172939 --class=spam
 Called using the mail recipient

 9976: [11/25/2013 13:12:23] pass-thru args:
 9976: [11/25/2013 13:12:23] processing user gh...@shadowprojects.org
 9976: [11/25/2013 13:12:23] uid = 1001, euid = 0, gid = 12, egid = 12
 9976: [11/25/2013 13:12:23] loading preferences for user
 gh...@shadowprojects.org
 ...
 9976: [11/25/2013 13:06:08] DSPAM Instance Shutdown.  Exit Code: 99
 9976: [11/25/2013 13:06:08] process_users() failed on error 9

 If i try to call dspam like this, it works :
 sudo -u vmail /usr/bin/dspam --source=error --class=spam
 --signature=4be87a9f953248352114216 

Re: [Dovecot] postfix and dovecot - no emails in new folder

2013-11-25 Thread Christian Schmidt
25.11.2013 09:00, Kai Hendry:
 You probably need to set dovecot as the Local Delivery Agent, like so:
 
   $ grep mailbox /etc/postfix/main.cf
   mailbox_command = /usr/lib/dovecot/deliver

I would consider making postfix talk to dovecot using LMTP instead.

Regards,
Christian

-- 
No signature available.


Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Everton Foscarini
I have a relatively big installation here in the university, 1 mail 
server for 10.000 daily active accounts.


I converted from maildir to mdbox + zlib in march, and these are my 
considerations:


1. CPU is not a problem, even delivering more than 400 messages per 
minute (blade HS21 with 2xQuad E5430 from 2008)
2. I used dsync to convert from maildir to mdbox, with dovecot 2.1 at 
the time.


The biggest win is the file number reduction, from 27 million to 2 million.



Em 25/11/2013 06:53, Frerich Raabe escreveu:

Hi,

I run a small IMAP server for a dozen guys in the office, serving 
about 55GB of Maildir. I recently became aware of the Zlib plugin ( 
http://wiki2.dovecot.org/Plugins/Zlib ) and wondered


1. given that there is about zero CPU load on my IMAP server, is 
enabling the plugin a no-brainer or are there other things (except CPU 
load) to consider?


2. For enabling the plugin, I suppose you compress all the existing 
mail just once and then add 'zlib' to mail_plugins in order to have 
all future incoming mail saved?


Any insight by people familiar with the plugin would be much 
appreciated - thanks!






Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread René Neumann
Am 25.11.2013 14:12, schrieb Everton Foscarini:
 I have a relatively big installation here in the university, 1 mail
 server for 10.000 daily active accounts.
 
 I converted from maildir to mdbox + zlib in march, and these are my
 considerations:
 
 1. CPU is not a problem, even delivering more than 400 messages per
 minute (blade HS21 with 2xQuad E5430 from 2008)
 2. I used dsync to convert from maildir to mdbox, with dovecot 2.1 at
 the time.
 
 The biggest win is the file number reduction, from 27 million to 2 million.

But this is due to the conversion to mdbox and not the compression,
isn't it?

- René



Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Jan-Frode Myklebust
On Mon, Nov 25, 2013 at 09:53:14AM +0100, Frerich Raabe wrote:
 
 I run a small IMAP server for a dozen guys in the office, serving
 about 55GB of Maildir. I recently became aware of the Zlib plugin (
 http://wiki2.dovecot.org/Plugins/Zlib ) and wondered
 
 1. given that there is about zero CPU load on my IMAP server, is
 enabling the plugin a no-brainer or are there other things (except
 CPU load) to consider?

Yes, it's a no-brainer. I can't remember how the cpuload was before we
enabled zlib, but our cpus are running 80% idle (6 servers, mix of IBM
x3550 and x346, serving 15TB mdbox, but was serving maildir with zlib a 
year ago).

 
 2. For enabling the plugin, I suppose you compress all the existing
 mail just once and then add 'zlib' to mail_plugins in order to have
 all future incoming mail saved?

You don't strictly need to compress existing mail. It should handle a
mix of compressed and non-compressed messages in the same maildir. 



  -jf


Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Frerich Raabe

On 2013-11-25 14:35, Jan-Frode Myklebust wrote:

On Mon, Nov 25, 2013 at 09:53:14AM +0100, Frerich Raabe wrote:


I run a small IMAP server for a dozen guys in the office, serving
about 55GB of Maildir. I recently became aware of the Zlib plugin (
http://wiki2.dovecot.org/Plugins/Zlib ) and wondered

1. given that there is about zero CPU load on my IMAP server, is
enabling the plugin a no-brainer or are there other things (except
CPU load) to consider?


Yes, it's a no-brainer. I can't remember how the cpuload was before 
we
enabled zlib, but our cpus are running 80% idle (6 servers, mix of 
IBM
x3550 and x346, serving 15TB mdbox, but was serving maildir with zlib 
a

year ago).


Interesting! What zlib compression level did you use? I figure even low
levels would work rather well for plain text.

Now that I think about plain text: I also have the fts_solr plugin
enabled to speed up the occasional full-text search - does the indexing
still work as before when the mail is compressed, i.e. is the
reading of the mail centralized so that the individual plugins don't
actually know or care? Or would I need to make sure I use
'zlib-aware' plugins?

--
Frerich Raabe - ra...@froglogic.com
www.froglogic.com - Multi-Platform GUI Testing


Re: [Dovecot] prohibit deletion of Junk folder

2013-11-25 Thread Alexandre Ellert
'lda_mailbox_autocreate=yes' works fine without adding ':create' in sieve 
script.

Thanks Tom.

Le 25 nov. 2013 à 13:01, Tom Hendrikx t...@whyscream.net a écrit :

 On 11/25/2013 12:50 PM, Alexandre Ellert wrote:
 Hi,
 
 I have an issue with a sieve_before rule (the script move incoming email to 
 Junk folder when DMARC=fail and policy is quarantine) because one of my user 
 delete his Junk folder :
 
 dovecot: lda(myu...@domain.com): Error: sieve: execution of script 
 /etc/dovecot/sieve_before/01-dmarc-fail.sieve failed, but implicit keep was 
 successful: 1 Time(s)
 dovecot: lda(myu...@domain.com): Error: sieve: 
 msgid=20131124212217.5f346580...@anotherdomain.com: failed to store into 
 mailbox 'Junk': Mailbox doesn't exist: Junk: 1 Time(s)
 
 How can I do to prohibit the deletion of Junk folder by end users ?
 Tell me if you need 'dovecot -n' and thanks for your advices.
 
 Alexandre.
 
 
 Can't you make sieve re-create the folder when it's missing?  Simply set
 lda_mailbox_autocreate=yes if you use dovecot lDA, and/or use 'fileinto
 :create Junk;' in the sieve script.
 
 Regards,
   Tom
 



Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Jan-Frode Myklebust
On Mon, Nov 25, 2013 at 02:47:33PM +0100, Frerich Raabe wrote:
 
 Interesting! What zlib compression level did you use? I figure even low
 levels would work rather well for plain text.

plugin {
zlib_save_level = 6 # 1..9
zlib_save = gz # or bz2
}

 Now that I think about plain text: I also have the fts_solr plugin
 enabled to speed up the occasional full-text search - does the indexing
 still work as before when the mail is compressed, i.e. is the
 reading of the mail centralized so that the individual plugins don't
 actually know or care? Or would I need to make sure I use
 'zlib-aware' plugins?

I don't have fts (yet).


  -jf


Re: [Dovecot] postfix and dovecot - no emails in new folder

2013-11-25 Thread Don Hill
quick note I added LDA in master.cf and everything is working fine now.
Thanks.


On Mon, Nov 25, 2013 at 1:49 AM, Steffen Kaiser 
skdove...@smail.inf.fh-brs.de wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Fri, 22 Nov 2013, Don Hill wrote:

  Yes. I am logged in as root and performing a ls -la /var/vmail/domain I
 see the following

 folder - user - This file actually contains the emails sent to the account

 folder - u...@domain.tld - and in the Maildir folder I see the following
  cd into u...@domain.tld/Maildir
  ls
  cur
  dovecot-uidlist
  dovecot-uidvalidity
  dovecot-uidvalidity.528f6c45
  dovecot.index.log
  new
  tmp


 So postfix and Dovecot disagree about the mail storage of the accounts,
 either:

 1) reconfigure postfix to deliver message to Maildir in
 /var/vmail/domain/u...@domain.tld, or

 2) reconfigure postfix to use Dovecot LDA or LMTP, or

 3) reconfigure Dovecot to use mbox:/var/vmail/domain/user as INBOX, but
 /var/vmail/domain/u...@domain.tld/Maildir for mail home.


  Steffen Kaiser mailto:skdove...@smail.inf.fh-brs.de

 November 22, 2013 8:36 AM
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Thu, 21 Nov 2013, Don Hill wrote:


 Are you sure, postfix delivers to the maildir of Dovecot? I would
 reconfigure Postfix to use Dovecot LDA or LMTP.

 - -- Steffen Kaiser
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)

 iQEVAwUBUo9r2V3r2wJMiz2NAQIouggAxi89bQaDsGiLOfT/DwDWEwpM6M7LjwPS
 koNcmgn1DAsm3OGhwn57dvrA3uvs7ot8gt25iwca/kf4XKHzKdWWnbWq3LO0oME+
 EWREF6NJOs5OUXhd26sUpw09QxCITP2gg1hl34j0MwTRMdJyycl5BAg3jrK1A9Ji
 5U0MhMXaKd+7P6BBbe47+PnQR4Rfy+fLdjKy1E0wSnP/xsrx/tK0FeSF9Ewf0FMJ
 FuFj8M5HQiixNrfjUATBnoVtvdWkjtI2ttU427Mm0ESHHkzPTdz3GlX/FWT7DZhH
 SsILyGgTXojcGXXP5vMluqxQmjscfMoBGrcuXpP7QlK8zNwgYZZMxA==
 =Dxa6
 -END PGP SIGNATURE-
 Don Hill mailto:dhill.nov...@gmail.com

 November 21, 2013 8:59 PM
 Hi.

 I am working on setting up  Dovecot v2.0.9 and postfix  2.6.6 on centos
 6.4. I have postfix configured with dovecot using virtual users. Everything
 seems to be working with the exception of no emails being delivered to the
 Maildir/new folder. If I touch a file into that folder then the file gets
 delivered to the email client using imap.

 I can also send email from the client with no problems. In fact if I
 look at the logs postfix says the email was delivered to the mailbox.

  postfix/virtual[27270]: 8652F35C38A8: to=u...@domain.tld,
 relay=virtual, delay=0.11, delays=0.1/0.01/0/0, dsn=2.0.0, status=sent
 (delivered to mailbox)$

 Here is my dovecot -n output

 *doveconf: Warning: NOTE: You can get a new clean config file with:
 doveconf -n  dovecot-new.conf**
 **doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:85:
 protocol { ssl_listen } has been replaced by service { inet_listener {
 address } }**
 **# OS: Linux 2.6.32-042stab079.6 x86_64 CentOS release 6.4 (Final)
 reiserfs**
 **auth_mechanisms = plain login**
 **default_login_user = vmail**
 **first_valid_gid = 5000**
 **first_valid_uid = 5000**
 **listen = ***
 **mail_access_groups = vmail**
 **mail_location = maildir:/var/vmail/%d/%u/Maildir**
 **mbox_write_locks = fcntl**
 **passdb {**
 **  args = scheme=SHA1 /etc/dovecot/passwd**
 **  driver = passwd-file**
 **}**
 **protocols = imap pop3**
 **service auth {**
 **  unix_listener auth-client {**
 **group = postfix**
 **mode = 0660**
 **user = postfix**
 **  }**
 **  user = root**
 **}**
 **service imap-login {**
 **  inet_listener imaps {**
 **address = ***
 **  }**
 **  process_min_avail = 1**
 **  user = vmail**
 **}**
 **service pop3-login {**
 **  inet_listener pop3s {**
 **address = ***
 **  }**
 **}**
 **ssl_cert = /etc/pki/dovecot/certs/dovecot.pem**
 **ssl_key = /etc/pki/dovecot/private/dovecot.pem**
 **userdb {**
 **  args = uid=5000  gid=5000 home=/var/vmail/%d/%u allow_all_users=yes**
 **  driver = static**
 **}*


 Any thoughts?



 - -- Steffen Kaiser
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)

 iQEVAwUBUpMBB13r2wJMiz2NAQIaWggArtX/+f+RDztDv7u/By5JCQlpsctV83LS
 EI69ZiYIFVbHlr8XH1ZDXF9ORbSmU2QJCcYGBwwrpam6X2SdiPD/NkQxwr5pFW01
 6AwPRN7pHlJ0nFHwH6OwdP4BCezn3kHUSVdHBHBVMniOVBDou8QUCNrMiSYOHq5z
 11AvrshM4fvzes08cuwZ2nJDPiZvf7vDpa7S1bFJR4fi02KBY8a41XwTkqOh8uDL
 J7hnpdPKmskmrZdNpjL5cacVMcLUexKLiJ6+viGx+uMcA817fm1LQ7sebg0PHm9u
 NHAJup15oChQvrG5qnYyH0GdW+tGXxUtOFlXApuIXtXsUh757mrvpg==
 =LZKd
 -END PGP SIGNATURE-



[Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Luuk

while doing 'sudo make install',
its complaining about the existance of ‘/usr/local/lib/dovecot/auth’

.
make[3]: Entering directory `/home/luuk/source/dovecot-2.2.9/src/anvil'
 /usr/bin/mkdir -p '/usr/local/lib/dovecot'
  /bin/sh ../../libtool   --mode=install /usr/bin/install -c anvil 
'/usr/local/lib/dovecot'
libtool: install: /usr/bin/install -c .libs/anvil 
/usr/local/lib/dovecot/anvil

make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/anvil'
make[2]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/anvil'
Making install in auth
make[2]: Entering directory `/home/luuk/source/dovecot-2.2.9/src/auth'
make[3]: Entering directory `/home/luuk/source/dovecot-2.2.9/src/auth'
 /usr/bin/mkdir -p '/usr/local/lib/dovecot'
  /bin/sh ../../libtool   --mode=install /usr/bin/install -c auth 
checkpassword-reply '/usr/local/lib/dovecot'

libtool: install: /usr/bin/install -c .libs/auth /usr/local/lib/dovecot/auth
libtool: install: /usr/bin/install -c .libs/checkpassword-reply 
/usr/local/lib/dovecot/checkpassword-reply

 /usr/bin/mkdir -p '/usr/local/lib/dovecot/auth'
/usr/bin/mkdir: cannot create directory ‘/usr/local/lib/dovecot/auth’: 
File exists

make[3]: *** [install-auth_moduleLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/auth'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/auth'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src'
make: *** [install-recursive] Error 1
luuk@asus:~/source/dovecot-2.2.9


any tips on what i did wrong?


Re: [Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Luuk

On 25-11-2013 19:36, Luuk wrote:

while doing 'sudo make install',
its complaining about the existance of ‘/usr/local/lib/dovecot/auth’

.
make[3]: Entering directory `/home/luuk/source/dovecot-2.2.9/src/anvil'
  /usr/bin/mkdir -p '/usr/local/lib/dovecot'
   /bin/sh ../../libtool   --mode=install /usr/bin/install -c anvil
'/usr/local/lib/dovecot'
libtool: install: /usr/bin/install -c .libs/anvil
/usr/local/lib/dovecot/anvil
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/anvil'
make[2]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/anvil'
Making install in auth
make[2]: Entering directory `/home/luuk/source/dovecot-2.2.9/src/auth'
make[3]: Entering directory `/home/luuk/source/dovecot-2.2.9/src/auth'
  /usr/bin/mkdir -p '/usr/local/lib/dovecot'
   /bin/sh ../../libtool   --mode=install /usr/bin/install -c auth
checkpassword-reply '/usr/local/lib/dovecot'
libtool: install: /usr/bin/install -c .libs/auth
/usr/local/lib/dovecot/auth
libtool: install: /usr/bin/install -c .libs/checkpassword-reply
/usr/local/lib/dovecot/checkpassword-reply
  /usr/bin/mkdir -p '/usr/local/lib/dovecot/auth'
/usr/bin/mkdir: cannot create directory ‘/usr/local/lib/dovecot/auth’:
File exists
make[3]: *** [install-auth_moduleLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/auth'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src/auth'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/luuk/source/dovecot-2.2.9/src'
make: *** [install-recursive] Error 1
luuk@asus:~/source/dovecot-2.2.9


any tips on what i did wrong?


i'm able to provide more info,
if only i knew what info is needed ;)

it's a new install from the downloaded sources:
-rw-r--r-- 1 luuk users  4540858 Nov 25 19:05 dovecot-2.2.9.tar.gz

luuk@asus:~/source/dovecot-2.2.9 cat /etc/os-release
NAME=openSUSE
VERSION=12.3 (Dartmouth)
VERSION_ID=12.3
PRETTY_NAME=openSUSE 12.3 (Dartmouth) (i586)
ID=opensuse
ANSI_COLOR=0;32
CPE_NAME=cpe:/o:opensuse:opensuse:12.3
luuk@asus:~/source/dovecot-2.2.9



Re: [Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Oscar del Rio

On 11/25/13 01:40 PM, Luuk wrote:

On 25-11-2013 19:36, Luuk wrote:

while doing 'sudo make install',
its complaining about the existance of ‘/usr/local/lib/dovecot/auth’

.

  /usr/bin/mkdir -p '/usr/local/lib/dovecot/auth'
/usr/bin/mkdir: cannot create directory ‘/usr/local/lib/dovecot/auth’:
File exists

any tips on what i did wrong?


i'm able to provide more info,
if only i knew what info is needed ;)


ls -ld /usr/local/lib/dovecot/auth




Re: [Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Timo Sirainen
On 25.11.2013, at 19.36, Luuk dove...@vosslamber.nl wrote:

 while doing 'sudo make install',
 its complaining about the existance of ‘/usr/local/lib/dovecot/auth’

Don’t use the same directory for libexecdir and moduledir.



Re: [Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Luuk

On 25-11-2013 20:04, Timo Sirainen wrote:

On 25.11.2013, at 19.36, Luuk dove...@vosslamber.nl wrote:


while doing 'sudo make install',
its complaining about the existance of ‘/usr/local/lib/dovecot/auth’


Don’t use the same directory for libexecdir and moduledir.



luuk@asus:~/source/dovecot-2.2.9 grep -ir libexecdir config.log
| # If user did not specify libexecdir, set the correct target:
| if test $libexecdir = '${exec_prefix}/libexec' ; then
|   libexecdir='${exec_prefix}/lib'
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info 
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib 
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada 
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 
--enable-ssp --disable-libssp --disable-libitm --disable-plugin 
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' 
--disable-libgcj --disable-libmudflap --with-slibdir=/lib 
--with-system-zlib --enable-__cxa_atexit 
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch 
--enable-version-specific-runtime-libs --enable-linker-build-id 
--program-suffix=-4.7 --enable-linux-futex --without-system-libunwind 
--with-arch-32=i586 --with-tune=generic --build=i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info 
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib 
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada 
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 
--enable-ssp --disable-libssp --disable-libitm --disable-plugin 
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' 
--disable-libgcj --disable-libmudflap --with-slibdir=/lib 
--with-system-zlib --enable-__cxa_atexit 
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch 
--enable-version-specific-runtime-libs --enable-linker-build-id 
--program-suffix=-4.7 --enable-linux-futex --without-system-libunwind 
--with-arch-32=i586 --with-tune=generic --build=i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info 
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib 
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada 
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 
--enable-ssp --disable-libssp --disable-libitm --disable-plugin 
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' 
--disable-libgcj --disable-libmudflap --with-slibdir=/lib 
--with-system-zlib --enable-__cxa_atexit 
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch 
--enable-version-specific-runtime-libs --enable-linker-build-id 
--program-suffix=-4.7 --enable-linux-futex --without-system-libunwind 
--with-arch-32=i586 --with-tune=generic --build=i586-suse-linux

libexecdir='${exec_prefix}/lib'
luuk@asus:~/source/dovecot-2.2.9 grep -ir moduledir config.log
moduledir='${exec_prefix}/lib/dovecot'
luuk@asus:~/source/dovecot-2.2.9



They seem to be different:
libexecdir='${exec_prefix}/lib'
moduledir='${exec_prefix}/lib/dovecot'



i started with configure:
./configure --with-sql=yes --with-mysql --with-sqlite



Re: [Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Luuk

On 25-11-2013 19:54, Oscar del Rio wrote:

On 11/25/13 01:40 PM, Luuk wrote:

On 25-11-2013 19:36, Luuk wrote:

while doing 'sudo make install',
its complaining about the existance of ‘/usr/local/lib/dovecot/auth’

.

  /usr/bin/mkdir -p '/usr/local/lib/dovecot/auth'
/usr/bin/mkdir: cannot create directory ‘/usr/local/lib/dovecot/auth’:
File exists

any tips on what i did wrong?


i'm able to provide more info,
if only i knew what info is needed ;)


ls -ld /usr/local/lib/dovecot/auth




luuk@asus:~/source/dovecot-2.2.9 ls -ld /usr/local/lib/dovecot/auth
-rwxr-xr-x 1 root root 1356716 Nov 25 19:36 /usr/local/lib/dovecot/auth
luuk@asus:~/source/dovecot-2.2.9



Re: [Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Reindl Harald

Am 25.11.2013 20:31, schrieb Luuk:
 On 25-11-2013 20:04, Timo Sirainen wrote:
 On 25.11.2013, at 19.36, Luuk dove...@vosslamber.nl wrote:

 while doing 'sudo make install',
 its complaining about the existance of ‘/usr/local/lib/dovecot/auth’

 Don’t use the same directory for libexecdir and moduledir.

 Configured with: ../configure --prefix=/usr

i doubt that this would end in /usr/local/ at all

 They seem to be different:
 libexecdir='${exec_prefix}/lib'
 moduledir='${exec_prefix}/lib/dovecot'

normally you would have /usr/local/lib/dovecot and /usr/local/libexec/dovecot
or for a x86_64 OS /usr/lib64/ like below

[harry@rh:~]$ rpm -q --filesbypkg dovecot | grep dovecot/auth
dovecot   /usr/lib64/dovecot/auth
dovecot   /usr/lib64/dovecot/auth/libauthdb_imap.so
dovecot   /usr/lib64/dovecot/auth/libdriver_mysql.so
dovecot   /usr/libexec/dovecot/auth

 i started with configure:
 ./configure --with-sql=yes --with-mysql --with-sqlite

./configure --help






signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] error while compiling dovecot 2.2.9

2013-11-25 Thread Luuk

On 25-11-2013 20:38, Reindl Harald wrote:


Am 25.11.2013 20:31, schrieb Luuk:

On 25-11-2013 20:04, Timo Sirainen wrote:

On 25.11.2013, at 19.36, Luuk dove...@vosslamber.nl wrote:


while doing 'sudo make install',
its complaining about the existance of ‘/usr/local/lib/dovecot/auth’


Don’t use the same directory for libexecdir and moduledir.


Configured with: ../configure --prefix=/usr


i doubt that this would end in /usr/local/ at all


They seem to be different:
libexecdir='${exec_prefix}/lib'
moduledir='${exec_prefix}/lib/dovecot'


normally you would have /usr/local/lib/dovecot and /usr/local/libexec/dovecot
or for a x86_64 OS /usr/lib64/ like below

[harry@rh:~]$ rpm -q --filesbypkg dovecot | grep dovecot/auth
dovecot   /usr/lib64/dovecot/auth
dovecot   /usr/lib64/dovecot/auth/libauthdb_imap.so
dovecot   /usr/lib64/dovecot/auth/libdriver_mysql.so
dovecot   /usr/libexec/dovecot/auth


i started with configure:
./configure --with-sql=yes --with-mysql --with-sqlite


./configure --help






ok, i changed it to:
./configure --with-sql=yes --with-mysql --with-sqlite 
--libexecdir=/usr/local/libexec/dovecot 
--with-moduledir=/usr/local/lib/dovecot


and now 'make install' worked.

tomorrow i'll start with configuring... ;)



[Dovecot] Invitation to connect on LinkedIn

2013-11-25 Thread Don Hill
LinkedIn




I'd like to add you to my professional network on LinkedIn.

- Don

Don Hill
Senior Technical Consultant at Lincoln Financial Group
Greater Chicago Area

Confirm that you know Don Hill:
https://www.linkedin.com/e/458g9e-hogi596x-46/isd/18305189187/jxXw8l7X/?hs=falsetok=0XaXLEnNJtlm01

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/458g9e-hogi596x-46/V7LnuFRIQXpYNGb2yum6IE4IQU3ZkPl/goo/dovecot%40dovecot%2Eorg/20061/I5998827361_1/?hs=falsetok=2wu4MqrgJtlm01

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.


  


Re: [Dovecot] postfix and dovecot - no emails in new folder

2013-11-25 Thread Kai Hendry
On Mon, Nov 25, 2013 at 02:02:23PM +0100, Christian Schmidt wrote:
 I would consider making postfix talk to dovecot using LMTP instead.

Why LMTP over LDA? The LMTP setup seems a lot more complex and error
prone.


[Dovecot] post-logout scripting

2013-11-25 Thread Jouko Nikula
Hi all,

I found this (http://www.dovecot.org/list/dovecot/2010-January/045717.html)
describing how to do a post-logout script. But is this valid anymore?
It seems I'm getting error when trying to execute imap process in
post-logout script and post logout documentation does not talk about
executing imap.

I'm trying to umount (virtual) user home directory when user logs out.

Thanks,
 - Jouko


Re: [Dovecot] 2.2.9

2013-11-25 Thread Nick Edwards
I wonder if you have the balls to send to that him so he can see it,
he did say he unsubscribed
all to often I see heros like you, you're like the bitchy kid who
waits for someone to walk out the room then bitch about them.

On 11/23/13, Rick Romero r...@havokmon.com wrote:
 Noel,

 I include you in the gang of three, and I only read half the posts on this
 list.  I have no specific reason to, but it isn't a good association.

 A decade ago I was active on the Pegasus mail and Mercury lists, and names
 stood out after a while. Unfortunately on this list, the names stand out for
 a completely different reason - and its not positive.

 Just chill, everyone.   You never know who's going to interview you in a
 year.

 Rick


Re: [Dovecot] 2.2.9

2013-11-25 Thread Nick Edwards
On 11/24/13, Andreas Kasenides andr...@cymail.eu wrote:
 On 23-11-2013 3:47, Noel Butler wrote:
 On Fri, 2013-11-22 at 10:14 +0100, Ralf Hildebrandt wrote:

 * Thomas Leuxner t...@leuxner.net:
  * Ralf Hildebrandt ralf.hildebra...@charite.de 2013.11.22 09:44:
 
   Which patch?
 
  http://www.dovecot.org/list/dovecot/2013-November/093654.html
 
  Pigeonhole related patches.

 Damn. Those are biting me as well :/



 These would be found if Timo reverted back to issuing RC's before any
 official release, to iron out the niggly off-putting bugs, like most
 software does, or gets his devs and a community of official testers
 each
 with wildly different configurations and set ups, ASF have an excellent
 model that could be followed, bunch of devs and testers who each report
 on different distros and configs, why? because no single dev can
 imagine
 and test every  possible configuration. it might just save dovecot's
 good name, I recall a lot of damage was done to that in the circles I'm
 in when 2.0 was released with patches nearly every few days and weeks,
 I
 know a few ISP's and businesses that went back to courier or  Wu's
 because major bugs were getting in often, though it has been a lot
 better since 2.1 series, until this release that is :)

 I second this and offer my services for two, three different system
 configs from  Dovecot's plain old simple config with MAILDIR to slightly
 more complicated
 configurations with proxying/LDAP/dsync/mySQL etc based on
 virtualization with KVM.

 I also propose that upon employing above strategy that Timo should come
 up with a
 release cycles (long term, short term) with announced targets. Patches
 should be released as patches strictly as needed, not releases, and
 should be announced on a low traffic list like he is already doing with
 releases. OR something along these lines.


careful, or the suckups will go you next :)


 I know these are growing pains but essential. Email systems are CRITICAL
 for most of us.


dovecot is over 10 years, most softwares overcome these in the first
couple of years

 Andreas



Re: [Dovecot] 2.2.9

2013-11-25 Thread Nick Edwards
On 11/24/13, Luuk dove...@vosslamber.nl wrote:
 On 23-11-2013 18:44, Andreas Kasenides wrote:
 On 23-11-2013 3:47, Noel Butler wrote:
 These would be found if Timo reverted back to issuing RC's before any
 official release, to iron out the niggly off-putting bugs, like most
 

 I second this and offer my services for two, three different system

 What is the difference between a 'RC' and a new version?

 One should TEST this new version ALWAYS before using it in production
 (it does not matter if there was a 'RC' before it...)


this is why most softwares have a group of people testing them, so
when you test it you hopefully dont find any.


 2 cents

 ;)






Re: [Dovecot] 2.2.9

2013-11-25 Thread Nick Edwards
On 11/24/13, Eugene ge...@geniechka.ru wrote:
 Hi all,

 In recent years I use dovecot installed from FreeBSD ports. Interestingly, I

 feel that they follow the dovecot releases rather well but with some lag,
 e.g. currently it is at 2.2.6. I don't know if that is 'by design' or caused

 by lack of manpower, but it works pretty well in that problems usually get
 fixed before the update =)
 (And then again, nobody says you should install a new version on the release

 day).

 Also, I am not sure RCs as such would do much good, since most of the test
 systems are not likely to reproduce the volume and diversity of production
 workloads.


you dont do any testing for software do you? :)
I do for one very popular bit of software, although we can not test
for every configuration, loading and stress testing is very common on
all configurations we do check :)


Re: [Dovecot] Problem with Thunderbird and mailbox with SPECIAL-USE flag

2013-11-25 Thread Sylvain
For information, I have solved the problem with :

prefix=INBOX.
imapc_list_prefix=INBOX


Seen on recent thread « Problem migration from cyrus with imapc », thanks
Timo.

Sylvain


2013/11/25 Sylvain debian.r...@gmail.com

 Hi !

 I have an old Courier IMAP and in front of it, I have put a proxy cache
 with the great Dovecot.

 SOGo webmail is connected to the proxy and works great (very very more
 fast) but I have a problem with Thunderbird : mailbox with « SPECIAL USE »
 aren't automatically detected.
 To make that works, I must :
 - in Dovecot : define the namespace inbox : « prefix = » and « separator =
 . »
 - in Thunderbird : force in the account, the personal namespace to
 INBOX. and untick « Allow server to exceed namespace » (sorry : personal
 translation :D).

 If I define in the namespace inbox as the dovecot wiki said : « prefix =
 INBOX. » and « separator = . », TB see a sub-folder INBOX and mailbox with
 special use aren't automatically detected. :-(
 I must have forgotten a parameter in my Dovecot configuration but I don't
 see it.. Can you have a look please ?
 Here my configuration :

 # 2.1.7: /etc/dovecot/dovecot.conf
 # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.2
 auth_debug_passwords = yes
 auth_mechanisms = plain login
 disable_plaintext_auth = no
 first_valid_uid = 100
 imapc_host = xx
 mail_gid = imapproxy
 mail_home = /var/local/cache/dovecot/%1Mu/%1.1Mu/%u
 mail_location = imapc:~/imapc
 mail_uid = imapproxy
 namespace inbox {
   inbox = yes
   list = yes
   location =
   mailbox Drafts {
 special_use = \Drafts
   }
   mailbox Junk {
 special_use = \Junk
   }
   mailbox Sent {
 special_use = \Sent
   }
   mailbox Trash {
 special_use = \Trash
   }
   prefix =
   separator = .
   type = private
 }
 passdb {
   args = host=xx port=143
   default_fields = userdb_imapc_user=%u userdb_imapc_password=%w
   driver = imap
 }
 protocols = imap
 ssl_cert = /etc/dovecot/dovecot.pem
 ssl_key = /etc/dovecot/private/dovecot.pem
 userdb {
   driver = prefetch
 }

 Sylvain