Can lmtpproxyd use a slave mupdate on a frontend or it realy need to talk to the mupdate master ???

2005-03-31 Thread Daniel Renaud
Hello,
We have a problem with our mupdate master ... it get over load with 
lmtpproxyd query from our frontend and stop serving.  Can a lmtpproxyd 
use the mupdate slave on his frontend to get his information or it realy 
need to talk to the master mupdate ?

If lmptproxyd can use the slave on the frontend, we will need to change 
the directive "mupdate_server" in imapd.conf to point it to localhost 
but where do we  add the master ip information to let the slave sync 
with the master ?

Thanks
Daniel Renaud
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: krb.equiv not working

2005-03-31 Thread Giri Raichur
The default realm is "lanl.gov".
Thanks,
Giri Raichur
On Mar 30, 2005, at 10:36 PM, Derrick J Brashear wrote:
On Wed, 30 Mar 2005, Giri Raichur wrote:
Derrick,
[EMAIL PROTECTED] root]# klist
Ticket cache: FILE:/tmp/krb5cc_0_ftp582
Default principal: [EMAIL PROTECTED]
ok, so i guess the other thing i should ask is what is the local realm?
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Posting directly to subfolder / "+"-Notation [postfix]

2005-03-31 Thread Christoph Moench-Tegeder
## Rob Siemborski ([EMAIL PROTECTED]):

> However, the LMTP session can authorize each message as a particular 
> sender as well.  So while the postfix server authenticates to the LMTP 
> server as "postfix" or whatever, the postfix server is then trusted to be 
> correct when it says "this message sent by xyz".
> In that case, you can use SMTP Auth to your postfix server to submit the 
> message, which then relays the authentication info for the message.

I'm not sure if postfix is capable of doing so (but that's again
a postfix problem, not a cyrus problem...).
The documentation[1] says "Postfix [...] does not pass it on via SMTP
commands when forwarding mail, [...]" so I believe it's not possible.

[1] http://www.postfix.org/SASL_README.html

Regards,
Christoph

-- 
Spare Space
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread Sergio Devojno Bruder
Derrick J Brashear wrote:
Well, you have skiplist corruption, but there's not really anything 
in your report which is helpful at suggesting why you do, or helping 
to reproduce it so (if it is a bug) it can be tracked and killed.

Even posting your corrupted skiplist would be more useful.
>>
>> Yeah I know the info I gave isn't very helpfull.. the problem is that
>> the corruption is random.. sometimes it takes 2 days to happen,
>> sometimes a week. Any sujestions on how to debug and try catch the
>> problem ?
To add more information:
We've done 2 murder instalations, cyrus 2.2.3 and cyrus 2.2.10, and already have 
seen the same type of corruption. (should ADD or DELETE), but not with the same 
frequency.

--
Sergio Devojno Bruder<[EMAIL PROTECTED]>
http://haxent.com.br  41 362-5930, 41 8402-2125
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Db Error

2005-03-31 Thread Yann Rouillard
Hi,
Following a disk problem, I had database inconsistency:
lmtp[25617]: [ID 866726 local6.warning] DBERROR db4: fatal region error 
detected; run recovery
Mar 31 10:00:08 dioptase lmtp[25617]: [ID 301778 local6.error] DBERROR: 
dbenv->open '/opt/csw/var/cyrus/db' failed: DB_RUNRECOVERY: Fatal error, 
run database recovery
Mar 31 10:00:08 dioptase lmtp[25617]: [ID 323402 local6.error] DBERROR: 
init() on berkeley
Mar 31 10:00:08 dioptase lmtp[25617]: [ID 301778 local6.error] DBERROR: 
dbenv->open '/opt/csw/var/cyrus/db' failed: DB_RUNRECOVERY: Fatal error, 
run database recovery
Mar 31 10:00:08 dioptase lmtp[25617]: [ID 323402 local6.error] DBERROR: 
init() on berkeley

I solved the problem by suppressing databases files (*.db files and db 
directories) except mailboxes.db (and cyrus.* files in user mailboxes of 
course) and recreating directories (with mkimap).

Everything is back, but I would like to know what are the side effects 
of removing the db directory.

Thanks in advance.
Yann
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread Henrique de Moraes Holschuh
On Thu, 31 Mar 2005, Sergio Devojno Bruder wrote:
> We've done 2 murder instalations, cyrus 2.2.3 and cyrus 2.2.10, and already 
> have seen the same type of corruption. (should ADD or DELETE), but not with 
> the same frequency.

