Open pedro-nonfree opened 5 years ago
This could be easily solved with a sieve rule. This rule would be part of rspamd integration with postfix and dovecot. I'm working on it.
I recently have had to use doveadm mailbox create -u USER Junk
to do the trick for all users…
for user in $(yunohost user list | grep username | sed "s/ username: //"); do doveadm mailbox create -u $user Junk; done
This could be easily solved with a sieve rule. This rule would be part of rspamd integration with postfix and dovecot. I'm working on it.
Did you already put work into this, @zeroheure ?
No, not yet. Lack of Time, sorry.
I'd propose the following:
/etc/dovecot/global_script/
Probably a different issue, but if a folder named junk
does not exist (used by global rules), the execution of the rest of the users rules seems not to work.
This isn't what the user would expect and couldn't debug.
What this issue is about....
Create a message in that folder warning the user not to delete the folder without changing the preconfigured rule.
Move messages with X-Spam: Yes
to that folder.
User then do see the rule and the dependency on the folder for spam in their interface. They can change the folder and the rule to their likings.
Some notes for ongoing work:
pre-ext.conf
and post-ext.conf
the option to include some more configuration/etc/dovecot/conf.d/
are ignored including 10-mail.conf
and 15-mailboxes.conf
to create automatically folders and tell dovecot of there special usage?!If the above is correct I'd propose that we let dovecot generate the folders on first login by following the examples from conf.d .
Missing parts:
adjust
done: https://github.com/YunoHost/yunohost/commit/e6e58ec2695fff37b617f67361ef218fb8d70c94antispam_spam
& antispam_trash
for rspamd integration
change global sieve script into a user sieve script that is copied on user creation (hook)
Fresh new install (3.6.4.6), executed the install.yunohost.org , the postinstall, configured the DNS in provider as expected, letsencrypt, etc. - I did not touch anything manually.
Everything is fine, but when I configure an email account in thunderbird spam mailbox is not created (which is essential to train spam).
Compared to another handmade email instance, yunohost instance is ignoring the content of
/etc/doveconf/conf.d/15-mailboxes.conf
, check doveconf command in handmade instance [1] and yunohost instance [2][1] handmade instance
[2] yunohost instance