Re: [Dovecot] Per-user Sieve script location question
Hi, Steffen
i changed my 90-sieve.conf
to
sieve = /var/sieve-scripts/%u.sieve sieve_dir = /home/vmail/domains/sieve/%n/.sieve
and it works.
thank you.
On Wed, May 21, 2014 at 12:10 PM, Steffen Kaiser < skdovecot@smail.inf.fh-brs.de> wrote:
-----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-----
-- Selçuk YAZAR http://www.selcukyazar.blogspot.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 21 May 2014, Selcuk Yazar wrote:
Hi Selcuk,
i changed my 90-sieve.conf
to
sieve = /var/sieve-scripts/%u.sieve sieve_dir = /home/vmail/domains/sieve/%n/.sieve
Yeah, looks good. However, do you host multiple domains? In your config you differ domains:
mail_location = mbox:/home/vmail/domains/%d/%u
with sieve = /var/sieve-scripts/%u.sieve , too, but with sieve_dir = /home/vmail/domains/sieve/%n/.sieve you do not.
http://wiki2.dovecot.org/Variables %u user full username (e.g. user@domain) %n username user part in user@domain, same as %u if there's no domain %d domain domain part in user@domain, empty if user with no domain
I suppose, you should use:
sieve_dir = /home/vmail/domains/sieve/%u/.sieve
otherwise info@example.org and info@localhost share the same Sieve dir.
BTW: Because you have an unique directory per user now anyway, why not use is that as home directory? I'm not sure, what other things use the home for. E.g. use
mail_home = /home/vmail/domains/home/%d/%u
and keep the home-relative paths for Sieve: ~/...
On Wed, May 21, 2014 at 12:10 PM, Steffen Kaiser < skdovecot@smail.inf.fh-brs.de> wrote:
-----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-----
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU3yY9Hz1H7kL/d9rAQIIpwf/bfNNbI3zCEuJs3xYq5Nl+Td2QGX0uUzk 8PA4taMNrq00W3jBtTi8J4/ZlqT+l15r5nDr6O/VSgffymi9l0JmRMRIfUyzfjBy IThSQTrbjx9t+gCJa15Q2JISYEhXC0WYDpseEZle5vFyIKxWT01FYH5cJe45n9ci LcY3QmCdrQ4JYuYPiECfOx5rFw7dvZBnS4YDLg/A/O3dUzx7BV6V+cSepAecpoom 4U5udqoWRF1pDgKywn0elB0WorEbgnyOHLSrd5uPOuQuP9aW2bcWJGSpr1/j5tQk tOYd/czhNhpPEKbzH/MJyn6mbhu4F3DGMAfuD9tweIAD25A41HgVpQ== =6w4r -----END PGP SIGNATURE-----
participants (2)
-
Selcuk Yazar
-
Steffen Kaiser