Possible architecture ?

2018-09-18 Thread Alexandre Ellert
 Hi,

I'd like to achieve the following setup whit dovecot using multiple servers
:
- one server dedicated to all client IMAP (TLS) connections (i
map.mymaindomain.com, see below )
- each backend server has it's own local storage. no replication
- each backend server responsible of a few domains
- each backend server has it's own Mysql local database for user's
passwords.

   ===> Server 1 :
domains A, B and C

> i map.mymaindomain.com  ===> Server 2 :
domains D, E and F
 (143 TLS / 993 SSL)
===> Server 3 :
domains G, H

For example, if a user connects from domain E to i 
map.mymaindomain.com, will Dovecot be able to use password database hosted
on Server 2 ?

Thank you !

Alex


Re: Possible architecture ?

2018-10-03 Thread Alexandre Ellert
Hi,

I've got no answer.. Can someone please help ?

Thank you.

Alex

Le mar. 18 sept. 2018 à 22:55, Alexandre Ellert 
a écrit :

> Hi,
>
> I'd like to achieve the following setup whit dovecot using multiple
> servers :
> - one server dedicated to all client IMAP (TLS) connections (i
> <http://mail.numeezy.com>map.mymaindomain.com, see below )
> - each backend server has it's own local storage. no replication
> - each backend server responsible of a few domains
> - each backend server has it's own Mysql local database for user's
> passwords.
>
>===> Server 1 :
> domains A, B and C
>
> > i <http://mail.numeezy.com>map.mymaindomain.com  ===> Server 2 :
> domains D, E and F
>  (143 TLS / 993 SSL)
> ===> Server 3 :
> domains G, H
>
> For example, if a user connects from domain E to i
> <http://mail.numeezy.com>map.mymaindomain.com, will Dovecot be able to
> use password database hosted on Server 2 ?
>
> Thank you !
>
> Alex
>


Unable to access apt.dovecot.fi

2017-01-12 Thread Alexandre Ellert
Hi,

I bought a Dovecot Enterprise repository acces in 2013 and since
several months, I can't access it anymore.

It seem that my credential are broken.
When doing an apt-get update :

W: Failed to fetch
http://apt.dovecot.fi/3rdparty/debian/wheezy/dists/wheezy/main/binary-amd64/Packages
 401  Unauthorized
W: Failed to fetch
http://apt.dovecot.fi/stable-2.2/debian/wheezy/dists/wheezy/main/binary-amd64/Packages
 401  Unauthorized

And here is my sources.list :
# cat /etc/apt/sources.list.d/dovecot.list
deb http://USER:passw...@apt.dovecot.fi/stable-2.2/debian/wheezy wheezy main
# cat /etc/apt/sources.list.d/dovecot-3rdparty.list
deb http://USER:passw...@apt.dovecot.fi/3rdparty/debian/wheezy wheezy main

Thank you for help.

Alexandre


[Dovecot] prohibit deletion of Junk folder

2013-11-25 Thread Alexandre Ellert
Hi,

I have an issue with a sieve_before rule (the script move incoming email to 
Junk folder when DMARC=fail and policy is quarantine) because one of my user 
delete his Junk folder :

dovecot: lda(myu...@domain.com): Error: sieve: execution of script 
/etc/dovecot/sieve_before/01-dmarc-fail.sieve failed, but implicit keep was 
successful: 1 Time(s)
dovecot: lda(myu...@domain.com): Error: sieve: 
msgid=<20131124212217.5f346580...@anotherdomain.com>: failed to store into 
mailbox 'Junk': Mailbox doesn't exist: Junk: 1 Time(s)

How can I do to prohibit the deletion of Junk folder by end users ?
Tell me if you need 'dovecot -n' and thanks for your advices.

Alexandre.

Re: [Dovecot] prohibit deletion of Junk folder

2013-11-25 Thread Alexandre Ellert
'lda_mailbox_autocreate=yes' works fine without adding ':create' in sieve 
script.

Thanks Tom.

Le 25 nov. 2013 à 13:01, Tom Hendrikx  a écrit :

> On 11/25/2013 12:50 PM, Alexandre Ellert wrote:
>> Hi,
>> 
>> I have an issue with a sieve_before rule (the script move incoming email to 
>> Junk folder when DMARC=fail and policy is quarantine) because one of my user 
>> delete his Junk folder :
>> 
>> dovecot: lda(myu...@domain.com): Error: sieve: execution of script 
>> /etc/dovecot/sieve_before/01-dmarc-fail.sieve failed, but implicit keep was 
>> successful: 1 Time(s)
>> dovecot: lda(myu...@domain.com): Error: sieve: 
>> msgid=<20131124212217.5f346580...@anotherdomain.com>: failed to store into 
>> mailbox 'Junk': Mailbox doesn't exist: Junk: 1 Time(s)
>> 
>> How can I do to prohibit the deletion of Junk folder by end users ?
>> Tell me if you need 'dovecot -n' and thanks for your advices.
>> 
>> Alexandre.
>> 
> 
> Can't you make sieve re-create the folder when it's missing?  Simply set
> lda_mailbox_autocreate=yes if you use dovecot lDA, and/or use 'fileinto
> :create "Junk";' in the sieve script.
> 
> Regards,
>   Tom
> 



[Dovecot] Enable mail logger plugin

2014-02-19 Thread Alexandre Ellert
Hello,

I'm trying to get more info about user activity (especially when they delete 
some email).
So, I follow info from http://wiki2.dovecot.org/Plugins/MailLog to enabled mail 
logger plugin, but I don't see anything in my logs.

