[OT] offline mail user and syncing

2011-05-10 Thread 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.

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/

Re: [OT] offline mail user and syncing

2011-05-10 Thread mayak-cq
On Tue, 2011-05-10 at 09:34 +0100, Andy Bennett wrote:

 Hi,
 
  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.
  
  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
 
 How about moving a UUCP spool on the USB stick? ;-)
 
 You could use something like rsync on incoming and outgoing folder.
 Is it just for eMail? What format are the messages in?


hi andy,

the user is running windows, and has a preference for using lookout. i
suppose that i could ask that he run thunderbird instead -- lookout uses
a single file pst, so concurrency is really difficult unless the pst
file is not the main/default one. at least thunderbird uses file based
message store, but alas, windblows doesn't run rsync (iirc).

maybe a secondary pst is the solution ... user would have drag all the
contents from secondary pst to primary pst. whatta drag!

thanks

m


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-10 Thread Adam Tauno Williams
On Tue, 2011-05-10 at 08:30 +0200, mayak-cq wrote:
 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.
 ideally, the proxy's computer would somehow sync with the usb disk, as
 well as the user's.
 has anyone dealt with something similar?

Yes; this is a case for UUCP.  If the user is using an inferior
operating system you'll need a second box; all that box has to do is
deliver mail [from the card] to a mailbox that the user can then
download from via POP.  The MTA on that box should be able to queue mail
easily enough.

I'm not away of any client-side store-and-forward solutions for Windows.


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-10 Thread Adam Tauno Williams
On Tue, 2011-05-10 at 11:56 +0200, mayak-cq wrote:
 On Tue, 2011-05-10 at 09:34 +0100, Andy Bennett wrote: 
   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.
   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
  How about moving a UUCP spool on the USB stick? ;-)
  You could use something like rsync on incoming and outgoing folder.
  Is it just for eMail? What format are the messages in?
 the user is running windows, and has a preference for using lookout. i
 suppose that i could ask that he run thunderbird instead -- lookout
 uses a single file pst, so concurrency is really difficult unless the
 pst file is not the main/default one. at least thunderbird uses file
 based message store, but alas, windblows doesn't run rsync (iirc).
 maybe a secondary pst is the solution ... user would have drag all the
 contents from secondary pst to primary pst. whatta drag!

rsync is useless for this use-case.  The PST is just a single binary
BLOB.  I don't believe it would solve the issue for TB either; just
swapping out file contents underneath applications leads to an entire
host of issues [cache coherency, etc...].

You need to find an 'intelligent' solution; such as UUCP
store-and-forward that 'understands' the message level unit-of-work.


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


Re: Vacation Not Working...

2011-05-10 Thread Adam Tauno Williams
On Mon, 2011-05-09 at 20:03 -0600, Nathanael D. Noblet wrote:
 Hello,
 I have a mail server that we use cyrus-imap for. It works well 
 enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely 
 somewhat old. 

But it certainly worked at that version.

 In anycase we've used sieve for server side filtering and 
 it has worked well for years. We have a couple users however that would 
 like to use the 'Vacation'/'Auto responding' features. The add the rule, 
 however no auto response is ever attempted. There are no errors in the 
 log, nada.

What SIEVE client are you using to generate the vacation script?  In
several clients you have to include *target* addresses that when a
message is received should generate a response [this is the vacation
user's addresses].  Users very commonly neglect that value.

 I spent a few hours trying to get something but never did. Can anyone 
 suggest what I should be doing to see why it isn't working? Any gotcha's 
 or other pointers? [Internet Search] has turned up many people with similar 
 problems, but no answers. 

Probably the lovely people who ask questions but can never be bothered
to post their solutions.


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-10 Thread mayak-cq
On Tue, 2011-05-10 at 06:28 -0400, Adam Tauno Williams wrote:

 On Tue, 2011-05-10 at 11:56 +0200, mayak-cq wrote:
  On Tue, 2011-05-10 at 09:34 +0100, Andy Bennett wrote: 
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.
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
   How about moving a UUCP spool on the USB stick? ;-)
   You could use something like rsync on incoming and outgoing folder.
   Is it just for eMail? What format are the messages in?
  the user is running windows, and has a preference for using lookout. i
  suppose that i could ask that he run thunderbird instead -- lookout
  uses a single file pst, so concurrency is really difficult unless the
  pst file is not the main/default one. at least thunderbird uses file
  based message store, but alas, windblows doesn't run rsync (iirc).
  maybe a secondary pst is the solution ... user would have drag all the
  contents from secondary pst to primary pst. whatta drag!
 
 rsync is useless for this use-case.  The PST is just a single binary
 BLOB.  I don't believe it would solve the issue for TB either; just
 swapping out file contents underneath applications leads to an entire
 host of issues [cache coherency, etc...].
 
 You need to find an 'intelligent' solution; such as UUCP
 store-and-forward that 'understands' the message level unit-of-work.

