[Dovecot] sieve 0.1.2 problem with address and :regex

2009-02-01 Thread Andy Howell


I'm getting a core dump with the following script:

require [ "fileinto", "regex", "variables" ];

if address :domain :regex  ["Reply-To", "Sender", "To", "Cc"]
"antlr.org|mailman.unixodbc.org|research.att.com|wireshark.org" {
  if address :regex ["Reply-To", "Sender", "To", "Cc"]
["([...@]*)-([...@]*)(-bounces)?...@[^:space:,]*"] {
fileinto "1: ${1} 2: ${2} 3: ${3} 4: ${4} 5: ${5} 6: ${6} 7: ${7} 8: ${8}";
  }
}

and using the mail below to test with. Looks likes it another regex problem. The 
sieve-test I'm using had the previous regex patch applied.


Stack trace is:

#0  0x003e4893 in regexec@@GLIBC_2.3.4 () from /lib/i686/nosegneg/libc.so.6
#1  0x08071289 in mcht_regex_match (mctx=0x896b3d0, val=0x896b728 "antlr.org", 
val_size=9,
key=0x8974ffd "antlr.org|mailman.unixodbc.org|research.att.com|wireshark.org", 
key_size=61, key_index=0)

at mcht-regex.c:256
#2  0x080847c9 in sieve_match_value (mctx=0x896b3d0, value=0x896b728 "antlr.org", 
val_size=9) at sieve-match.c:83

#3  0x080841c5 in sieve_address_match (addrp=0x8187a20, mctx=0x896b3d0,
data=0x897f080 "antlr-interest-boun...@antlr.org") at 
sieve-address-parts.c:258
#4  0x0806a5fd in tst_address_operation_execute (op=0x8186688, renv=0x89861b4, 
address=0x89861a4)

at tst-address.c:259
#5  0x080804b6 in sieve_interpreter_execute_operation (interp=0x8986190) at 
sieve-interpreter.c:437
#6  0x08080573 in sieve_interpreter_continue (interp=0x8986190, interrupted=0x0) at 
sieve-interpreter.c:464
#7  0x080806df in sieve_interpreter_start (interp=0x8986190, msgdata=0xbfccc6b0, 
senv=0xbfccc688, msgctx=0x0,

result=0x8984180, estatus=0xbfccc6c4, interrupted=0x0) at 
sieve-interpreter.c:506
#8  0x08080789 in sieve_interpreter_run (interp=0x8986190, msgdata=0xbfccc6b0, 
senv=0xbfccc688, result=0xbfccc60c,

estatus=0xbfccc6c4) at sieve-interpreter.c:528
#9  0x0806eb09 in sieve_test (sbin=0x89752e0, msgdata=0xbfccc6b0, senv=0xbfccc688, 
estatus=0xbfccc6c4,

stream=0x897cab4, ehandler=0x897adb0, trace_stream=0x0) at sieve.c:256
#10 0x08064349 in main (argc=3, argv=0xbfccc7b4) at sieve-test.c:174


I tried to walk through the core, but I'm not adept enough to figure it out.

Thanks,

Andy

Sample mail:
Received: from gsce0ae1cfad8d ([68.61.157.18])
by OMTA11.emeryville.ca.mail.comcast.net with comcast
id 7syP1b00K0Q5oY48XsyQAh; Sun, 25 Jan 2009 16:58:25 +
From: " S. " 
To: "'y m'" 
Date: Sun, 25 Jan 2009 11:58:27 -0500
Organization: GSC & Associates
Message-ID: 
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6838
Importance: Normal
Thread-Index: Acl8rLUFqTJ7Qbk+SKuTVkyWpIxIDACXd54g
In-Reply-To: 
Cc: antlr-inter...@antlr.org
Subject: Re: [antlr-interest] How do we change wiki pages?
X-BeenThere: antlr-inter...@antlr.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: xx...@acm.org
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: antlr-interest-boun...@antlr.org
Errors-To: antlr-interest-boun...@antlr.org

blah




Re: [Dovecot] Config rewrite for v1.3

2009-02-01 Thread Timo Sirainen
On Tue, 2009-01-27 at 18:50 -0500, Timo Sirainen wrote:
> Still broken, but I committed the current changes to
> http://hg.dovecot.org/dovecot-config-rewrite/

Should be more or less working now.

>  - deliver also currently forks and executes doveconf. 

Still does this.

> The last possibility would be not to fork, but instead just have
> doveconf exec() deliver, so either something like "doveconf -e deliver
> -deliver-params" or if calling deliver directly it could exec() doveconf
> which would then exec() deliver back. Hmm. Perhaps this is actually
> better than forking?

Probably a good idea. I was a bit worried about passing the settings via
environment, but it probably doesn't matter.

>  - %variable expansion is somewhat broken with imap/pop3, 

Should work now.

>  - Plugins will probably have to keep using something similar to
> getenv() to get their settings. 

Done.

>  - I'm not entirely sure where all the setting verifications should go.

Not done.


signature.asc
Description: This is a digitally signed message part


[Dovecot] Phone cannot receive mail suddenly

