Displaying 20 results from an estimated 1000 matches similar to: "MySQL dict issues"
2013 Jul 12
0
A sqlite-based quota dict
Hello,
While experimenting with the sqlite backend, I noticed a big vacuum wrt its use for a quota dict.
This is thus an opportunity to share a solution I managed to devise after some trials and errors and a (very quick and unscientific) look at the code.
And also the opportunity to ask the community to check for possible flaws.
Yes, nothing comes for free... ;-)
TIA,
Axel
This is the SQL
2011 Jun 09
1
sqlite quota dict
Hello Timo, and list followers,
Sqlite supports good feature like mysql 'ON DUPLICATE KEY UPDATE' - it calls REPLACE/INSERT OR REPLACE
This clause can be added to INSERT query, like:
INSERT OR REPLACE INTO table VALUES()
REPLACE INTO table VALUES() // alias to previous one
Also this can be done during CREATE TABLE syntax, like so:
CREATE TABLE quota (
username text not null,
bytes
2013 Feb 12
2
Dict quota timeout error: Has anything changed in the latest versions?
Hi,
I'm using dict quota with mysql for track them via SQL query instead of
read maildirsize file. Primary quota and enforcing is provided via
userdb and is "maildir" type.
Since dovecot 2.1.10-13 (but perhaps even before) when a new user log in
via POP/IMAP or receive an email for the first time dovecot created the
entry for the users in the table "quota" of dovecot
2010 Mar 23
0
Question: zfs set userquota not working on existing datasets
Greetings all,
I recently applied all patches and upgraded my zpool to version 15
and zfs to version 4 so I could start using the zfs userquota
feature. What I''ve found though is that I can only apply them on new
datasets, not on the existing datasets. Here is an example:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
data 50.7G 145G 50.7G /data
# zpool upgrade
This system is
2007 Oct 09
1
SpamAssassin and Public Namespace
Hi I know i might get flamed for asking this in the dovecot mailing list
instead of the spamassassin one but i thought someone might be kind
enough to help anyway.
TIA
I'm trying to do site-wide spam filtering with a public namespace but
it's not reading the folder i have in the public namespace
This is the public namespace set in my dovecot.conf
#public spam folder
namespace public
2011 Dec 05
2
Strange quota problem
I have a strange problems with quota on v2.0.14. We have an ldap user
directory, and all users should have a mailQuota defined there. My
problem is that some users gets the quota enforced, while others don't,
and "doveadm user" doesn't seem to agree with "doveadm quota ge gett"
Ref:
$ doveadm user janfrode at example.net
userdb: janfrode at example.net
home
2013 Dec 04
1
Question regarding quotas (is this a bug or intended behavior) ?
Hi,
I was wondering if this is a normal behavior (test was made using
Dovecot v2.2.9).
In my config, quotas are configured as follows:
plugin {
quota = dict:Userquota::file:%h/dovecot-quota
quota_rule = *:storage=1G
quota_rule2 = Trash:ignore
}
# doveadm mailbox status -u my_user "messages vsize" '*'
Trash messages=4997 vsize=229535631
Drafts messages=0 vsize=0
Sent
2017 Feb 05
2
Dict quota calculation errors "remote disconnected"/"broken pipe" on 2.22.
Keywords: dovecot, dict, quota, postgre sql, broken pipe, remote
disconnected
Having Dovecot 2.2.22 (fe789d2) with Postgre SQL 9.5
(9.5.5-0ubuntu0.16.04) as the backend. I do not understand why quota
service is not working, not seeing it as a configuration error at least.
My quotas are DICT/SQL based.
OS: Ubuntu 16.0.4.1 32-bit (Linux XXX 4.4.0-59-generic #80-Ubuntu SMP
Fri Jan 6 17:36:54
2012 Sep 19
5
Dovecot deliver Segmentation fault when arrive the first message
Hi,
I have found this strange problem. I'm working with Debian 6, dovecot
2.1.9 and vpopmail-auth.
LDA is configured and works fine but the problem is when the first
message arrive "dovecot-lda" return a "Segmentation fault", the message
is written to the user's Mailbox but the message remains, also, in the
queue of qmail (deferral: Segmentation_fault/) and at the
2012 Oct 18
2
trash plugin not doing it's job
I enabled the trash plugin yesterday, adding "trash" to mail_plugins,
and configuring the plugin setting "trash =
/etc/dovecot/dovecot-trash.conf.ext".
But I still see users with lots of files in INBOX.Trash getting
bounced because of quota exceeded:
postfix/lmtp[26273]:: C89F490061: to=<XXXXXXXXXXXXX at example.no>,
relay=loadbalancers.example.net[192.168.42.15]:24,
2012 Oct 13
1
Segmentation fault in doveadm with lib01_acl_plugin.so
Hi,
I'm running dovecot 2.1.10 on Debian 6.
When I run "doveadm expunge -A mailbox Trash savedbefore 30d" it crash
with "Segmentation fault"
[15022673.496902] doveadm[13072]: segfault at 8 ip 00007f4b7041f551 sp
00007fffdab4f8c0 error 4 in lib01_acl_plugin.so[7f4b70415000+10000]
If I add -D to doveadm I can see this:
doveadm(myuser at mydomain.com): Debug: Added
2014 May 20
0
Dict SQL lookups without username_field
Dear all,
Is it possible to perform dict lookups with a SQL backend, without
specifying the username_field in the SQL query?
I am using the dict to retrieve a Sieve script. My dict configuration
looks like this:
map {
pattern = priv/sieve/data/$id
table = sieve_scripts
username_field = email
value_field = data
fields {
id = $id
}
}
I don't want to specify the username
2007 Aug 17
1
Problem on displaying groupquota info
Gentleman,
I have samba-3.0.25a working on a FreeBSD6.2 server.
It was been compiled with-quota support.
It was supposed to be working well with userquota and groupquota. Actually
it is ok with userquotas. But it is passing wrong information about
groupquota.
On the server, 'quota -g sti' shows
Disk quotas for group sti (gid 1001):
Filesystem usage quota limit grace
2009 Nov 11
1
Error: read(/var/run/dovecot/dict-server) failed: Remote disconnected
Hello all,
I have a problem with my mail configuration and I don`t know how to resolve this error (listed bellow):
deliver(mymail at testtest.ro): Nov 11 09:07:54 Error: Internal quota calculation error
dovecot: Nov 11 09:07:54 Error: dict: /etc/dovecot/dovecot-dict-quota.conf: 'username_field' missing
dovecot: Nov 11 09:07:54 Error: dict: Failed to initialize dictionary 'quota1'
2009 Nov 22
1
quota dict
Hello,
i'm using dict quota stored in mysql (/etc/dovecot/dovecot-dict-quota.conf):
connect = host=localhost dbname=vmail user=dovecot password=
# CREATE TABLE quota (
# username varchar(100) not null,
# bytes bigint not null default 0,
# messages integer not null default 0,
# primary key (username)
# );
map {
pattern = priv/quota/storage
table = quota
username_field =
2017 Apr 30
0
Sieve dict and bindir question
Op 4/28/2017 om 10:58 AM schreef Alessio Cecchi:
> Hi,
>
> I have setup the latest Dovecot and Sieve with dict in order to read
> rules from MySQL and works fine:
>
> sieve_before = dict:proxy::sieve;name=activesql;bindir=~/.sieve-bin
>
> dict {
> sieve = mysql:/etc/dovecot/dovecot-dict-sieve-sql.conf.ext
> }
>
> # cat
2009 May 20
5
ZFS userquota groupquota test
I have been playing around with osol-nv-b114 version, and the ZFS user
and group quotas.
First of all, it is fantastic. Thank you all! (Sun, Ahrens and anyone
else involved).
I''m currently copying over one of the smaller user areas, and setting up
their quotas, so I have yet to start large scale testing. But the
initial work is very promising. (Just 90G data, 341694 accounts)
Using
2010 Oct 16
1
quota sql dict permissions dilemma
Hi!
I'm trying to set up SQL based dict quota. The quota is working, gets
updated but I had to configure really loose file permission to make it
work:
dovecot.conf:
dict {
quota = pgsql:/etc/dovecot/dovecot_dict-sql.conf
}
service dict {
unix_listener dict {
mode = 0660
group = vmail
# sidenote: I noticed that writing the number equivalent
# of 'vmail' here does not work.
2012 Apr 26
1
NFS quotas on Solaris 10
Hi list,
I'm running Samba 3.6.4 on Solaris 10 x86. Underlying filesystem is ZFS.
Since updating from 3.6.0, free space on NFS mounted ZFS filesystem,
without a userquota set for the user, is always reported zero. 'quota
-v' and the perl module 'Quota' both report no quota for such file systems.
(Un)setting (ref)quota for those filesystems doesn't change anything.
Any
2009 Jul 20
1
Problem with quota-dict
Hi,
I wanted to migrate a mailserver from cyrus to dovecot. The new setup was
using postfixadmin let the domain admins configure the hostet domains.
To view the used quota in postfixadmin the usage of the quota dict backend is
required. I have configured it according to the wiki but everytime I connect I
get a sucessfully login and then every next command hangs. It seems to me,
that the dict