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 at newideatest.site' on Sieve server: <0x0x557cfaa03a70[NGSieveClient]: socket=<NGActiveSocket[0x0x557cfa89d540]: mode=rw address=<0x0x557cfa89d5d0[NGInternetSocketAddress]: host=localhost port=45456> 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 at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20210428/300027a3/attachment.html>
Yassine Chaouche
2021-Apr-28 10:15 UTC
Sieve Auth failing (ignore previous message please)
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 Server1/ 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
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 at newideatest.site' on Sieve server: > <0x0x557cfaa03a70[NGSieveClient]: > socket=<NGActiveSocket[0x0x557cfa89d540]: mode=rw > address=<0x0x557cfa89d5d0[NGInternetSocketAddress]: host=localhost > port=45456> 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 at 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.