Re: [Dovecot] Sieve Frustrations

2008-04-10 Thread Andreas Schneider

Shawn wrote:
This isn't firing.  The .Junk folder exists under the user directories, 
but messages that have the X-Spam-Flag set are still going into INBOX.


My personal Sieve rules are firing properly (now), so I know Sieve is 
operational.  Just the global rule isn't being applied.


If it helps, I set up my server according 
http://workaround.org/articles/ispmail-etch/ - but on a Ubuntu Gutsy 
server with only a few minor deviations from that article.


My protocol lda section of dovecot.conf has this:
  log_path = /home/vmail/dovecot-deliver.log
  global_script_path = /home/vmail/globalsieverc



Have you compiled your globalsieverc with sievec?

milliways:~ # ll /etc/dovecot/sieve/
total 8
-rw-r--r-- 1 root root 137 Jan  6 13:03 global.sieve
-rw-r--r-- 1 root root 116 Jan  6 13:04 global.sievec


-- andreas

--
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] Webmail Recommendation

2008-01-10 Thread Andreas Schneider
Peter Sparkes wrote:
 Hi,
 
 I want  to install webmail. I am using Dovecot with Exim4.
 
 Recommendations requested please.

Currently the best webmailer is Horde

http://www.horde.org/

It has several components you could put together to get sieve scripting
support, calendar etc.

It is the best webmailer I've found. You give it a try.

 
 Thanks
 
 Peter Sparkes
 

-- andreas




-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] dspam integration

2007-11-19 Thread Andreas Schneider
Johannes Berg wrote:
 I see http://johannes.sipsolutions.net/Projects/dovecot-antispam and
 http://blog.cynapses.org/2007/09/13/dovecot-dspam-plugin/ solutions.
 Second git repo is not answer, first one is cloned, but I see some
 drawbacks with it.
 
 The first git repo is my source, and the second one is Andreas's but I
 think last he was working on integrating libdspam into my antispam
 plugin.
 
 Dspam backend is more native solution but libdspam using instead of
 dspam external binary looks like preffered way to integrate dspam.
 
 Not really. libdspam pretty much sucks. you're entitled to your own
 opinion :)

Before I can use libdspam I need some changes and it is possible that dpsam
will be forked soon.

A nice solution is to run dspam as daemon and configure dovecot-antispam to use

dspamc --client

I haven't configured it yet but it should work.


-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] MANAGESIEVE patch v8 for dovecot 1.0.7

2007-11-02 Thread Andreas Schneider
Stephan Bosch wrote:
 Hello dovecot users,

Hi Stephan,

 
 Have fun testing the patch. Don't hesitate to notify me when there are
 problems.

I've configured horde today and if I try to access managesieve it segfaults.

dovecot-infolog:
dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE([EMAIL PROTECTED]): Effective
uid=150, gid=12, home=/srv/mail/homes/[EMAIL PROTECTED]/
dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE([EMAIL PROTECTED]):
sieve-storage: using mail-data: maildir:/srv/mail/[EMAIL PROTECTED]/
dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE([EMAIL PROTECTED]):
sieve-storage: using active sieve script path: ~/.dovecot.sieve
dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE([EMAIL PROTECTED]):
sieve-storage: using sieve script storage directory:
/srv/mail/[EMAIL PROTECTED]//sieve
dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE([EMAIL PROTECTED]):
sieve-storage: relative path to sieve storage in active link:
/srv/mail/[EMAIL PROTECTED]//sieve/
dovecot: 2007-11-02 14:09:49 Info: MANAGESIEVE([EMAIL PROTECTED]): Disconnected

messages:
Nov  2 14:09:49 milliways kernel: managesieve-log[24857]: segfault at
 rip  rsp 7fffaf9e6398 error 14

How can I help to debug it?


-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] MANAGESIEVE patch v8 for dovecot 1.0.7

2007-11-02 Thread Andreas Schneider
Marcus Rueckert wrote:
 hi,
 
 i just prepared a testcase rpm for it.
 
 how do you enable ssl/tls support?
 how do you make sure that only ssl/tls is used for non secure sockets?
 (same policy as the dovecot imap config)

As it is a protocol like imap and pop3 in dovecot and works the same way it
uses the settings form dovecot.conf.

-- andreas

 
 
 darix
 

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] thunderbird and email duplication

