Setting up public mailboxes - user not found

Marti Markov marti1234 at gmail.com
Sun Mar 20 05:58:35 UTC 2016


Hey, 

I actually went with the method suggested by Steffen Kaiser of creating a separate userdb because I use LDAP and I have an OU which contains all the public mailboxes and was just easier. I setup the userdb like so:

userdb {
  args = /etc/dovecot/dovecot-ldap-shared_mailboxes.conf.ext
  driver = ldap
  override_fields = mail=maildir:/home/vmail/Public/.%n
}

Now when I send an email to office3 at xxx.com I don’t get any errors and it delivers the message to the office3 at xxx.com:

root at mail:~# ls /home/vmail/Public/.office3/new/
1458427035.M781836P21781.mail.xxx.com,S=2571,W=2630  1458427705.M750112P23338.mail.xxx.com,S=2501,W=2559


But from any mail client I try I don’t seem to be able to list anything in the Public directory. 

Am I missing something in the configuration?


Here is the public namespace configuration:

namespace {
  list = yes
  location = maildir:/home/vmail/Public:INDEXPVT=~/Maildir/Public
  prefix = Public/
  separator = /
  subscriptions = yes
  type = public
}

> On 17 Mar 2016, at 08:35, Burckhard Schmidt <bschmidt at cms.hu-berlin.de> wrote:
> 
> hello Marti,
> 
> Am 17.03.2016 um 06:18 schrieb Marti Markov:
>> First of all thanks for the reply Burckhard.
>> When you say:
>>> You can use a "normal" user who has a sieve script:
> 
> Normal user that's an account with one or more email aliasses.
> So this "user" can receive emails like any other user. This I called "normal" user. But this ist not of interest in our case.
> So you don't get an "user not found".
> 
> Next you will add an appropriate email alias to the account if necessary (our accounts are cryptic).
> 
> Now you have an account/user and you can write a sieve script for that user to deliver all emails into one public folder or into different folders. Public subfolders are possible too, if you like or are able to distinguish incomming emails.
> 
> In your case it is not necessary to have an user/account "office3". This name you would only use in that sieve script with "fileinto".
> 
> Regards!
> 
> Burckhard
> 
>> what would that user be in my case? office3? Because I don’t really see how it will solve the problem of getting the error 550 user not found when making the LDAP search.
>> 
>>> On 10 Mar 2016, at 08:50, Burckhard Schmidt <bschmidt at cms.hu-berlin.de> wrote:
>>> 
>>> Am 09.03.2016 um 20:02 schrieb Marti Markov:
>>>> Hi all,
>>>> 
>>>> This is the first time I use the dovecot mail list so I’m sorry if I forget something.
>>>> 
>>>> My problem is that for some reason I can get public mailboxes to work. I have setup the directory Public, the folders and the cur,tmp and new folder in them:
>>>> 
>>>> Public
>>>> |
>>>> |- .office3
>>>>   |
>>>>   |- cur
>>>>   |- tmp
>>>>   |- new
>>>>   |- dovecot-acl
>>>> 
>>>> 
>>>> Here is my dovecot conf:
>>>> 
>>> 
>>>> namespace {
>>>>   list = yes
>>>>   location = maildir:/home/vmail/xxx.com/Public:INDEXPVT=~/Maildir/Public
>>>>   prefix = Public/
>>>>   separator = /
>>>>   subscriptions = yes
>>>>   type = public
>>>> }
>>> 
>>> You can use a "normal" user who has a sieve script:
>>> require ...
>>> any filter if necessary
>>> fileinto "Public";
>>> discard;
>>> ...
>>> 
>>> "Public" is your prefix
>>> I have several subfolder so I use: fileinto "Public/subfolder1";
>>> 
>>> You would have
>>> /home/vmail/xxx.com/Public/subfolder1
>>> with cur new tmp
>>> and a file "dovecot-acl" containing anyone lrs
>>> 
>>> --
>>> Burckhard Schmidt
>> 
> 
> 
> -- 
> Mit freundlichen Grüßen --- Burckhard Schmidt
> 
> Abteilung Systemsoftware und Kommunikation
> ZE Computer- und Medienservice der Humboldt-Universität zu Berlin
> Postanschrift: Unter den Linden 6, 10099 Berlin
> Standort:      Rudower Chaussee 26; 12489 Berlin
> Tel.:          +49-30-2093-70058  Fax: +49-30-2093-70199
> Mail:          bschmidt at cms.hu-berlin.de <mailto:bschmidt at cms.hu-berlin.de>


More information about the dovecot mailing list