-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't view/edit/enable sieve filters #671
Comments
Related for when none of the servers offer Sieve (I am not saying this is your case) |
If you supply me a test account (send me info in private), I can assign a junior dev to investigate. You can find me in here: https://app.gitter.im/#/room/#cypht-org_community:gitter.im |
I was unaware of this error but I resolved it with this pull request #675 |
Thank you for the fix. I can see the "Enable Sieve Filters" option in the Add New IMAP Server settings block. However, I added my IMAP connection via the hm3.ini file, with the imap_auth_name / imap_auth_server / imap_auth_port / imap_auth_tls options, and there is no option to edit that connection to enable the filters. It would be nice to have the ability to configure the enable sieve filters feature through the hm3.ini file as well. |
Thanks. This is the PR that fixes that: #677 |
@knightsg Please confirm all is good with latest code. Thanks! |
@josaphatim @marclaporte Thank you, the update for the ini file is working. I left a note about the config option naming being wrong in the hm3.sample.ini file in the PR but after changing it in my hm3.ini the sieve config is listed in my imap server config. However...unfortunately, I now get a totally blank page when I open the filter settings page. There is no PHP error log thrown in my FPM container console, just a generic backend server 500 error: I can connect to the sieve port from my Cypht container:
|
This is the fix for the issue #691 |
@josaphatim I've updated to the latest master code and unfortunately I'm still getting the blank filters page. The screenshots below show the servers page with the IMAP server added (from hm3.ini) with the sieve server setting configured and the second shot shows the blank filters page: https://imgur.com/iU6CBKA There's still no useful log output, just the same generic |
ok, please join us here: https://app.gitter.im/#/room/#cypht-org_community:gitter.im We need a dev with server access to debug. |
@marclaporte @josaphatim Apologies, I finally worked out the issue here. I realised php logging wasn't properly enabled in my container (only fpm) which is why I couldn't see the actual server error. I've fixed that and discovered that the issue was that I needed to install PHP sockets module. I did that and it's working now. Thanks again for your help 👍 |
Sorry guys, I have one more issue with this that may or may not be something that can be resolved from within Cypht. As I mentioned in my previous comment, I was able to get this working finally by fixing the issue on my end. However, the stack I was using to test was my local dev environment. When I tried to test the sieve filters on my production setup I found that I still get the blank filters page. After some investigation I found that it's because I have dovecot configured to use SSL on my production setup. If that's enabled, then when Cypht tries to connect to the managesieve port on the mail server it fails because it uses plain authentication by default. If I disable SSL for my production stack then it works fine. Do you have any suggestions for how I can resolve this? Thanks! |
Interesting. We'll look into it. Is SSL vs non SSL a different port? (like mail servers do for IMAP) |
No, it's the same port as far as I'm aware. I tested a basic connection to the port using telnet and this is the output for both SSL disabled and SSL enabled: SSL Disabled:
SSL Enabled:
|
ok, let's see what @josaphatim discovers |
@knightsg We need @josaphatim to have server access to debug. |
@knightsg ping :-) |
Sorry, I've been pretty busy lately and forgot to follow up. I'll try and take another look in the next couple of days and see if I still need this open.
Jun 15, 2023, 11:31 by ***@***.***:
…
@knightsg <https://github.com/knightsg>> ping :-)
—
Reply to this email directly, > view it on GitHub <#671 (comment)>> , or > unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFUUWC47SGFOJYHBTT7LI3XLNIIVANCNFSM6AAAAAAU4I7OYA>> .
You are receiving this because you were mentioned.> Message ID: > <jasonmunro/cypht/issues/671/1593544933> @> github> .> com>
|
We need you @knightsg :-) |
Ahh, sorry...I totally forgot to follow up on this (again). I have to set up my prod server again as I'm not actually using it yet (just been testing). I'll take a look at that later today and check in with you via the Element chat. |
Hi @marclaporte - not sure if you saw but I replied in the chat. |
Sorry I don't see anything in https://app.gitter.im/#/room/#cypht-org_community:gitter.im |
For the record, @knightsg @josaphatim and I are solving this in a private chat. |
@marclaporte, @knightsg for now we can pass scheme in the server address something like tls://my.server.com:4190. @kroky fixed here cypht-org/php-sieve-manager@29a9b43 |
Hi @josaphatim, I already have that configured in my hm3.ini like below:
|
Related: cypht-org/cypht-docker#27 |
Hi Marc. I took a look and replaced my existing custom docker image with the prebuilt sailfrog/cypht-docker one, but now there's no sieve option available. I took a look at the list of options on the docker image page and it doesn't list anything there related to sieve. I tried anyway to add a CYPHT_IMAP_AUTH_SIEVE_CONFIG_HOST env var with the same setting I had before but it didn't resolve the issue. On a side note, I'm note sure how to configure the prebuilt image to use SSL but I guess that's a topic for a new issue ticket. |
ok, for Docker related issues, we don't have expertise available at the moment. But we have plenty of PHP developers who are moving forward with general Cypht code |
That's fair. I'll revert back to my previous setup but update it for the new env variables and see how that goes. |
https://github.com/cypht-org/cypht/releases/tag/v2.0.0 has been released And the next version of Cypht (2.0.1) will include |
Cypht 2.x is getting quite good: Cypht 1.4.x doesn't support PHP 8.x We now have a revamped and official Docker: https://hub.docker.com/r/cypht/cypht |
Thanks for the update! I haven't had much time to spend working on my setup for a while but I've caught some of the comments in the chat and I'm keen to give the latest builds a try. |
@marclaporte Thanks for the heads up, I've come back and had a play with the latest updates and things are looking good! Seems like there's been a lot of work going on so congrats on the team effort 👍 Also, I'm happy to report that after coming back to this and setting everything up from scratch again with the new Cypht docker container I was finally able to get the
Initially I had I do have one small issue remaining however. When I try to add a filter with the action
The problem appears to be Anyway, once again thanks for continuing to follow up on my now very old thread 🙂 |
🐛 Bugreport
I enabled sieve in my imap server and also in Cypht with the modules[]=sievefilters config line. I've regenerated my config with config_gen.php but if I log into Cypht and go to the filters page, it's blank as shown below:
I've checked the imap servers settings page and there is no option to enable sieve filters:
In the cypht log there is the following when I access the imap server settings page:
My imap server (docker-mailserver with Dovecot) has managesieve enabled and port 4190 exposed to the container running Cypht.
Here is the modules section of my hm3.ini file:
Version & Environment
Rev: 0760506
OS: Docker v23.0.0 running on Ubuntu 22.04.1 host, Cypht container running docker image php:8.2.2-fpm-alpine3.17
Steps to reproduce
The text was updated successfully, but these errors were encountered: