Re: Deploying a replica server when a populated backend exists.

2011-05-12 Thread Michael Menge

Quoting "Fabio S. Schmidt" :

Hi !

I'm currently testing the replication engine in Cyrus 2.4.6, I was
able to setup a new backend and then deploy the replica sever. I have
some doubts about  deploy a replica server when the backend to be
replicated is already populated, I have tried and only the mailboxes
created after the first synchronization was replicated, is there any
way to replicate the mailboxes that were on the backend before the
sync?



man sync_client is your friend.

I guess you are running rolling replication, this will sync all
mailboxes when they change, which may take a while.
To do the initial sync you need to run sync_client -u or -m with
a list of all users or a list with all mailboxes. If you use sieve
you should use -u or you have to -s with a userlist to sync the
sievescripts





M.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:  
michael.me...@zdv.uni-tuebingen.de

Wächterstraße 76
72074 Tübingen

smime.p7s
Description: S/MIME Signatur

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Deploying a replica server when a populated backend exists.

2011-05-12 Thread Fabio S. Schmidt
Hi !I'm currently testing the replication engine in Cyrus 2.4.6, I was able to setup a new backend and then deploy the replica sever. I have some doubts about  deploy a replica server when the backend to be replicated is already populated, I have tried and only the mailboxes created after the first synchronization was replicated, is there any way to replicate the mailboxes that were on the backend before the sync?Thanks,Fabio S. SchmidtBrasília - Brazil


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Cyrus Murder - Move mailbox with user connected -

2011-05-12 Thread Dave McMurtrie
On 5/12/11 7:06 PM, Lucas Zinato Carraro wrote:
>
> I can move mailboxes between servers with a user connected  ?

Generally, yes, but I'm not 100% sure that there aren't edge cases. 
Actually, I'm going to assume that there are probably edge cases.  Also, 
newer versions should be somewhat better than older versions at dealing 
with this.

At the very least, if you're running any version more recent than 2.3.15 
you'll want to make sure you set disconnect_on_vanished_mailbox to true 
in imapd.conf.  If you don't set this, the client will remain connected 
to proxyd on the frontend and proxyd will remain connected to imapd on 
the backend.  After the move, there will be no mail on that backend 
server and the user will see an empty mailbox.  Setting 
disconnect_on_vanished_mailbox will cause imapd to disconnect proxyd and 
hence, the client.  Depending on the client, it may silently reconnect 
and the user won't notice.  That behavior varies by client.


> Exist a way to block the connection until the operation finish ?

Cyrus takes care of this for you by setting the mailbox state to 
MBTYPE_RESERVE during the move.  Note that this happens per-folder as 
each one is being moved, and not for the entire mailbox hierarchy.

If an IMAP client attempts to access a folder while it's in reserved 
state it will get either a BAD or NO (I didn't look to see which) 
"Mailbox is currently reserved" back.

hth,

Dave

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Cyrus Murder - Move mailbox with user connected -

2011-05-12 Thread Lucas Zinato Carraro
I can move mailboxes between servers with a user connected  ?

Exist a way to block the connection until the operation finish ?

Regards
Zinato

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Recovering mailboxes list.

2011-05-12 Thread Fabio S. Schmidt
Hi Dears,I'd like to learn some methods to recover a Cyrus Backend, currently I am able to restore with the mailboxes list exported using "ctl_mboxlist".But, how can I restore the mailboxes if I dont have the mailboxes list exported? Assuming I have only the mailboxes directories, how could I rebuildthe mailboxes.db? I'm using cyrus 2.4.6.Just another question, is there any way to rebuild the mailboxes list from a mailboxes.db file?Thanks, my best regards.Fabio S. SchmidtBrasília - Brazil


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: [OT] offline mail user and syncing

2011-05-12 Thread mayak-cq
On Thu, 2011-05-12 at 18:45 +0200, Lars Kristiansen wrote:

> Den 10.05.2011 08:30, skrev mayak-cq: 
> 
> > hi all,
> > 
> > i have a rather peculiar case involving an offline user, who has no
> > possibility of internet given his location (satellite is too
> > expensive).
> > 
> > there is power, and he has computer, and there is a "proxy" -- i.e.
> > someone who passes once a day in the late afternoon, and picks up a
> > usb key and takes it back into town to send contents as e-mails.
> 
> 
> Hi!
> Installing thunderbird on the usb key could do the trick.
> Changing online/offline mode.
> http://portableapps.com/
> 
> Regards, Lars

lars,

duude -- pure magic!!!

thanks :-)

m

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Vacation Not Working...

2011-05-12 Thread Gary Mills
On Tue, May 10, 2011 at 10:33:28AM -0500, Gary Mills wrote:
> On Tue, May 10, 2011 at 08:59:48AM -0600, Nathanael D. Noblet wrote:
> > On 05/10/2011 06:17 AM, Gary Mills wrote:
> > >On Tue, May 10, 2011 at 07:39:48AM +0200, Simon Matter wrote:
> > >>
> > >>To start, you may want to post your imapd.conf here and an example sieve
> > >>script used for vacations.
> > >
> > >Find a message that should have triggered a vacation response.  Check
> > >the envelope recipient and header recipient of this message.  They must
> > >match to trigger vacation.
> > 
> > Sent from a google account. I sent the sieve script in a previous message.
> > 
> > Return-Path: <>
> 
> That's the envelope sender, used for error returns like non-delivery
> reports.  Nothing will be sent to that one.  I don't know if sieve
> vacation uses it, but it wouldn't work if it did.  It may also be an
> indication of a message that should not receive a response.

Look what I found in the sieve vacation document
(draft-ietf-sieve-vacation-07):

   "Vacation" is used to respond to a message with another message.
   Vacation's messages are always addressed to the Return-Path address
   (that is, the envelope from address) of the message being responded
   to.

That's your problem.

-- 
-Gary Mills--Unix Group--Computer and Network Services-

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: Vacation Not Working...

2011-05-12 Thread Dan White
On 12/05/11 11:12 -0600, Nathanael D. Noblet wrote:
>On 05/12/2011 10:41 AM, Dan White wrote:
>>Have you tried running sieve/test.c against your script?
>
>I haven't is this a source file from the package itself, or would 
>this normally turn into sometype of sieve test binary I can use? I'll 
>start looking in the meantime.

See sieve/README in the source for details. It is not compiled during a
normal compile, and will need to be explicitly built.

-- 
Dan White

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: Vacation Not Working...

2011-05-12 Thread Nathanael D. Noblet
On 05/12/2011 10:41 AM, Dan White wrote:
> I don't recall if this was asked, but did you install the script via
> timsieved (as opposed to copying it into its location directly)? Did you
> verify if the script got converted to bytecode?

If I use sieveshell I can see that the script exists and it is the 
default. Not sure if this has anything to do with the conversion to 
bytecode..

-- 
Nathanael d. Noblet
t 403.875.4613

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: Vacation Not Working...

2011-05-12 Thread Nathanael D. Noblet
On 05/12/2011 10:41 AM, Dan White wrote:
> I don't recall if this was asked, but did you install the script via
> timsieved (as opposed to copying it into its location directly)? Did you
> verify if the script got converted to bytecode?

This wasn't asked, I have a default.bc file and ingo tells me it was 
successfully saved. Since filtering works as expected, I don't know why 
I would think this didn't work.

[root@titanium t2]# ls -l
total 20
lrwxrwxrwx 1 cyrus mail   7 May  2 10:37 defaultbc -> ingo.bc
-rw--- 1 cyrus mail 120 May 10 10:59 ingo.bc
-rw--- 1 cyrus mail 225 May 10 10:59 ingo.script

If I cat the bytecode I get:
Out of OfficeHello? Auto responder.

Which atleast shows the strings.


> Have you tried running sieve/test.c against your script?

I haven't is this a source file from the package itself, or would this 
normally turn into sometype of sieve test binary I can use? I'll start 
looking in the meantime.

-- 
Nathanael d. Noblet
t 403.875.4613

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Vacation Not Working...

2011-05-12 Thread Michael D. Sofka
Nathanael D. Noblet wrote:
> I set the sieve script to
> 
> # Sieve Filter
> # Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am)
> 
> require "vacation";
> 
> # Vacation
> vacation :days 3 :addresses "t...@greatexcursions.com" :subject "Out of
> Office" "Hello? Auto responder.";

You may have to specify a From address for the response.  E.g.,

require ["vacation"];

vacation
:days 3
:addresses ["t...@greatexcursions.com"]
:from "nathan...@gnat.ca"
:subject "Out of Office"
"Hello? Auto responder.";

You might also need to put this in a test condition such as:

if address :matches "From" "*@gnat.ca" {
vacation
:days 3
:addresses "t...@greatexcursions.com"
:from "nathan...@gnat.ca"
:subject "Out of Office"
"Hello? Auto responder.";
}