Can you tell me what I'm missing ?

Thanks.

# doveconf -n
# 2.2.10.3: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
hostname = mail.numeezy.com
imap_capability = +XLIST
lda_mailbox_autocreate = yes
listen = 188.165.154.169
login_greeting = Ready.
mail_gid = 5000
mail_location = maildir:/var/vmail/%d/%n/Maildir
mail_plugins = quota mail_log notify
mail_privileged_group = mail
mail_uid = 5000
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Junk {
auto = subscribe
special_use = \Junk
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox name {
special_use = \Drafts \Junk \Sent \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  antispam_backend = mailtrain
  antispam_mail_notspam = --ham
  antispam_mail_sendmail = /usr/local/bin/sa-learn-pipe.sh
  antispam_mail_spam = --spam
  antispam_spam = Junk
  antispam_trash = Trash
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  mail_log_fields = uid box msgid size
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
  quota_grace = 10%%
  quota_rule = Trash:storage=+200M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = /var/vmail/%d/%n/.sieve
  sieve_before = /etc/dovecot/sieve_before
  sieve_vacation_send_from_recipient = yes
}
postmaster_address = postmas...@numeezy.com
protocols = imap pop3
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0600
user = vmail
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
  service_count = 1
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
  service_count = 1
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
mode = 0666
user = vmail
  }
  user = vmail
}
ssl_cert = 

Re: [Dovecot] Enable mail logger plugin

2014-02-20 Thread Alexandre Ellert
> @Alexandre: You've removed the "$mail_plugins" in the IMAP section as Peter 
> already pointed out?

I'm not sure to fully understand how mail_plugins directive works.

Please correct, if I'm wrong :

Global mail_plugins lists common plugin used by all protocol :
> mail_plugins = quota mail_log notify
Later, within each protocol declaration, I need to reference $mail_plugins 
variable (i.e. mail_plugins = $mail_plugins …)

Each protocol can use its own mail_plugins with an override :
> protocol imap {
>  mail_max_userip_connections = 80
>  mail_plugins = quota imap_quota antispam
> }
In that case mail_log notify are not enabled for protocol imap.

So, I have two options :

1. List all mail_plugins explicitly for protocol imap, like this :
mail_plugins = quota mail_log notify
protocol imap {
 mail_max_userip_connections = 80
 mail_plugins = quota imap_quota antispam mail_log notify
}

2. Use $mail_plugins variable to include global mail_plugins into protocol imap 
:
mail_plugins = quota mail_log notify
protocol imap {
 mail_max_userip_connections = 80
 mail_plugins = $mail_plugins imap_quota antispam
}

Alexandre

Re: [Dovecot] Enable mail logger plugin

2014-02-20 Thread Alexandre Ellert
I've reworked my configuration and now it works as expected.
Here is what it looks like now :

mail_plugins = quota mail_log notify

protocol lda {
  mail_plugins = $mail_plugins sieve
}

protocol imap {
  mail_plugins = $mail_plugins imap_quota antispam
}

protocol pop3 {
  mail_plugins = $mail_plugins
}

Thanks all for your help and for good explanations.

Alexandre.


[Dovecot] FTS solr : body search gives mysql error

2014-03-13 Thread Alexandre Ellert
Hello,

I've recently setup FTS solr plugin, following 
http://wiki2.dovecot.org/Plugins/FTS/Solr,  and I have this error in logs when 
I do a body search :

Mar 13 01:46:40 mut-mx-1 dovecot: auth-worker(5808): Warning: mysql: Query 
failed, retrying: Unknown column 'disableindexer' in 'where clause'
Mar 13 01:46:40 mut-mx-1 dovecot: auth-worker(5808): Error: 
sql(u...@domain.com): User query failed: Unknown column 'disableindexer' in 
'where clause'
Mar 13 01:46:40 mut-mx-1 dovecot: indexer-worker: Error: user u...@domain.com: 
Auth USER lookup failed
Mar 13 01:46:40 mut-mx-1 dovecot: indexer-worker: Error: User u...@domain.com 
lookup failed: Internal error occurred. Refer to server log for more 
information.
Mar 13 01:46:40 mut-mx-1 dovecot: imap(u...@domain.com): Error: indexer failed 
to index mailbox INBOX

Anyway, the search result seems good. Should I worry about this error or is 
there other thing I should do (i.e modify mysql schema) ?

I'm using mysql as a backend to store users and password.
According to the documentation, I just added this block of configuration 
(please tell me if need full doveconf -n) :

mail_plugins = fts fts_solr [ my other plugins ]
plugin {
  fts = solr
  fts_solr = url=http://127.0.0.1:8080/solr/
}

Versions :
OS : Debian 7
dovecot : 2.2.12 (from dovecot-ee repo)
solr : 3.6.0 (from distrib repo)

Other recommendations and feedback about using solr FTS in production would be 
greatly appreciated.
Many thanks.

Alexandre


Re: [Dovecot] FTS solr : body search gives mysql error

2014-03-14 Thread Alexandre Ellert
> We always do and include any additional conf files with mysql queries.
I'm confused but I don't understand your answer. Can you please give more 
detail or an example ?

Thanks.


Re: [Dovecot] FTS solr : body search gives mysql error

2014-03-14 Thread Alexandre Ellert
With auth_debug = yes, I see that the MySQL querie change when fts solr is 
enabled, it adds : AND disableindexer-worker = 'n'

Here is the full query :

Mar 14 19:51:03 mut-mx-1 dovecot: auth: Debug: master in: 
USER#0111#011u...@domain.com#011service=indexer-worker
Mar 14 19:51:03 mut-mx-1 dovecot: auth-worker(10769): Debug: 
sql(u...@domain.com): SELECT email as user, maildir as home, CONCAT('maildir:', 
maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS 
quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = 
'u...@domain.com' OR email = 'u...@domain.com') AND disableindexer-worker = 'n'
Mar 14 19:51:03 mut-mx-1 dovecot: auth-worker(10769): Warning: mysql: Query 
failed, retrying: Unknown column 'disableindexer' in 'where clause'
Mar 14 19:51:03 mut-mx-1 dovecot: auth-worker(10769): Error: 
sql(u...@domain.com): User query failed: Unknown column 'disableindexer' in 
'where clause'
Mar 14 19:51:03 mut-mx-1 dovecot: auth: Debug: userdb out: FAIL#0111

So, I guess that I need to add a disableindexer-worker column in my database 
but I can't find any documentation about that nor any reference about 
disableindexer-worker in source code.
I'm lost…

Alexandre


Re: [Dovecot] FTS solr : body search gives mysql error

2014-03-14 Thread Alexandre Ellert
I've add the column disableindexer-worker : 
alter table mail_user add `disableindexer-worker` enum('n','y') default 'n';

But the problem remain the same.

I finally found why, here is my dovecot-sql.conf :
password_query = SELECT password FROM mail_user WHERE (login = '%u' OR email = 
'%u') AND disable%Ls = 'n'
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, 
'/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, 
CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email 
= '%u') AND disable%Ls = 'n'

The problem is in the query : disable%Ls

I don't have any indexer-worker defined in my configuration. Maybe I can do an 
override to stop execute user_query and password_query for indexer-worker ? 
(solr search seems working fine)

# 2.2.12.0: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4
auth_debug = yes
auth_mechanisms = plain login
base_dir = /var/run/dovecot/
hostname = mail.numeezy.com
imap_capability = +XLIST
lda_mailbox_autocreate = yes
listen = 188.165.154.169
login_greeting = Ready.
mail_gid = 5000
mail_location = maildir:/var/vmail/%d/%n/Maildir
mail_plugins = quota mail_log notify fts fts_solr
mail_privileged_group = mail
mail_uid = 5000
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Junk {
auto = subscribe
special_use = \Junk
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  mailbox name {
special_use = \Drafts \Junk \Sent \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  antispam_backend = mailtrain
  antispam_mail_notspam = --ham
  antispam_mail_sendmail = /usr/local/bin/sa-learn-pipe.sh
  antispam_mail_spam = --spam
  antispam_spam = Junk
  antispam_trash = Trash
  fts = solr
  fts_autoindex = yes
  fts_solr = break-imap-search url=http://127.0.0.1:8080/solr/
  mail_log_events = delete expunge mailbox_delete
  mail_log_fields = uid box msgid from subject
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
  quota_grace = 10%%
  quota_rule = Trash:storage=+200M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
  sieve = /var/vmail/%d/%n/.sieve
  sieve_before = /etc/dovecot/sieve_before
  sieve_vacation_send_from_recipient = yes
}
postmaster_address = postmas...@numeezy.com
protocols = imap pop3
service auth-worker {
  user = vmail
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0600
user = vmail
  }
  user = dovecot
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_limit = 500
  service_count = 1
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
ssl = yes
  }
  service_count = 1
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
mode = 0666
user = vmail
  }
  user = vmail
}
ssl_cert =  a écrit :

> Am 14.03.2014 19:58, schrieb Alexandre Ellert:
>> With auth_debug = yes, I see that the MySQL querie change when fts solr is 
>> enabled, it adds : AND disableindexer-worker = 'n'
>> Here is the full query :
>> 
>> Mar 14 19:51:03 mut-mx-1 dovecot: auth: Debug: master in: 
>> USER#0111#011u...@domain.com#011service=indexer-worker
>> Mar 14 19:51:03 mut-mx-1 dovecot: auth-worker(10769): Debug: 
>> sql(u...@domain.com): SELECT email as user, maildir as home, 
>> CONCAT('maildir:', maildir, '/Maildir') as mail, uid, gid, 
>> CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') 
>> as sieve FROM mail_user WHERE (login = 'u...@domain.com' OR email = 
>> 'u...@domain.com') AND disableindexer-worker = 'n'
>> Mar 14 19:51:03 mut-mx-1 dovecot: auth-worker(10769): Warning: mysql: Query 
>> failed, retrying: Unknown column 'disableindexer' in 'where clause'
>> Mar 14 19:51:03 mut-mx-1 dovecot: auth-worker(10769): Error: 
>> sql(u...@domain.com): User query failed: Unknown column 'disableindexer' in 
>> 'where clause'
>> Mar 14 19:51:03 mut-mx-1 dovecot: auth: Debug: userdb out: FAIL#0111
>> 
>> So, I guess that I need to add a disableindexer-worker column in my database 
>> but I can't find any documentation about 
>> that nor any reference about disableindexer-worker in source code. I'm lost
> 
> AND disableindexer-worker = 'n' comes to my guess the other possible value is 
> 'y'
> so just add the missing column
> 
> the question before you did not understand was still the hint "provide
> your configuration with masked internal passwords" as it is usual
> 


