Good morning,
Still not having luck to get the LDA to work, using Qmail + Vpopmail and read the wiki. I'm using:
auth default { mechanisms = plain
passdb vpopmail { }
userdb vpopmail { }
user = vpopmail count = 1 ssl_require_client_cert = no }
Which work well for authenticating users, however when using the following in a .qmail file:
|/var/qmail/bin/preline -f /usr/local/libexec/dovecot/deliver -d $EXT@$USER
I get the following error message:
Error:_userdb_lookup:_connect(/usr/local/var/run/dovecot//auth-master)_failed:_No_such_file_or_directory/
Eventhough it should have been created (I think) in the protocol lda section of the config file. I specifieD:
auth_socket_path = /var/run/dovecot/auth-master
However I thought since using vpopmail I don't need to use the auth-master ? or am I missing something?
Sincerely,
- Wouter van der Schagt
On Sat, 2009-08-15 at 23:14 +0800, Wouter van der Schagt wrote:
Error:_userdb_lookup:_connect(/usr/local/var/run/dovecot//auth-master)_failed:_No_such_file_or_directory/
Eventhough it should have been created (I think) in the protocol lda section of the config file. I specifieD:
auth_socket_path = /var/run/dovecot/auth-master
You need to configure Dovecot to create the auth-master socket. http://wiki.dovecot.org/LDA#Virtual_users
You need to configure Dovecot to create the auth-master socket. http://wiki.dovecot.org/LDA#Virtual_users
I have it working now, it wasn't working because the parent directory of auth_master didn't exist. I modified the wiki to include that this path has to exist and is not created automatically (ie: /var/run/dovecot).
Another question to which I couldn't find the answer in the wiki is whether 'lda' should be added to the protocols line in the configuration, such that it becomes:
protocols pop3 pop3s imap imaps lda
Sincerely,
- Wouter van der Schagt
On 08/20/2009 07:38 AM Wouter van der Schagt wrote:
… Another question to which I couldn't find the answer in the wiki is whether 'lda' should be added to the protocols line in the configuration, such that it becomes:
protocols pop3 pop3s imap imaps lda
No, the wiki (and the dovecot-example.conf) says: protocols = imap imaps Protocols we want to be serving: imap imaps pop3 pop3s If you only want to use dovecot-auth, you can set this to "none".
When Dovecot was patched with the ManageSieve-patch and build with ManageSieve support, one should add managesieve to the protocols setting.
The LDA is not listed in the protocols setting, because it will never and could never accept a network connection. There is also no listen/ssl_listen setting for the protocol lda {…} section.
Regards, Pascal
The trapper recommends today: c01dcafe.0923208@localdomain.org
The LDA is not listed in the protocols setting, because it will never and could never accept a network connection. There is also no listen/ssl_listen setting for the protocol lda {…} section.
Thank you for the prompt and concise reply. Another question I have after reading the quota pages on the Wiki. At the moment we're using vdelivermail from vpopmail as the LDA and dovecot for the pop3 / imap daemon. Quotas are enforced using Maildirsize files which are updated (created) by vdelivermail. And as far as dovecot is concerned, the quota is unlimited (because vdelivermail will update the maildirsize files).
plugin { quota = maildir quota_rule = ?:storage=0 }
However, I found that in the vpopmail tables in pw_shell the quota is listed in maildir format. (ie: 10000000S) and on the Wiki I read that dovecot can understand this format, however I am not sure how to change the above quota rules so that I get something like:
plugin { quota = maildir quota_rule = ?:storage=%q }
Where %q is the value in pw_shell of the corresponding vpopmail table. And where I think I may have to change the ? to an *. Am I correct in assuming that this will cause dovecot to recreate / updaate the maildirsize files?
In the examples I saw
user_query = select uid, gid, home,
concat('*:bytes=', quota_bytes) as quota_rule
from users where userid = '%u'
But im not sure how to use it since with vpopmail each domain has its own table. And how do I get the result from that query into the quota_rule line above?
Sincerely,
- Wouter van der Schagt
On Thu, 2009-08-20 at 15:01 +0800, Wouter van der Schagt wrote:
However, I found that in the vpopmail tables in pw_shell the quota is listed in maildir format. (ie: 10000000S) and on the Wiki I read that dovecot can understand this format, however I am not sure how to change the above quota rules so that I get something like:
plugin { quota = maildir quota_rule = ?:storage=%q }
%q doesn't expand in there. Use something like:
auth { .. userdb vpopmail { args = quota_template=quota_rule=?:backend=%q } .. }
On Thu, 2009-08-20 at 13:38 +0800, Wouter van der Schagt wrote:
You need to configure Dovecot to create the auth-master socket. http://wiki.dovecot.org/LDA#Virtual_users
I have it working now, it wasn't working because the parent directory of auth_master didn't exist. I modified the wiki to include that this path has to exist and is not created automatically (ie: /var/run/dovecot).
Umm. Hmm. If that directory doesn't exist, it gives an error message at Dovecot startup:
auth(default): Error: bind(/var/run/dovecot/auth-master) failed: No such file or directory
I think you should have had that too? Also the socket should typically be in Dovecot's base_dir, which is created automatically.
participants (3)
-
Pascal Volk
-
Timo Sirainen
-
Wouter van der Schagt