Skip to content

💬 [Question] How configure properly sieve server in .env #1763

@Dikakus

Description

@Dikakus

💬 Question

I've managed configure cypht to connect to my imap server in a docker container, but I can't find a way to configure the sieve manager. This is my .env cofiguration:

IMAP_AUTH_NAME=MyServer
IMAP_AUTH_SERVER=myserverip
IMAP_AUTH_PORT=993
IMAP_AUTH_TLS=true
IMAP_AUTH_SIEVE_CONF_HOST=myserverip
IMAP_AUTH_SIEVE_TLS_MODE=true

When I try to set up a sieve filter I can see in the dovecot log a couple of lines like these:

oct 27 12:48:08 raspberry-pi-4 dovecot[1822922]: managesieve-login: Authenticate PLAIN failed: Cleartext authentication disallowed on non-secure (SSL/TLS) connections.: user=<>, method=PLAIN, rip=xx.xx.xx.xx, lip=192.168.0.21, session=
oct 27 12:48:08 raspberry-pi-4 dovecot[1822922]: managesieve-login: Login aborted: Connection closed (tried to use disallowed cleartext auth, 1 attempts in 0 secs) (cleartext_auth_disabled): user=<>, method=PLAIN, rip=xx.xx.xx.xx, lip=192.168.0.21, session=

So it looks like cypth is sending a blank or null user.

I tried to maninpulate the "modules/sievefilters/hm-sieve.php" module directly on the docker container, changing the line:

$client->connect($imap_account['user'], $imap_account['pass'], $sieve_tls, "", "PLAIN");

with

$client->connect("myuser", "mypassowrd", "true", "", "PLAIN");

and then, it works and I can see the sieve filters of my server in cypht. Probably I'm misinterpreting something or misconfiguring some data. Could you give me a clue, please?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions