Skip to content
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

Sieve - can't make it work #1153

Open
europacafe opened this issue Aug 9, 2024 · 22 comments
Open

Sieve - can't make it work #1153

europacafe opened this issue Aug 9, 2024 · 22 comments
Assignees

Comments

@europacafe
Copy link

europacafe commented Aug 9, 2024

💬 Question

Mail server: stalwart + snappymail webmail ---> tls sieve work (mail.mydomain.com, ssl/tls, 4190)
Cypht 2.1.0 + stalwart --> tls sieve setting does not work, can't save server config

When opening a mail content, it always reports "Sieve: invalid config host for ....my mailbox name.."
cypht_sieve_invalid_config

On stalwart mail server, below is the sieve config
stalwart_sieve_tls_config

On snappymail webmail, the sieive config works
snappymail_sieve_config

On cypht env file, below is the config:
cypht_sieve_env_config

When I tried to enable sieve on one of my IMAP accounts as below, after saving the config, the screen froze for over 10 secs and came back with an offline label and it didn't save.
image
I'm not sure what I did wrong. (I enable sieve on Settings/Site/Enable sieve filter)

@josaphatim
Copy link
Member

@europacafe thank you for reporting this. What if you remove the protocol in sieve host input mail.brhofen.com:4190 ?

@europacafe
Copy link
Author

I did try that too. Not working as well.

@marclaporte
Copy link
Member

Please try Cypht master

@europacafe
Copy link
Author

How? (with docker compose)

@marclaporte
Copy link
Member

How? (with docker compose)

@jonocodes This is not yet coded, right?

@marclaporte
Copy link
Member

marclaporte commented Aug 10, 2024

Please try this: https://github.com/cypht-org/cypht/pull/1135/files (just manually modify the file)

Here is an known issue: #931

@europacafe
Copy link
Author

europacafe commented Aug 10, 2024

just manually modified it to $server = Hm_IMAP_List::get($imap_server_id, true);, restarted cypht container, rechecked the change was still there
same behavior for both tls://mail.mydomain.com:4190 and mail.mydomain.com:4190

@Shadow243
Copy link
Member

Shadow243 commented Aug 10, 2024

@europacafe have you checked that the server firewall gives access to 4190 on your server ?

you can use this command to check if sieve is enabled:

openssl s_client -connect mail.mydomain.com:4190 --starttls sieve

@europacafe
Copy link
Author

I did open 4190 port on my pfSense. Here is the test result
image

As mentioned earlier, my snappymail webmail can connect to sieve.

@jonocodes
Copy link
Contributor

Yes, I would think you could use the docker compose setup to test this.
Also check the cypht service logs to see if there are any errors.

@europacafe
Copy link
Author

Yes, I would think you could use the docker compose setup to test this. Also check the cypht service logs to see if there are any errors.

My cypht is always running as a container, and the suggested openssl test was carried out inside cypht container.

@europacafe
Copy link
Author

With docker image v2.2.0, this is still an issue

@jonocodes
Copy link
Contributor

Do we know that this works as expected when not using docker (using php locally without any container)?

@Shadow243
Copy link
Member

Do we know that this works as expected when not using docker (using php locally without any container)?

Yes we were able to connect not using docker, I'm going to try this one with the same server that worked but using docker instead.

@marclaporte
Copy link
Member

Is still an issue with Cypht 2.4.0?
https://hub.docker.com/r/cypht/cypht

@europacafe
Copy link
Author

Yes.

@Shadow243
Copy link
Member

Will be solved here #1199

@Shadow243
Copy link
Member

@europacafe please confirm on your side.

@europacafe
Copy link
Author

With cypht 2.4.0 docker container, it is still not working at all, with Stalwart mail server.

Fyi. With snappymail web client, Sieve works only with ssltls, but not starttls. They are working on the issue.

@Shadow243
Copy link
Member

With cypht 2.4.0 docker container

2.4.0 is not yet compatible; it will work with the master branch. Full compatibility will come with version 2.5.0, not 2.4.0.

@europacafe
Copy link
Author

Great. I may build it from the master and try it. Will feedback later.

@cptsanifair
Copy link

@europacafe u can try to connect with this tool https://github.com/thsmi/sieve to test the connection and sieve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants