Re: [Dovecot] Per-user Sieve script location question
Hi
my dovecot conf is
doveconf -n # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-131.6.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) ext4 auth_debug = yes auth_debug_passwords = yes auth_default_realm = hostname.domainname.edu.tr auth_mechanisms = plain login auth_verbose = yes debug_log_path = /var/log/dovecot.debug disable_plaintext_auth = no first_valid_uid = 97 info_log_path = /var/log/dovecot.info last_valid_uid = 5000 mail_debug = yes mail_gid = 1001 mail_location = mbox:/home/vmail/domains/%d/%u mail_uid = 1001 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 mbox_write_locks = fcntl passdb { args = /etc/dovecot/conf.d/dovecot-ldap.conf.ext driver = ldap } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 lmtp sieve service auth { unix_listener auth-userdb { mode = 0600 user = vmail } } service managesieve-login { inet_listener sieve { port = 4190 } inet_listener sieve_deprecated { port = 2000 } } ssl = no ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { args = /etc/dovecot/conf.d/dovecot-ldap.conf.ext driver = ldap } protocol lda { debug_log_path = /var/log/dovecot-lda-errors.log info_log_path = /var/log/dovecot-lda.log log_path = /var/log/dovecot-lda-errors.log mail_plugins = " sieve" }
you're right we have mail_location ,
should i add mail_home value mail_home = /home/vmail/domains/%d/%u
to 10-mail.conf file ?
thanks.
On Wed, May 21, 2014 at 11:43 AM, Steffen Kaiser < skdovecot@smail.inf.fh-brs.de> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 May 2014, Selcuk Yazar wrote:
our users stored OpenLdap and users home folder like below:
without seeing your current doveconf -n output and the ldap configuration file, I would guess that your users have no home directory: http://wiki2.dovecot.org/VirtualUsers/Home
/home/vmail/domains/domainname.edu.tr/username/...
now when i used default settings for dovecot sieve
sieve = ~/.dovecot.sieve sieve_dir = ~/sieve
sieve script write and work globaly and stored, /home/vmail/domains/sieve
i looked up Dovecot docs for per user but i don't understand clearly
can i replace sieve parameters like
sieve = /home/vmail/domains/..................edu.tr/%n/.dovecot.sieve sieve_dir = /home/vmail/domains/.........................edu.tr/%n/.sieve
for per user scirpt.
Read the link above about why not store Sieve files below an user's mail location.
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU3xnMHz1H7kL/d9rAQIiRAgAmZYxZo1fn/5Iw0WHB2v3FpF1snq1VH4t tvyhS/ISj3snMB7dbViUkjvYhzaIsWQKP9eXM3YtOmwpSdlwozqwq/5PvckQgAkU cI8UIyXCErsdsvp7/aod/n+Qd+tnjf91b3PY9R7xYd6Qjf/8H7lSmX/xBMBltu7N AVqwgHTivR9dwsDyTkIqQIfULWvwcWf5eXbKzP1YxamYzF+lMk6ippK7RebMrspe CTg1BLCCLiHMTdSQrOrnfmNjgS/rAZctOEyc3/M98U8HxmEhT6ZFpTjQ4i0T0/17 +9DQovMUi2/bZ1IhgBpS9u+YkPeuu+y4vAhMqCAT+fcEW1+MgfK2Lg== =Sc/m -----END PGP SIGNATURE-----
-- Selçuk YAZAR http://www.selcukyazar.blogspot.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 May 2014, Selcuk Yazar wrote:
my dovecot conf is
doveconf -n # 2.0.9: /etc/dovecot/dovecot.conf [...] mail_location = mbox:/home/vmail/domains/%d/%u [...] userdb { args = /etc/dovecot/conf.d/dovecot-ldap.conf.ext driver = ldap }
you're right we have mail_location ,
should i add mail_home value
That depends on if your LDAP configuration contains a (for the mailserver usable) home for the individual user.
mail_home = /home/vmail/domains/%d/%u
The value shows that you did not followed my advice from the last response: "Read the link above about why not store Sieve files below an user's mail location." maybe because you missed it because you toppost.
to 10-mail.conf file ?
never use the same dir for mail location and user's home.
On Wed, May 21, 2014 at 11:43 AM, Steffen Kaiser < skdovecot@smail.inf.fh-brs.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 21 May 2014, Selcuk Yazar wrote:
our users stored OpenLdap and users home folder like below:
without seeing your current doveconf -n output and the ldap configuration file, I would guess that your users have no home directory: http://wiki2.dovecot.org/VirtualUsers/Home
/home/vmail/domains/domainname.edu.tr/username/...
now when i used default settings for dovecot sieve
sieve = ~/.dovecot.sieve sieve_dir = ~/sieve
sieve script write and work globaly and stored, /home/vmail/domains/sieve
i looked up Dovecot docs for per user but i don't understand clearly
can i replace sieve parameters like
sieve = /home/vmail/domains/..................edu.tr/%n/.dovecot.sieve sieve_dir = /home/vmail/domains/.........................edu.tr/%n/.sieve
for per user scirpt.
Read the link above about why not store Sieve files below an user's mail location.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU3xtn3z1H7kL/d9rAQIu1wf/XMXuEC1O1PQssoU1uHfTM5jOHpH1KHis yUL1z2/WV8c7engx+CNtGPxnRewC1UFKBZcHaAyXHNxQM+jsYf+NkUo4PDlKkzfi /JIn+SGOlwZKJUYarnAJbt0CdZG7f8auvMLsoovR8iNitSAdyH5AkRt9i25YFndW Nm0lYO1CPJzKp3CVhDS0Lxs6sSD21xsMvuauzMmS4ZpYhXXEdOf4jqNkIYdJbSHz nBHx8sjlJaKNKO3OWs1S5T7DxlRz+VYGw1IZ1BUgpBBD3LxDIOwTLG7NNjWRG2lB nTB+WK02fvh0T+oJORVuKmgoXG5WKvZjFOa4oVqdbbzM6V4ZJSx9Sw== =bLQp -----END PGP SIGNATURE-----
participants (2)
-
Selcuk Yazar
-
Steffen Kaiser