[Dovecot] Error: User doesn't have home dir set, disabling duplicate database

2012-09-16 Thread Carsten Laun-De Lellis
Hi all

 

I receive the following error in my mail.log.

 

Does anybody know how to configure dovecot to get rid of this ?

 

I have one server up and running with postfix, dovecot and a mysql backend.
The error above happens on another server with postfix, dovecot and a ldap
backend.

 

Any hints ?

 

Mit freundlichem Gruß

 

Carsten Laun-De Lellis

Dipl.-Ing. Elektrotechnik

Certified Information Systems Auditor (CISA)

 

Hauptstrasse 13

D-67705 Trippstadt

 

Phone:   +49 (6306) 992140

Mobile:  +49 (151) 27530865

Fax: +49 (6306) 992142

email:mailto:carsten.delel...@delellis.net
carsten.delel...@delellis.net

 



Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database

2012-09-16 Thread Pascal Volk
On 09/16/2012 12:48 PM Carsten Laun-De Lellis wrote:
 Hi all
 
 I receive the following error in my mail.log.
 
 Does anybody know how to configure dovecot to get rid of this ?
 […]

Fix your setup.

,--[ http://wiki2.dovecot.org/UserDatabase ]--
| The user database lookup returns these fields:
| …
| * home: User's home directory, overrides the global mail_home setting.
| …
`--

See also: http://wiki2.dovecot.org/VirtualUsers/Home


Regards,
Pascal
-- 
The trapper recommends today: cafefeed.1226...@localdomain.org


Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database

2012-09-16 Thread Noel Butler
thats a rather intelligent response now, isnt it troll.




On Sun, 2012-09-16 at 13:21 +0200, Pascal Volk wrote:

 On 09/16/2012 12:48 PM Carsten Laun-De Lellis wrote:
  Hi all
  
  I receive the following error in my mail.log.
  
  Does anybody know how to configure dovecot to get rid of this ?
  […]
 
 Fix your setup.
 
 ,--[ http://wiki2.dovecot.org/UserDatabase ]--
 | The user database lookup returns these fields:
 | …
 | * home: User's home directory, overrides the global mail_home setting.
 | …
 `--
 
 See also: http://wiki2.dovecot.org/VirtualUsers/Home
 
 
 Regards,
 Pascal




signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database

2012-09-16 Thread Noel Butler
Hi,

On Sun, 2012-09-16 at 12:48 +0200, Carsten Laun-De Lellis wrote:

 Hi all
 
  
 
 I receive the following error in my mail.log.
 



Dont use ldap, but, you should supply the output of  dovecot -n  it
might help those familiar with ldap setups assist you




  
 
 Does anybody know how to configure dovecot to get rid of this ?
 
  
 
 I have one server up and running with postfix, dovecot and a mysql backend.
 The error above happens on another server with postfix, dovecot and a ldap
 backend.


should use mysql :)

attachment: face-smile.png

signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database

2012-09-16 Thread Carsten Laun-De Lellis
Hi

First of all thank you for helping me to fix the problem. I am trying out
ldap to get used to it. As I wrote I have a mysql setup up and running.

Here's the output of doveconf -n:

# 2.1.9: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-028stab099.3 x86_64 Ubuntu 11.04 vzfs
auth_mechanisms = plain login
disable_plaintext_auth = no
hostname = smtp.example.com
mail_location = maildir:/vmail/%d/%n
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 = maildir:/vmail/%d/%n
  prefix =
  separator = /
  subscriptions = yes
  type = private
}
passdb {
  args = /scripts/ldap/mail/auth.ldap
  driver = ldap
}
plugin {
  recipient_delimiter = +
  sieve = /vmail/%d/%n/dovecot.sieve
  sieve_dir = /vmail/%d/%n
  sieve_global_dir = /var/lib/dovecot/sieve
  sieve_global_path = /var/lib/dovecot/sieve/default.sieve
}
postmaster_address = r...@example.com
protocols = imap sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
mode = 0660
user = vmail
  }
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
  inet_listener sieve_deprecated {
port = 2000
  }
  process_min_avail = 0
  service_count = 1
  vsz_limit = 64 M
}
ssl_cert = /certs/mail/mailpublic.pem
ssl_key = /certs/mail/mailkey.pem
userdb {
  args = /scripts/ldap/mail/auth.ldap
  driver = ldap
}
protocol lda {
  mail_plugins =  sieve
}
protocol sieve {
  mail_max_userip_connections = 10
  managesieve_implementation_string = Dovecot Pigeonhole
  managesieve_logout_format = bytes=%i/%o
  managesieve_max_line_length = 65536

And here is also my auth ldap file:

uris = ldap://smtp.example.com
dn = cn=admin, dc=example, dc=com
dnpass = secret
tls = no
base = ou=mailuser,dc=example,dc=com
ldap_version = 3

user_attrs = home=/vmail/%d/%n,=uid=5000,=gid=5000
user_filter = ((objectClass=PFMailAccount)(pfMail=%u))

pass_attrs = pfClearPassword=password
pass_filter = ((objectClass=PFMailAccount)(pfMail=%u))

default_pass_scheme = PLAIN

Again thank you very much for any help.

Mit freundlichem Gruß

Carsten Laun-De Lellis
Dipl.-Ing. Elektrotechnik
Certified Information Systems Auditor (CISA)

Hauptstrasse 13
D-67705 Trippstadt

Phone:   +49 (6306) 992140
Mobile:  +49 (151) 27530865
Fax: +49 (6306) 992142
email:   carsten.delel...@delellis.net

-Original Message-
From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On
Behalf Of Noel Butler
Sent: Sonntag, 16. September 2012 13:34
To: dovecot@dovecot.org
Subject: Re: [Dovecot] Error: User doesn't have home dir set, disabling
duplicate database

Hi,

On Sun, 2012-09-16 at 12:48 +0200, Carsten Laun-De Lellis wrote:

