Error activating Sieve

I get the following error when I try to activate sieve from the SnappyMail admin panel:

stream_socket_client(): Unable to connect to tcp://localhost:4190 (Connection refused)

This port is allowed by the firewall, but I don’t know why this is happening and I need to set up filters to redirect spam to the spam folder.

When you run “netstat -tunlp | grep :4190” , what is the output? The output should resemble step 3 in the instructions for setting up sieve found here: Filtering Spam in RainLoop, AutoReply and Email Filters with Sieve

nothing happens
Screenshot 2025-04-02 133847

Since it’s not returning anything, that tells me your server does not have any services listening on that port. I would go through the steps in the page I referenced earlier to ensure you have everything configured properly if it’s applicable to your setup environment.

I did it! I forgot to add the following line:

protocols = imap pop3 lmtp sieve

Now it’s working, I’ll continue configuring.

Awesome! Glad you figured it out!

Only now has a new error occurred. When I go to filter to add the script. An error appears:

ERROR 352

Do you know how to solve it?

I’m afraid I’m not familiar with that error. A search revealed the following post on GitHub: Error 352 when getting Filters · Issue #1455 · the-djmaze/snappymail · GitHub

Not sure if it will help you or not.

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.