Displaying 20 results from an estimated 153 matches for "value_field".
2020 May 14
0
[Dovecot v2.3.9.3] HTTP API Endpoint for mailbox cryptokey operations
...connect = "host=/var/lib/mysql/mysql.sock user=<user> password=<pass>
dbname=<db>"
# User's private keys
map {
pattern =
priv/$mailboxid/vendor/vendor.dovecot/pvt/crypt/privkeys/$digest
table = virtual_users_cryptokeys_priv_dict
username_field = email
value_field = key_contents
fields {
mailbox_id = $mailboxid
key_digest = $digest
}
}
map {
pattern =
priv/$mailboxid/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/pvt/crypt/privkeys/$digest
table = virtual_users_cryptokeys_priv_server_dict
username_field = email
value_fi...
2019 Feb 12
2
Maintaining table quota2
...er mail from the old
server to the new and building a new sql database.? All I see is:
dovecot-dict-sql.conf.ext: connect = host=/var/lib/mysql/mysql.sock
dbname=postfix user=postfix password=$Postfix_Database_Password map {
pattern = priv/quota/storage table = quota2 username_field = username
value_field = bytes } map { pattern = priv/quota/messages table = quota2
username_field = username value_field = messages }
what is actually done with this table?
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachment...
2017 Apr 28
4
Sieve dict and bindir question
...sieve = mysql:/etc/dovecot/dovecot-dict-sieve-sql.conf.ext
}
# cat /etc/dovecot/dovecot-dict-sieve-sql.conf.ext
connect = host=10.1.1.1 dbname=dovecot user=dovecot password=Ciao
map {
pattern = priv/sieve/name/$script_name
table = user_sieve_scripts
username_field = username
value_field = id
fields {
script_name = $script_name
}
}
map {
pattern = priv/sieve/data/$id
table = user_sieve_scripts
username_field = username
value_field = script_data
fields {
id = $id
}
}
But when I update the rules in mysql sieve continue to app...
2015 Sep 06
0
doveadm quota recalc problem for domain
...mail_plugins = " quota imap_quota"
}
################
root at postfix:/etc/dovecot# cat dovecot-dict-sql-domain.conf |grep -v "#"
connect = host=XXXXX dbname=mail user=test password=test
map {
pattern = priv/quota/storage
table = domains
username_field = domain
value_field = quota
}
map {
pattern = priv/quota/messages
table = domains
username_field = domain
value_field = quota_messages
}
map {
pattern = shared/expire/$user/$mailbox
table = expires
value_field = expire_stamp
fields {
username = $user
mailbox = $mailbox
}
}
#####...
2019 Feb 12
2
Maintaining table quota2
...nd building a new sql database.? All I see is:
>>
>> dovecot-dict-sql.conf.ext: connect = host=/var/lib/mysql/mysql.sock
>> dbname=postfix user=postfix password=$Postfix_Database_Password map {
>> pattern = priv/quota/storage table = quota2 username_field = username
>> value_field = bytes } map { pattern = priv/quota/messages table = quota2
>> username_field = username value_field = messages }
>>
>>
>> what is actually done with this table?
>>
>> thanks
>>
>>
>>
>>
>>
> dict-sql converts the mappings into S...
2014 Oct 12
2
Dovecot domain quota
...dict:domain:%d:proxy::quota_domain
quota_rule = *:storage=1M
quota_rule2 = Trash:storage=+100M
}
-----------------------------------
/etc/dovecot/dovecot-dict-sql.conf.ext:
-----------------------------------
map {
pattern = priv/quota/storage
table = quota_dict
username_field = domain
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota_dict
username_field = domain
value_field = messages
}
map {
pattern = shared/expire/$user/$mailbox
table = expires
value_field = expire_stamp
fields {
username = $user
mailbox = $mailbox
}
}
----------------------...
2012 Jun 24
2
dict Panic after upgrade to 2.1.7
...t;/etc/postfix/ssl/pop_warenform_de.crt
ssl_key = </etc/postfix/ssl/pop_warenform_de.key
}
----- sql-dict.conf.ext:
connect = host=/var/run/postgresql user=db_user password=db_passwd
dbname=db_name
# quota
map {
pattern = priv/quota/storage
table = quota2
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota2
username_field = username
value_field = messages
}
# expires
map {
pattern = shared/expire/$user/$mailbox
table = expires
value_field = expire_stamp
fields {
username = $user
mailbox = $mailbox
}
}
# acl
map {...
2010 Jul 14
2
domain quota dictionary
...quota = dict:user::proxy::quotadict
quota2 = dict:domain:%d:proxy::quota_domain
}
and the dovecot-quota-domain.conf looks like this :
connect = host=xxx dbname=xxx user=xxxx password=xxxx
map {
pattern = priv/quota/storage
table = domain_quota
username_field = domain
value_field = used_quota
}
map {
pattern = priv/quota/messages
table = domain_quota
username_field = domain
value_field = messages
}
The problem is that the dictionary table gets updated only with the
first mailbox informations (quota and messages for the first mailbox
within domain that is acc...
2017 Mar 19
0
Solved? - Re: Understanding quotas
...h a single SED,
but it was getting messy)
finally:
cat <<EOF>/etc/dovecot/dovecot-dict-sql.conf.ext || exit 1
connect = host=localhost dbname=postfix user=postfix
password=$Postfix_Database_Password
map {
pattern = priv/quota/storage
table = quota2
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota2
username_field = username
value_field = messages
}
EOF
Please let me know if I missed something here.
Thanks
On 03/17/2017 09:08 AM, Robert Moskowitz wrote:
> Just to level-set, I am using Centos7-arm which supplies Dove...
2017 Mar 17
2
Understanding quotas
...those quotas for dovecot, I have the following script:
cat <<EOF>/etc/dovecot/dovecot-dict-quota.conf || exit 1
connect = host=localhost dbname=postfix user=postfix
password=$Postfix_Database_Password
map {
pattern = priv/quota/storage
table = quota2
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota2
username_field = username
value_field = messages
}
EOF
Where $Postfix_Database_Password is an env variable in my install howto.
I am setting up quota plugins as follows:
sed -i "/#mail_plugins/ a mail_plugins = quota...
2009 Apr 07
2
Is there any more detailed docs about dict configuration
..._user` char(50) NOT NULL,
`to_user` char(50) NOT NULL,
`status` int(10) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `from_user` (`from_user`),
KEY `to_user` (`to_user`)
)
dovecot-dict-sql.conf
map {
pattern = shared/shared-boxes/user/$from/$to
table = shared_dict
value_field = status
fields {
from_user = $from
to_user = $to
}
}
dovecot.conf
acl_shared_dict = proxy::shared_dict
It works, and when i use 'setacl', it can add a record.
All I want are some more detailed docs about the `pattern' line, and
such as how to add a `group...
2013 Jan 02
2
Trouble with expire plugin
....xxxxxxx.com.key
}
in dovecot-sql.conf.ext I have:
iterate_query = SELECT userid as user, domain FROM email where deleted=0
---- dovecot-dict-sql.conf.ext ----
connect = host=localhost dbname=email user=email
map {
pattern = priv/quota/storage
table = quota
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota
username_field = username
value_field = messages
}
map {
pattern = shared/expire/$user/$mailbox
table = expires
value_field = expire_stamp
fields {
username = $user
mailbox = $mailbox
}
}
2018 Oct 15
2
Problems with qouta_clone plugin
...ld some information :)
It is probably something simple but apparantly i'm failing to see it :)
Hope someone can help.
-------------
dovecot --version
2.3.2.1 (0719df592)
cat dovecot-quota-clone-sql.conf.ext
connect = ****
map {
pattern = priv/quota/storage
table = virtual_users
value_field = usage_in_bytes
username_field = email
}
map {
pattern = priv/quota/messages
table = virtual_users
value_field = messages
username_field = email
}
# 2.3.2.1 (0719df592): /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-862.11.6.el7.x86_64 x86_64 CentOS Linux release
7.5.1804 (Core) n...
2019 Feb 14
1
Quota count and clone questions
...mailbox
WHERE username = '%u' AND active = '1'
and
dovecot-dict-sql.conf.ext:
connect = host=/var/lib/mysql/mysql.sock dbname=postfix user=postfix
password=$Postfix_Database_Password
map {
??? pattern = priv/quota/storage
??? table = quota2
??? username_field = username
??? value_field = bytes
}
map {
??? pattern = priv/quota/messages
??? table = quota2
??? username_field = username
??? value_field = messages
}
thanks
2013 Sep 08
2
Postfixadmin/MySQL/Dovecot 2 and quota
...Here, my dovecot configuration:
dovecot.conf:
dict {
quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf
}
dovecot-dict-quota.conf:
connect = host=localhost dbname=postfix user=postfix password=postfix
map {
pattern = priv/quota/storage
table = quota2
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota2
username_field = username
value_field = messages
}
dovecot-sql.conf.ext:
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=postfix
default_pass_scheme = PLAIN-MD5
password_query = SELECT usernam...
2013 May 19
3
Error: dict client sent broken reply
...bname=maildb user=dbuser password=dbpass
# 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_usage
username_field = address
value_field = quota_bytes
}
map {
pattern = priv/quota/messages
table = quota_usage
username_field = address
value_field = quota_messages
}
# CREATE TABLE expires (
# username varchar(100) not null,
# mailbox varchar(255) not null,
# expire_stamp integer not null,
# primary key (username, mail...
2011 Feb 17
2
Dovecot 1.2, problem with SQL quota and mail aliases
...----------------+-----------+----------+
The record for john at domain.com finaly reaches the quota limit - and even
removing all emails does not help.
My /etc/dovecot/dovecot-dict-quota.conf looks like this:
map {
pattern = priv/quota/storage
table = quota
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota
username_field = username
value_field = messages
}
And my question is: what is used as "username"? Always the username given
wher user logs in? Is there a way to provide some dictionary to translate
all aliases to...
2015 Oct 06
4
More information about - Dovecot 2.2.x quota mysql and dict
...ntfa(query, "UPDATE %s SET ", fields[0].map->table); #### this
in code, work excellent
for (i = 0; i < field_count; i++) {
if (i > 0)
str_append_c(query, ',');
str_printfa(query, "%s=%s", fields[i].map->value_field,
fields[i].map->value_field);
if (fields[i].value[0] != '-')
str_append_c(query, '+');
str_append(query, fields[i].value);
}
sql_dict_where_build(dict, fields[0].map, build->extra_values,...
2017 Sep 08
3
Problems to configure IMAP Quota
...s the number of messages, how
to get rid of it ?
2) We store the storage value in kilobytes.
But the plugin seems to only accept storage in bytes, Is there any way
to let know to dovecot that the value stored in the database is in
kilobytes ? (of course, I tried to put "size/1024" in the value_field
field of the map. It works, but generate a lot of error lines in the
dovecot log as it create a syntaxly incorrect MySQL uodate request...)
Jacques.
--
The last man connected to the Interet was browsing some old WebSites.
"You have new mail" appeared on the screen...
------------------...
2018 Mar 28
1
Dovecot quota
...virtual
welcome zlib quota acl imap_acl imap_quota imap_sieve imap_zlib
last_login virtual fts fts_lucene
}
dovecot-dict-sql.conf.ext
connect = host=SocketLocation dbname=DBName user=UserName password=PasswordHere
map {
pattern = priv/quota/storage
table = quota2
username_field = username
value_field = bytes
}
map {
pattern = priv/quota/messages
table = quota2
username_field = username
value_field = messages
}
map {
pattern = shared/shared-boxes/user/$to/$from
table = user_shares
value_field = dummy
fields {
from_user = $from
to_user = $to
}
}
map {
pattern = sha...