 Hi all
 
  
 
 I receive the following error in my mail.log.
 



Dont use ldap, but, you should supply the output of  dovecot -n  it might
help those familiar with ldap setups assist you




  
 
 Does anybody know how to configure dovecot to get rid of this ?
 
  
 
 I have one server up and running with postfix, dovecot and a mysql
backend.
 The error above happens on another server with postfix, dovecot and a 
 ldap backend.


should use mysql :)




[Dovecot] clucene build warnings?

2012-09-16 Thread Charles Marcus

Hi all/Timo,

Is clucene still the best/recommended method for enabling full text search?

Although I haven't enabled FTS yet, I plan on doing sometime in the 
future, and was going to be using clucene, but before I do, I'd like to 
see if I need to worry about an issue I've been seeing ever since I 
first installed clucene (and still get every time it is upgraded)...


I run gentoo linux on an amd64 server, and have always gotten this 
warning whenever it is updated (and also got it when I first installed it):


QA Notice: Package triggers severe warnings which indicate that it
   may exhibit random runtime failures.
/var/tmp/portage/dev-cpp/clucene-2.3.3.4-r4/work/clucene-core-2.3.3.4/src/core/CLucene/index/DocumentsWriter.cpp:129:33:
 warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, 
size_t)’
Please do not file a Gentoo bug and instead report the above QA
issues directly to the upstream developers of this software.
Homepage:http://clucene.sourceforge.net/

Has anyone else ever seen similar warnings when building clucene?

Is the gentoo ebuild output correct that this is not a gentoo bug, but 
is in fact a problem with upstream?


If so, is it harmless? Or should I try to get upstream to fix it?

That said, being that ianap, I probably wouldn't be much help to them, 
so, Timo, any chance you can see if this is a problem that needs to be 
addressed with them?


Thanks,

--

Best regards,

Charles



Re: [Dovecot] Error: User doesn't have home dir set, disabling duplicate database

2012-09-16 Thread Sven Hartge
Carsten Laun-De Lellis carsten.delel...@delellis.net wrote:

 user_attrs = home=/vmail/%d/%n,=uid=5000,=gid=5000

This should be 

  user_attrs = =home=/vmail/%d/%n,=uid=5000,=gid=5000

You need the = before home like you did with uid and gid because
you are not assigning any LDAP attribute to home but are construction
one yourself with %d and %n.

Or you can use the default_fields stanza in your userdb configuration to
provide those values. user_attrs would then be empty.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



[Dovecot] doveadm backup - Fatal: All your namespaces have a location setting.

2012-09-16 Thread Tobias Hachmer

Hello list,

I am using dovecot v2.1.9 and have a problem with doveadm backup:

# doveadm backup -u u...@domain.com 
maildir:/backup/domain.com/user/Maildir
doveadm(u...@domain.com): Fatal: All your namespaces have a location 
setting. It should be empty (default mail_location) in the namespace to 
be converted.


Here my namespace config:
namespace {
  list = children
  location = 
maildir:/var/vmail/%%d/%%n/Maildir:INDEX=/var/vmail/%d/%n/shared/%%u

  prefix = Gemeinsame-Postfaecher/%%u/
  separator = /
  subscriptions = no
  type = shared
}
namespace inbox {
  inbox = yes
  location = 
maildir:/var/vmail/%d/%n/Maildir:INDEX=/var/vmail/indexes/%u

  prefix =
  separator = /
  subscriptions = yes
  type = private
}

Have I got a problem with my namespace config?

Regards,
Tobias Hachmer


Re: [Dovecot] Edit an existing message or replacing it

2012-09-16 Thread Michael M Slusarz

Quoting Mostafa Rokooie mostafa.roko...@gmail.com:


I want to know is there any solution to edit an existing message in mailbox
via IMAP? or replace it with a new message (store a new message with same
UID)?


You **can't** alter an existing UID message.  You have to re-add the  
message to the mailbox and use a new UID.  For this, you have 2 options:


1.) FETCH the message, alter it locally, APPEND the message to the  
server, and DELETE the original message.
2.) Use CATENATE to create a new message, and DELETE the original  
message (this is how we strip attachments from a message).  Note that  
not all IMAP4rev1 servers support CATENATE.


michael



Re: [Dovecot] Strip backslash from usernames

2012-09-16 Thread Dominic Malolepszy

On 13/09/12 10:38, Daniel Parthey wrote:

Dominic Malolepszy wrote:

Is there a way to strip a backslash if it exists at the start of
username like \u...@example.com within the Dovecot LDA? I am using
Dovecot 2.1.9 with a LDAP backend, so I cannot do any sort of SQL
trickery.


Address rewriting should be done in the MTA.
I see no point why this should be done in the LDA?

Regards
Daniel
Agreed, I was just hoping I would not have to poke around the existing 
Sendmail setup we have here, in the end it turned out the backslashes 
were leftover legacy crud in some of the LDAP entries that actually did 
nothing.