2007-10-17 Thread Andreas Schneider
Alexander Banthien wrote:
 Hi all,
 
 I have recently switched over to Dovecot from CourierIMAP trying for
 some speedup, which I did get. Installation went OK, so all seemed fine.
 
 But suddenly I realised, that incoming emails are replicating
 themselves. This seems only to happen when connected with Thunderbird. I
 am also using Squirrelmail and KMail as clients which don't seem to show
 the behaviour.
 It seems to happen only for mails received during a Thunderbird session.
 When I close TBird and reopen it, only newly received messages will show
 the funny behaviour.
 The emails are real file copies in the Maildir, I have checked that.
 
 Running Dovecot on Debian Etch: dovecot --version: 1.0.0 (this is Debian
 package 1:1.0.0-1~bpo.1 from backports. I have tried the main package
 from Debian aswell, same result) with qmail delivering the mails to a
 Maildir without Dovecot's LDA.
 Clients:
 Thunderbird 2.0.0.6 on WinXP over Wireless LAN (tried
 Thunderbird/Iceweasel on Debian aswell)
 Squirrelmail and KMail (both running on the same box as Dovecot) don't
 show that behaviour.
 
 Has anybody seen anything similar or have any advice on what to look
 for? I would like to stick with Dovecot but the way it is looking now, I
 find working with emails near impossible.

Hi,

I had the same issue. Take a look at the logs of the smtp server. It was
delivered again and again by my postfix. I don't know if this is related to
dovecot and Thunderbird. But this was my first thought too.

 
 Thanks in advance,
 
 Alexander
 

-- andreas


-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] dovecot cloning mails?

2007-10-06 Thread Andreas Schneider
Timo Sirainen wrote:
 On Tue, 2007-10-02 at 00:41 +0200, Andreas Schneider wrote:
 Hi,

 I have a strange issue here. I have a large message of a svn commit and the
 message is cloning itself more and more. I've deleted it several time
 completely but it doesn't go away.
 
 Find the duplicated message files in maildir and check their hard link
 count.
 
 If hard link count is more than one, it's most likely your IMAP client
 that's doing the duplication by COPYing the message. You can verify this
 with e.g. rawlog.
 
 If hard link count is 1, then the message is probably being redelivered
 for some reason. Check the received headers to see if they're different.
 

Hello,

the problem was postfix. The message was always delivered by the local postfix.

Thanks for the hints.

-- andreas


Re: [Dovecot] new antispam plugin

2007-10-02 Thread Andreas Schneider
Johannes Berg wrote:
 Hi,

Hello,

 If you're building against libdspam you can't define -DHAVE_CONFIG_H or dspam
 will look for its own dpsam config.h.

 Hah. Hmm we can do some makefile tricks to only define that for
 antispam-plugin.c rather than the backends.

This would be a workaround but not really nice. What about reading the output
of dovecot --version and adding it.

I've updated the plugin it should work now. The problem is that it always
fails for me. It makes no difference if I use the dpsam-exec or dspam-library
backend. It looks like call_dspam() is never called.

It reports Failed to call dspam. I've added a debug message at the beginning
of call_dspam() and it gets never displayed.


 johannes

-- andreas


-- 
http://www.cynapses.org/ - cybernetic synapses

diff --git a/Makefile b/Makefile
index 5f1e362..dca50d0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 -include .config
 
 # includes/flags we need for building a dovecot plugin
-CFLAGS += -DHAVE_CONFIG_H
+CFLAGS += $(DOVECOT_CFLAGS)
 CFLAGS += -I$(DOVECOT)/
 CFLAGS += -I$(DOVECOT)/src/
 CFLAGS += -I$(DOVECOT)/src/lib/
@@ -44,6 +44,12 @@ endif
 ifeq ($(BACKEND), dspam-exec)
 objs += signature.o
 endif
+ifeq ($(BACKEND), dspam-library)
+CFLAGS += -I$(DSPAM)/
+CFLAGS += -DLOGDIR=$(DSPAM_LOGDIR) -DCONFIG_DEFAULT=$(DSPAM_CONFIG)
+LDFLAGS += -ldspam
+objs += signature.o
+endif
 ifeq ($(BACKEND), signature-log)
 objs += signature.o
 endif