thanks everyone for the help :-)

regrettably, both the proxy and the user are technically weak, and are
only windows fluent.

i'm going to take a look at some connectors (bynari and so forth) to see
if i can sync the message store to the usb disk. if it works, it would
be more simplistic and clean.

my thought about thunderbird and rsync may be possible as well --
thunderbird stores messages in files and would therefore be a candidate
for rsync ...

will report back

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-10 Thread Gary Mills
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.

-- 
-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-10 Thread Michael Menge

Hi,

Quoting Nathanael D. Noblet nathan...@gnat.ca:



Hello,

   I have a mail server that we use cyrus-imap for. It works well
enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely
somewhat old. In anycase we've used sieve for server side filtering and
it has worked well for years. We have a couple users however that would
like to use the 'Vacation'/'Auto responding' features. The add the rule,
however no auto response is ever attempted. There are no errors in the
log, nada.

   I spent a few hours trying to get something but never did. Can anyone
suggest what I should be doing to see why it isn't working? Any gotcha's
or other pointers? Google has turned up many people with similar
problems, but no answers. I could really use a hand with how to
debug/track this down.



Configuring and debuging Vacation is a bit tricky.

First you need to make sure cyrus is able to send emails.
Do forwarding rules work for you?

Second you need to add vacation to sieve_extensions in imapd.conf.
and the script must contain a require vacation line at the beginning.

Third, there are some measures to prevent mailloops and other not
intended vacationmails. So to test you have to use different
senderaddresses or delete the delivery DB for each try, and
you have to configure the addresses of the recipient in the vacation
rule.

Hope that helps to debug the problem.

Regards

   Michael


Thanks,
--
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/







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/

Upgrading from 2.3 to til 2.4

2011-05-10 Thread Per Steinar Iversen

Recently I upgraded a moderately busy Cyrus imap from 2.3.x to 2.4.7

I used one of the excellent rpms by Simon Matter and everything went 
smoothly until the upgrade went live: New mail arrived at once and this 
triggered an index upgrade, the log contains lines like Index upgrade: 
user.xyz (10 - 12)

Upgrading the index takes some time, in the meantime sendmail delivers 
more mail, the load soars as index upgrades are run in parallell and 
sendmail eventually effectively stops processing mail. Later as a number 
of index upgrades finishes the load drops, sendmail revives and the whole 
cycle restarts.

Running a reconstruct on user.% before allowing in new mail, after the 
upgrade, seems to be a better and more orderly option than allowing 
sendmail to do the job?

BTW: What happened to the rpms published by Simon Matter? Nothing to be 
found at http://www.invoca.ch/pub/packages/cyrus-imapd/ recently.

-psi


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


Re: Upgrading from 2.3 to til 2.4

2011-05-10 Thread Chris Conn

 BTW: What happened to the rpms published by Simon Matter? Nothing to be
 found at http://www.invoca.ch/pub/packages/cyrus-imapd/ recently.

 -psi

 
 Cyrus Home Page: http://www.cyrusimap.org/
 List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
http://www.invoca.ch/pub/packages/cyrus-imapd/pkg/ils-5/SRPMS/

This seems pretty recent.

C.


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


Re: Vacation Not Working...

2011-05-10 Thread Nathanael D. Noblet
On 05/09/2011 11:39 PM, Simon Matter wrote:

 Hello,

 I have a mail server that we use cyrus-imap for. It works well
 enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely
 somewhat old. In anycase we've used sieve for server side filtering and
 it has worked well for years. We have a couple users however that would
 like to use the 'Vacation'/'Auto responding' features. The add the rule,
 however no auto response is ever attempted. There are no errors in the
 log, nada.

 I spent a few hours trying to get something but never did. Can anyone
 suggest what I should be doing to see why it isn't working? Any gotcha's
 or other pointers? Google has turned up many people with similar
 problems, but no answers. I could really use a hand with how to
 debug/track this down.

 To start, you may want to post your imapd.conf here and an example sieve
 script used for vacations.

imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
pwcheck_method: saslauthd
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
#tls/certs/ca-bundle.crt
postmaster: postmaster
allowanonymouslogin: no
allowplaintext: yes
servername: titanium.nobletdesign.com
reject8bit: no
quotawarn: 80
timeout: 30
poptimeout: 10
sieve_maxscriptsize: 32
sieve_maxscripts: 5
unixhierarchysep: yes

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

require vacation;

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


-- 
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-10 Thread Nathanael D. Noblet
On 05/10/2011 07:24 AM, Michael Menge wrote:
 Hi,

 Quoting Nathanael D. Noblet nathan...@gnat.ca:


 Hello,

 I have a mail server that we use cyrus-imap for. It works well
 enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely
 somewhat old. In anycase we've used sieve for server side filtering and
 it has worked well for years. We have a couple users however that would
 like to use the 'Vacation'/'Auto responding' features. The add the rule,
 however no auto response is ever attempted. There are no errors in the
 log, nada.

 I spent a few hours trying to get something but never did. Can anyone
 suggest what I should be doing to see why it isn't working? Any gotcha's
 or other pointers? Google has turned up many people with similar
 problems, but no answers. I could really use a hand with how to
 debug/track this down.


 Configuring and debuging Vacation is a bit tricky.

 First you need to make sure cyrus is able to send emails.
 Do forwarding rules work for you?

They do yes.


 Second you need to add vacation to sieve_extensions in imapd.conf.
 and the script must contain a require vacation line at the beginning.

Hmm that's new. I had seen things about require vacation in the sieve 
script (which is present). However looking at a list of files installed 
as part of the cyrus-imapd package I see nothing about vacation. Looking 
at the man page I see that that is necessary now.

 Third, there are some measures to prevent mailloops and other not
 intended vacationmails. So to test you have to use different
 senderaddresses or delete the delivery DB for each try, and
 you have to configure the addresses of the recipient in the vacation
 rule.

I've added it restarted cyrus and sent mail from a different account 
than my previous test.


 Hope that helps to debug the problem.

It has definitely given me some more info to look at I was previously 
unaware of. Thanks!

-- 
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-10 Thread Nathanael D. Noblet
On 05/10/2011 09:10 AM, Nathanael D. Noblet wrote:
 On 05/10/2011 07:24 AM, Michael Menge wrote:
 Third, there are some measures to prevent mailloops and other not
 intended vacationmails. So to test you have to use different
 senderaddresses or delete the delivery DB for each try, and
 you have to configure the addresses of the recipient in the vacation
 rule.

What if I want every email to get an autoresponse? The following is the 
script being tested.

require vacation;

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


 I've added it restarted cyrus and sent mail from a different account
 than my previous test.

