[Dovecot] managesieve error with dovecot
Hi All,
I am using Dovecot version 2.0.9 on Centos 6.4. I have installed dovecot-pegionhole version 2.0.9 and Roundcube version 0.9.5 . After doing all the configurations. I am able to see the filters icon in roundcube setting. But whem I click it I get the error "could not connect to server" please help.
Below are the error logs.
########### log from /var/log/maillog ##########
Dec 11 21:41:06 eximtest dovecot: managesieve: Debug: Unknown userdb setting: plugin//mail/%d/%n/=/home/test Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: Effective uid=6006, gid=6000, home= Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: quota: No quota setting - plugin disabled Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/mail/ayurve.co.uk/test/Maildir Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: maildir++: root=/mail/ayurve.co.uk/test/Maildir, index=, control=, inbox=/mail/ayurve.co.uk/test/Maildir Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: sieve-storage: using active sieve script path: (null) Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: sieve-storage: using sieve script storage directory: (null) Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Error: sieve-storage: stat((null)) failed: Bad address Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Error: sieve-storage: stat((null)) failed: Bad address Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Fatal: Failed to open Sieve storage.
############## log from /var/www/html/roundcube/logs/errors ##############
[11-Dec-2013 16:11:06 +0000]: PHP Error: Unable to connect to managesieve on eximtest.techblue.co.uk:4190 in /var/www/html/roundcube/plugins/managesieve/managesieve.php on line 308 (GET /roundcube/?_task=settings&_action=plugin.managesieve) [11-Dec-2013 16:11:06] Not currently in AUTHORISATION state (1): [11-Dec-2013 16:11:06] Failed to write to socket: connection lost ():
################### log from /var/www/html/roundcube/logs/sieve ###################
[11-Dec-2013 16:11:06 +0000]: S: "IMPLEMENTATION" "dovecot" [11-Dec-2013 16:11:06 +0000]: S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date" [11-Dec-2013 16:11:06 +0000]: S: "NOTIFY" "mailto" [11-Dec-2013 16:11:06 +0000]: S: "SASL" "PLAIN" [11-Dec-2013 16:11:06 +0000]: S: "VERSION" "1.0" [11-Dec-2013 16:11:06 +0000]: S: OK "Capability completed." [11-Dec-2013 16:11:06 +0000]: C: AUTHENTICATE "PLAIN" "AHRlc3RAYXl1cnZlLmNvLnVrADRRUG9vZFdvMGQ=" [11-Dec-2013 16:11:06 +0000]: S:
Thanks, Saurabh
-- Saurabh Kumar (RHCSA,RHCE,RHCVA)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 11 Dec 2013, saurabh wrote:
I am using Dovecot version 2.0.9 on Centos 6.4. I have installed
I'm not sure, if that version had old bugs, but
dovecot-pegionhole version 2.0.9 and Roundcube version 0.9.5 . After doing all the configurations. I am able to see the filters icon in roundcube setting. But whem I click it I get the error "could not connect to server" please help.
Below are the error logs.
########### log from /var/log/maillog ##########
Dec 11 21:41:06 eximtest dovecot: managesieve: Debug: Unknown userdb setting: plugin//mail/%d/%n/=/home/test
this looks terrible wrong.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: Effective uid=6006, gid=6000, home=
There is no home dir for the user.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: sieve-storage: using active sieve script path: (null)
sieve needs a home dir.
Post doveconf -n, or find the bug in it yourself. Maybe it's caused by 1st error.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqic1F3r2wJMiz2NAQLGFAf/Xh2bN6FH+9nyvUewENwFCYA8vGZxhUnQ oH0aUWegow/X9aq+D5Q5/hKjt7OdELnnyf8qe9kED77nvAv8xvcPu19umUwpRj/g jWdH0yl8SZH1kS7tEOhHNP8FDbTb8g2n+cB0HbKGyCPW2piUY0HcfNTLdrYjLU6Q onnVqtmj4CDiAdRo9taB1BTmoSbadk3XRv9k8O8qdjLCF/UT0Ghq/dEua2iKARfR LdT+pmGEIiVij0rkWpbXj+sIR5do2aoaS/W0KX5qhbxJzR64IsPem7AMsRlztnQA eZEH9GR2u601ax7m5FWMwLw5fjLxyO+HfNx2XOvFURP8sRa6TqY1jw== =XGTy -----END PGP SIGNATURE-----
Hi Steffen,
I am posting below the output of doveconf -n
############### Output of doveconf -n ######################
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.el6.x86_64 x86_64 CentOS release 6.5 (Final) ext4 base_dir = /var/run/dovecot/ disable_plaintext_auth = no login_greeting = ready login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c mail_debug = yes mail_location = maildir:/mail/%d/%n/Maildir mail_plugins = " quota" 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 namespace { inbox = yes location = maildir:/mail/%d/%n/Maildir prefix = separator = / type = private } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /var/lib/dovecot/sieve/global/ sieve_global_path = /var/lib/dovecot/sieve/default.sieve } protocols = imap lmtp sieve service auth { unix_listener auth-client { mode = 0666 user = dovecot } unix_listener auth-master { group = mail mode = 0664 user = mail } user = root } service lmtp { inet_listener lmtp { address = 210.7.64.62 127.0.0.1 ::1 port = 24 } unix_listener lmtp { mode = 0666 } } service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 1 service_count = 1 vsz_limit = 64 M } service managesieve { process_limit = 10 } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol imap { mail_plugins = " quota imap_quota" } protocol sieve { info_log_path = /var/log/dovecot-sieve.log log_path = /var/log/dovecot-sieve-errors.log managesieve_implementation_string = dovecot managesieve_max_line_length = 65536 } protocol lda { auth_socket_path = /var/run/dovecot/auth-master hostname = 210.7.64.62 info_log_path = /var/log/dovecot-lda.log log_path = /var/log/dovecot-lda-errors.log mail_plugins = " quota sieve" postmaster_address = test@ayurve.com } protocol lmtp { info_log_path = /var/log/dovecot-lmtp.log log_path = /var/log/dovecot-lmtp-errors.log mail_plugins = " quota sieve" }
Please suggest what changes shall I make in-order to get it working.
Thanks, Saurabh.
On Wednesday 11 December 2013 10:41 PM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 11 Dec 2013, saurabh wrote:
I am using Dovecot version 2.0.9 on Centos 6.4. I have installed
I'm not sure, if that version had old bugs, but
dovecot-pegionhole version 2.0.9 and Roundcube version 0.9.5 . After doing all the configurations. I am able to see the filters icon in roundcube setting. But whem I click it I get the error "could not connect to server" please help.
Below are the error logs.
########### log from /var/log/maillog ##########
Dec 11 21:41:06 eximtest dovecot: managesieve: Debug: Unknown userdb setting: plugin//mail/%d/%n/=/home/test
this looks terrible wrong.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: Effective uid=6006, gid=6000, home=
There is no home dir for the user.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: sieve-storage: using active sieve script path: (null)
sieve needs a home dir.
Post doveconf -n, or find the bug in it yourself. Maybe it's caused by 1st error.
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqic1F3r2wJMiz2NAQLGFAf/Xh2bN6FH+9nyvUewENwFCYA8vGZxhUnQ oH0aUWegow/X9aq+D5Q5/hKjt7OdELnnyf8qe9kED77nvAv8xvcPu19umUwpRj/g jWdH0yl8SZH1kS7tEOhHNP8FDbTb8g2n+cB0HbKGyCPW2piUY0HcfNTLdrYjLU6Q onnVqtmj4CDiAdRo9taB1BTmoSbadk3XRv9k8O8qdjLCF/UT0Ghq/dEua2iKARfR LdT+pmGEIiVij0rkWpbXj+sIR5do2aoaS/W0KX5qhbxJzR64IsPem7AMsRlztnQA eZEH9GR2u601ax7m5FWMwLw5fjLxyO+HfNx2XOvFURP8sRa6TqY1jw== =XGTy -----END PGP SIGNATURE-----
-- Saurabh Kumar (RHCSA,RHCE,RHCVA)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 12 Dec 2013, saurabh wrote:
What's in /etc/dovecot/dovecot-ldap.conf.ext ? The erroreous Debug: Unknown userdb setting: plugin//mail/%d/%n/=/home/test seems to come from there.
I am posting below the output of doveconf -n
############### Output of doveconf -n ######################
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.el6.x86_64 x86_64 CentOS release 6.5 (Final) ext4 base_dir = /var/run/dovecot/ disable_plaintext_auth = no login_greeting = ready login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c mail_debug = yes mail_location = maildir:/mail/%d/%n/Maildir mail_plugins = " quota" 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 namespace { inbox = yes location = maildir:/mail/%d/%n/Maildir prefix = separator = / type = private } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /var/lib/dovecot/sieve/global/ sieve_global_path = /var/lib/dovecot/sieve/default.sieve } protocols = imap lmtp sieve service auth { unix_listener auth-client { mode = 0666 user = dovecot } unix_listener auth-master { group = mail mode = 0664 user = mail } user = root } service lmtp { inet_listener lmtp { address = 210.7.64.62 127.0.0.1 ::1 port = 24 } unix_listener lmtp { mode = 0666 } } service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 1 service_count = 1 vsz_limit = 64 M } service managesieve { process_limit = 10 } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol imap { mail_plugins = " quota imap_quota" } protocol sieve { info_log_path = /var/log/dovecot-sieve.log log_path = /var/log/dovecot-sieve-errors.log managesieve_implementation_string = dovecot managesieve_max_line_length = 65536 } protocol lda { auth_socket_path = /var/run/dovecot/auth-master hostname = 210.7.64.62 info_log_path = /var/log/dovecot-lda.log log_path = /var/log/dovecot-lda-errors.log mail_plugins = " quota sieve" postmaster_address = test@ayurve.com } protocol lmtp { info_log_path = /var/log/dovecot-lmtp.log log_path = /var/log/dovecot-lmtp-errors.log mail_plugins = " quota sieve" }
Please suggest what changes shall I make in-order to get it working.
Thanks, Saurabh.
On Wednesday 11 December 2013 10:41 PM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 11 Dec 2013, saurabh wrote:
I am using Dovecot version 2.0.9 on Centos 6.4. I have installed
I'm not sure, if that version had old bugs, but
dovecot-pegionhole version 2.0.9 and Roundcube version 0.9.5 . After doing all the configurations. I am able to see the filters icon in roundcube setting. But whem I click it I get the error "could not connect to server" please help.
Below are the error logs.
########### log from /var/log/maillog ##########
Dec 11 21:41:06 eximtest dovecot: managesieve: Debug: Unknown userdb setting: plugin//mail/%d/%n/=/home/test
this looks terrible wrong.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: Effective uid=6006, gid=6000, home=
There is no home dir for the user.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: sieve-storage: using active sieve script path: (null)
sieve needs a home dir.
Post doveconf -n, or find the bug in it yourself. Maybe it's caused by 1st error.
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqic1F3r2wJMiz2NAQLGFAf/Xh2bN6FH+9nyvUewENwFCYA8vGZxhUnQ oH0aUWegow/X9aq+D5Q5/hKjt7OdELnnyf8qe9kED77nvAv8xvcPu19umUwpRj/g jWdH0yl8SZH1kS7tEOhHNP8FDbTb8g2n+cB0HbKGyCPW2piUY0HcfNTLdrYjLU6Q onnVqtmj4CDiAdRo9taB1BTmoSbadk3XRv9k8O8qdjLCF/UT0Ghq/dEua2iKARfR LdT+pmGEIiVij0rkWpbXj+sIR5do2aoaS/W0KX5qhbxJzR64IsPem7AMsRlztnQA eZEH9GR2u601ax7m5FWMwLw5fjLxyO+HfNx2XOvFURP8sRa6TqY1jw== =XGTy -----END PGP SIGNATURE-----
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqmUhl3r2wJMiz2NAQJSEwf+LYMQj7Uq+DclZ1wbzE5NxcelA+444HEM YCXC2xCSSOYNMeDO9p/nyDjP+T9uDSiNyEssTcTbG+PcC3lnWT6bfhoc08qF2kpi HzaU8SjD7ZynmBlzQF4Z1oAXp51S+wv6Cw4G40BwMHiQ7k/Y5i8DyzCG58b1xkvR rcBLbLFEDAMQX5munFkXogNECa+RorxOShUIyaOg1oFz7GRyzl1LDvyS9Mt7u2lN x2NYu0s/KErOJZCmooC1iOm8Cwlo7YXKPH3kM36/CTwEf64McHQ+Vl+Y4m7AT5a0 lX79Og4yReYafCd6ypCB2vw8dc7mAqxkk4Ju35x848Cb7X/u7P7LGA== =HVQU -----END PGP SIGNATURE-----
Hi,
Here's what is written in dovecot-ldap.conf.ext file.
hosts = 192.168.100.204 dn = cn=dovecot,ou=people,dc=techblue,dc=co,dc=uk dnpass = password ldap_version = 3 base = dc=techblue,dc=co,dc=uk deref = never scope = subtree user_attrs = homeDirectory=/mail/%d/%n/, uidNumber=uid, gidNumber=gid user_filter = (&(objectClass=inetOrgPerson)(mail=%u)) pass_attrs = userPassword=password pass_filter = (&(objectClass=inetOrgPerson)(mail=%u)) default_pass_scheme = SSHA
Thanks, Saurabh
On Thursday 12 December 2013 04:18 PM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 12 Dec 2013, saurabh wrote:
What's in /etc/dovecot/dovecot-ldap.conf.ext ? The erroreous Debug: Unknown userdb setting: plugin//mail/%d/%n/=/home/test seems to come from there.
I am posting below the output of doveconf -n
############### Output of doveconf -n ######################
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.el6.x86_64 x86_64 CentOS release 6.5 (Final) ext4 base_dir = /var/run/dovecot/ disable_plaintext_auth = no login_greeting = ready login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c mail_debug = yes mail_location = maildir:/mail/%d/%n/Maildir mail_plugins = " quota" 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 namespace { inbox = yes location = maildir:/mail/%d/%n/Maildir prefix = separator = / type = private } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_dir = /var/lib/dovecot/sieve/global/ sieve_global_path = /var/lib/dovecot/sieve/default.sieve } protocols = imap lmtp sieve service auth { unix_listener auth-client { mode = 0666 user = dovecot } unix_listener auth-master { group = mail mode = 0664 user = mail } user = root } service lmtp { inet_listener lmtp { address = 210.7.64.62 127.0.0.1 ::1 port = 24 } unix_listener lmtp { mode = 0666 } } service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 1 service_count = 1 vsz_limit = 64 M } service managesieve { process_limit = 10 } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol imap { mail_plugins = " quota imap_quota" } protocol sieve { info_log_path = /var/log/dovecot-sieve.log log_path = /var/log/dovecot-sieve-errors.log managesieve_implementation_string = dovecot managesieve_max_line_length = 65536 } protocol lda { auth_socket_path = /var/run/dovecot/auth-master hostname = 210.7.64.62 info_log_path = /var/log/dovecot-lda.log log_path = /var/log/dovecot-lda-errors.log mail_plugins = " quota sieve" postmaster_address = test@ayurve.com } protocol lmtp { info_log_path = /var/log/dovecot-lmtp.log log_path = /var/log/dovecot-lmtp-errors.log mail_plugins = " quota sieve" }
Please suggest what changes shall I make in-order to get it working.
Thanks, Saurabh.
On Wednesday 11 December 2013 10:41 PM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 11 Dec 2013, saurabh wrote:
I am using Dovecot version 2.0.9 on Centos 6.4. I have installed
I'm not sure, if that version had old bugs, but
dovecot-pegionhole version 2.0.9 and Roundcube version 0.9.5 . After doing all the configurations. I am able to see the filters icon in roundcube setting. But whem I click it I get the error "could not connect to server" please help.
Below are the error logs.
########### log from /var/log/maillog ##########
Dec 11 21:41:06 eximtest dovecot: managesieve: Debug: Unknown userdb setting: plugin//mail/%d/%n/=/home/test
this looks terrible wrong.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: Effective uid=6006, gid=6000, home=
There is no home dir for the user.
Dec 11 21:41:06 eximtest dovecot: managesieve(test@ayurve.co.uk): Debug: sieve-storage: using active sieve script path: (null)
sieve needs a home dir.
Post doveconf -n, or find the bug in it yourself. Maybe it's caused by 1st error.
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqic1F3r2wJMiz2NAQLGFAf/Xh2bN6FH+9nyvUewENwFCYA8vGZxhUnQ oH0aUWegow/X9aq+D5Q5/hKjt7OdELnnyf8qe9kED77nvAv8xvcPu19umUwpRj/g jWdH0yl8SZH1kS7tEOhHNP8FDbTb8g2n+cB0HbKGyCPW2piUY0HcfNTLdrYjLU6Q onnVqtmj4CDiAdRo9taB1BTmoSbadk3XRv9k8O8qdjLCF/UT0Ghq/dEua2iKARfR LdT+pmGEIiVij0rkWpbXj+sIR5do2aoaS/W0KX5qhbxJzR64IsPem7AMsRlztnQA eZEH9GR2u601ax7m5FWMwLw5fjLxyO+HfNx2XOvFURP8sRa6TqY1jw== =XGTy -----END PGP SIGNATURE-----
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqmUhl3r2wJMiz2NAQJSEwf+LYMQj7Uq+DclZ1wbzE5NxcelA+444HEM YCXC2xCSSOYNMeDO9p/nyDjP+T9uDSiNyEssTcTbG+PcC3lnWT6bfhoc08qF2kpi HzaU8SjD7ZynmBlzQF4Z1oAXp51S+wv6Cw4G40BwMHiQ7k/Y5i8DyzCG58b1xkvR rcBLbLFEDAMQX5munFkXogNECa+RorxOShUIyaOg1oFz7GRyzl1LDvyS9Mt7u2lN x2NYu0s/KErOJZCmooC1iOm8Cwlo7YXKPH3kM36/CTwEf64McHQ+Vl+Y4m7AT5a0 lX79Og4yReYafCd6ypCB2vw8dc7mAqxkk4Ju35x848Cb7X/u7P7LGA== =HVQU -----END PGP SIGNATURE-----
-- Saurabh Kumar System Admin (RHCSA,RHCE,RHCVA)
FOR AND ON BEHALF OF: Techblue Software Pvt. Ltd. 73, Sector-5 IMT Manesar Haryana
E: saurabh.kumar@techblue.co.uk W: www.techblue.co.uk
The contents of this email are confidential and may be privileged, and are intended only for the use of the person or company named herein. Any views or opinions presented are solely those of the author and do not necessarily represent those of Technology Blueprint Limited. If you are not the intended recipient of this email or a person responsible for delivering it to the intended recipient, you are hereby notified that any distribution, copying or dissemination of the information herein is strictly prohibited
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 12 Dec 2013, saurabh wrote:
user_attrs = homeDirectory=/mail/%d/%n/, uidNumber=uid, gidNumber=gid
That's it,
If you want to use a static home dir pattern, write:
user_attrs = =home=/mail/%d/%n/, uidNumber=uid, gidNumber=gid
Note the =home= syntax, one = in front of and one after "home". You said: "The value of the LDAP attribute homeDirectory is stored in setting /mail/%d/%n".
If that fails, too, because I do not know, if %d and %n variables are accepted in that config file, use:
user_attrs = uidNumber=uid, gidNumber=gid
and update the userdb {} setting to:
userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap
# Default fields can be used to specify defaults that LDAP may override default_fields = home=/mail/%d/%n/
}
Note: This time just home=, no = in front of "home".
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqmmoF3r2wJMiz2NAQKGbggAjUZMlSDgfeyLha856V+lZhCvS0b66IB7 7ZxP7Jxph3VzfbUUIJ61AjglHSPp4dud+9L5/NK0wJFylPUlqImctHjf3ucTwUmw TUvLQ6W2Fdu/wiSPd/h48VLuS09vFz760pvuCTUlP9eD3SzokmRatvTwhikcFkSI LCV2Mekzc/wxVtzcYejmBCnH0q0LMxNN2qN5P+AiSpVuYiTNQM5Dnjf+VfvmV5kl G2oVVihJ5eZqh4jeQs5XuiR/2cqgAi5lnGQekEBRqr0YEevbHFIlkxlqqx5xk2aV PqHrkE+f5AaXSCM3b4beScMnEEIhW0Egz//G3xlR3UGg1xF7zPDRDg== =gdr9 -----END PGP SIGNATURE-----
Hi Steffen,
Thanks a ton. You idea helped me get out of the error.
user_attrs = =home=/mail/%d/%n/, uidNumber=uid, gidNumber=gid
this worked well without any error.
Thanks for you valuable time and support.
Regards, Saurabh
On Thursday 12 December 2013 05:35 PM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 12 Dec 2013, saurabh wrote:
user_attrs = homeDirectory=/mail/%d/%n/, uidNumber=uid, gidNumber=gid
That's it,
If you want to use a static home dir pattern, write:
user_attrs = =home=/mail/%d/%n/, uidNumber=uid, gidNumber=gid
Note the =home= syntax, one = in front of and one after "home". You said: "The value of the LDAP attribute homeDirectory is stored in setting /mail/%d/%n".
If that fails, too, because I do not know, if %d and %n variables are accepted in that config file, use:
user_attrs = uidNumber=uid, gidNumber=gid
and update the userdb {} setting to:
userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap
# Default fields can be used to specify defaults that LDAP may override default_fields = home=/mail/%d/%n/
}
Note: This time just home=, no = in front of "home".
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqmmoF3r2wJMiz2NAQKGbggAjUZMlSDgfeyLha856V+lZhCvS0b66IB7 7ZxP7Jxph3VzfbUUIJ61AjglHSPp4dud+9L5/NK0wJFylPUlqImctHjf3ucTwUmw TUvLQ6W2Fdu/wiSPd/h48VLuS09vFz760pvuCTUlP9eD3SzokmRatvTwhikcFkSI LCV2Mekzc/wxVtzcYejmBCnH0q0LMxNN2qN5P+AiSpVuYiTNQM5Dnjf+VfvmV5kl G2oVVihJ5eZqh4jeQs5XuiR/2cqgAi5lnGQekEBRqr0YEevbHFIlkxlqqx5xk2aV PqHrkE+f5AaXSCM3b4beScMnEEIhW0Egz//G3xlR3UGg1xF7zPDRDg== =gdr9 -----END PGP SIGNATURE-----
-- Saurabh Kumar System Admin (RHCSA,RHCE,RHCVA)
participants (2)
-
saurabh
-
Steffen Kaiser