It is also possible the mailbox needs to be a user mailbox.  I had to 
create an auto-responder for a mailbox, and for some reason that now 
escapes me I had to create a user account instead of a "Shared Folder." 
  But, I don't recall why, and it may have had to do with unique names 
in our account management system, instead of anything Cyrus related.

Mike

-- 
Michael D. Sofka   sof...@rpi.edu
C&MT Sr. Systems Programmer,   Email, HPC, TeX, Epistemology
Rensselaer Polytechnic Institute, Troy, NY.  http://www.rpi.edu/~sofkam/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: [OT] offline mail user and syncing

2011-05-12 Thread Lars Kristiansen

Den 10.05.2011 08:30, skrev mayak-cq:

hi all,

i have a rather peculiar case involving an offline user, who has no 
possibility of internet given his location (satellite is too expensive).


there is power, and he has computer, and there is a "proxy" -- i.e. 
someone who passes once a day in the late afternoon, and picks up a 
usb key and takes it back into town to send contents as e-mails.


Hi!
Installing thunderbird on the usb key could do the trick.
Changing online/offline mode.
http://portableapps.com/

Regards, Lars




ideally, the proxy's computer would somehow sync with the usb disk, as 
well as the user's.


has anyone dealt with something similar?

with my sincerest thanks

m







Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

Re: Vacation Not Working...

2011-05-12 Thread Dan White
On 12/05/11 10:05 -0600, Nathanael D. Noblet wrote:
>Hello some more... ;)
>
>   I have yet to get it working. I figured I'd give a recap of what has
>changed since I started asking for help here.
>
>I've added sieve_extensions: vacations to imap.conf and a
>'telnet localhost sieve' shows that vacation is supported.
>
>Gary Mills checked the headers of the emails being sent and concluded
>that the envelope recipient and the header recipient do match. In this
>case its a test account of t...@greatexcursions.com.
>
>I set the sieve script to
>
># Sieve Filter
># Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am)
>
>require "vacation";
>
># Vacation
>vacation :days 3 :addresses "t...@greatexcursions.com" :subject "Out of
>Office" "Hello? Auto responder.";
>
>I stopped cyrus and deleted the deliver.db so I could try sending from
>the same source multiple times. I also tried sending from three
>different source accounts. At no time did anything come back. Nor did I
>see an attempt to send anything.
>
>Is there anyway to increase the verbosity on a sieve to see why it
>doesn't match? or that it is at least attempting to match?

I don't recall if this was asked, but did you install the script via
timsieved (as opposed to copying it into its location directly)? Did you
verify if the script got converted to bytecode?

Have you tried running sieve/test.c against your script?

-- 
Dan White

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: Vacation Not Working...

2011-05-12 Thread Nathanael D. Noblet
Hello some more... ;)

   I have yet to get it working. I figured I'd give a recap of what has 
changed since I started asking for help here.

I've added sieve_extensions: vacations to imap.conf and a
'telnet localhost sieve' shows that vacation is supported.

Gary Mills checked the headers of the emails being sent and concluded 
that the envelope recipient and the header recipient do match. In this 
case its a test account of t...@greatexcursions.com.

I set the sieve script to

# Sieve Filter
# Generated by Ingo (http://www.horde.org/ingo/) (May 2, 2011, 11:06 am)

require "vacation";

# Vacation
vacation :days 3 :addresses "t...@greatexcursions.com" :subject "Out of
Office" "Hello? Auto responder.";

I stopped cyrus and deleted the deliver.db so I could try sending from 
the same source multiple times. I also tried sending from three 
different source accounts. At no time did anything come back. Nor did I 
see an attempt to send anything.

Is there anyway to increase the verbosity on a sieve to see why it 
doesn't match? or that it is at least attempting to match?

-- 
Nathanael d. Noblet
t 403.875.4613

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


Re: sieve and SASL

2011-05-12 Thread Chris Conn

> "IMPLEMENTATION" "Cyrus timsieved v2.4.8-Invoca-RPM-2.4.8-1.el4"
> "SASL" "PLAIN"
> "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags
> notify envelope relational regex subaddress copy"
> "STARTTLS"
> OK
>
> Other question, do you have cyrus-sasl-plain installed?
>
> Thanks,
> Simon

Hello,

Thank you for pointing out the obvious, no, cyrus-sasl-plain was AWOL 
from the system.  I owe you a chilly beverage.

C.


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/