Re: [Dovecot] How do I use plus-addressing in Dovecot 1.1.x?
On Sun, 2008-11-02 at 13:33 -0700, Jon Fullmer wrote: As best as I can tell, the answer seems to lie in namespaces as a feature added in Dovecot 1.1.0. The problem is that I don't understand how I could use them to resolve this situation. I've read the documentation. I've looked at as many example configurations as I could find. Instead of: deliver -m ${extension} Use: deliver -m INBOX.${extension} signature.asc Description: This is a digitally signed message part
Re: [Dovecot] v1.1.6 released
On Tue, 2008-11-04 at 10:13 +0100, Cor Bosman wrote: If there were no error messages logged with 1.1.5, there's nothing I can think of that could explain it. Im not sure when this started, but im seeing very high CPU use in dovecot. I recently swapped our systems to Linux from FreeBSD, and ive also moved versions up a few (now on 1.1.6). Here's an idea of what im seeing: PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 28554 xxx 20 0 11108 1452 1136 R 17 0.0 0:00.76 imap 28542 xxx 20 0 11004 1456 1120 R 16 0.0 0:00.86 imap Checking what the processes do would be helpful. Both strace (strace -p pid) and a couple of gdb backtraces (gdb -p pid, bt). signature.asc Description: This is a digitally signed message part
Re: [Dovecot] problem with i_stream_next_line()
Ok. I've made a new patch in the subscription-file.c to fix my problem. Attached... thank you 2008/11/4 Timo Sirainen [EMAIL PROTECTED] It's not a good idea to change the code that way. For example dovecot-uidlist reading relies on i_stream_next_line() not returning a partially written. That's why the API description also says: /* Gets the next line from stream and returns it, or NULL if more data is needed to make a full line. Note that if the stream ends with LF not being the last character, this function doesn't return the last line. */ char *i_stream_next_line(struct istream *stream); I'd think the easiest way would be for you to just add the missing LFs to the subscription files. Or alternatively change the subscription file reading code to also include the last line (with i_stream_get_data() after i_stream_next_line() has returned NULL). On Nov 4, 2008, at 10:36 PM, Giorgenes Gelatti wrote: I did the patch below and it worked for me. diff --git a/dovecot/src/lib/istream.c b/dovecot/src/lib/istream.c index 4b218b9..b195b4f 100644 --- a/dovecot/src/lib/istream.c +++ b/dovecot/src/lib/istream.c @@ -245,6 +245,10 @@ char *i_stream_next_line(struct istream *stream) } } + if(ret_buf == NULL i == _stream-pos) { + ret_buf = i_stream_next_line_finish(_stream, i); + } + return ret_buf; 2008/11/4 Giorgenes Gelatti [EMAIL PROTECTED] Hello there, I have a subscriptions file that is *not* ended with a line break (created by another system). When I do a lsub * the last mailbox name is not listed. Debugging a little showed that it looks like i_stream_next_line() is not returning the last line if it doesn't end with a line break. Is this a bug? btw, i'm using version 1.1.6. []'s diff --git a/dovecot/src/lib-storage/list/subscription-file.c b/dovecot/src/lib-storage/list/subscription-file.c index dc03a29..912bd23 100644 --- a/dovecot/src/lib-storage/list/subscription-file.c +++ b/dovecot/src/lib-storage/list/subscription-file.c @@ -57,14 +57,22 @@ static const char *next_line(struct mailbox_list *list, const char *path, bool ignore_estale) { const char *line; + ssize_t ret; *failed_r = FALSE; if (input == NULL) return NULL; while ((line = i_stream_next_line(input)) == NULL) { -switch (i_stream_read(input)) { + ret = i_stream_read(input); +switch (ret) { case -1: + if(i_stream_have_bytes_left(input)) { +size_t size; +line = i_stream_get_data(input, size); +i_stream_skip(input, size); +if(line size 0) break; + } if (input-stream_errno != 0 (input-stream_errno != ESTALE || !ignore_estale)) { subswrite_set_syscall_error(list, @@ -81,6 +89,7 @@ static const char *next_line(struct mailbox_list *list, const char *path, *failed_r = TRUE; return NULL; } + if(line) break; } return line;
Re: [Dovecot] How do I use plus-addressing in Dovecot 1.1.x?
On 11/5/2008 7:11 AM, Timo Sirainen wrote: On Sun, 2008-11-02 at 13:33 -0700, Jon Fullmer wrote: As best as I can tell, the answer seems to lie in namespaces as a feature added in Dovecot 1.1.0. The problem is that I don't understand how I could use them to resolve this situation. I've read the documentation. I've looked at as many example configurations as I could find. Instead of: deliver -m ${extension} Use: deliver -m INBOX.${extension} Hmm.. so what was the reason this changed from 1.0.x? -- Best regards, Charles
Re: [Dovecot] mUTF-7 vs UTF-8 in mailbox names
On 01.11.2008 23:32, Timo Sirainen wrote: Also I'm wondering if in the future the mailbox names in filesystem should be converted to UTF-8. Probably not anytime soon though.. IMHO using UTF-8 for file names is bad idea. -- WBR, Anton Yuzhaninov
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
On Wed, 2008-11-05 at 10:03 -0500, Rob Klingsten wrote: Hi folks - I am configuring a new system and the antispam plugin is the last piece I need, everything else is working. Thanks to Johannes for this plugin, it's exactly what I want and an elegant solution for filter training. But I've been trying everything I can think of for the last 3 days to get this to work, no success. I've got: Postfix 2.5.3, dspam 3.8.0, Dovecot 1.1.6, Maildrop 2.0.4 and dovecot-antispam 1.0 tarball. I've built dspam from source with --disable-trusted-user-security to try and isolate the source of the plugin problem, which is the message at the IMAP client Failed to call dspam. Here's what I've got configured for the plugin: hmm. I wonder if there's a bug in debugv(), can you comment that call out in dspam-exec.c? johannes signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
Johannes Berg wrote: On Wed, 2008-11-05 at 10:03 -0500, Rob Klingsten wrote: Hi folks - I am configuring a new system and the antispam plugin is the last piece I need, everything else is working. Thanks to Johannes for this plugin, it's exactly what I want and an elegant solution for filter training. But I've been trying everything I can think of for the last 3 days to get this to work, no success. I've got: Postfix 2.5.3, dspam 3.8.0, Dovecot 1.1.6, Maildrop 2.0.4 and dovecot-antispam 1.0 tarball. I've built dspam from source with --disable-trusted-user-security to try and isolate the source of the plugin problem, which is the message at the IMAP client Failed to call dspam. Here's what I've got configured for the plugin: hmm. I wonder if there's a bug in debugv(), can you comment that call out in dspam-exec.c? johannes Aha, that's getting closer ... I still got the 'Failed to call dspam' message, but dspam now seems to be called: . . Nov 5 10:11:01 venus imap: antispam: Spam is spam folder Nov 5 10:11:01 venus imap: antispam: no unsure folders Nov 5 10:11:01 venus imap: antispam: dspam binary set to /usr/local/bin/dspam Nov 5 10:11:01 venus imap: antispam: dspam extra arg --user [EMAIL PROTECTED] Nov 5 10:11:01 venus dovecot: IMAP([EMAIL PROTECTED]): maildir: data=/var/mail/janeandrob.org/rob Nov 5 10:11:01 venus dovecot: IMAP([EMAIL PROTECTED]): maildir++: root=/var/mail/.org/rob, index=, control=, inbox=/var/mail/.org/rob Nov 5 10:11:01 venus imap: antispam: signature header line is X-DSPAM-Signature Nov 5 10:11:05 venus imap: antispam: mailbox_is_unsure(Spam): 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_trash(INBOX): 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_trash(Spam): 0 Nov 5 10:11:05 venus imap: antispam: mail copy: from trash: 0, to trash: 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_spam(INBOX): 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_spam(Spam): 1 Nov 5 10:11:05 venus imap: antispam: mailbox_is_unsure(INBOX): 0 Nov 5 10:11:05 venus imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Nov 5 10:11:05 venus dspam[834]: Unable to determine the destination user Nov 5 10:11:05 venus dspam[834]: DSPAM agent misconfigured: aborting So now what happened to the arguments to dspam? Thanks very much for the help! Rob Klingsten smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
On Wed, 2008-11-05 at 10:03 -0500, Rob Klingsten wrote: Hi folks - I am configuring a new system and the antispam plugin is the last piece I need, everything else is working. Thanks to Johannes for this plugin, it's exactly what I want and an elegant solution for filter training. But I've been trying everything I can think of for the last 3 days to get this to work, no success. I've got: Postfix 2.5.3, dspam 3.8.0, Dovecot 1.1.6, Maildrop 2.0.4 and dovecot-antispam 1.0 tarball. I've built dspam from source with --disable-trusted-user-security to try and isolate the source of the plugin problem, which is the message at the IMAP client Failed to call dspam. Here's what I've got configured for the plugin: antispam_signature = X-DSPAM-Signature antispam_trash = trash;Trash;Deleted Items;Deleted Messages antispam_spam = SPAM;Spam antispam_dspam_binary = /usr/local/bin/dspam antispam_dspam_args = --user %u Does adding a semicolon help? antispam_dspam_args = --user;%u And here's what happens: Nov 5 09:31:29 venus imap: antispam: plugin initialising (1.0-notgit) Nov 5 09:31:29 venus imap: antispam: trash is trash folder Nov 5 09:31:29 venus imap: antispam: Trash is trash folder Nov 5 09:31:29 venus imap: antispam: Deleted Items is trash folder Nov 5 09:31:29 venus imap: antispam: Deleted Messages is trash folder Nov 5 09:31:29 venus imap: antispam: SPAM is spam folder Nov 5 09:31:29 venus imap: antispam: Spam is spam folder Nov 5 09:31:29 venus imap: antispam: no unsure folders Nov 5 09:31:29 venus imap: antispam: dspam binary set to /usr/local/bin/dspam Nov 5 09:31:29 venus imap: antispam: dspam extra arg --user dump-capability Nov 5 09:31:29 venus imap: antispam: signature header line is X-DSPAM-Signature Nov 5 09:31:29 venus dovecot: Dovecot v1.1.6 starting up Nov 5 09:31:29 venus dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (postfix) Nov 5 09:31:30 venus dovecot: auth(default): new auth connection: pid=686 Nov 5 09:31:30 venus dovecot: auth(default): new auth connection: pid=687 Nov 5 09:31:30 venus dovecot: auth(default): new auth connection: pid=688 Nov 5 09:32:45 venus dovecot: auth(default): client in: AUTH 1 PLAIN service=imaplip= rip= lport=143 rport=55904 Nov 5 09:32:45 venus dovecot: auth(default): client out: CONT 1 Nov 5 09:32:45 venus dovecot: auth(default): client in: CONThidden Nov 5 09:32:45 venus dovecot: auth-worker(default): sql([EMAIL PROTECTED],): query: SELECT password, email AS user FROM users WHERE email = '[EMAIL PROTECTED]'; Nov 5 09:32:45 venus dovecot: auth(default): client out: OK1 [EMAIL PROTECTED] Nov 5 09:32:45 venus dovecot: auth(default): master in: REQUEST 1 688 1 Nov 5 09:32:45 venus dovecot: auth(default): master out: USER 1 [EMAIL PROTECTED] uid=5000gid=5000 home=/var/mail/.org/rob Nov 5 09:32:45 venus dovecot: imap-login: Login: user=[EMAIL PROTECTED], method=PLAIN, rip=, lip= Nov 5 09:32:45 venus dovecot: auth(default): new auth connection: pid=688 Nov 5 09:32:45 venus dovecot: IMAP([EMAIL PROTECTED]): Loading modules from directory: /usr/lib/dovecot/imap Nov 5 09:32:45 venus dovecot: IMAP([EMAIL PROTECTED]): Module loaded: /usr/lib/dovecot/imap/lib90_antispam_plugin.so Nov 5 09:32:45 venus dovecot: IMAP([EMAIL PROTECTED]): Effective uid=5000, gid=5000, home=/var/mail/.org/rob Nov 5 09:32:45 venus imap: antispam: plugin initialising (1.0-notgit) Nov 5 09:32:45 venus imap: antispam: trash is trash folder Nov 5 09:32:45 venus imap: antispam: Trash is trash folder Nov 5 09:32:45 venus imap: antispam: Deleted Items is trash folder Nov 5 09:32:45 venus imap: antispam: Deleted Messages is trash folder Nov 5 09:32:45 venus imap: antispam: SPAM is spam folder Nov 5 09:32:45 venus imap: antispam: Spam is spam folder Nov 5 09:32:45 venus imap: antispam: no unsure folders Nov 5 09:32:45 venus imap: antispam: dspam binary set to /usr/local/bin/dspam Nov 5 09:32:45 venus imap: antispam: dspam extra arg --user [EMAIL PROTECTED] Nov 5 09:32:45 venus dovecot: IMAP([EMAIL PROTECTED]): maildir: data=/var/mail/.org/rob Nov 5 09:32:45 venus dovecot: IMAP([EMAIL PROTECTED]): maildir++: root=/var/mail/.org/rob, index=, control=, inbox=/var/mail/.org/rob Nov 5 09:32:45 venus imap: antispam: signature header line is X-DSPAM-Signature Nov 5 09:32:45 venus imap: antispam: mailbox_is_unsure(Spam): 0 Nov 5 09:32:45 venus imap: antispam: mailbox_is_trash(INBOX): 0 Nov 5 09:32:45 venus imap: antispam: mailbox_is_trash(Spam): 0 Nov 5 09:32:45 venus imap: antispam: mail copy: from trash: 0, to trash: 0 Nov 5 09:32:45 venus imap: antispam: mailbox_is_spam(INBOX): 0 Nov 5 09:32:45 venus imap: antispam: mailbox_is_spam(Spam): 1 Nov 5 09:32:45 venus imap: antispam: mailbox_is_unsure(INBOX): 0 Nov 5 09:32:45 venus imap: antispam: mail
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
Johannes Berg wrote: On Wed, 2008-11-05 at 10:03 -0500, Rob Klingsten wrote: Hi folks - I am configuring a new system and the antispam plugin is the last piece I need, everything else is working. Thanks to Johannes for this plugin, it's exactly what I want and an elegant solution for filter training. But I've been trying everything I can think of for the last 3 days to get this to work, no success. I've got: Postfix 2.5.3, dspam 3.8.0, Dovecot 1.1.6, Maildrop 2.0.4 and dovecot-antispam 1.0 tarball. I've built dspam from source with --disable-trusted-user-security to try and isolate the source of the plugin problem, which is the message at the IMAP client Failed to call dspam. Here's what I've got configured for the plugin: hmm. I wonder if there's a bug in debugv(), can you comment that call out in dspam-exec.c? johannes Aha, that's getting closer ... I still got the 'Failed to call dspam' message, but dspam now seems to be called: . . Nov 5 10:11:01 venus imap: antispam: Spam is spam folder Nov 5 10:11:01 venus imap: antispam: no unsure folders Nov 5 10:11:01 venus imap: antispam: dspam binary set to /usr/local/bin/dspam Nov 5 10:11:01 venus imap: antispam: dspam extra arg --user [EMAIL PROTECTED] Nov 5 10:11:01 venus dovecot: IMAP([EMAIL PROTECTED]): maildir: data=/var/mail/janeandrob.org/rob Nov 5 10:11:01 venus dovecot: IMAP([EMAIL PROTECTED]): maildir++: root=/var/mail/.org/rob, index=, control=, inbox=/var/mail/.org/rob Nov 5 10:11:01 venus imap: antispam: signature header line is X-DSPAM-Signature Nov 5 10:11:05 venus imap: antispam: mailbox_is_unsure(Spam): 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_trash(INBOX): 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_trash(Spam): 0 Nov 5 10:11:05 venus imap: antispam: mail copy: from trash: 0, to trash: 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_spam(INBOX): 0 Nov 5 10:11:05 venus imap: antispam: mailbox_is_spam(Spam): 1 Nov 5 10:11:05 venus imap: antispam: mailbox_is_unsure(INBOX): 0 Nov 5 10:11:05 venus imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Nov 5 10:11:05 venus dspam[834]: Unable to determine the destination user Nov 5 10:11:05 venus dspam[834]: DSPAM agent misconfigured: aborting So now what happened to the arguments to dspam? Thanks very much for the help! Ok, I got it, it works! The primary solution was to comment out debugv() in dspam-exec.c ... Then, as suggested I put back in the semicolon in my extra arguments to dspam and bingo! Thanks very much to Johannes and Thorsten V. for the suggestions and speedy solution! Rob Klingsten smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
On Wed, 2008-11-05 at 10:25 -0500, Rob Klingsten wrote: hmm. I wonder if there's a bug in debugv(), can you comment that call out in dspam-exec.c? johannes Aha, that's getting closer ... I still got the 'Failed to call dspam' message, but dspam now seems to be called: Nov 5 10:11:05 venus dspam[834]: DSPAM agent misconfigured: aborting So now what happened to the arguments to dspam? Thanks very much for the help! Ok, I got it, it works! The primary solution was to comment out debugv() in dspam-exec.c ... Then, as suggested I put back in the semicolon in my extra arguments to dspam and bingo! :) I just committed a fix to debugv(), can you try that? If you downloaded the tarball, get this one: http://git.sipsolutions.net/?p=dovecot-antispam.git;a=snapshot;h=HEAD;sf=tgz If you can confirm that works I'll make a new release. johannes signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
On Wed, 2008-11-05 at 10:25 -0500, Rob Klingsten wrote: hmm. I wonder if there's a bug in debugv(), can you comment that call out in dspam-exec.c? johannes Aha, that's getting closer ... I still got the 'Failed to call dspam' message, but dspam now seems to be called: Nov 5 10:11:05 venus dspam[834]: DSPAM agent misconfigured: aborting So now what happened to the arguments to dspam? Thanks very much for the help! Ok, I got it, it works! The primary solution was to comment out debugv() in dspam-exec.c ... Then, as suggested I put back in the semicolon in my extra arguments to dspam and bingo! :) I just committed a fix to debugv(), can you try that? If you downloaded the tarball, get this one: http://git.sipsolutions.net/?p=dovecot-antispam.git;a=snapshot;h=HEAD;sf=tgz If you can confirm that works I'll make a new release. johannes The fixed version works perfectly, thank you very much! Rob K smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
On Wed, 2008-11-05 at 10:44 -0500, Rob Klingsten wrote: On Wed, 2008-11-05 at 10:25 -0500, Rob Klingsten wrote: hmm. I wonder if there's a bug in debugv(), can you comment that call out in dspam-exec.c? johannes Aha, that's getting closer ... I still got the 'Failed to call dspam' message, but dspam now seems to be called: Nov 5 10:11:05 venus dspam[834]: DSPAM agent misconfigured: aborting So now what happened to the arguments to dspam? Thanks very much for the help! Ok, I got it, it works! The primary solution was to comment out debugv() in dspam-exec.c ... Then, as suggested I put back in the semicolon in my extra arguments to dspam and bingo! :) I just committed a fix to debugv(), can you try that? If you downloaded the tarball, get this one: http://git.sipsolutions.net/?p=dovecot-antispam.git;a=snapshot;h=HEAD;sf=tgz If you can confirm that works I'll make a new release. johannes The fixed version works perfectly, thank you very much! And it prints the full command line to the syslog, I assume? Thanks for testing! johannes signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
I just committed a fix to debugv(), can you try that? If you downloaded the tarball, get this one: http://git.sipsolutions.net/?p=dovecot-antispam.git;a=snapshot;h=HEAD;sf=tgz If you can confirm that works I'll make a new release. johannes The fixed version works perfectly, thank you very much! And it prints the full command line to the syslog, I assume? Thanks for testing! johannes Yes, it's great! Nov 5 10:50:10 venus imap: antispam: dspam binary set to /usr/local/bin/dspam Nov 5 10:50:10 venus imap: antispam: dspam extra arg --user Nov 5 10:50:10 venus imap: antispam: dspam extra arg [EMAIL PROTECTED] Nov 5 10:50:10 venus imap: antispam: signature header line is X-DSPAM-Signature Nov 5 10:50:13 venus imap: antispam: mailbox_is_unsure(INBOX): 0 Nov 5 10:50:13 venus imap: antispam: mailbox_is_trash(Spam): 0 Nov 5 10:50:13 venus imap: antispam: mailbox_is_trash(INBOX): 0 Nov 5 10:50:13 venus imap: antispam: mail copy: from trash: 0, to trash: 0 Nov 5 10:50:13 venus imap: antispam: mailbox_is_spam(Spam): 1 Nov 5 10:50:13 venus imap: antispam: mailbox_is_spam(INBOX): 0 Nov 5 10:50:13 venus imap: antispam: mailbox_is_unsure(Spam): 0 Nov 5 10:50:13 venus imap: antispam: mail copy: src spam: 1, dst spam: 0, src unsure: 0 Nov 5 10:50:13 venus imap: antispam: /usr/local/bin/dspam --source=error --class=innocent --signature=4911bedc107624643064458 --user [EMAIL PROTECTED] Thanks! Rob K smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
On Wed, 2008-11-05 at 10:51 -0500, Rob Klingsten wrote: Yes, it's great! Nov 5 10:50:13 venus imap: antispam: /usr/local/bin/dspam --source=error --class=innocent --signature=4911bedc107624643064458 --user [EMAIL PROTECTED] Just wanted to make sure, thanks! I've pushed out a tag, tarball will be generated automatically in a few hours, but obviously the contents will be identical to the one you have. johannes signature.asc Description: This is a digitally signed message part
[Dovecot] Install Configuring and run.
Hello,. i installed dovecot with virtual user and domains. but i dont get thru dovecot-antispam config. is there any HOWTO, for gentoo , how to setup and configure dovecot-antispam ? with examples for the config files ? maybe i have dspam self totally wrong configured. thanks marko
Re: [Dovecot] mUTF-7 vs UTF-8 in mailbox names
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 5 Nov 2008, Anton Yuzhaninov wrote: IMHO using UTF-8 for file names is bad idea. What character encoding would you prefer, when your clients are using UTF8 already and can use any Unicode16 character? Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJEczjVJMDrex4hCIRAijjAKCVLEDWm3Mx8W02M+kmAzRzwIbAKQCfQJmz ySDzxmOYId/ApHLm5ccOCdY= =icPK -END PGP SIGNATURE-
Re: [Dovecot] How do I use plus-addressing in Dovecot 1.1.x?
On Wed, 2008-11-05 at 08:05 -0500, Charles Marcus wrote: On 11/5/2008 7:11 AM, Timo Sirainen wrote: On Sun, 2008-11-02 at 13:33 -0700, Jon Fullmer wrote: As best as I can tell, the answer seems to lie in namespaces as a feature added in Dovecot 1.1.0. The problem is that I don't understand how I could use them to resolve this situation. I've read the documentation. I've looked at as many example configurations as I could find. Instead of: deliver -m ${extension} Use: deliver -m INBOX.${extension} Hmm.. so what was the reason this changed from 1.0.x? deliver v1.1 reads namespace configuration (so the mailbox names are now identical with deliver and IMAP) instead of ignoring it and only supporting one location for mails. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Install Configuring and run.
On Mon, 2008-11-03 at 15:39 +0100, Marko Weber wrote: Hello,. i installed dovecot with virtual user and domains. but i dont get thru dovecot-antispam config. is there any HOWTO, for gentoo , how to setup and configure dovecot-antispam ? with examples for the config files ? I assume that you have read antispam(7). What other information do you need? maybe i have dspam self totally wrong configured. Did you verify that DSPAM works independently, i.e. without dovecot-antispam? Regards, Thorsten signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Install Configuring and run.
On Wed, 2008-11-05 at 18:39 +0100, Thorsten Vollmer wrote: On Mon, 2008-11-03 at 15:39 +0100, Marko Weber wrote: Hello,. i installed dovecot with virtual user and domains. but i dont get thru dovecot-antispam config. is there any HOWTO, for gentoo , how to setup and configure dovecot-antispam ? with examples for the config files ? I assume that you have read antispam(7). dovecot-antispam(7) on Gentoo What other information do you need? maybe i have dspam self totally wrong configured. Did you verify that DSPAM works independently, i.e. without dovecot-antispam? Regards, Thorsten signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
Hi Johannes, From: Johannes Berg [EMAIL PROTECTED] I just committed a fix to debugv(), can you try that? If you downloaded the tarball, get this one: http://git.sipsolutions.net/?p=dovecot-antispam.git;a=snapshot;h=HEAD;sf=tgz If you can confirm that works I'll make a new release. The fixed version works perfectly, thank you very much! And it prints the full command line to the syslog, I assume? Thanks for testing! It solves the problem here as well =) Thanks for the update. Do you plan to implement 'out of band' dspam calling? BTW maybe there is no need for a separate 'queue' folder especially as we only need a message signature. I think it can be stored in some buffer array so as the dspam calls are made i.e. during idle time (or during final cleanup at the latest). Also I am attaching a couple of patches that might be useful. dspam-exec.c.patch adds debug-dumping of the dspam reply (it turned out quite useful not only for the stack corruption problem). Makefile.patch fixes the syntax to compile with gmake under FreeBSD 6.1 and also adjusts the installed plugin permissions. Best wishes Eugene patch-genie.tgz Description: Binary data
Re: [Dovecot] Another dovecot-antispam plugin can't call dspam
Hi Eugene, And it prints the full command line to the syslog, I assume? Thanks for testing! It solves the problem here as well =) Thanks for the update. Yeah, I thought so, somehow I just didn't have the idea to look at debugv() when you mentioned the problem. Do you plan to implement 'out of band' dspam calling? BTW maybe there is no need for a separate 'queue' folder especially as we only need a message signature. I think it can be stored in some buffer array so as the dspam calls are made i.e. during idle time (or during final cleanup at the latest). Well, I tried doing that with the signature-log backend, but that seemed somewhat problematic to me although somebody said it actually works for him. Also I am attaching a couple of patches that might be useful. dspam-exec.c.patch adds debug-dumping of the dspam reply (it turned out quite useful not only for the stack corruption problem). Makefile.patch fixes the syntax to compile with gmake under FreeBSD 6.1 and also adjusts the installed plugin permissions. Thanks, I've added the Makefile patch, but the other one I'm not too sure about, it seems it would print things twice if the loop actually looped, so I left it for now. Also, your code can access buf[sizeof(buf)] which would be a buffer overrun. johannes signature.asc Description: This is a digitally signed message part
[Dovecot] Limit simultaneous pop3 login for users?
Is there a way to limit simultaneous pop3 logins for users? Like for a user that has pop-every-minute running on two different computers from two different networks? If dovecot can't stop it, anyone know of a trick I could implement? Thanks in advance! Patrick
Re: [Dovecot] Install Configuring and run.
Thorsten Vollmer schrieb: On Wed, 2008-11-05 at 18:39 +0100, Thorsten Vollmer wrote: On Mon, 2008-11-03 at 15:39 +0100, Marko Weber wrote: Hello,. i installed dovecot with virtual user and domains. but i dont get thru dovecot-antispam config. is there any HOWTO, for gentoo , how to setup and configure dovecot-antispam ? with examples for the config files ? I assume that you have read antispam(7). dovecot-antispam(7) on Gentoo What other information do you need? maybe i have dspam self totally wrong configured. Did you verify that DSPAM works independently, i.e. without dovecot-antispam? Regards, Thorsten
Re: [Dovecot] Install Configuring and run.
Hello , yes it seems to work. But it tags all mails as innocent. everyone. even mails that are marked by sapmassassin , dspam marks them as innocent. my goal is to work with dspam that it scans incoming mails and that this training via moving mails works. if i understand the dovecot-antispam right, = dspam scans mails on incoming, marks them. then via maildrop i can put them all into folder SPAM at example. when dspam tagged a mail as spam that is not spam., then i can move the mail from the SPAM folder into normal incoming folder. dspam then retrain the mail. also other way. if a mail comes into the normal incoming and is spam, i can then move the mail into SPAM and dspam get retrained. sorry guys, i am not all a pro, but now, i sit since 7 days on it to get it work., i am very willing get this work. so any1 can help me maybe to get this working ? i can paste all needed info u need to help me. at moment i stuck. dspam runs and marks mails, but i am sure i did some things wrong. totally wrackey marko from hamburg :-) thx Thorsten Vollmer schrieb: On Wed, 2008-11-05 at 18:39 +0100, Thorsten Vollmer wrote: On Mon, 2008-11-03 at 15:39 +0100, Marko Weber wrote: Hello,. i installed dovecot with virtual user and domains. but i dont get thru dovecot-antispam config. is there any HOWTO, for gentoo , how to setup and configure dovecot-antispam ? with examples for the config files ? I assume that you have read antispam(7). dovecot-antispam(7) on Gentoo What other information do you need? maybe i have dspam self totally wrong configured. Did you verify that DSPAM works independently, i.e. without dovecot-antispam? Regards, Thorsten
Re: [Dovecot] Limit simultaneous pop3 login for users?
On Nov 5, 2008, at 10:52 PM, Patrick MacDonald wrote: Is there a way to limit simultaneous pop3 logins for users? Like for a user that has pop-every-minute running on two different computers from two different networks? If dovecot can't stop it, anyone know of a trick I could implement? pop3_lock_session=yes setting. You can also enable it per-user by returning it from userdb. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Install Configuring and run.
On 11/5/2008, Marko Weber ([EMAIL PROTECTED]) wrote: even mails that are marked by sapmassassin , dspam marks them as innocent. How big is your spam/ham corpus? You do realize DSPAM requires a considerable amount of 'training' - meaning, a LOT of ham/spam in the corpus - before it starts to show its effectiveness? ASSP may be a better fit if you want out of the box effectiveness, but it doesn't have individual quarantines, etc... -- Best regards, Charles
Re: [Dovecot] antispam - Unable to determine the destination user
Hello, If you don't use MySQL you will need to use the --user parameter to set the corresponding owner of the signature. Then you have another problem. You either run the dspam call as the same _system_ user as what you are providing in the --user parameter, eg. run it as real system user johndoe with --user johndoe, or you are running the dspam call as a generic system user, such as mail or other. In that case you will need to tell dspam to trust that user in dspam.conf - look for the Trust directive. Thank's for this reply, I've check the user used to launch dspam in .config file of dovecot antispam and it's vpopmail. In my dspam.conf I've Trust vpopmail, so I think it should be great. When a mail comes into qmail I use the .qmail-default to check the mail with dspam : | /usr/bin/dspam --mode=teft --deliver=innocent --feature=noise --tokenizer=chained --user [EMAIL PROTECTED] --stdout | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox In this configuration the virtual' user is mentionned by [EMAIL PROTECTED] , but if I write : antispam_dspam_args = --user;[EMAIL PROTECTED] It doesn't work as If I write : antispam_dspam_args = --user;%u Regards, Guillaume Romanczyk. -- Guillaume Romanczyk ~ System Administrator Itaapy http://itaapy.com Tel +33 (0)1 42 23 67 45 9 rue Darwin, 75018 Paris Fax +33 (0)1 53 28 27 88
Re: [Dovecot] How do I use plus-addressing in Dovecot 1.1.x?
That did it! HOORAY! Thanks, Timo! - Jon On Nov 5, 2008, at 9:58 AM, Timo Sirainen wrote: On Wed, 2008-11-05 at 08:05 -0500, Charles Marcus wrote: On 11/5/2008 7:11 AM, Timo Sirainen wrote: On Sun, 2008-11-02 at 13:33 -0700, Jon Fullmer wrote: As best as I can tell, the answer seems to lie in namespaces as a feature added in Dovecot 1.1.0. The problem is that I don't understand how I could use them to resolve this situation. I've read the documentation. I've looked at as many example configurations as I could find. Instead of: deliver -m ${extension} Use: deliver -m INBOX.${extension} Hmm.. so what was the reason this changed from 1.0.x? deliver v1.1 reads namespace configuration (so the mailbox names are now identical with deliver and IMAP) instead of ignoring it and only supporting one location for mails.