indexing mails required?

2015-02-23 Thread Kevin Laurie
Hi,
I just got solr working and would like to do FTS.
Do I need to index? I have 20GB email account that is getting indexed using
the following command(it seems to be taking a while):-

doveadm index  -u u...@domain.net INBOX

Is this common?

Please advise
Thanks
Kevin


Re: Dovecot 2.1.7 random login fails

2015-02-23 Thread Dario Meloni
On Wed, 18 Feb 2015 09:38:22 +, Dario Meloni wrote:

 did you've verified that the file exists and has a reasonable file
 size?
 
 The file in question is actually a unix socket that I guess is used to
 refresh the SSL data from the main privileged process.
 I don't know which process is actually logging the error, but the ssl-
 params file is root owned and is readable and writable by everyone.

No one has any idea why the ssl-param socket might not be working?

I tried also different distributions (centos, ubuntu, debian) and the 
dovecot repositories (to try the latest stable, 2.2) and I routinely get 
that error.


Re: Permissions problem with mdbox maildir

2015-02-23 Thread Emanuel Evans
Emanuel Evans emanuel.ev...@gmail.com writes:

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

 Could you try what happens, if you create the hardlink manually as the 
 vmail user _two_ times, if the first link() succeeds. Maybe:

 1) hard links won't work on your encfs,
 2) link() fails with Operation not permitted instead of File exists in 
 your case, if the target file already exists.

 Something like: sudo -u vmail ln  \
 /var/decrypted/vmail/aleme.nu/root/mailboxes/INBOX/dbox-Mails/dovecot.index \
 /var/decrypted/vmail/aleme.nu/root/mailboxes/INBOX/dbox-Mails/dovecot.index.backup.tmp

 It turns out (1) was the problem—encfs doesn't allow hard links in my
 configuration. I've set maildir_copy_with_hardlinks to no; hopefully
 that will resolve the issue. Thanks so much for your help!

Unfortunately, even with maildir_copy_with_hardlinks set to no, the
problem still seems to persist. So my question becomes: is there a way
to prevent dovecot from using hardlinks in all circumstances? (If it
isn't possible, I can change my encfs setup.)


Re: Permissions problem with mdbox maildir

2015-02-23 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 23 Feb 2015, Emanuel Evans wrote:

Emanuel Evans emanuel.ev...@gmail.com writes:


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


Could you try what happens, if you create the hardlink manually as the
vmail user _two_ times, if the first link() succeeds. Maybe:

1) hard links won't work on your encfs,
2) link() fails with Operation not permitted instead of File exists in
your case, if the target file already exists.

Something like: sudo -u vmail ln  \
/var/decrypted/vmail/aleme.nu/root/mailboxes/INBOX/dbox-Mails/dovecot.index \
/var/decrypted/vmail/aleme.nu/root/mailboxes/INBOX/dbox-Mails/dovecot.index.backup.tmp


It turns out (1) was the problem—encfs doesn't allow hard links in my
configuration. I've set maildir_copy_with_hardlinks to no; hopefully
that will resolve the issue. Thanks so much for your help!