diff --git a/README b/README
index 328ef0f..a0a73ea 100644
--- a/README
+++ b/README
@@ -69,6 +69,10 @@ BACKENDS
  (2) when many users retrain many messages at once server load may
  spike
 
+dspam library backend (dspam specific)
+
+This backend instantly retrains by calling dspam trough libdspam.
+
 email sender backend (spam filter agnostic)
 
 This backend sends mail to [EMAIL PROTECTED] or [EMAIL PROTECTED]
@@ -127,6 +131,13 @@ CONFIGURATION
 # antispam_dspam_args = --user;%u  # % expansion done by dovecot
 # antispam_dspam_args = --mode=teft
 
+#===
+# dspam-library plugin
+
+# dspam home
+# The data directory of dspam
+antispam_dspam_home = /var/lib/dspam
+
 #=
 # mail sending plugin
 
diff --git a/antispam-plugin.c b/antispam-plugin.c
index ea7e426..876e5c9 100644
--- a/antispam-plugin.c
+++ b/antispam-plugin.c
@@ -139,4 +139,6 @@ void antispam_plugin_deinit(void)
 }
 
 /* put dovecot version we built against into plugin for checking */
-const char *antispam_plugin_version = PACKAGE_VERSION;
+#ifdef HAVE_CONFIG_H
+const char *antispam_plugin_version1.0.5;
+#endif
diff --git a/defconfig b/defconfig
index 31348dd..42e3f4b 100644
--- a/defconfig
+++ b/defconfig
@@ -17,18 +17,30 @@
 # point DOVECOT= to the installed headers too.
 DOVECOT=../dovecot-1.0.5
 #DOVECOT=../dovecot-1.1
+
+# Buliding in source
+DOVECOT_CFLAGS=-DHAVE_CONFIG_H
+
 #DOVECOT=/usr/include/dovecot
+# Buliding out of source
+#DOVECOT_CFLAGS=-DUOFF_T_LONG -DHAVE_SOCKLEN_T -DHAVE_STRUCT_IOVEC
 
 # Dovecot version to build against
 DOVECOT_VERSION=1.0
 #DOVECOT_VERSION=1.1	# CURRENTLY BROKEN
 
+# DSPAM header directory
+#DSPAM=/usr/include/dspam
+#DSPAM_LOGDIR=/var/log/dspam
+#DSPAM_CONFIG=/etc/dspam.conf
+
 # backend
 #  dspam-exec		- direct dspam training by calling dspam executable
 #  signature-log	- signature logging using dovecot's dict API
 #  mailtrain		- send mail to special addresses for training
 #  crm114-exec		- direct crm114 training by calling mailreaver.crm
 #BACKEND=dspam-exec
+#BACKEND=dspam-library
 #BACKEND=signature-log
 #BACKEND=mailtrain
 #BACKEND=crm114-exec
diff --git a/dspam-library.c b/dspam-library.c
new file mode 100644
index 000..b942532
--- /dev/null
+++ b/dspam-library.c
@@ -0,0 +1,146 @@
+/*
+ * dspam backend for dovecot antispam plugin
+ *
+ * Copyright (C) 2004-2007  Johannes Berg [EMAIL PROTECTED]
+ *2006  Frank Cusack
+ *2007  Andreas Schneider [EMAIL PROTECTED]
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ */
+
+#include stdlib.h
+#include libdspam.h
+
+#include lib.h
+#include mail-storage-private.h
+
+#include antispam-plugin.h
+#include signature.h
+
+static const char *dspam_home = /var/lib/dspam;
+
+static int call_dspam(const char *signature, enum classification wanted

Re: [Dovecot] new antispam plugin

2007-10-02 Thread Andreas Schneider
Johannes Berg wrote:
 
 Weird. I'll take a look. crm114-exec definitely works, might be worth
 comparing. I'm out starting immediately until tomorrow night, will take
 a look then.

dspam-exec doesn't work too.

 
 johannes

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] new antispam plugin

2007-10-01 Thread Andreas Schneider
Johannes Berg wrote:
 I just implemented a new feature with which you can easily implement
 pristine training or such:
 
 http://git.sipsolutions.net/?p=dovecot-antispam.git;a=commitdiff;h=4ee8b72dab4a5bc0309a956942ee2dc9d2f7258f

Hi Johannes,

I've just implemented the dspam library backend. I've found some problems.