Re: [Dovecot] FTS solr : body search gives mysql error

2014-03-15 Thread Alexandre Ellert
I finally found the problem :
1. add column disableindexer-worker : alter table mail_user add 
`disableindexer-worker` enum('n','y') default 'n';
2. modify dovecot-sql.conf with backtick around disable%Ls : 
user_query = SELECT email as user, maildir as home, CONCAT('maildir:', maildir, 
'/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, 
CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email 
= '%u') AND `disable%Ls` = 'n'

Le 14 mars 2014 à 22:33, Alexandre Ellert  a écrit :

> I've add the column disableindexer-worker : 
> alter table mail_user add `disableindexer-worker` enum('n','y') default 'n';
> 
> But the problem remain the same.
> 
> I finally found why, here is my dovecot-sql.conf :
> password_query = SELECT password FROM mail_user WHERE (login = '%u' OR email 
> = '%u') AND disable%Ls = 'n'
> user_query = SELECT email as user, maildir as home, CONCAT('maildir:', 
> maildir, '/Maildir') as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS 
> quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = 
> '%u' OR email = '%u') AND disable%Ls = 'n'
> 
> The problem is in the query : disable%Ls
> 
> I don't have any indexer-worker defined in my configuration. Maybe I can do 
> an override to stop execute user_query and password_query for indexer-worker 
> ? (solr search seems working fine)
> 
> # 2.2.12.0: /etc/dovecot/dovecot.conf
> # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4
> auth_debug = yes
> auth_mechanisms = plain login
> base_dir = /var/run/dovecot/
> hostname = mail.numeezy.com
> imap_capability = +XLIST
> lda_mailbox_autocreate = yes
> listen = 188.165.154.169
> login_greeting = Ready.
> mail_gid = 5000
> mail_location = maildir:/var/vmail/%d/%n/Maildir
> mail_plugins = quota mail_log notify fts fts_solr
> mail_privileged_group = mail
> mail_uid = 5000
> namespace inbox {
>  inbox = yes
>  location = 
>  mailbox Drafts {
>auto = subscribe
>special_use = \Drafts
>  }
>  mailbox Junk {
>auto = subscribe
>special_use = \Junk
>  }
>  mailbox Sent {
>auto = subscribe
>special_use = \Sent
>  }
>  mailbox "Sent Messages" {
>special_use = \Sent
>  }
>  mailbox Trash {
>auto = subscribe
>special_use = \Trash
>  }
>  mailbox name {
>special_use = \Drafts \Junk \Sent \Trash
>  }
>  prefix = 
> }
> passdb {
>  args = /etc/dovecot/dovecot-sql.conf
>  driver = sql
> }
> plugin {
>  antispam_backend = mailtrain
>  antispam_mail_notspam = --ham
>  antispam_mail_sendmail = /usr/local/bin/sa-learn-pipe.sh
>  antispam_mail_spam = --spam
>  antispam_spam = Junk
>  antispam_trash = Trash
>  fts = solr
>  fts_autoindex = yes
>  fts_solr = break-imap-search url=http://127.0.0.1:8080/solr/
>  mail_log_events = delete expunge mailbox_delete
>  mail_log_fields = uid box msgid from subject
>  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
>  quota_grace = 10%%
>  quota_rule = Trash:storage=+200M
>  quota_warning = storage=95%% quota-warning 95 %u
>  quota_warning2 = storage=80%% quota-warning 80 %u
>  sieve = /var/vmail/%d/%n/.sieve
>  sieve_before = /etc/dovecot/sieve_before
>  sieve_vacation_send_from_recipient = yes
> }
> postmaster_address = postmas...@numeezy.com
> protocols = imap pop3
> service auth-worker {
>  user = vmail
> }
> service auth {
>  unix_listener /var/spool/postfix/private/auth {
>group = postfix
>mode = 0660
>user = postfix
>  }
>  unix_listener auth-userdb {
>group = vmail
>mode = 0600
>user = vmail
>  }
>  user = dovecot
> }
> service imap-login {
>  inet_listener imap {
>port = 143
>  }
>  inet_listener imaps {
>port = 993
>ssl = yes
>  }
>  process_limit = 500
>  service_count = 1
> }
> service pop3-login {
>  inet_listener pop3 {
>port = 110
>  }
>  inet_listener pop3s {
>port = 995
>ssl = yes
>  }
>  service_count = 1
> }
> service quota-warning {
>  executable = script /usr/local/bin/quota-warning.sh
>  unix_listener quota-warning {
>mode = 0666
>user = vmail
>  }
>  user = vmail
> }
> ssl_cert =  ssl_key =  userdb {
>  args = /etc/dovecot/dovecot-sql.conf
>  driver = sql
> }
> protocol lda {
>  mail_plugins = quota mail_log notify fts fts_solr sieve
> }
> protocol imap {
>  mail_max_userip_connections = 80
>  mail_plugins

postfix alias and dovecot quota

2014-06-28 Thread Alexandre Ellert
Hello,

Can someone tell me if it’s possible to configure dovecot to answer quota 
information about real mailbox when I query a postfix alias mailbox (this 
information is actually in a mysql database) ?

Example :

doveadm quota get - u al...@domain.com
doveadm(al...@domain.com): Fatal: User doesn't exist

doveadm quota get - u realmail...@domain.com
Quota name Type  Value   Limit  
  %
user   STORAGE 2048853 2048000  
100
user   MESSAGE6783   -  
  0

I’d like to have this result :
doveadm quota get - u al...@domain.com
Quota name Type  Value   Limit  
  %
user   STORAGE 2048853 2048000  
100
user   MESSAGE6783   -  
  0

doveadm quota get - u realmail...@domain.com
Quota name Type  Value   Limit  
  %
user   STORAGE 2048853 2048000  
100
user   MESSAGE6783   -  
  0

Thanks for your help.

Alexandre.

Re: postfix alias and dovecot quota

2014-06-29 Thread Alexandre Ellert
Le 29 juin 2014 à 06:24, Nick Edwards  a écrit :

> it is the job of postfix to do this, aliases are just that, aliases of

> the real mail account, they do not exist in real storage, else, they
> would not be alias.

The problem i’m trying to solve is about dovecot capability to serve quota 
status via Postfix policy server protocol.
It works fine when the destination address is a real mailbox, but if it’s a 
Postfix alias, then the email is not rejected because dovecot doesn’t know this 
user.
Maybe it’s a wrong idea to try to make Postfix alias visible to dovecot.

Do you have another suggestion ?

Re: postfix alias and dovecot quota

2014-07-03 Thread Alexandre Ellert
Le 1 juil. 2014 à 04:57, Nick Edwards  a écrit 
:



http://dovecot.2317879.n4.nabble.com/Postfix-aliases-with-quota-status-service-td43511.html
search for post from Ulrich Zehl


Thanks for the link, I use a SQL backend containing user and alias data.
So I've changed the user_query to include alias and it's actually 
working fine on my test environnement.