Unfortunately, even with maildir_copy_with_hardlinks set to no, the
problem still seems to persist. So my question becomes: is there a way
to prevent dovecot from using hardlinks in all circumstances? (If it


I don't think so.


isn't possible, I can change my encfs setup.)


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVOwjOnz1H7kL/d9rAQILcQgAxA6L0gs2cPeYYrW0th8BVsU6GWs7NweS
BkhZgawrAvgTxTFDna4hjG0CM57aWlDxvcGzHuVLg5Q35TijGJl+UY6OHY78v8dI
dw+l2H2VQjtt2qw2tlStes2XHW3eCM+PWVz9KRYKfIZoof53kwpn16sGlDE9kde8
J5ndgXYl4ACiNZHxkjumTgX/jNg0NMADWGQZUZoPU9KEUS2MPnKC08M0BWvryiQV
auOFK1ZVrrL3R9JKQ85E9yYYBfIWRFx/uY+vi7WZWlgPieaqsC3cxBYRriTVoW13
j1GflBwg6mwM0xF7kJ2iywLQzQHjCxnsrpqU+6X+sW7dfIhI5JNDhA==
=txun
-END PGP SIGNATURE-


Re: Temporary authentication failure ? Cant connect with ldap user

2015-02-23 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 23 Feb 2015, David Scheele wrote:


So, I set up the Server, installed and configured postfix, ldap and dovecot
(in that order) and now simply try to log into the mail account with a used
from the LDAP over telnet.

The test looks like this:

*| telnet localhost 143*
*| a bunch of stuff ending with:*
*| OK [**] Dovecot ready.*
*| a login username userpassword*
*| a NO [UNAVAILABLE] Temporary authentication failure. [host and date
here]*

In the logs it says

*|[date] mailserver dovecot: auth: Error: LDAP: binding failed (dn
cn=admin): Invalid credentials*

But I KNOW the admin password I entered into the dovecot-lda.conf.ext is
correct as I use it to log into the LDAP directory over jxplorer

I also know the password for the user i try to log in with is correct as i
set it myself over and over just to be sure there are no typos.
I'm at a loss, I've been at this end for a few days now and can't find good
tutorials online because its either always an old dovecot, postfix, ldap or
debian version and somewhere in the middle it just stops because some file
is completely missing. I get the impression I'm just not able-brained for
linux useage.

Anyway, here are a few more informations about the system:

*Dovecot version 2.1.7*

Output of grep -v '^ *\(#.*\)\?$' dovecot-sql.conf:




*hosts = localhost*
*dn = cn=admin*
*dnpass = [password]*
*sasl_bind = no*
*tls = no*
*auth_bind = yes*
*ldap_version = 3*
*base = dc=[domainname],dc=de*
*user_attrs = uidNumber=uid,gidNumber=gid*
*user_filter = ((objectClass=posixAccount)(uid=%u))*
*pass_attrs = uid=user,userPassword=password*

Output of dovecot -n:

*disable_plaintest_auth = no*
*mail_location = mbox:~/mail:INBOX=/var/mail/%u*
*[namespace config here]*

*passdb {*
*args = /etc/dovecot/dovecot-ldap.conf.ext*

   

filename mismatch


*driver = ldap*
*}*
*plugin {*
*sieve = ~/.dovecot.sieve*
*sieve_dir = ~/sieve*
*}*

*protocols =  imap pop3*
*ssl_cert = /etc/dovecot/dovecot.pem*
*ssl_key = /etc/dovecot/private/dovecot.pem*
*userdb {*
*args = /etc/dovecot/dovecot-ldap.conf.ext*
*driver =ldap*
*}*
*protocol pop3 {*
*pop3_client_workarounds = outlook-no-nuls oe-ns-eoh*
*pop3_uidl_format = %08Xu%08Xv*
*}*

Any help would be greatly apprechiated I'm going crazy over here.

Thanks in advance,
David



- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBVOwixXz1H7kL/d9rAQJxAgf/dNt0dBGANbIGvm6B0Oeuna/+uY5/7MR8
9EpFwss94eu4PyFgAfOm2Al+IOT98LP1N9OHs3Za2r/2W7LKaesgjCa3vBfH9IjZ
okUj7fsQXsTAM+UqtF+ne3f5Vp6Ng36Irabr5HLptlbIu3lq8ALMm/E/72TabVLl
Lln7bB/YFftnrTlI2HheRLnAwSOMHu4rNE7G9zLqiPEipD5XsqgDBPpAM6PwPmbi
k/irSUgq8h4b66LCzo6Ekv6lvKzWxQpzJo0MC99HT0syAP/qpyLbPARhQvDXCH7J
wvf/T19EAt+OC4zzfIPgL2YxRP5ZN5efr82NLYdiMVfAcBaDHaFWTA==
=8upy
-END PGP SIGNATURE-


Re: [Dovecot] Sieve vacation not working

2015-02-23 Thread Marcelo
It only works without :addresses for me

And even when getting this on confirmation the logs:

Feb 24 09:03:52 localhost dovecot: lmtp(7895, a...@dum.li):
yeIlOfjN61TXHgAA0J78UA: sieve:
msgid=451bb443b8ad815c205a2cce07ac31aec0727c47@vm-atmail7: sent
vacation response to a...@dum.li

It wasn't working.

This did the trick on CentOS 7 though:

alternatives --set mta /usr/sbin/sendmail.exim

Cheers