Displaying 20 results from an estimated 36 matches for "where_field".
2006 Sep 05
1
Quotas with MySQL
...sql:/etc/dovecot/dovecot-dict-quota.conf
}
plugin {
quota = dict:storage=10240 proxy::quotadict
}
and my dovecot-dict-quota.conf looks like the following, again from the
Wiki:
connect = host=127.0.0.1 dbname=mail user=<user> password=<passwd>
table = quota
select_field = current
where_field = path
username_field = username
and my MySQL table is as follows:
create table quota (
username varchar(255) not null,
path varchar(255) not null,
current integer,
primary key (username, path)
);
Now with this setup, the query for looking up the current quota appears
in the MySQ...
2008 Sep 24
2
dovecot 1.2.alpha1 quota dict driver mysql broken
...: Unknown setting: driver
dovecot: Sep 24 18:43:16 Error: dict: Failed to initialize dictionary
'quotadict'
etc/dovecot/dovecot-dict-quota.conf
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=...
default_pass_scheme = PLAIN
table = quota
select_field = current
where_field = path
username_field = username
worked with 1.1.3
--
Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
2010 Mar 24
1
Question howto wiki.dovecot.org about quotas using dict
Hi,
I am configuring a server with postfix and dovecot with virtual domains
and using quota. To implement quota followed the documentation of the
link http://wiki.dovecot.org/Quota/Dict, did not understand what you
mean the field "where_field = path" would be the path on the filesystem
of your mailbox? I would have to create the table that he says in the
documentation or can I force a value with concat and using the AS (ie
select '/var/vmail/domain/user' as path from table) ?
Regards.
___________________________________...
2007 Feb 27
2
quota - dict permission denied
...ta = mysql:/etc/dovecot-dict-quota.conf
quotadict = mysql:/usr/local/etc/dovecot-dict-quota.conf
}
..
quota = dict:storage=81920:messages=5000 proxy::quotadict
/usr/local/etc/dovecot-dict-quota.conf:
connect = host=xxxxx dbname=xxxxx user=xxxxx password=xxxxx
table = quota
select_field = current
where_field = path
username_field = username
-----
I can connect to the database thru mysql prompt. dovecot version 1.0 rc5
-- azhar --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dovecot.org/pipermail/dovecot/attachments/20070227/fdcd235e/attachment-0002.html&g...
2009 Jul 20
1
Problem with quota-dict
...e=10240 proxy::quota
acl: vfile:/etc/dovecot/acls
sieve: /var/mail/sieve/%d/%n.sieve
dict:
quota: pgsql:/etc/dovecot/dovecot-dict-quota.conf
My /etc/dovecot/dovecot-dict-quota.conf:
connect = host=localhost dbname=mail user=mail password=dovecot-passwort
table = quota
select_field = current
where_field = path
username_field = username
My database table:
CREATE TABLE quota
(
username character varying(255) NOT NULL,
path character varying(100) NOT NULL,
"current" integer,
CONSTRAINT quota_pkey PRIMARY KEY (username, path)
)
WITH (OIDS=FALSE);
ALTER TABLE quota OWNER TO mail;
-...
2008 Aug 05
4
expire-plugin: configuration dict-server
Hello all!
I tried to add the expire-plugin to my dovecot-installation (CentOS-RPM:
dovecot-1.1.1-2_76.el5) and followed the plugin-page from the WIKI
(http://wiki.dovecot.org/Plugins/Expire).
Unfortunately I have problems with the dictionary:
-->
dovecot: Aug 05 13:30:25 Error: dict: Unknown dict module: db
dovecot: Aug 05 13:30:25 Error: dict: Failed to initialize dictionary
2006 Jul 23
2
Try with Dictionary proxy server, but... Bug or not ?
...ry server settings
dict {
quota = mysql:/etc/dovecot/dict-quota.conf
}
## Plugin settings
plugin {
# quota = 10 Mo
quota = dict:storage=10240 proxy::quota
}
My dict-quota.conf doesn't change :
connect = host=localhost dbname=dovecot user=dovecot
table = quota
select_field = current
where_field = path
username_field = username
My dovecot.info file :
dovecot: 2006-07-23 15:07:01 Info: IMAP(test): Effective uid=1019, gid=1019
dovecot: 2006-07-23 15:07:01 Info: IMAP(test): Loading modules from directory:
/usr/lib/dovecot/modules/imap
dovecot: 2006-07-23 15:07:01 Info: IMAP(test): Module...
2008 Jan 29
1
Virtual Alias Forwarding
...39;
# If using client certificates for authentication, comment the above and
uncomment the following #password_query = SELECT null AS password, '%u' AS
user
mysql_virtual_alias_maps.cf:
user = sqluser
password = sqlpasswd
hosts = 127.0.0.1
dbname = mail
#table = alias
#select_field = goto
#where_field = address
#additional_conditions = and active = '1'
query = SELECT goto FROM alias WHERE address='%s' AND active = '1'
# dovecot -n
# 1.0.7: /etc/dovecot.conf
protocols: imaps pop3s
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(pop3): *:995
ssl_cert_file: /e...
2008 Mar 15
1
current quota in mysql issue
...ome, concat('maildir:/var/vmail/%d/%n') as userdb_mail, 150 as
userdb_uid, 8 as userdb_gid from qry_dovecot where user = '%u'
###
# file dovecot-sql-quota-dict.conf
connect = host=db01.int.example.net dbname=db_mail user=quota
password==********
table = quota
select_field = current
where_field = path
username_field = username
(don't wonder about the different database hosts. mx01 is a readonly slave
from db01)
2009 Apr 15
2
Quota for Shared Folders
...unden AS k WHERE k.kunde = p.kunde AND CONCAT(p.account, '@', p.kunde) = '%u'
(quota-values in kilobytes)
/etc/dovecot/dovecot-dict-quota.conf:
> connect = host=localhost dbname=confixx user=confixx password=p4ssw0rd
> table = dovecot_quota
> select_field = current
> where_field = path
> username_field = username
/etc/dovecot/dovecot-dict-quota2.conf:
> connect = host=localhost dbname=confixx user=confixx password=p4ssw0rd
> table = dovecot_quota_shared
> select_field = current
> where_field = path
> username_field = username
(tables are exactly as spe...
2008 Mar 29
3
Expire plugin with Mysql
...ding to the
wiki, the expire plugin "keeps an internal database (Berkeley DB or
SQL)". I was wondering what fields in the mysql table are needed for
expire to work.
I assume it is setup is similar to the quota dict
setup, so was just wondering what fields are required (i.e:
select_field, where_field, username_field, for quota).
Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20080329/101570f8/attachment-0002.bin&...
2015 Feb 02
1
quote strings passed to sql
> Am 02.02.2015 um 18:07 schrieb Juan Bernhard:
>> Hello list. I'm thinking to migrate the hole user db from system users
>> to mysql. I already did it in a test environment, but something is
>> annoying my OCD... I don't quote the variables username and password
>> sent to the mysql server. I know, the mysql user that dovecot uses only
>> has select
2009 Feb 03
1
dict, quota, mysql and postfixadmin
...FROM mailbox WHERE username = '%u' AND active = '1'
######################
and my dovecot-dict-quota.conf
######################
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=12345
default_pass_scheme = MD5-CRYPT
table = quota
select_field = current
where_field = path
username_field = username
######################
When i try to login i see the following in my log file
Feb 2 21:46:57 beasty dovecot: imap-login: Login:
user=<j.hendriks at testserver.com>, method=PLAIN, rip=127.0.0.1, lip=
127.0.0.1, secured
Feb 2 21:46:57 beasty dovecot: IMAP(j...
2006 Jul 23
1
Module dict... How it works
...;t understand... My config about dict :
==== dovecot.conf ====
...
plugin {
quota = dict:storage=10240 mysql:/etc/dovecot/dict-quota.conf
}
======================
And my dict-quota.conf file :
====
connect = host=localhost dbname=dovecot user=dovecot
table = quota
select_field = current
where_field = path
username_field = username
====
I have created a "dovecot" database and a "dovecot" mysql user with all
access on this db. I have created a "quota" table too and add this entry
in this table :
*------*----------*---------*
* path * username * current *
*----...
2006 Sep 21
0
dovecot quota proxy mysql question
...ssages as default parameters foer all users
so this shouldnt be needed
plugin {
quota = proxy::quotadict
}
but this dont work as i expected
an i also have problems
with
/etc/dovecot/dovecot-dict-quota.conf
connect = host=localhost dbname=mails user=mailuser
table = quota
select_field = current
where_field = path
username_field = username
i still have this quota field allready
in db postfix table mailbox where username = '%u'
it seems this is an old style sql query
so i tried this
connect = host=localhost dbname=postfix user=postfixadmin pass.....
dbname = postfix
table = mailbox
select_fi...
2010 Jun 20
0
confused with %d/%n not working....
...mail/%d/%n'
as mail, 150 AS uid, 12 AS gid, concat('dirsize:storage=',quota) AS quota
FROM mailbox WHERE username ='%u' AND active ='1'
postfix:
user = mail
password = xxxx
hosts = localhost
dbname = mail
table = mailbox
select_field = CONCAT(domain,'/',maildir)
where_field = username
additional_conditions = and active = '1'
2007 Mar 13
1
quota - dict - username = '(null)'
...main = '%d'
user_query = SELECT home, uid, gid FROM mail_view_tmp WHERE account =
'%n' AND domain = '%d' or account = '%u'
/etc/dovecot-dict-quota.conf
connect = host=localhost dbname=ingoBase user=dovecot password=dovecot
table = mail_quota
select_field = current
where_field = path
username_field = username
Is there something wrong in my configuration or is this a bug in the
version i am using ?
Thanks in advance !
Andreas
2011 Jun 24
2
Please help with Quota dict mysql configuration
...dovecot-dict-sql.conf sample i took from postfixadmin docs provided
with package, also changed table to quota2 as suggested for dovecot 2:
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=postfixadmin
default_pass_scheme = MD5-CRYPT
table = quota2
select_field = current
where_field = path
username_field = username
my sql.conf i took it from tutorial on your wiki : LDA postfix postfixadmin:
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=postfixadmin
user_query = SELECT concat('/home/vmail/', maildir) as home,
concat('maildir:/home/...
2007 Jul 16
1
Dict-server mysql module error
...ta by quota = dict: mysql:/etc/quota-dict.conf i get
the folowing error:
deliver(zzzz at zzzz.zz): Unknown dict module: mysql
deliver(zzzz at zzz.zz): dict quota: dict_init() failed
quota-dict.conf:
connect = host=localhost dbname=zzzz user=zzzz password=zzzz
table = mailbox
select_field = quota
where_field = maildir
username_field = username
dovecot.conf:
# 1.0.2: /etc/dovecot//dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
ssl_disable: yes
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/local/libexec/dovec...
2006 Oct 05
1
quota dict (mysql)
...0.03 sec)
dovecot.conf:
dict {
quotadict = mysql:/usr/local/etc/dovecot/dovecot-dict-quota.conf
}
plugin {
quota = dict:storage=10240 proxy::quotadict
}
dovecot-dict-quota.conf:
connect = host=localhost dbname=postfix user=postfix password=*******
table = quota
select_field = current
where_field = path
username_field = username
dovecot.log gives:
Oct 02 23:25:49 Info: imap-login: Login: user=<user at domain.net>,
method=plain, rip=88.211.149.123, lip=10.0.0.4, TLS
Oct 02 23:25:49 Info: IMAP(user at domain.net): Effective uid=125, gid=125
Oct 02 23:25:49 Info: IMAP(user at domain...