Are you guys running the same distribution or the same kernel? It looks like
searching for common points between the two installations would give some
hints on where the problem lies.

-- 
  "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://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Posting directly to subfolder / "+"-Notation [postfix]

2005-03-31 Thread Henrique de Moraes Holschuh
On Thu, 31 Mar 2005, Christoph Moench-Tegeder wrote:
> > However, the LMTP session can authorize each message as a particular 
...
> I'm not sure if postfix is capable of doing so (but that's again
> a postfix problem, not a cyrus problem...).

Exactly. Postfix can do that in the newest snapshot versions AFAIK, but
_please_ do not ask here anything else about this matter, this is _really_
best asked on the postfix mailinglist.  The people there are very
knowledgeable and generally very friendly.

-- 
  "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://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread João Assad
Henrique de Moraes Holschuh wrote:
On Thu, 31 Mar 2005, Sergio Devojno Bruder wrote:
 

We've done 2 murder instalations, cyrus 2.2.3 and cyrus 2.2.10, and already 
have seen the same type of corruption. (should ADD or DELETE), but not with 
the same frequency.
   

Are you guys running the same distribution or the same kernel? It looks like
searching for common points between the two installations would give some
hints on where the problem lies.
 

My db just got corrupted again 2 hours ago. seems like moving 200k 
mailboxes between backends really speed it up.
I have my corrupted mailboxes.db and I can send it to anyone interested 
in taking a look.

fedora core 2
kernel-smp-2.6.10-1.14_FC2
Untill Tuesday:
cyrus-imapd-2.2.10-3.fc2
cyrus-imapd-murder-2.2.10-3.fc2
After Tuesday I made a custom 2.2.12 source installation

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Strange output

2005-03-31 Thread Andreas Haase
Hi,
I have a cyrus 2.1.15 running on Suse 9.0. It authenticates againt sasl2 
(saslauthd), which uses ldap to get the credentials. And now, if I put in 
invalid usernames or passwords, I get the following outout:

--- snip ---
mail:~ # telnet localhost 110
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK mail Cyrus POP3 v2.1.15 server ready <[EMAIL PROTECTED]>
user foo
+OK Name is a valid mailbox
pass foo
|
[EMAIL PROTECTED] 
[EMAIL PROTECTED]@ðJ@: Successful return: 0
Successful return: 0
-ERR [AUTH] Invalid login
--- snap ---

Could anyone please tell me where the crap between the pass line and error 
message is coming from? Any hints appreciated. If you need more infos, 
please let me know.

Thanks in advance.
Regards,
Andreas Haase
Postmaster
EastLink GmbH
--
-- professional INTERNET services -
EastLink GmbH  -  Leipziger Strasse 46  -  D-09113 Chemnitz
voice: +49-180-5432060 fax: +49-371-4320626 www.eastlink.de

Sieve messages translation

2005-03-31 Thread Christophe Boyanique
Hello,
is there a way to translate (localize?) Sieve mail notifications ?
Christophe.
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Igor Brezac
Have you check syslog for messages from saslauthd/cyrus?  What version of 
cyrus-sasl do you use?

-Igor
On Thu, 31 Mar 2005, Andreas Haase wrote:
Hi,
I have a cyrus 2.1.15 running on Suse 9.0. It authenticates againt sasl2 
(saslauthd), which uses ldap to get the credentials. And now, if I put in 
invalid usernames or passwords, I get the following outout:

--- snip ---
mail:~ # telnet localhost 110
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK mail Cyrus POP3 v2.1.15 server ready <[EMAIL PROTECTED]>
user foo
+OK Name is a valid mailbox
pass foo
|
[EMAIL PROTECTED] [EMAIL PROTECTED]@ðJ@: Successful return: 0
Successful return: 0
-ERR [AUTH] Invalid login
--- snap ---
Could anyone please tell me where the crap between the pass line and error 
message is coming from? Any hints appreciated. If you need more infos, please 
let me know.

Thanks in advance.
Regards,
Andreas Haase
Postmaster
EastLink GmbH
--
Igor

tls certificates for old Mac clients

2005-03-31 Thread Craig White
probably venturing on the edges being off-topic here but I have been
struggling with creating certificates for the Microsoft/Macintosh OS 9
versions of Internet Explorer/Outlook Express (they of course are
intertwined).