Unfortunately it has been delivered, and no vacation message was sent. :(


Any additional ideas?

-- 
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-10 Thread Michael Menge

Hi,

Quoting Nathanael D. Noblet nathan...@gnat.ca:


On 05/09/2011 11:39 PM, Simon Matter wrote:


Hello,

I have a mail server that we use cyrus-imap for. It works well
enough. Stock package for RHEL 5 (cyrus-imapd-2.3.7-7.el5_4.3). Likely
somewhat old. In anycase we've used sieve for server side filtering and
it has worked well for years. We have a couple users however that would
like to use the 'Vacation'/'Auto responding' features. The add the rule,
however no auto response is ever attempted. There are no errors in the
log, nada.

I spent a few hours trying to get something but never did. Can anyone
suggest what I should be doing to see why it isn't working? Any gotcha's
or other pointers? Google has turned up many people with similar
problems, but no answers. I could really use a hand with how to
debug/track this down.


To start, you may want to post your imapd.conf here and an example sieve
script used for vacations.


imapd.conf:
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
pwcheck_method: saslauthd
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
#tls/certs/ca-bundle.crt
postmaster: postmaster
allowanonymouslogin: no
allowplaintext: yes
servername: titanium.nobletdesign.com
reject8bit: no
quotawarn: 80
timeout: 30
poptimeout: 10
sieve_maxscriptsize: 32
sieve_maxscripts: 5
unixhierarchysep: yes


you may need to set sieve_extensions




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

require vacation;

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



IMHO :days 0 is not allowed/ignored





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/

Re: Vacation Not Working...

2011-05-10 Thread Nathanael D. Noblet
On 05/10/2011 09:21 AM, Michael Menge wrote:
 you may need to set sieve_extensions

Yeah, another list member suggested the same, which I've added but still 
no response.

 IMHO :days 0 is not allowed/ignored

Ok, I've set it to 1. However then I need to delete the deliver.db 
between attempts. Do I need to stop/restart or otherwise touch running 
cyrus imap processes when I delete the deliver.db? Meaning, do I stop 
cyrus, then delete deliver.db, then start it. Or can I simply delete it 
out from under a running cyrus-imap system?

-- 
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-10 Thread Gary Mills
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.

 Received: from postman ([unix socket])
by titanium.nobletdesign.com (Cyrus 
v2.3.7-Invoca-RPM-2.3.7-7.el5_4.3) with LMTPA;
Tue, 10 May 2011 09:57:50 -0500
 X-Sieve: CMU Sieve 2.3
 Received: from titanium.nobletdesign.com (localhost.localdomain [127.0.0.1])
   by titanium.nobletdesign.com (Postfix) with ESMTP id 93332F78069
   for t...@greatexcursions.com; Tue, 10 May 2011 09:57:50 -0500 (CDT)

That will be the envelope recipient.

[...]
 Subject: TEsting auto responder
 From: Nathanael Noblet nathanaelnob...@gmail.com
 To: t...@greatexcursions.com

That's the header recipient.  They do match.

-- 
-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-10 Thread Nathanael D. Noblet
On 05/10/2011 09:26 AM, Nathanael D. Noblet wrote:
 On 05/10/2011 09:21 AM, Michael Menge wrote:
 you may need to set sieve_extensions

 Yeah, another list member suggested the same, which I've added but still
 no response.

 IMHO :days 0 is not allowed/ignored

 Ok, I've set it to 1. However then I need to delete the deliver.db
 between attempts. Do I need to stop/restart or otherwise touch running
 cyrus imap processes when I delete the deliver.db? Meaning, do I stop
 cyrus, then delete deliver.db, then start it. Or can I simply delete it
 out from under a running cyrus-imap system?



I stopped cyrus, deleted deliver.db and resent from the google test 
account. (With days == 1)... nothing came back, no messages in the logs. :(

-- 
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-10 Thread Joseph Brennan


--On Tuesday, May 10, 2011 9:43 -0600 Nathanael D. Noblet 
nathan...@gnat.ca wrote:

 IMHO :days 0 is not allowed/ignored

 Ok, I've set it to 1.


Try 3.

Joseph Brennan
Columbia University Information Technology


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


Re: Vacation Not Working...

2011-05-10 Thread Nathanael D. Noblet
On 05/10/2011 09:46 AM, Joseph Brennan wrote:


 --On Tuesday, May 10, 2011 9:43 -0600 Nathanael D. Noblet
 nathan...@gnat.ca  wrote:

 IMHO :days 0 is not allowed/ignored

 Ok, I've set it to 1.


 Try 3.

No difference. Set to 3, stopped cyrus, deleted deliver.db, sent from 
two different accounts. They were received, however no attempt to 
respond happened.


-- 
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: Upgrading from 2.3 to til 2.4

2011-05-10 Thread Wesley Craig
It's usually possible in a murder configuration to do a zero downtime upgrade 
by xfer-ing users to a backend running the new version.  The admin is then in 
control of how much index upgrade load to inflict on the new machine.

:wes

On 10 May 2011, at 11:41, Henrique de Moraes Holschuh wrote:
 On Tue, 10 May 2011, Per Steinar Iversen wrote:
 Running a reconstruct on user.% before allowing in new mail, after the 
 upgrade, seems to be a better and more orderly option than allowing 
 sendmail to do the job?
 
 That's certainly how we always do it here.  We pause the new email feed at
 the MTAs (so that it will just queue), firewall off any user access, run a
 full backup, do the upgrade, trigger a full reconstruct and quota rebuild,
 and test everything before we restore service.
 
 Better the planned downtime, than surprise breakages.


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-10 Thread Andy Bennett
Hi,

 How about moving a UUCP spool on the USB stick? ;-)

 You could use something like rsync on incoming and outgoing folder.
 Is it just for eMail? What format are the messages in?
 
 hi andy,
 
 the user is running windows, and has a preference for using lookout. i
 suppose that i could ask that he run thunderbird instead -- lookout uses
 a single file pst, so concurrency is really difficult unless the pst
 file is not the main/default one. at least thunderbird uses file based
 message store, but alas, windblows doesn't run rsync (iirc).
 
 maybe a secondary pst is the solution ... user would have drag all the
 contents from secondary pst to primary pst. whatta drag!

Interesting!
What happens when the proxy delivers the stick to the place with The
Internet?
I initially assumed that this system was already somehow in place, but
perhaps it is not? Is it just currently used for non-eMail things?

Is the intention to copy the pst, or mail folders or whatever onto the
USB stick and then open up another copy of Thunderbird on the other end
and cause all the sending to happen?



In my copy of Thunderbird I can right click on Local Folders and I get
an options screen that allows my to specify the Local directory.
It strikes me that you could copy this folder to the USB stick or just
make it live entirely on the USB stick.

In the former case you'd have to ensure that Thunderbird was closed
before you moved / copied the folder and in the latter case you'd have
to ensure that you didn't open Thunderbird whilst the USB stick was out
on its travels.


To do the copy you could just use the inbuilt copying tools. Either a
batch file with xcopy or some such or just using the UI to test it.







Regards,
@ndy

-- 
andy...@ashurst.eu.org
http://www.ashurst.eu.org/
0x7EBA75FF


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-10 Thread Andy Bennett
Hi,

 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.
 ideally, the proxy's computer would somehow sync with the usb disk, as
 well as the user's.
 has anyone dealt with something similar?
 
 Yes; this is a case for UUCP.  If the user is using an inferior
 operating system you'll need a second box; all that box has to do is
 deliver mail [from the card] to a mailbox that the user can then
 download from via POP.  The MTA on that box should be able to queue mail
 easily enough.
 
 I'm not away of any client-side store-and-forward solutions for Windows.

Yes... with Significant Onetime Outlay Of Effort you could configure
something like a Linux plug computer to do this and then just connect it
to their computer with an ethernet cable.

You'd want a plug computer with USB, ethernet and maybe a pushbutton and
controllable LED.


To bring us back on topic, you'd want to install some kind of MTA that
still understands UUCP and (obviously ;-)) cyrus as the mail store.