PACKAGE_VERSION is only defined if you're building in the dovecot source tree.
It is set in the config.h file.

If you're building against libdspam you can't define -DHAVE_CONFIG_H or dspam
will look for its own dpsam config.h.

I haven't tested the plugin yet, cause I'm traveling atm and on this wifi I
can't connect to our VPN enviroment to access my workstation to compile it
with the right system.

 
 johannes

Best regards,


-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses

diff --git a/Makefile b/Makefile
index 5f1e362..dca50d0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 -include .config
 
 # includes/flags we need for building a dovecot plugin
-CFLAGS += -DHAVE_CONFIG_H
+CFLAGS += $(DOVECOT_CFLAGS)
 CFLAGS += -I$(DOVECOT)/
 CFLAGS += -I$(DOVECOT)/src/
 CFLAGS += -I$(DOVECOT)/src/lib/
@@ -44,6 +44,12 @@ endif
 ifeq ($(BACKEND), dspam-exec)
 objs += signature.o
 endif
+ifeq ($(BACKEND), dspam-library)
+CFLAGS += -I$(DSPAM)/
+CFLAGS += -DLOGDIR=$(DSPAM_LOGDIR) -DCONFIG_DEFAULT=$(DSPAM_CONFIG)
+LDFLAGS += -ldspam
+objs += signature.o
+endif
 ifeq ($(BACKEND), signature-log)
 objs += signature.o
 endif
diff --git a/README b/README
index 328ef0f..a0a73ea 100644
--- a/README
+++ b/README
@@ -69,6 +69,10 @@ BACKENDS
  (2) when many users retrain many messages at once server load may
  spike
 
+dspam library backend (dspam specific)
+
+This backend instantly retrains by calling dspam trough libdspam.
+
 email sender backend (spam filter agnostic)
 
 This backend sends mail to [EMAIL PROTECTED] or [EMAIL PROTECTED]
@@ -127,6 +131,13 @@ CONFIGURATION
 # antispam_dspam_args = --user;%u  # % expansion done by dovecot
 # antispam_dspam_args = --mode=teft
 
+#===
+# dspam-library plugin
+
+# dspam home
+# The data directory of dspam
+antispam_dspam_home = /var/lib/dspam
+
 #=
 # mail sending plugin
 
diff --git a/antispam-plugin.c b/antispam-plugin.c
index ea7e426..876e5c9 100644
--- a/antispam-plugin.c
+++ b/antispam-plugin.c
@@ -139,4 +139,6 @@ void antispam_plugin_deinit(void)
 }
 
 /* put dovecot version we built against into plugin for checking */
-const char *antispam_plugin_version = PACKAGE_VERSION;
+#ifdef HAVE_CONFIG_H
+const char *antispam_plugin_version1.0.5;
+#endif
diff --git a/defconfig b/defconfig
index 31348dd..42e3f4b 100644
--- a/defconfig
+++ b/defconfig
@@ -17,18 +17,30 @@
 # point DOVECOT= to the installed headers too.
 DOVECOT=../dovecot-1.0.5
 #DOVECOT=../dovecot-1.1
+
+# Buliding in source
+DOVECOT_CFLAGS=-DHAVE_CONFIG_H
+
 #DOVECOT=/usr/include/dovecot
+# Buliding out of source
+#DOVECOT_CFLAGS=-DUOFF_T_LONG -DHAVE_SOCKLEN_T -DHAVE_STRUCT_IOVEC
 
 # Dovecot version to build against
 DOVECOT_VERSION=1.0
 #DOVECOT_VERSION=1.1	# CURRENTLY BROKEN
 
+# DSPAM header directory
+#DSPAM=/usr/include/dspam
+#DSPAM_LOGDIR=/var/log/dspam
+#DSPAM_CONFIG=/etc/dspam.conf
+
 # backend
 #  dspam-exec		- direct dspam training by calling dspam executable
 #  signature-log	- signature logging using dovecot's dict API
 #  mailtrain		- send mail to special addresses for training
 #  crm114-exec		- direct crm114 training by calling mailreaver.crm
 #BACKEND=dspam-exec
+#BACKEND=dspam-library
 #BACKEND=signature-log
 #BACKEND=mailtrain
 #BACKEND=crm114-exec
