Re: noreplicate for some users

2020-02-08 Thread mail
Thanks, I have tried that but there is still no effect. If I use sudo 
doveadm replicator status "*" there are still all users from the virtual 
mapping listed which causes an all day spam in my syslog and mail error 
log.


Even if I remove them from the list via command and restart dovecot 
there are back in the list again. At the moment I'm not really sure if 
this is working with passwd-file.


Tim

Am 2020-02-07 00:08, schrieb Eirik Rye:

I believe the userdb_ prefix is used when you want to provide userdb
fields in a passdb context, or in the actual passwd-file file contents
(/etc/dovecot/users).

In default_fields, you should use the non-prefixed name, i.e. 
"noreplicate=y"


Use `doveadm user -u ` to see what userdb fields are
returned for a specific user.

- Eirik

On 2/6/2020 11:36 PM, m...@backprod.de wrote:

Hi,

I have set up the sync and it is working but I only would like to sync 
some users. Currently this does not seem to work.


Version 2.3.9.2

Relevant Settings:

File users:
m...@domain.de:{SHA}hash:::t:

passdb {
   driver = passwd-file
   args = username_format=%u /etc/dovecot/users
}

userdb {
driver = passwd-file
args = username_format=%u /etc/dovecot/users
default_fields = uid= gid= home=/var/vmail/%d/%n 
userdb_noreplicate=t

}

After restart of dovecot I allways get all users with sudo doveadm 
replicator status "*"


usernamepriority  fast sync full sync success sync failed
ab...@domain.net none 00:01:58  03:52:23  -y
ad...@domein.net none 00:01:58  03:52:23  -y
ab...@domein.de   none 00:01:58  07:51:00  -y

What value needs to be set to get replication / no replication and to 
remove the users from the list? I have tried 0 / 1 / True / False / t 
/ f / T / F but I don't see a change in behavior.


Best regards

Tim



Re: Dovecot/doveadm quota

2020-02-08 Thread Martynas Bendorius
Doesn't it currently confuse them? Because they'd reach their quota, while 
actually there would be a lot of disk space left :) + their whole mailbox could 
take a lot more space due to indexes and other files in the filesystem, and 
quota would not be reached.

Also, I've dovecot is using fstat's st_size parameter. This is not "correct", 
in that the actual space used on disk is always higher.

If we count the number of 512B blocks used (st_blocks), and multiply by 512 to 
get the true disk usage.

I'll be looking forward for your feedback/ideas.

Thank you!

--
Best regards,
Martynas Bendorius


> On 2020-02-08, at 17:57, Max Kostikov  wrote:
> 
> I think these changes will confuse users because calculated quota wouldn't be 
> equals with total messages sizes.
> 
> Marsistynas Bendorius писал 2020-02-07 11:07:
>> Is there any reason why dovecot relies on S= instead of real disk size
>> email takes?
>> 1) compressed mails take less than than the S= specified
>> 2) we could avoid using "S=" for the lookups and count every file
>> there, including indexes and mails without S=... if we'd read
>> filesizes
> 
> 
> -- 
> With best regards,
> Max Kostikov
> 
> W: https://kostikov.co | DeltaChat: m...@eprove.net



Re: Dovecot/doveadm quota

2020-02-08 Thread Max Kostikov
I think these changes will confuse users because calculated quota 
wouldn't be equals with total messages sizes.


Marsistynas Bendorius писал 2020-02-07 11:07:

Is there any reason why dovecot relies on S= instead of real disk size
email takes?

1) compressed mails take less than than the S= specified
2) we could avoid using "S=" for the lookups and count every file
there, including indexes and mails without S=... if we'd read
filesizes



--
With best regards,
Max Kostikov

W: https://kostikov.co | DeltaChat: m...@eprove.net


signature.asc
Description: OpenPGP digital signature


Re: mail_filter plugin: failed: EOF without input (Gedalya)

2020-02-08 Thread ??????
I just modified mail-filter-out.sh like this:
cat  mail-filter-out.sh
  #!/bin/sh


  USER=$1
  cat > /tmp/tempfile
  cat /tmp/tempfile



cat  /tmp/tempfile
This message is in MIME format.


--nsmail-7bjyg3nr5o-7bmibqhut9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: base64


PHA+Jm5ic3A7PC9wPjxwPiZuYnNwOzIxMjEyMTIxPC9wPjxwPiZuYnNwOzwv
cD48cD4mbmJzcDs8L3A+PHA+Jm5ic3A7PC9wPjxwPiZuYnNwOzwvcD4tLS0t
PGRpdiBpZD0iY3MyY19tYWlsX3NpZ2F0dXJlIj48L2Rpdj48cD48L3A+


--nsmail-7bjyg3nr5o-7bmibqhut9--



But the log appears:
  Feb 08 19:14:18 lda(q...@a.com)<71012>https://dovecot.org/mailman/listinfo/dovecot
or, via email, send a message with subject or body 'help' to
dovecot-requ...@dovecot.org

You can reach the person managing the list at
dovecot-ow...@dovecot.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dovecot digest..."


Today's Topics:

   1. Re: mail_filter plugin: failed: EOF without input (Gedalya)


--

Message: 1
Date: Fri, 7 Feb 2020 23:48:28 +0800
From: Gedalya https://dovecot.org/mailman/listinfo/dovecot

--

End of dovecot Digest, Vol 202, Issue 11