vontainment / v-hestiacp-sieve Goto Github PK
View Code? Open in Web Editor NEWAutolearn spam and ham for Hestia CP Spamassassin
Home Page: https://vontainment.com
Autolearn spam and ham for Hestia CP Spamassassin
Home Page: https://vontainment.com
/var/log/dovecot.log:
Nov 07 12:30:48 imap: Error: /etc/dovecot/sieve/imapsieve_copy: line 11: /var/mail/imapsieve_copy/spam/[email protected]: No such file or directory
Nov 07 12:30:48 imap(info@...)<1655801><2DUoFN7snNN/AAAB>: Error: program exec:/etc/dovecot/sieve/imapsieve_copy (1655805): write(program stdin) failed: Broken pipe
Nov 07 12:30:48 imap(info@...)<1655801><2DUoFN7snNN/AAAB>: Error: sieve: failed to pipe message to program `imapsieve_copy': refer to server log for more information. [2022-11-07 12:30:48]
Nov 07 12:30:48 imap(info@...)<1655801><2DUoFN7snNN/AAAB>: Error: sieve: Execution of script /var/mail/sieve/report_spam.sieve failed
Hello,
Today I was migrating some accounts to my new hestiacp server and when I tried to delete a folder from webmail (roundcube) I got an error (Internal Error) and the folder isn't deleted.
Checking dovecot log I saw the real error:
Jul 27 19:22:08 imap([email protected])<348329><NvExNHsBGqkAAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox spam: Dict private transaction commit failed: dict-file: file_dotlock_open(/home/master/dovecot-attributes) failed: Permission denied
[email protected] is the user's mail, spam is the folder I tried to delete and /home/master/ is the home of the hestiacp user. As you can see, seems dovecot fails to create file /home/master/dovecot-attributes and after that I saw the conf in 20-spamham.conf and there was the problem, the directive mail_attribute_dict is configured to use a wrong home for the mail user (in hestiacp).
I've changed it with the right path for hestiacp mail users and it is working fine, it is copying spam and ham mails and no errors when I try to delete the folder.
Tonight or maybe tomorrow I'll send a pull request to fix this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.