diff --git a/dspam-library.c b/dspam-library.c
new file mode 100644
index 000..b942532
--- /dev/null
+++ b/dspam-library.c
@@ -0,0 +1,146 @@
+/*
+ * dspam backend for dovecot antispam plugin
+ *
+ * Copyright (C) 2004-2007  Johannes Berg [EMAIL PROTECTED]
+ *2006  Frank Cusack
+ *2007  Andreas Schneider [EMAIL PROTECTED]
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ */
+
+#include stdlib.h
+#include libdspam.h
+
+#include lib.h
+#include mail-storage-private.h
+
+#include antispam-plugin.h
+#include signature.h
+
+static const char *dspam_home = /var/lib/dspam;
+
+static int call_dspam(const char *signature

Re: [Dovecot] dovecot dspam plugin using libdspam

2007-09-15 Thread Andreas Schneider
Andreas Schneider wrote:
 
 Ok, I've added now support to set the spam folder and
 the trash folder in the dovecot configuration file.
 
 git clone git://git.cynapses.org/dovecot-dspam-plugin.git \
 dovecot-dpsam-plugin
 

Hi,

the git address has changed.

git clone git://git.cynapses.org/gladiac/dovecot-dspam-plugin.git

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] dovecot dspam plugin using libdspam

2007-09-07 Thread Andreas Schneider
Andraž 'ruskie' Levstik wrote:
 Would it be possible to specify multiple spam folders?
 
 i.e. spam, Spam, SPAM, junk, Junk, etc... ?
 
 That would be very usefull...

Yes, this would be possible, but first the current code should be tested ;)

Thanks for the suggestion.

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] dovecot dspam plugin using libdspam

2007-09-06 Thread Andreas Schneider
 We want to use signatures if it is present, if not, then we can use the
 raw message. I would suggest the code do an if on the present of the
 signature. I haven't yet looked a the code. Maybe tomorrow. (I am a bit
 behind on my schedule.)

Ok, I've added now support to set the spam folder and
the trash folder in the dovecot configuration file.

git clone git://git.cynapses.org/dovecot-dspam-plugin.git \
dovecot-dpsam-plugin

 
 Trever
 


-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] dovecot dspam plugin using libdspam

2007-08-30 Thread Andreas Schneider
Trever L. Adams wrote:
 Andreas,

Hi Trever,

 
 Please, do not take this poorly. I am simply asking questions to make
 sure this patch/plugin is a good idea in the form you suggest.
 
 I am a user of the other patch. I am wondering if this is worth it. Your
 patch, if it links against libdspam will bloat dovecot. What do we gain?
 

it will not really bloat it the libdspam is really small.

 Not every message goes through dspam (the fork, exec, etc.). It is only
 those that were classified incorrectly. I agree with many of your
 suggested changes.

Not to fork, exec is a speed improvement and I think if you have many
users using the feature at the same time you will notice it.

We read the mails, check the spam header, read the dpsam signature and
reclassify it using the signature:

-- snip --
/* Attach the signature to the context */
if (_ds_set_signature(ctx, ctx-signature, signature)) {
  syslog(LOG_ERR, _ds_set_signature failed!);
  return -1;
}

/* Call DSPAM */
if (dspam_process(ctx, NULL) != 0) {
  syslog(LOG_ERR, dspam_process failed);
  return -1;
}
-- snip --

with libdspam you can pass simply the whole message.

-- snip --
/* Call DSPAM */
if (dspam_process(ctx, message) != 0) {
  syslog(LOG_ERR, dspam_process failed);
  return -1;
}
-- snip --

 
 Additionally, most open source projects seem to use autoconf/automake.
 What do we gain by switching to cmake instead of making it work some how
 with dovecots autoconf/automake system?

I hate autofools. CMake is much easier. So it is simply easier for me.

I'm fine if *you* do the autofools part ;)

 
 Depending on your answers, I will try your patch and help you clean it up.
 

git clone git://git.cynapses.org/dovecot-dspam-plugin.git \
dovecot-dpsam-plugin

 Trever Adams
 

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


[Dovecot] dovecot dspam plugin using libdspam

2007-08-28 Thread Andreas Schneider
Hi,

I've found the dovecot dspam plugin and looked at the code. I forks and
calls the dspam binary for every mail. I didn't like this behavior, so
I've migrated it to use libdspam.

