Sieve Auth failing (ignore previous message please)
Hi folks. I'm VERY new to Dovecot and Sieve. But I'm having an issue that I need help with. For some reason my sieve daemon won't allow people to log on. I have dovecot set to read information from a MySQL table, and that works fine. I can login to dovecot's imap server just fine. But I have SOGo for the webmail and it won't login to the sieve daemon. Here's what I see in the log files when I, for example, try to save my preferences in SOGo:
==> info.log <== Apr 28 00:33:14 lmtp(5938): Info: Connect from 127.0.0.1
==> /var/log/sogo/sogod.log <==
Apr 28 00:33:14 sogod [24168]: <0x0x557cfa9083c0[SOGoSieveManager]>
failure. Attempting with a renewed password (no authname supported)
Apr 28 00:33:14 sogod [24168]: <0x0x557cfa9083c0[SOGoSieveManager]>
Could not login 'dan@newideatest.site' on Sieve server:
<0x0x557cfaa03a70[NGSieveClient]:
socket=
==> info.log <== Apr 28 00:33:14 lmtp(5938): Info: Disconnect from 127.0.0.1: Remote closed connection unexpectedly (state=READY)
==> /var/log/sogo/sogod.log <== Apr 28 00:33:14 sogod [24168]: 2600:387:8:7::70 "POST /SOGo/so/dan@newideatest.site/Preferences/save HTTP/1.1" 503 46/3676 0.024 - - 0 - 17
I've read a lot of pages about getting sieve running, but they show things I don't get. For example, from https://rtcamp.com/tutorials/mail/server/sieve-filtering/ I see that telnet localhost 4190 should give this:
Escape character is '^]'. *"IMPLEMENTATION" "Dovecot Pigeonhole" "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" *"NOTIFY" "mailto" "SASL" "PLAIN LOGIN" "STARTTLS" "VERSION" "1.0" OK "Dovecot ready."
But I don't see any of that. Escape character is '^]'. 220 jupiter.newideatest.site Dovecot ready.
I've gotten to the point where I'm pulling my hair out. I don't understand dovecot well enough to even begin to guess what's going on. So I could REALLY use some pointers.
Thanks all!
Oh, ignore the first message. For some reason my MUA will occasionally send a draft to the smtp server. I still haven't figured that one out yet.
-- Dan Egli From my Test Server
Le 4/28/21 à 7:42 AM, Dan Egli a écrit :
For some reason my sieve daemon won't allow people to log on. Dan Egli >From my Test Server
1/ Are dovecot-sieve and dovecot-managesieved installed ?
# dpkg-query -W dovecot-managesieved dovecot-sieve
2/ Is there something listening on the sieve port ?
$ lsof -i :sieve -n
3/ if not, is sieve enabled ?
/etc/dovecot/conf.d/20-lmtp.conf: mail_plugins = $mail_plugins sieve quota
You can start with these 3 points and go from there. Report back in case you still can't get it to work.
-- Yassine
Hello,
All you mention is done. I'm not using a Debian based distribution so the dpkg commands won't work for me. But I can assure you that all the packages are present. The sieve daemon is listening on 4190, and even answers the connections. But the greeting is a one line "Ready" message without anything else where as all the examples I see online are multiple lines. So it's not that the daemon' isn't running. It is. But somehow the communications are getting screwed up.
On 4/28/2021 4:15 AM, Yassine Chaouche wrote:
Le 4/28/21 à 7:42 AM, Dan Egli a écrit :
For some reason my sieve daemon won't allow people to log on. Dan Egli >From my Test Server
1/ Are dovecot-sieve and dovecot-managesieved installed ?
# dpkg-query -W dovecot-managesieved dovecot-sieve
2/ Is there something listening on the sieve port ?
$ lsof -i :sieve -n
3/ if not, is sieve enabled ?
/etc/dovecot/conf.d/20-lmtp.conf: mail_plugins = $mail_plugins sieve quota
You can start with these 3 points and go from there. Report back in case you still can't get it to work.
-- Yassine
-- Dan Egli From my Test Server
On 28/04/2021 08:42, Dan Egli wrote:
Hi folks. I'm VERY new to Dovecot and Sieve. But I'm having an issue that I need help with. For some reason my sieve daemon won't allow people to log on. I have dovecot set to read information from a MySQL table, and that works fine. I can login to dovecot's imap server just fine. But I have SOGo for the webmail and it won't login to the sieve daemon. Here's what I see in the log files when I, for example, try to save my preferences in SOGo:
==> info.log <== Apr 28 00:33:14 lmtp(5938): Info: Connect from 127.0.0.1
==> /var/log/sogo/sogod.log <== Apr 28 00:33:14 sogod [24168]: <0x0x557cfa9083c0[SOGoSieveManager]> failure. Attempting with a renewed password (no authname supported) Apr 28 00:33:14 sogod [24168]: <0x0x557cfa9083c0[SOGoSieveManager]> Could not login 'dan@newideatest.site' on Sieve server: <0x0x557cfaa03a70[NGSieveClient]: socket=
connectedTo=<0x0x557cfa837c00[NGInternetSocketAddress]: host=127.0.0.1 port=4190>>>: {RawResponse = "{}"; result = 0; } ==> info.log <== Apr 28 00:33:14 lmtp(5938): Info: Disconnect from 127.0.0.1: Remote closed connection unexpectedly (state=READY)
==> /var/log/sogo/sogod.log <== Apr 28 00:33:14 sogod [24168]: 2600:387:8:7::70 "POST /SOGo/so/dan@newideatest.site/Preferences/save HTTP/1.1" 503 46/3676 0.024 - - 0 - 17
I've read a lot of pages about getting sieve running, but they show things I don't get. For example, from https://rtcamp.com/tutorials/mail/server/sieve-filtering/ I see that telnet localhost 4190 should give this:
Escape character is '^]'. *"IMPLEMENTATION" "Dovecot Pigeonhole" "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" *"NOTIFY" "mailto" "SASL" "PLAIN LOGIN" "STARTTLS" "VERSION" "1.0" OK "Dovecot ready."
But I don't see any of that. Escape character is '^]'. 220 jupiter.newideatest.site Dovecot ready.
That is not ManageSieve. That is LMTP or Submission. Your logs tell me it is lmtp.
https://wiki.dovecot.org/Pigeonhole/ManageSieve/Configuration
I've gotten to the point where I'm pulling my hair out. I don't understand dovecot well enough to even begin to guess what's going on. So I could REALLY use some pointers.
It would help if you could show us your config (output from dovecot -n
).
Regards,
Stephan.
participants (3)
-
Dan Egli
-
Stephan Bosch
-
Yassine Chaouche