I have found that my server certificates with the private key removed
work ok with Netscape 7 on these Mac clients but all of my attempts to
create something that Internet Explorer doesn't complain about it being
invalid seems to elude me. Has anyone found a methodology that works?

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Andreas Haase
On Thu, 31 Mar 2005, Igor Brezac wrote:

>
> Have you check syslog for messages from saslauthd/cyrus?  What version of
> cyrus-sasl do you use?

SASL version is 2.1.15, too. Neither syslog nor running saslauthd with
debugging activated brought any new hints :-/

Regards,

Andreas Haase
Postmaster
EastLink GmbH
-- 
-- professional INTERNET services -

EastLink GmbH  -  Leipziger Strasse 46  -  D-09113 Chemnitz
voice: +49-180-5432060 fax: +49-371-4320626 www.eastlink.de
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Craig White
On Thu, 2005-03-31 at 18:05 +0200, Andreas Haase wrote:
> Hi,
> 
> I have a cyrus 2.1.15 running on Suse 9.0. It authenticates againt sasl2 
> (saslauthd), which uses ldap to get the credentials. And now, if I put in 
> invalid usernames or passwords, I get the following outout:
> 
> --- snip ---
> mail:~ # telnet localhost 110
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> +OK mail Cyrus POP3 v2.1.15 server ready <[EMAIL PROTECTED]>
> user foo
> +OK Name is a valid mailbox
> pass foo
> |
> [EMAIL PROTECTED] 
> [EMAIL PROTECTED]@ÃJ@: Successful return: 0
> Successful return: 0
> -ERR [AUTH] Invalid login
> --- snap ---
> 
> Could anyone please tell me where the crap between the pass line and error 
> message is coming from? Any hints appreciated. If you need more infos, 
> please let me know.

from my past experience with debugging login problems (adjust for pop3
instead of imap - my problem was using IMP with imap login).

I was able to capture with just a few slight adjustments...

captured successful login via 'telnet localhost 143'
# tcpdump -w /tmp/imp-imap.good -i lo -s 0 'port imap'

captured unsuccessful login via 'imp' at the moment the 'admin' tried to
do it's thing
# tcpdump -w /tmp/imp-imap.tcpdump -i lo -s 0 'port imap'

and then 'tethereal -r /tmp/imp-imap.[tcpdump|good] showed me the
difference...turns out - even though IMP is configured to send
imap/notls, admin login is encrypted.

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Andreas Haase
On Thu, 31 Mar 2005, Craig White wrote:

> and then 'tethereal -r /tmp/imp-imap.[tcpdump|good] showed me the
> difference...turns out - even though IMP is configured to send
> imap/notls, admin login is encrypted.

I could try that, but I guess both logins are not encrypted because I use
normal telnet to do that. It also makes no difference using pop3 or imap.
Both times the crap gets displayed when the login credentials are wrong.

Regards,

Andreas Haase
Postmaster
EastLink GmbH
-- 
-- professional INTERNET services -

EastLink GmbH  -  Leipziger Strasse 46  -  D-09113 Chemnitz
voice: +49-180-5432060 fax: +49-371-4320626 www.eastlink.de
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Igor Brezac
On Thu, 31 Mar 2005, Andreas Haase wrote:
On Thu, 31 Mar 2005, Igor Brezac wrote:
Have you check syslog for messages from saslauthd/cyrus?  What version of
cyrus-sasl do you use?
SASL version is 2.1.15, too. Neither syslog nor running saslauthd with
debugging activated brought any new hints :-/
Does saslauthd dump when you login with an invalid username?
The only other thing I can suggest is to upgrade sasl first.  You should 
also upgrade cyrus-imap; it is kinda old...

--
Igor
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Andreas Haase
> Does saslauthd dump when you login with an invalid username?

No, the daemon is up and running all the time. A login try with correct
credentials is successful.

> The only other thing I can suggest is to upgrade sasl first.  You should
> also upgrade cyrus-imap; it is kinda old...

Updating sasl isn't that hard, but I can't update the cyrus itself that
easy, because the server is in production. A new one is coming the next
weeks, but I wanted to know what the problem is to avoid it in future.

Regards,

Andreas Haase
Postmaster
EastLink GmbH
-- 
-- professional INTERNET services -

EastLink GmbH  -  Leipziger Strasse 46  -  D-09113 Chemnitz
voice: +49-180-5432060 fax: +49-371-4320626 www.eastlink.de
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Craig White
On Thu, 2005-03-31 at 19:22 +0200, Andreas Haase wrote:
> On Thu, 31 Mar 2005, Craig White wrote:
> 
> > and then 'tethereal -r /tmp/imp-imap.[tcpdump|good] showed me the
> > difference...turns out - even though IMP is configured to send
> > imap/notls, admin login is encrypted.
> 
> I could try that, but I guess both logins are not encrypted because I use
> normal telnet to do that. It also makes no difference using pop3 or imap.
> Both times the crap gets displayed when the login credentials are wrong.

seems to me that the most logical way to figure out where the 'crap' is
coming from is to get a complete tcp dump of the connection

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Backup schedules/strageties

2005-03-31 Thread Joncarlo Ruggieri
Hi,

At UC Davis, we are thinking of moving our email infrastructure to Cyrus.

We are wondering about the best backup stragegy.  We use Veritas
NetBackup.

I have read the wiki and mailing list archives, and I believe I know which
files to backup:

  /var/spool/mail
  /var/lib/imap
  /etc

However, I'm not sure of the best way to handle the mailboxes file.  I've
seen recommendations to save this file to disk every 5-10 minutes.  But
should this be saved to tape that often?

I would appreciate any advice and/or sample backup schedules (which files
are backed-up, when, and how).

Thanks in advance for your help!


Joncarlo Ruggieri
University of CA, Davis
Data Center & Client Services
530-752-3963
[EMAIL PROTECTED]

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Strange output

2005-03-31 Thread Dieter Kluenter
Andreas Haase <[EMAIL PROTECTED]> writes:

> Hi,
> 
> I have a cyrus 2.1.15 running on Suse 9.0. It authenticates againt
> sasl2 (saslauthd), which uses ldap to get the credentials. And now, if
> I put in invalid usernames or passwords, I get the following outout:
> 
> --- snip ---
> mail:~ # telnet localhost 110
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> +OK mail Cyrus POP3 v2.1.15 server ready <[EMAIL PROTECTED]>
> user foo
> +OK Name is a valid mailbox
> pass foo
> |
> [EMAIL PROTECTED] [EMAIL PROTECTED]@ðJ@: Successful return: 0

I have seen similar crap in a mixed environment ldatin-1-15 vs UTF-8 

-Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:01443B53


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread João Assad
Derrick J Brashear wrote:
On Thu, 31 Mar 2005, João Assad wrote:
My db just got corrupted again 2 hours ago. seems like moving 200k 
mailboxes between backends really speed it up.
I have my corrupted mailboxes.db and I can send it to anyone 
interested in taking a look.

how about a url for it?
there you go - http://www.gazzag.com/mailboxes.db.gz
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread Derrick J Brashear
On Thu, 31 Mar 2005, João Assad wrote:
My db just got corrupted again 2 hours ago. seems like moving 200k mailboxes 
between backends really speed it up.
I have my corrupted mailboxes.db and I can send it to anyone interested in 
taking a look.
how about a url for it?


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread João Assad
Derrick J Brashear wrote:
On Thu, 31 Mar 2005, João Assad wrote:
My db just got corrupted again 2 hours ago. seems like moving 200k 
mailboxes between backends really speed it up.
I have my corrupted mailboxes.db and I can send it to anyone 
interested in taking a look.

I needed to restart cyrus master and got this error minutes after doing it.
cyrus/mupdate[12614]: IOERROR: mapping /var/lib/imap/mailboxes.db file: 
Cannot allocate memory
cyrus/mupdate[12614]: failed to mmap /var/lib/imap/mailboxes.db file
cyrus/master[12580]: service mupdate pid 12614 in READY state: 
terminated abnormally

and after restarting the master instance again after this crash I got this
cyrus/ctl_cyrusdb[13314]: skiplist recovery /var/lib/imap/mailboxes.db: 
found partial txn, not replaying

Not very helpfull, but at least its a different message.
Regards
João Assad
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread João Assad
João Assad wrote:
I needed to restart cyrus master and got this error minutes after 
doing it.

cyrus/mupdate[12614]: IOERROR: mapping /var/lib/imap/mailboxes.db 
file: Cannot allocate memory
cyrus/mupdate[12614]: failed to mmap /var/lib/imap/mailboxes.db file
cyrus/master[12580]: service mupdate pid 12614 in READY state: 
terminated abnormally
And now, like 20 mins later my mailbox database is corrupted again.
cyrus-fe1 cyrus/mupdate[14517]: IOERROR: mapping 
/var/lib/imap/mailboxes.db file: Cannot allocate memory
cyrus/mupdate[14517]: failed to mmap /var/lib/imap/mailboxes.db file
cyrus/master[13313]: service mupdate pid 14517 in READY state: 
terminated abnormally

and a few hundred log lines later, the usual
cyrus/mupdate[14975]: DBERROR: skiplist recovery 
/var/lib/imap/mailboxes.db: 14BA9FFC should be ADD or DELETE
cyrus/mupdate[14975]: DBERROR: error updating database user.733844: 
cyrusdb error

I just noticed I had the same IOERROR before the last corruption, I 
didnt notice it before because it seems to be always some 100s lines of 
log before the DBERROR

the new corrupted mailbox db will be available shortly at 
http://www.gazzag.com/mailboxes2.db.gz

Regards
João Assad
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread Derrick J Brashear
On Thu, 31 Mar 2005, João Assad wrote:
cyrus/mupdate[12614]: IOERROR: mapping /var/lib/imap/mailboxes.db file: 
Cannot allocate memory
Resource limited memory, or are you really running out of memory?
Letting processes continue running in the face of an mmap failure needs to 
be re-examined I guess.

Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread Henrique de Moraes Holschuh

On Thu, 31 Mar 2005, João Assad wrote:
> >>My db just got corrupted again 2 hours ago. seems like moving 200k 
> >>mailboxes between backends really speed it up.

...

> cyrus/mupdate[12614]: IOERROR: mapping /var/lib/imap/mailboxes.db file: 
> Cannot allocate memory
> cyrus/mupdate[12614]: failed to mmap /var/lib/imap/mailboxes.db file
> cyrus/master[12580]: service mupdate pid 12614 in READY state: 
> terminated abnormally

Check ulimits.  If fixing the ulimit stuff stops the problems, we know that
the issue is caused by something that mmaps or mallocs and does not check
the result properly.

-- 
  "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://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus-murder problems with database corruption in the frontend/master

2005-03-31 Thread João Assad

cyrus/mupdate[12614]: IOERROR: mapping /var/lib/imap/mailboxes.db file: 
Cannot allocate memory
cyrus/mupdate[12614]: failed to mmap /var/lib/imap/mailboxes.db file
cyrus/master[12580]: service mupdate pid 12614 in READY state: 
terminated abnormally
   

 

Henrique de Moraes Holschuh wrote:
Check ulimits.  If fixing the ulimit stuff stops the problems, we know that
the issue is caused by something that mmaps or mallocs and does not check
the result properly.
Derrick J Brashear wrote:
Resource limited memory, or are you really running out of memory?
Letting processes continue running in the face of an mmap failure 
needs to be re-examined I guess.

The system have plenty of RAM available and ulimit -a reports the max 
virtual memory as unlimited

core file size(blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 32
max memory size   (kbytes, -m) unlimited
open files(-n) 20
pipe size  (512 bytes, -p) 8
stack size(kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes(-u) 32755
virtual memory(kbytes, -v) unlimited


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus with LDAP

2005-03-31 Thread Shashank Agrawal
Hello,

I am unable to get cyrus authentication with LDAP. I am running fedora core 3.

I would appreciate any help. Is there any patch that i need to apply?

Here is my config file.

[EMAIL PROTECTED] etc]# more imapd.conf
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
[EMAIL PROTECTED] etc]#
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve Filtering on "attachment content-type"?

2005-03-31 Thread Marc G. Fournier
After alot of playing around, and finally finding a suitable headering 
that exists in *most* of the messsages that I'm trying to filter on, I've 
come up with the following filter ot clean out the "other language" emails 
that I just can't read:

if allof ( header :contains [ "Content-Type" ]
   [
 "charset=\"GB2312\"",
 "charset=GB2312",
 "charset=\"ks_c_5601-1987\"",
 "charset=ks_c_5601-1987",
 "charset=\"koi8-r\"",
 "charset=koi8-r",
 "charset=\"ISO-2022-JP\"",
 "charset=ISO-2022-JP",
 "charset=\"Windows-1251\"",
 "charset=Windows-1251",
 "charset=\"EUC\"",
 "charset=EUC"
   ] ) {
  fileinto "inbox.garbage";
  stop;
}
The ones taht sem tobe getting through now are the ones that are of one of 
the above charset's, but instead of in the 'message headers', its defined 
in teh 'mime headers' for the attachment itself, so the above filter, of 
course, fails ...

Is there a way of filtering on the mime headers themselves?  So I trap for 
when the attachment is of charset above?

Thanks ...
 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email: [EMAIL PROTECTED]   Yahoo!: yscrappy  ICQ: 7615664
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus with LDAP

2005-03-31 Thread Edward Rudd
On Thu, 2005-03-31 at 19:24, Shashank Agrawal wrote:
> Hello,
> 
> I am unable to get cyrus authentication with LDAP. I am running fedora core 3.
> 
> I would appreciate any help. Is there any patch that i need to apply?
> 
> Here is my config file.
your imapd.conf file looks fine

What does your /etc/saslauthd.conf file look like and what does your
/etc/sysconfig/saslauthd file look like?

the /etc/sysconfig/saslauthd file need to have the auth mech uncommented
and set to ldap (default is pam) and  your /etc/saslauthd.conf file
needs to be configured to connect to your LDAP directory. unless you are
using pam_ldap then you can leave the configuration using PAM, but I
haven't played with that configuration.

[snip]

-- 
Edward Rudd <[EMAIL PROTECTED]>
Website http://www.outoforder.cc/

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus with LDAP

2005-03-31 Thread Shashank Agrawal
Hello,

Here are my config files. /etc/saslauthd.conf didn't exist on my
system. so i created a new one. but still it doesn't work. Thank you.

**
[EMAIL PROTECTED] etc]# more saslauthd.conf
#/etc/saslauthd.conf  
#Config File for the saslauthd with the ldap mechichism

ldap_servers: ldap://localhost:389
ldap_bind_dn: ou=Manager,dc=domain,dc=com
ldap_bind_pw: secret
ldap_search_base: ou=Users,dc=domain,dc=com
ldap_version: 3
ldap_filter: uid=%U
ldap_default_domain: domain.com
[EMAIL PROTECTED] etc]# 

**

[EMAIL PROTECTED] etc]# more /etc/sysconfig/saslauthd 
# Directory in which to place saslauthd's listening socket, pid file, and so
# on.  This directory must already exist.
SOCKETDIR=/var/run/saslauthd

# Mechanism to use when checking passwords.  Run "saslauthd -v" to get a list
# of which mechanism your installation was compiled to use.
MECH=ldap

# Additional flags to pass to saslauthd on the command line.  See saslauthd(8)
# for the list of accepted flags.
FLAGS=
[EMAIL PROTECTED] etc]# 

**

[EMAIL PROTECTED] etc]# !im
imtest -m login -a shashank localhost
S: * OK mail.domain.com Cyrus IMAP4 v2.2.10-Invoca-RPM-2.2.10-3.fc3 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE
STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
Please enter your password: 
C: L01 LOGIN shashank {7}
S: + go ahead
C: 
S: L01 NO Login failed: authentication failure
Authentication failed. generic failure
Security strength factor: 0
.
* BAD Invalid tag
. logout
* BYE LOGOUT received
. OK Completed
Connection closed.
[EMAIL PROTECTED] etc]# 

**

On Thu, 31 Mar 2005 20:57:39 -0500, Edward Rudd <[EMAIL PROTECTED]> wrote:
> On Thu, 2005-03-31 at 19:24, Shashank Agrawal wrote:
> > Hello,
> >
> > I am unable to get cyrus authentication with LDAP. I am running fedora core 
> > 3.
> >
> > I would appreciate any help. Is there any patch that i need to apply?
> >
> > Here is my config file.
> your imapd.conf file looks fine
> 
> What does your /etc/saslauthd.conf file look like and what does your
> /etc/sysconfig/saslauthd file look like?
> 
> the /etc/sysconfig/saslauthd file need to have the auth mech uncommented
> and set to ldap (default is pam) and  your /etc/saslauthd.conf file
> needs to be configured to connect to your LDAP directory. unless you are
> using pam_ldap then you can leave the configuration using PAM, but I
> haven't played with that configuration.
> 
> [snip]
> 
> --
> Edward Rudd <[EMAIL PROTECTED]>
> Website http://www.outoforder.cc/
> 
>
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve Filtering on "attachment content-type"?

2005-03-31 Thread Ken Murchison
Marc G. Fournier wrote:
After alot of playing around, and finally finding a suitable headering 
that exists in *most* of the messsages that I'm trying to filter on, 
I've come up with the following filter ot clean out the "other language" 
emails that I just can't read:

if allof ( header :contains [ "Content-Type" ]
   [
 "charset=\"GB2312\"",
 "charset=GB2312",
 "charset=\"ks_c_5601-1987\"",
 "charset=ks_c_5601-1987",
 "charset=\"koi8-r\"",
 "charset=koi8-r",
 "charset=\"ISO-2022-JP\"",
 "charset=ISO-2022-JP",
 "charset=\"Windows-1251\"",
 "charset=Windows-1251",
 "charset=\"EUC\"",
 "charset=EUC"
   ] ) {
  fileinto "inbox.garbage";
  stop;
}
The ones taht sem tobe getting through now are the ones that are of one 
of the above charset's, but instead of in the 'message headers', its 
defined in teh 'mime headers' for the attachment itself, so the above 
filter, of course, fails ...

Is there a way of filtering on the mime headers themselves?  So I trap 
for when the attachment is of charset above?
You could use the 'body' test which is present in Cyrus 2.3, but you 
would just be matching text, not just MIME headers.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus with LDAP

2005-03-31 Thread Edward Rudd
On Thu, 2005-03-31 at 21:14, Shashank Agrawal wrote:
> Hello,
> 
> Here are my config files. /etc/saslauthd.conf didn't exist on my
> system. so i created a new one. but still it doesn't work. Thank you.


the configuration looks fine. did you check your /var/log/auth.log? did
you try running testsaslauthd? did you start saslauthd?

[snip]
-- 
Edward Rudd <[EMAIL PROTECTED]>
Website http://www.outoforder.cc/

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus with LDAP

2005-03-31 Thread Shashank Agrawal
Hello Edward,

Here are the details you requested. There is some relevant info in
auth.log, but i don't know how to resolve it. thank you.


[EMAIL PROTECTED] ~]# ps -ef | grep saslauthd
root  7751 1  0 20:31 ?00:00:00 /usr/sbin/saslauthd -m
/var/run/saslauthd -a ldap
root  7752  7751  0 20:31 ?00:00:00 /usr/sbin/saslauthd -m
/var/run/saslauthd -a ldap
root  7753  7751  0 20:31 ?00:00:00 /usr/sbin/saslauthd -m
/var/run/saslauthd -a ldap
root  7754  7751  0 20:31 ?00:00:00 /usr/sbin/saslauthd -m
/var/run/saslauthd -a ldap
root  7755  7751  0 20:31 ?00:00:00 /usr/sbin/saslauthd -m
/var/run/saslauthd -a ldap
root  7759  7691  0 20:31 pts/300:00:00 grep saslauthd
[EMAIL PROTECTED] ~]# 
***
[EMAIL PROTECTED] ~]# testsaslauthd -u shashank -p xxx
0: NO "authentication failed"
[EMAIL PROTECTED] ~]#
*
[EMAIL PROTECTED] log]# tail -f auth.log

Mar 31 20:35:54 mail saslauthd[7752]: Authentication failed for
shashank/emgbank.com: Bind to ldap server failed (invalid
user/password or insufficient access) (-7)
Mar 31 20:35:54 mail saslauthd[7752]: do_auth : auth failure:
[user=shashank] [service=imap] [realm=] [mech=ldap] [reason=Unknown]

*

On Mar 31, 2005 7:54 PM, Edward Rudd <[EMAIL PROTECTED]> wrote:
> On Thu, 2005-03-31 at 21:14, Shashank Agrawal wrote:
> > Hello,
> >
> > Here are my config files. /etc/saslauthd.conf didn't exist on my
> > system. so i created a new one. but still it doesn't work. Thank you.
> 
> the configuration looks fine. did you check your /var/log/auth.log? did
> you try running testsaslauthd? did you start saslauthd?
> 
> [snip]
> --
> Edward Rudd <[EMAIL PROTECTED]>
> Website http://www.outoforder.cc/
> 
>
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus with LDAP

2005-03-31 Thread Craig White
On Thu, 2005-03-31 at 20:42 -0800, Shashank Agrawal wrote:

> Mar 31 20:35:54 mail saslauthd[7752]: Authentication failed for
> shashank/emgbank.com: Bind to ldap server failed (invalid
> user/password or insufficient access) (-7)

bingo

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html