The plugin still needs more love:
* Use cmake instead of a Makefile
* Make the spam folder configurable in the dovecot.conf
* Code cleanup and more comments.

Please test. Comments and patches are welcome ;)

http://www.cynapses.org/tmp/dovecot-dspam-plugin-0.1.tar.gz


Cheers,

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


[Dovecot] MANAGESIEVE patch v7 for dovecot 1.0.3 and TLS

2007-08-27 Thread Andreas Schneider
Hi,

I allow only TLS/SSL connection to dovecot. The managesieve doesn't work
with TLS but it works without it.


[EMAIL PROTECTED]:~ gnutls-cli -p 2000 -s --insecure -V
milliways.cynapses.org
Resolving 'milliways.cynapses.org'...
Connecting to '213.239.217.124:2000'...

- Simple Client Mode:

- Received[194]: IMPLEMENTATION dovecot
SASL PLAIN
SIEVE fileinto reject envelope vacation imapflags notify subaddress
relational comparator-i;ascii-numeric regex
STARTTLS
OK Dovecot ready.
STARTTLS
- Sent: 9 bytes
- Received[33]: OK Begin TLS negotiation now.

Let me know if you need more information.

Thanks,

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] MANAGESIEVE patch v7 for dovecot 1.0.3 and TLS

2007-08-27 Thread Andreas Schneider
Stephan Bosch wrote:
 Hi Andreas,
 

Hi Stephan,

 Did you press Ctrl-D at this point? It is necessary to start the TLS
 transcation at your end using gnutls-cli. Tests using gnutls-cli were
 described earlier:
 
 http://dovecot.org/list/dovecot/2007-August/024470.html
 http://dovecot.org/list/dovecot/2007-August/024934.html
 
 I presume you are using gnutls-cli because some other client is failing
 on TLS. If you want me to help you, I need more information about your
 server setup (e.g. `dovecot -n` and logs that might be iteresting), but
 most importantly the client you are using.
 

I didn't do the CTRL+D. I can login with gnutls-ci now, but the Client I
use doesn't work. It is the sieve plugin version 0.1.4 for Thunderbird
from http://sieve.mozdev.org/.

The client authenticates with the server and then hangs forever.

It works if I disable TLS.

LOG OUTPUT:

dovecot: 2007-08-27 13:54:14 Info: managesieve-login: Login:
user=[EMAIL PROTECTED], method=PLAIN, rip=84.156.111.120,
lip=213.239.217.124, TLS
dovecot: 2007-08-27 13:54:14 Info: MANAGESIEVE([EMAIL PROTECTED]):
Effective uid=150, gid=12
dovecot: 2007-08-27 13:54:14 Info: MANAGESIEVE([EMAIL PROTECTED]): sieve
storage: Using active sieve script path:
/srv/mail/homes/[EMAIL PROTECTED]//.dovecot.sieve
dovecot: 2007-08-27 13:54:14 Info: MANAGESIEVE([EMAIL PROTECTED]): sieve
storage: Using mail-data: maildir:/srv/mail/[EMAIL PROTECTED]/
dovecot: 2007-08-27 13:54:14 Info: MANAGESIEVE([EMAIL PROTECTED]): sieve
storage: Using sieve script storage path: /srv/mail/[EMAIL PROTECTED]/
dovecot: 2007-08-27 13:54:14 Info: MANAGESIEVE([EMAIL PROTECTED]): sieve
storage: Relative path to sieve storage in active link:
/srv/mail/[EMAIL PROTECTED]/

DOVECOT CONFIGURATIION:

# 1.0.3: /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot-info.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps managesieve
listen(default): *
listen(imap): *
listen(managesieve): *:2000
ssl_cert_file: /etc/ssl/certs/milliways.pem
ssl_key_file: /etc/ssl/private/milliways.key
login_dir(default): /var/run/dovecot//login
login_dir(imap): /var/run/dovecot//login
login_dir(managesieve): login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
first_valid_uid: 150
last_valid_uid: 150
mail_extra_groups: mail
mail_location: maildir:/srv/mail/%u
mail_debug: yes
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugin_dir(default): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib64/dovecot/modules/managesieve
auth default:
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
  group: mail


 Regards,
 
 Stephan.
 

Thanks for help,

-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses




signature.asc
Description: OpenPGP digital signature