Bohlken, Henning
2012-Jan-19  12:02 UTC
[Dovecot] Problems sending email direct into publich folders
Hi,
i want to send mails direct into a public folder. If i send an email via my
local postfix the mail will be handled as a normal private mail. Dovecot does
create a mailbox in the private Namespace and do use not the mailbox in public
one.
I hope you can help me with my little problem.
Here sone informations about my configuration:
[root at imap1 etc]# ls -la /var/dovecot/imap/public/
insgesamt 16
drwxr-x--- 3 vmail vmail 4096 19. Jan 10:12 .
drwxr-x--- 5 vmail vmail 4096 18. Jan 08:41 ..
-rw-r----- 1 vmail vmail    0 19. Jan 10:11 dovecot-acl-list
-rw-r----- 1 vmail vmail    8 19. Jan 10:12 dovecot-uidvalidity
-r--r--r-- 1 vmail vmail    0 19. Jan 10:12 dovecot-uidvalidity.4f17de84
drwx------ 5 vmail vmail 4096 19. Jan 10:12 .hrztest
and here is me configuration:
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-220.2.1.el6.i686 i686 Red Hat Enterprise Linux Server release
6.2 (Santiago)
auth_username_format = %Ln
disable_plaintext_auth = no
login_greeting = Dovecot IMAP der Jade Hochschule.
mail_access_groups = vmail
mail_debug = yes
mail_gid = vmail
mail_plugins = quota acl
mail_uid = vmail
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 imapflags notify
mbox_write_locks = fcntl
namespace {
  inbox = yes
  location = maildir:/var/dovecot/imap/%1n/%n
  prefix   separator = /
  type = private
}
namespace {
  list = children
  location = maildir:/var/dovecot/imap/public/
  prefix = public/
  separator = /
  subscriptions = no
  type = public
}
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
passdb {
  driver = pam
}
plugin {
  acl = vfile
  acl_shared_dict = file:/var/lib/dovecot/shared-mailboxes
  mail_log_fields = uid box msgid size
  quota = dict:user::file:/var/dovecot/imap/%1n/%n/dovecot-quota
  quota_rule = *:storage=50MB
  quota_rule2 = Trash:storage=+10%
  sieve = /var/dovecot/imap/%1n/%n/.dovecot.sieve
  sieve_dir = /var/dovecot/imap/%1n/%n/sieve
  sieve_extensions = +notify +imapflags
  sieve_quota_max_scripts = 2
}
postmaster_address = postmaster at jade-hs.de
protocols = imap pop3 lmtp sieve
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  args = uid=501 gid=502 home=/home/vmail/%n allow_all_users=yes
  driver = static
}
userdb {
  driver = passwd
}
protocol lmtp {
  mail_plugins = quota acl sieve
}
protocol imap {
  mail_plugins = quota acl imap_quota
}
protocol pop3 {
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %08Xu%08Xv
}
--
HS Wilhelmshaven/Oldenburg/Elsfleth
Jade Hochschule
Hochschulrechenzentrum
Dipl.-Ing. Henning Bohlken
Friedrich-Paffrath-Str. 101
26389 Wilhelmshaven
Timo Sirainen
2012-Jan-19  19:31 UTC
[Dovecot] Problems sending email direct into publich folders
On 19.1.2012, at 14.02, Bohlken, Henning wrote:> i want to send mails direct into a public folder. If i send an email via my local postfix the mail will be handled as a normal private mail. Dovecot does create a mailbox in the private Namespace and do use not the mailbox in public one.Depends on how you want to do this.. For example all mails intended to be put to public namespace could be sent to a "publicuser" named user, which has write permissions to the public namespace. Then you'll simply create a sieve script for the publicuser which redirects the mails to the wanted folder (e.g. fileinto "public/hrztest").
Kuran, Fabian
2012-Feb-13  08:00 UTC
[Dovecot] Problems sending email direct into publich folders
Hi,>?Depends on how you want to do this.. For example all mails intended to be put to public namespace could be sent?> to a "publicuser" named user, which has write permissions to the public namespace. Then you'll simply create a?> sieve script for the publicuser which redirects the mails to the wanted folder (e.g. fileinto "public/hrztest").I'm also migrating from cyrus-imapd to dovecot. But this solution isn't very good to me. With cyrus I could easily send an email to (for example) bb+shared/archive at mydomain.com. Then the mail will be putted to the public folder.? Is there a comparable way to do this with Dovecot? FYI: I'm using dovecot in a clustered and multidomain setup. The Mails will be deliviered over LMTP. -- Bye, Fabian Kuran