Re: [Dovecot] Dovolená

2011-12-26 Thread Denis Fateyev
Hello all,

On Mon, Dec 26, 2011 at 12:45 PM,  wrote:

>
>   V případě nutnosti volejte na mobil.
>
>
Indeed, it sounds like a call to action ;-)
Merry Christmas to everyone!

---
wbr, Denis.


Re: [Dovecot] Per user quota on MySQL

2010-12-18 Thread Denis Fateyev
Hello,

In my installation (postfixadmin, dovecot-1.2.x), postfixadmin sets and
stores user quota in bytes in `quota` field of `mailbox` table.
Dovecot retrieves stored quotas via `user_query` and `password_query`
mechanism.

---
wbr, Denis.

On Sat, Dec 18, 2010 at 2:59 AM, M. Rodrigo Monteiro <
fale...@rodrigomonteiro.net> wrote:

> On Fri, Dec 17, 2010 at 15:41, Henrique Fernandes 
> wrote:
> > It is missing an global mail plugins conf!
> > []'sf.rique
> >
>
> Ok, now I have the quota in dovecotadm.
>
> doveadm quota get -u te...@domain.com
> Quota name
>  TypeValue Limit %
> storage=1024000
>  STORAGE  5584 - 0
> storage=1024000
>  MESSAGE 7 - 0
>
> But I don't know how to configure to get work quota per user with
> Postfixadmin.
>
> Anyone?
>
>
> Regards,
> Rodrigo.
>
> --
> M. Rodrigo Monteiro
>


[Dovecot] troubles with expire plugin

2010-03-11 Thread Denis Fateyev
Hello there,

Now I'm using `expire` plugin and getting troubles with cronjob (from
user `exim`):
/usr/sbin/dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool.sh

Fatal: setgid(12(mail)) failed with euid=93(exim), gid=93(exim),
egid=93(exim): Operation not permitted (This binary should probably be
called with process group set to 12(mail) instead of 93(exim))

The same error occurs when I run this command from `exim` user with sudo.


My dovecot v1.2.11 configuration:

dovecot.conf
-
...
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0660
user = exim
group = mail
}
client {
path = /var/spool/exim/private-auth
mode = 0660
user = exim
group = mail
}
}
...

userdb-sql.conf

# exim uid: 93, mail gid: 12
user_query = SELECT CONCAT('/var/mail/', maildir) AS home, \
CONCAT('maildir:/var/mail/', maildir) AS mail, 93 AS uid, 12 AS gid, \
CONCAT('*:storage=', quota, 'B') AS quota_rule, \
'storage=90%% /usr/libexec/dovecot/quota_warning.sh 90' AS quota_warning \
FROM mailbox WHERE username = '%u' AND active = '1'

password_query = SELECT username AS user, password, \
CONCAT('/var/mail/', maildir) AS userdb_home, \
CONCAT('maildir:/var/mail/', maildir) AS userdb_mail, \
93 AS userdb_uid, 12 AS userdb_gid, \
CONCAT('*:storage=', quota, 'B') AS userdb_quota_rule, \
'storage=90%% /usr/libexec/dovecot/quota_warning.sh 90' AS
userdb_quota_warning \
FROM mailbox WHERE username = '%u' AND active = '1'

( maybe, is any additional information required? )

All working fine with dovecot except this issue with `expire` plugin.
How to avoid it?
As I see, it's working if I run this command from `root` instead of
`exim`, but I don't think it will be right to leave it in the root's
crontab.

Thanks,

---
wbr, Denis.


Re: [Dovecot] v2.0.rc2 released

2010-07-10 Thread Denis Fateyev
Hello Timo,

Many thanks for this nice piece of code, hehe.
Keep up your great work!

---
wbr, Denis.