2009-02-01 Thread Robin Atwood
Starting at midnight Feb 1 my phone can no longer fetch mail from Dovecot. It 
endlessly connects and reconnects as you can see in the log below. I have 
restarted dovecot, the phone, deleted /home/robinmail/mail, all to no avail. 
I have turned on debug output but it does not tell me anymore. I can connect 
and see the folder using the KMail imap client. Any idea how I can proceed 
with this? The phone is 192.168.1.57 (LAN) or 202.91.19.194 (GPRS) and 
Dovecot and KMail are on 192.168.1.2.


Feb  1 20:12:58 opal dovecot: Dovecot v1.1.8 starting up
Feb  1 20:13:41 opal dovecot: imap-login: Login: user=, 
method=PLAIN, rip=192.168.1.57, lip=192.168.1.2
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail
Feb  1 20:13:41 opal dovecot: IMAP(robinmail): Connection closed bytes=18/484
Feb  1 20:14:05 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:14:05 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:14:05 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail
Feb  1 20:14:05 opal dovecot: imap-login: Login: user=, 
method=PLAIN, rip=192.168.1.2, lip=192.168.1.2, TLS
Feb  1 20:14:37 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:14:37 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:14:37 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail
Feb  1 20:14:37 opal dovecot: imap-login: Login: user=, 
method=PLAIN, rip=202.91.19.194, lip=192.168.1.2
Feb  1 20:14:39 opal dovecot: IMAP(robinmail): Connection closed bytes=18/453
Feb  1 20:14:43 opal dovecot: IMAP(robinmail): Effective uid=500, gid=100, 
home=/home/robinmail
Feb  1 20:14:43 opal dovecot: IMAP(robinmail): mbox: 
data=~/mail:INBOX=/var/mail/robinmail
Feb  1 20:14:43 opal dovecot: IMAP(robinmail): fs: root=/home/robinmail/mail, 
index=, control=, inbox=/var/mail/robinmail

TIA
-Robin
-- 
--
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
 from "Mandalay" by Rudyard Kipling
--










[Dovecot] Dovecot Newbie v1.1.10 + and shared folders.

2009-02-01 Thread Harry Lachanas

Hi all,

I finally manged to create somehow shared folders in dovecot imap ...

After a number trials I came up with this conf from my test server
#--

#dovecot --build-options
SQL drivers: mysql
Passdb: checkpassword pam passwd passwd-file shadow sql
Userdb: nss passwd passwd-file prefetch sql static
#---
protocols = imap imaps
log_timestamp = "%Y-%m-%d %H:%M:%S "
ssl_cert_file = /etc/postfix/sasl/mycert.pem
ssl_key_file = /etc/postfix/sasl/mycert.pem
mail_location = maildir:~/Maildir

namespace private {
separator = /
prefix =

location = maildir:~/Maildir
inbox = yes
}
namespace public {
prefix = Public/
separator = /
location = 
maildir:/var/Public:INBOX=~/Maildir:INDEX=~/Maildir/p-index:CONTROL=~/Maildir/p-ctrl

hidden=no
subscriptions=no
inbox = no
}
namespace public {
prefix = Public2/
separator = /
location = 
mbox:/var/Public2/mboxes:INBOX=~/Maildir:INDEX=~/Maildir/p2-index:CONTROL=~/Maildir/p2-ctrl

hidden=no
subscriptions=no
inbox = no
}
mail_privileged_group = mail
mail_debug = yes
valid_chroot_dirs = /var/mail
protocol imap {
mail_plugins = convert
imap_client_workarounds = outlook-idle
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
auth default {
mechanisms = plain login
passdb pam {
}
userdb passwd {
}
user = root
socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
plugin {
}
#
However I observed that
a) dovecot-shared file is not honored unless located in inside the 
maildir stucture  ( just above cur,tmp,new )
b) when mbox format is used dovecot-shared file does not get honored at 
all ... ( ie a user creates another mailbox in the directory ).
c) Is there a way to reject mbox or maildir file/dir creations by the 
users in a shared folder ??


I've used a mailbox format public namespace in order to be simple and 
have users dump undetected spam there for latter use in sa-learn --spam .


Please understand that I am quite new to this ( confused as well ), thus 
some of my questions might seem naive ( at least ) ..


Cheers
Harry.





Re: [Dovecot] Script: Moving Maildirs between servers

2009-02-01 Thread Peter Lindgren

Peter Lindgren skrev:

I thought I'd share my migration script with you folks. If there's an
interest to put it on the wiki I can do that, but I'm not sure in what
page.


Slight bug: The script didn't create a Trash folder.
Add the following rows before the echo " done." row in the user folder loop:

  echo -n "."
  mkdir -p -m 700 .Trash/tmp
  mkdir -p -m 700 .Trash/new
  mkdir -p -m 700 .Trash/cur
  chown ${username} .Trash
  chown ${username} .Trash/tmp
  chown ${username} .Trash/new
  chown ${username} .Trash/cur


/Peter
--
Peter Lindgren
http://www.norrskenkonsult.com