Regards,
@ndy

-- 
andy...@ashurst.eu.org
http://www.ashurst.eu.org/
0x7EBA75FF


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-10 Thread Henrique de Moraes Holschuh
On Tue, 10 May 2011, Andy Bennett wrote:
 To bring us back on topic, you'd want to install some kind of MTA that
 still understands UUCP and (obviously ;-)) cyrus as the mail store.

All good MTAs still interface properly to UUCP support software, and
that's when they don't grok BSMTP natively.

postfix, exim and sendmail all can do UUCP, in path!bang style even, but
also using modern @domain.example.com routing.

It works _really_ well.


Now, just in case it is not as crazy an idea as it sounds: could one use
the replication protocol and a murder cluster to actually have a cyrus
mobile drone?

Wouldn't work in full offline mode, obviously, so it wouldn't be of help
to the thread submitter, but still...

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh

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


Re: Upgrading from 2.3 to til 2.4

2011-05-10 Thread Frank Elsner
On Tue, 10 May 2011 12:19:42 -0400 Wesley Craig wrote:
 It's usually possible in a murder configuration to do a zero downtime upgrade 
 by xfer-ing users to a backend running the new version.  The admin is then in 
 control of how much index upgrade load to inflict on the new machine.

I'm very interested in details of the xfer-ing. Can you provide them?


--Frank Elsner


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


Re: Upgrading from 2.3 to til 2.4

2011-05-10 Thread Dave McMurtrie
On 05/10/2011 01:00 PM, Frank Elsner wrote:
 On Tue, 10 May 2011 12:19:42 -0400 Wesley Craig wrote:
 It's usually possible in a murder configuration to do a zero downtime 
 upgrade by xfer-ing users to a backend running the new version.  The admin 
 is then in control of how much index upgrade load to inflict on the new 
 machine.

 I'm very interested in details of the xfer-ing. Can you provide them?

This is how we accomplished our upgrade from 2.3 to 2.4.  We originally 
planned an in-place upgrade, but we encountered the same performance 
problems you noted.  Instead, we vacated one server at a time and did 
the upgrades with no mailboxes in place.  We were then free to move 
mailboxes back on to the newly upgraded server.

If you are running a Cyrus Murder, simply connect via cyradm and issue a 
rename command using the same source and destination mailbox name, but 
specify a different server.  The result will be that the mailbox will 
keep its original name but will be moved to the different server.

For example, if my mailbox was on server1 and I wanted to move it to 
server 2 I could:

$ cyradm server1
  rename user.dave64 user.dave64 server2

