[Dovecot] Public mailboxes configuration to receive mails

Didier Faugeron didier.faugeron at inria.fr
Thu Apr 2 14:22:37 EEST 2009


Hello,

I would like to know how to use Public mailboxes in my Dovecot 
environment (dovecot 1.2.beta4)
 
Currently my dovecot server is only used for mailbox user. The Postfix 
master.cf is configured with the following line:
"dovecot  unix -  n       n       -       -       pipe  flags=DRhu 
user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d ${user}"
 
Both dovecot and postfix use LDAP requests for authentication and users 
data retrieving. 
 
However  I don't use userdb database to get the users home directory but 
an userdb static instruction :
"args = uid=vmail gid=vmail home=/data/maildir/%1Lu/%Lu allow_all_users=yes"

I have configured my dovecot.conf to create a namespace Public, and it 
works fine: an user who have read/write access(ACL) to a public mailbox 
can subscribe to it and read/copy mails. 
My problem is to deliver mails in this public mailbox. I don't know how 
to do it.
 
Therefore, first question: is it possible to deliver mails to a public 
mailbox through the LDA/Postfix ?
If yes, please could you tell me how to configure LDA/Postfix and 
Dovecot in order to accept and deliver mails to users mailboxes and to 
public mailboxes ? 
I assume that the main modifications should be done in the master.cf of 
Postfix. Could you please specify and clarify what modifications are 
required ?

Find below my dovecot -n output and dovecot-ldap.conf.


Thank you in advance for your help and your feedback.
Regards
Didier F.



dovecot -n:
# 1.2.beta4: /etc/dovecot.conf
# OS: Linux 2.6.18-92.el5xen x86_64 CentOS release 5.2 (Final) ext3
syslog_facility: local2
protocols: imaps pop3s imap
listen: *, [::]
ssl_cert_file: /etc/openssl/certs/xxx.crt
ssl_key_file: /etc/openssl/certs/xxx.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_greeting: XXX mail server - Dovecot ready.
login_processes_count: 1
login_max_processes_count: 512
max_mail_processes: 800
mail_max_userip_connections(default): 30
mail_max_userip_connections(imap): 30
mail_max_userip_connections(pop3): 10
first_valid_uid: 5000
last_valid_uid: 5000
first_valid_gid: 5000
last_valid_gid: 5000
mail_uid: vmail
mail_gid: vmail
mail_location: maildir:/data/maildir/%1Lu/%Lu:INDEX=/data/index/%1Lu/%Lu
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_drop_priv_before_exec: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): acl imap_acl
mail_plugins(imap): acl imap_acl
mail_plugins(pop3):
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
namespace:
  type: private
  separator: .
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: public
  separator: .
  prefix: Public.
  location: maildir:/data/maildir/public:INDEX=/data/index/public
  list: yes
  subscriptions: yes
auth default:
  verbose: yes
  debug: yes
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: static
    args: uid=vmail gid=vmail home=/data/maildir/%1Lu/%Lu 
allow_all_users=yes
  socket:
    type: listen
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
      group: vmail
plugin:
  acl: vfile


dovecot-ldap.conf:
hosts = xxx
tls = yes
auth_bind = yes
ldap_version = 3
base = xxx
scope = subtree
user_attrs = inriaLogin=user
user_filter = 
(&(objectClass=inriaperson)(inriaentrystatus=valid)(inrialogin=%u))
pass_attrs = inriaLogin=user,userPassword=password
pass_filter = 
(&(objectClass=inriaPerson)(inriaEntryStatus=valid)(inriaLogin=%u))





-------------- next part --------------
A non-text attachment was scrubbed...
Name: didier_faugeron.vcf
Type: text/x-vcard
Size: 300 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20090402/c8d4f131/attachment.vcf 


More information about the dovecot mailing list