Displaying 10 results from an estimated 10 matches for "quota_mb".
Did you mean:
quota_kb
2011 Dec 29
1
Trouble with proxy_maybe and auth_default_realm
...='00.00.241.140', NULL, 'Y') as proxy_maybe, \
concat(userid, '@', domain) as destuser, \
password as pass, \
'/stor/mail/domains/%d/%n' AS userdb_home, \
'maildir:/stor/mail/domains/%d/%n/Maildir' as userdb_mail, \
concat('*:storage=', quota_mb, 'M') as userdb_quota_rule, \
'vmail' AS userdb_uid, 'vmail' AS userdb_gid \
FROM email WHERE userid = '%n' AND domain = '%d'
user_query = SELECT '/stor/mail/domains/%d/%n' AS home, \
'maildir:/stor/mail/domains/%d/%n/Maildir' as mail...
2011 May 16
1
user_query and mail_plugins in database
...uota imap_acl autocreate"
}
- -----------------------------%<--------------------------------------
Every protocol uses own mail_plugin definitions. So I create the
following user_query:
user_query = SELECT LOWER(login) AS user,home,mail,5000 AS uid,5000 AS
gid,CONCAT('*:storage=',quota_mb,'MB') AS quota_rule,acl_groups,case
when '%s'='lda' then 'acl quota sieve' when '%s'='lmtp' then 'acl quota
sieve' when '%s'='doveadm' then 'acl quota' when '%s'='sieve' then 'acl
quota' else mai...
2011 Sep 07
1
Problem with configuring dovecot to take namespaces from database
...out tuple in db table) to
get new namespace, unfortunately it doesn't work.
My user_query is:
SELECT '/dane/domeny/%d/mail/%n/' as home, dovecot_typ_skrzynki ||':'||
'/dane/domeny/%d/mail/%n/' ||'.'|| dovecot_typ_skrzynki as
mail_location, '*:bytes='||quota_mb||'M' as quota_rule ,
'test33/location=mdbox:~/.mdbox/test33/' as "namespace/test3/prefix"
In debug log i'm getting:
Debug: master out:
USER#0111#011user at examle.com#011home=/dane/domeny/mejor.pl/mail/marcin/#011mail_location=maildir:/dane/domeny/mejor.pl/mail/marc...
2011 Jun 02
2
Custom sql query for keeping quota with dict-sql
Hello!
I'd like to setup quota for for virtualusers, i'm using both maildir++
and mdbox as storage, and i'm using postgresql to keep users.
I'm keeping all users data in one table:
[...]
login text NOT NULL,
domain text,
password text,
quota_mb integer NOT NULL DEFAULT 0
[... other columns ...]
i'd like to keep present quota in such two columns:
quota_dict_bytes integer NOT NULL DEFAULT 0,
quota_dict_messages integer NOT NULL DEFAULT 0
I read wiki a little and it looks i can't define own sql queries, they
appear to be hardcoded....
2013 Aug 01
2
misconception in uid and gid
...swords of my users. However, I have found that I must explicitly return the uid and gid with every query, even though all virtual users use the same uid and gid. The query, that works, is:
user_query = SELECT mail, 'vmail' AS uid, 'vmail' AS gid, home, CONCAT('*:storage=', quota_MB*1024) AS quota_rule \
FROM virtual_users AS V LEFT JOIN virtual_domains AS D ON V.domain_id=D.id WHERE V.user='%n' AND D.name='%d'
Nevertheless, if I remove the segments "'vmail' AS uid, 'vmail' AS gid" and modify the file conf.d/10-mail.conf...
2014 Feb 19
1
Dovecot, mysql, and quota
Hello,
I'm running dovecot 2.2 and wanting to get quotas going. I've got the
plugins loaded appropriately and am wanting to configure a dictionary
backend to talk to my mysql database.
I've got a single database called mail which has all the mail-related
items in it. One table is for virtual users which postfix uses. It
looks like this:
CREATE TABLE `virtual_users` (
`id` int(11)
2011 Jun 05
1
doveadm problem with mail_plugins in database
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I use this user_query:
- -------------------------------%<--------------------------------
user_query = SELECT LOWER(CONCAT(t2.login,'@',t1.name)) AS
user,t2.home,t2.mail,5000 AS uid,5000 AS
gid,CONCAT('*:storage=',quota_mb,'MB') AS quota_rule,t2.acl_groups,case
when '%s'='lda' then 'acl quota sieve' when '%s'='lmtp' then 'acl quota
sieve' when '%s'='doveadm' then mail_plugins when '%s'='sieve' then 'acl
quota' else t2.mail...
2011 Jun 17
0
I can't setup namespace per user (with settings keept in sql db)
...figuration. I've got in log:
debug: sql(marcin at mejor.pl,62.121.127.119): SELECT
'/dane/domeny/mejor.pl/mail/marcin/' as home, dovecot_typ_skrzynki
||':'|| '/dane/domeny/mejor.pl/mail/marcin/' ||'
.'|| dovecot_typ_skrzynki as mail_location, '*:bytes='||quota_mb||'M' as
quota_rule , dovecot_location AS location, dovecot_namespace AS
namespace FROM exim_users WHE
RE login = lower('marcin') AND domena = lower('mejor.pl')
Debug: master out:
USER#0112138832897#011marcin at mejor.pl#011home=/dane/domeny/mejor.pl/mail/marcin/#011mail_loca...
2013 Jul 17
1
pop3c migration?
.../etc/dovecot/dovecot-sql.conf.ext :
driver = mysql
connect = .....
default_pass_scheme = PLAIN
password_query = SELECT password, \
'/stor/real/domains/%d/%2n/%n' AS userdb_home, \
'maildir:/stor/real/domains/%d/%2n/%n/Maildir' as userdb_mail, \
concat('*:storage=', quota_mb, 'M') as userdb_quota_rule, \
'vmail' AS userdb_uid, 'vmail' AS userdb_gid \
FROM email WHERE userid = '%n' AND domain = '%d' and deleted=0
user_query = SELECT '/stor/real/domains/%d/%2n/%n' AS home, \
'maildir:/stor/real/domains/%d/%2n/...
2009 Jun 23
2
deliver does not update maildirsize
...;%u' AND
active = 1
# cat dovecot-mysql-passdb.conf
driver = mysql
connect = [ --- snip --- ]
default_pass_scheme = PLAIN-MD5
user_query = SELECT 5000 AS uid, 5000 AS gid, CONCAT("maildir:", mail) AS
mail, CONCAT(mail, "/home") AS home, CONCAT("maildir:storage=", quota_mb *
1024, ":ignore=Trash") AS quota FROM view_vuser WHERE email = '%u' AND
active = 1
# ls -l maildirsize
-rw------- 1 vmail vmail 20 2009-06-23 08:47 maildirsize
# cat maildirsize
1048576S
1846384 10