To specify a partition instead of moving it to the defaultpartition,

  rename user.dave64 user.dave64 server2!u1

hth,

Dave




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


Re: Vacation Not Working...

2011-05-10 Thread Bron Gondwana
On Tue, May 10, 2011 at 08:58:43AM -0600, Nathanael D. Noblet wrote:
 sievedir: /var/lib/imap/sieve
 sendmail: /usr/sbin/sendmail
 sieve_maxscriptsize: 32
 sieve_maxscripts: 5

Here's what else we have in our config file:

sievenotifier: mailto
sieve_extensions: fileinto reject vacation imapflags notify envelope body 
relational regex subaddress copy

Also, as people said - you need to have the right envelope sender, because
that's what sieve is keying off.

Finally, what's happening in your syslog files?  There should be something
from sieve about processing the message.

Bron.

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-10 Thread Bron Gondwana
On Tue, May 10, 2011 at 01:55:08PM -0300, Henrique de Moraes Holschuh wrote:
 Now, just in case it is not as crazy an idea as it sounds: could one use
 the replication protocol and a murder cluster to actually have a cyrus
 mobile drone?

Don't worry - I'm listening to the thread, and thinking...

Bron.

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


deliver.db

2011-05-10 Thread Alexei Shilin
Hi,

One of our scanner produces non-unique message-ids when sending mails.
Ids are repeated in about a week. 

So I decided to have deliver.db purged at least once a day, because I
have duplicatesuppression on in imapd.conf

cyrus.conf
EVENTS {
 
  checkpointcmd=ctl_cyrusdb -c period=30
  delprune  cmd=cyr_expire -E 1 -a -v at=1015
  tlsprune  cmd=tls_prune period=1440
}
##


deliver.db had 114 lines, I tried to set at to the time 5 min in the
future. I waited for 10 mins. Log reported that cyr_expire ran, but
deliver.db size and number of lines did not change.

I have stopped cyrus, renamed deliver.db, started cyrus. And now
deliver.db is quite small and not changing.

-rw--- 1 cyrus mail 8,0K May 11 10:55 /var/imap/deliver.db


What should I do anyway to fight that ugly scanner while keeping
duplicatesuppression on ?

__
Alexei Shilin
cyrus-imapd 2.3.14-r3
Gentoo


-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service


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


Re: deliver.db

2011-05-10 Thread Simon Matter
 Hi,

 One of our scanner produces non-unique message-ids when sending mails.
 Ids are repeated in about a week.

 So I decided to have deliver.db purged at least once a day, because I
 have duplicatesuppression on in imapd.conf

 cyrus.conf
 EVENTS {

   checkpointcmd=ctl_cyrusdb -c period=30
   delprune  cmd=cyr_expire -E 1 -a -v at=1015
   tlsprune  cmd=tls_prune period=1440
 }
 ##


 deliver.db had 114 lines, I tried to set at to the time 5 min in the
 future. I waited for 10 mins. Log reported that cyr_expire ran, but
 deliver.db size and number of lines did not change.

 I have stopped cyrus, renamed deliver.db, started cyrus. And now
 deliver.db is quite small and not changing.

 -rw--- 1 cyrus mail 8,0K May 11 10:55 /var/imap/deliver.db


 What should I do anyway to fight that ugly scanner while keeping
 duplicatesuppression on ?

I suggest to generate a valid message ID on the receiving MTA for just
those mails. How to do it really depends on how your config looks like and
there may be a lot of ways to do that. If you could remove the message ID
before it is injected into the MTA, the MTA may happily generate a new
unique one.

Regards,
Simon


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


Re: deliver.db

2011-05-10 Thread Bron Gondwana
On Tue, May 10, 2011 at 09:11:54PM -0700, Alexei Shilin wrote:

(I see you're one of our customers)

 One of our scanner produces non-unique message-ids when sending mails.
 Ids are repeated in about a week. 

I'm guessing this isn't fixable in the scanner - but an alternative
might be to strip it with a filter and then have your MTA generate
a new one.  I'm pretty sure that's possible with Postfix.

Assuming you don't need the original for tracking purposes - though
you could probably even add it as X-Original-Message-Id: or something.
 
   delprune  cmd=cyr_expire -E 1 -a -v at=1015
 
 What should I do anyway to fight that ugly scanner while keeping
 duplicatesuppression on ?

Try it without -a?  I know there are some pretty confused pieces of
logic in cyr_expire back in 2.3.x.

Bron.

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