Solution for using alot or large groups with slow nss backends like nss_ldap

2004-12-17 Thread Simon Matter
I've just implemented a quick fix for an issue I've been having recently
and from searching google it seems that I'm not the only one. I've
included the feature into the current Invoca cyrus-imapd rpm package but
maybe it's also useful for others.

The groupcache related files are here:
http://www.invoca.ch/pub/packages/cyrus-imapd/scripts/groupcache/

The source rpm is here as usual:
http://www.invoca.ch/pub/packages/cyrus-imapd/

Below is a cut'n'paste from the README file. Feedback as always welcome.

Regards,
Simon


>From the README:
If you have a lot of groups or very large groups, cyrus-imapd login can
become quite slow due to the way cyrus-imapd handles groups. This may
become worse when using nss_ldap or other slow nss backends to resolve
groups. Caching using nscd can increase speed dramatically but
unfortunately not for all functions cyrus-imapd uses. nscd helps speeding
up getgrnam() calls but not getgrent() calls, which are used by
cyrus-imapd to get a complete list of all groups available.
The groupfile patch implements a quick fix to the problem by using a
separate group.cache file to speed up those operations using getgrent()
calls.
Calls to getgrnam() are not touched which means that the group.cache file
must be kept in sync with the group source you are using with nss
configured in /etc/nsswitch.conf. If group.cache doesn't exist, the patch
has no effect and cyrus-imapd handles groups through getgrent().

Quick HOWTO:
- configure group lookup in /etc/nsswitch.conf if not already done
- configure name service cache in /etc/nscd.conf  (not mandatory)
- start nscd with "service nscd start"(not mandatory)
- configure a service which periodically updates the group.cache file
  using the upd_groupcache script. Either set up a cronjob or use a
  event in the cyrus configuration.

Sample /etc/cyrus.conf event to update the group cache every 10 minutes:
EVENTS {
  # some events removed here ***
  ...***

  # this is only necessary if using group cache feature
  groupcachecmd="upd_groupcache" period=10
}


---
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


Good Cyrus Book

2004-12-17 Thread Hamish
Hello Everyone
Can anyone recommend a good book for learning about cyrus admin? I have 
seen the O'reilly one "Managing IMAP" but it seems a bit old - is it any 
good?
Thanks,
H


signature.asc
Description: OpenPGP digital signature


Re: Email marked as runeaded

2004-12-17 Thread Paul Boven
Hi Philip,
Phillip Neumann wrote:
when i connect with my IMAP client to the server, i see my messages. All 
are marked as unreaded. So when i click one mail, it gets in the readed 
state. Thats ok. Now i disconnect, and connect again, and message is 
unread again...  I cannot distiguish which messages are new and wich are 
old... :-(
another thing is what i see in the logs very often:

Dec 14 15:29:23 www imaps[90354]: Could not open seen state for bob 
(System I/O error)
Dec 14 15:29:32 www imaps[90354]: DBERROR: skiplist recovery 
/var/imap/user/b/bob.seen: ADD at 1628 exists
Dec 14 15:29:32 www imaps[90354]: DBERROR: opening 
/var/imap/user/b/bob.seen: cyrusdb error
Your problem here is that the 'seen' database, which keeps tracks for 
you which emails you have already read, has become corrupted. The 
easiest thing you could do would be to simply stop cyrus, remove the 
file /var/imap/user/b/bob.seen completely, and start cyrus again. It 
will cause cyrus to create a new database and afterwards will keep 
proper track again.
The reason your database got corrupted could for instance be that the 
/var-filesystem become full sometime ago: this is what caused a lot of 
our seen-databases to become corrupt.
If there is a lot of information in your seen-database you could also 
attempt to 'repair' the database by removing the corrupt transaction at 
the end. We did this and it works fine but is a bit awkward. For more 
information, please see e.g.

http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=19536
Regards, Paul Boven.
---
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 errors

2004-12-17 Thread Mark Drummond
Recently my cyrus-imapd went *boom* an I was having all kinds of problems with 
it. Most notably, I could not connect and postfix could not deliver mail to 
cyrus.

Yesterday, cryus just magically started working again. Or at least, I can 
connect to it and I can read my mail. Not sure about delivery yet, haven't 
tried it.

Nonetheless, I am still seeing all kinds of disconcerting error messages in my 
logs. Can someone tell me if these are a problem and maybe give me a clue 
what to do about them?

Thanks,

Mark

Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run 
recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed: 
DB_RUNRECOVERY: Fatal error, run database recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
Dec 17 09:48:16 [lmtpunix] executed
Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: Invalid 
argument
Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: cyrusdb 
error
Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate delivery 
database
Dec 17 09:48:16 [master] process 17385 exited, status 75
Dec 17 09:48:16 [master] service lmtpunix pid 17385 in READY state: terminated 
abnormally
Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run 
recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed: 
DB_RUNRECOVERY: Fatal error, run database recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
Dec 17 09:48:16 [lmtpunix] executed
Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: Invalid 
argument
Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: cyrusdb 
error
Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate delivery 
database
Dec 17 09:48:16 [master] process 17401 exited, status 75
Dec 17 09:48:16 [master] service lmtpunix pid 17401 in READY state: terminated 
abnormally
Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run 
recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed: 
DB_RUNRECOVERY: Fatal error, run database recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
Dec 17 09:48:16 [lmtpunix] executed
Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: Invalid 
argument
Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: cyrusdb 
error
Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate delivery 
database
Dec 17 09:48:16 [master] process 17418 exited, status 75
Dec 17 09:48:16 [master] service lmtpunix pid 17418 in READY state: terminated 
abnormally
Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run 
recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed: 
DB_RUNRECOVERY: Fatal error, run database recovery
Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
Dec 17 09:48:16 [lmtpunix] executed
---
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


Problem with mailbox name using virtual domains (sasl plugin problem?)

2004-12-17 Thread Adam D. Oliver
I'm trying to get virtual hosting up and running with cyrus imapd and sasl.
The problem is that I create a mailbox for a user that will be in a domain
other than the default domain.

cm user/[EMAIL PROTECTED]

When I log in as the user (testing with Outlook Express) it wants to use the
following format instead.

user/username/[EMAIL PROTECTED]

I've been searching and the only thing close to even discussing this is
mention that some auxprop plugins do not pass on the domain/realm to the
imap server.  If that is the case how is it getting the domain name to tack
onto the folder name?  I am using the sasldb plugin.  I added the user to
sasldb with the following:

saslpasswd2 -c -u domain1.com username

I log in through outlook express using [EMAIL PROTECTED] as the username.

Cyrus SASL version 2.1.20
Cyrus Imapd version 2.2.10

**imapd.conf
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/imapd.conf,v
1.5 2004/08/27 06:02:45 langthang Exp $

# Don't forget to use chattr +S (if you are using ext[23]) 
# when you change these directories (read the docs).
configdirectory:/var/imap
partition-default:  /var/spool/imap
sievedir:   /var/imap/sieve

tls_ca_path:/etc/ssl/certs
tls_cert_file:  /etc/ssl/cyrus/server.crt
tls_key_file:   /etc/ssl/cyrus/server.key

# Don't use an everyday user as admin.
admins: cyrus

hashimapspool:  yes
allowanonymouslogin:no
#allowplaintext:no

# Allow renaming of top-level mailboxes.
#allowusermoves: yes

# Use this if sieve-scripts could be in ~user/.sieve.
sieveusehomedir:no

postmaster: postmaster
servername: fbtux.fblaw.com
sendmail: /usr/sbin/sendmail

# Use saslauthd if you want to use pam for imap.
# But be warned: login with DIGEST-MD5 or CRAM-MD5 
# is not possible using pam.
# sasl_pwcheck_method:  auxprop


## This is a recommended authentication method if you
## emerge cyrus-sasl with 'postgres' or 'mysql'
## To use with mysql database uncomment those lines below.

sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb

## possible values for sasl_auxprop_plugin 'mysql', 'pgsql', 'sqlite'.
#sasl_sql_engine: mysql

## all possible values.
#sasl_mech_list: LOGIN PLAIN CRAM-MD5 DIGEST-MD5 NTLM
## or limit to CRAM-MD5 only
sasl_mech_list: PLAIN

## change below to suit your setup.
#sasl_sql_user: mailsqluser
#sasl_sql_passwd: password
#sasl_sql_database: mailsqldb
#sasl_sql_hostnames: localhost
#sasl_sql_select: SELECT clear FROM users WHERE email = '[EMAIL PROTECTED]'

altnamespace: 0
unixhierarchysep: 1
virtdomains: userid
defaultdomain: default.com
#loginrealms: domain1.com


**cyrus.conf**
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/cyrus.conf,v
1.4 2004/07/18 04:02:23 dragonheart Exp $

# Standard standalone server configuration.

START {
  # Do not delete this entry!
  recover   cmd="ctl_cyrusdb -r"

  # This is only necessary if using idled for IMAP IDLE.
  #idledcmd="idled"
}

# UNIX sockets start with a slash and are put into /var/imap/socket.
SERVICES {
  # Add or remove based on preferences.
  imap  cmd="imapd" listen="imap2" prefork=0
  pop3  cmd="pop3d" listen="pop-3" prefork=0

  # Don't forget to generate the needed keys for SSL or TLS
  # (see doc/html/install-configure.html).
  #imapscmd="imapd -s" listen="imaps" prefork=0
  #pop3scmd="pop3d -s" listen="pop3s" prefork=0

  sieve cmd="timsieved" listen="sieve" prefork=0

  # at least one LMTP is required for delivery
  #lmtp cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0

  # this is only necessary if using notifications
  #notify   cmd="notifyd" listen="/var/imap/socket/notify" proto="udp"
prefork=1
}

EVENTS {
  # This is required.
  checkpointcmd="ctl_cyrusdb -c" period=30

  # This is only necessary if using duplicate delivery suppression.
  delprune  cmd="ctl_deliver -E 3" period=1440

  # This is only necessary if caching TLS sessions.
  tlsprune  cmd="tls_prune" period=1440
}

---
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 errors

2004-12-17 Thread Mark Drummond
Delivery is not working:

Dec 17 09:47:37 [postfix/lmtp] A7D9711D9F4: to=<[EMAIL PROTECTED]>, 
relay=none, delay=301, status=deferred (connect 
to /var/imap/socket/lmtp[/var/imap/socket/lmtp]: read timeout)
Dec 17 09:47:48 [postfix/lmtp] 2514A11D9F6: to=<[EMAIL PROTECTED]>, 
relay=none, delay=301, status=deferred (connect 
to /var/imap/socket/lmtp[/var/imap/socket/lmtp]: read timeout)

I'm almost inclined to reinstall cyrus from scratch.

Mark

On December 17, 2004 09:48, Mark Drummond wrote:
> Recently my cyrus-imapd went *boom* an I was having all kinds of problems
> with it. Most notably, I could not connect and postfix could not deliver
> mail to cyrus.
>
> Yesterday, cryus just magically started working again. Or at least, I can
> connect to it and I can read my mail. Not sure about delivery yet, haven't
> tried it.
>
> Nonetheless, I am still seeing all kinds of disconcerting error messages in
> my logs. Can someone tell me if these are a problem and maybe give me a
> clue what to do about them?
>
> Thanks,
>
> Mark
>
> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
> recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
> DB_RUNRECOVERY: Fatal error, run database recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
> Dec 17 09:48:16 [lmtpunix] executed
> Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: Invalid
> argument
> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: cyrusdb
> error
> Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate delivery
> database
> Dec 17 09:48:16 [master] process 17385 exited, status 75
> Dec 17 09:48:16 [master] service lmtpunix pid 17385 in READY state:
> terminated abnormally
> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
> recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
> DB_RUNRECOVERY: Fatal error, run database recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
> Dec 17 09:48:16 [lmtpunix] executed
> Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: Invalid
> argument
> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: cyrusdb
> error
> Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate delivery
> database
> Dec 17 09:48:16 [master] process 17401 exited, status 75
> Dec 17 09:48:16 [master] service lmtpunix pid 17401 in READY state:
> terminated abnormally
> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
> recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
> DB_RUNRECOVERY: Fatal error, run database recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
> Dec 17 09:48:16 [lmtpunix] executed
> Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: Invalid
> argument
> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db: cyrusdb
> error
> Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate delivery
> database
> Dec 17 09:48:16 [master] process 17418 exited, status 75
> Dec 17 09:48:16 [master] service lmtpunix pid 17418 in READY state:
> terminated abnormally
> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
> recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
> DB_RUNRECOVERY: Fatal error, run database recovery
> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
> Dec 17 09:48:16 [lmtpunix] executed
---
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 errors

2004-12-17 Thread Simon Matter
> Delivery is not working:
>
> Dec 17 09:47:37 [postfix/lmtp] A7D9711D9F4: to=<[EMAIL PROTECTED]>,
> relay=none, delay=301, status=deferred (connect
> to /var/imap/socket/lmtp[/var/imap/socket/lmtp]: read timeout)
> Dec 17 09:47:48 [postfix/lmtp] 2514A11D9F6: to=<[EMAIL PROTECTED]>,
> relay=none, delay=301, status=deferred (connect
> to /var/imap/socket/lmtp[/var/imap/socket/lmtp]: read timeout)
>
> I'm almost inclined to reinstall cyrus from scratch.

Without knowing what happened exactly it's obvious that your BDB isn't
happy. I suggest you try to fix you databases, convert them to skiplist
and be happy.

Simon

>
> Mark
>
> On December 17, 2004 09:48, Mark Drummond wrote:
>> Recently my cyrus-imapd went *boom* an I was having all kinds of
>> problems
>> with it. Most notably, I could not connect and postfix could not deliver
>> mail to cyrus.
>>
>> Yesterday, cryus just magically started working again. Or at least, I
>> can
>> connect to it and I can read my mail. Not sure about delivery yet,
>> haven't
>> tried it.
>>
>> Nonetheless, I am still seeing all kinds of disconcerting error messages
>> in
>> my logs. Can someone tell me if these are a problem and maybe give me a
>> clue what to do about them?
>>
>> Thanks,
>>
>> Mark
>>
>> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
>> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
>> recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
>> DB_RUNRECOVERY: Fatal error, run database recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
>> Dec 17 09:48:16 [lmtpunix] executed
>> Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
>> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db:
>> Invalid
>> argument
>> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db:
>> cyrusdb
>> error
>> Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate
>> delivery
>> database
>> Dec 17 09:48:16 [master] process 17385 exited, status 75
>> Dec 17 09:48:16 [master] service lmtpunix pid 17385 in READY state:
>> terminated abnormally
>> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
>> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
>> recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
>> DB_RUNRECOVERY: Fatal error, run database recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
>> Dec 17 09:48:16 [lmtpunix] executed
>> Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
>> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db:
>> Invalid
>> argument
>> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db:
>> cyrusdb
>> error
>> Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate
>> delivery
>> database
>> Dec 17 09:48:16 [master] process 17401 exited, status 75
>> Dec 17 09:48:16 [master] service lmtpunix pid 17401 in READY state:
>> terminated abnormally
>> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
>> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
>> recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
>> DB_RUNRECOVERY: Fatal error, run database recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
>> Dec 17 09:48:16 [lmtpunix] executed
>> Dec 17 09:48:16 [lmtpunix] DBERROR db4: environment not yet opened
>> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db:
>> Invalid
>> argument
>> Dec 17 09:48:16 [lmtpunix] DBERROR: opening /var/imap/deliver.db:
>> cyrusdb
>> error
>> Dec 17 09:48:16 [lmtpunix] FATAL: lmtpd: unable to init duplicate
>> delivery
>> database
>> Dec 17 09:48:16 [master] process 17418 exited, status 75
>> Dec 17 09:48:16 [master] service lmtpunix pid 17418 in READY state:
>> terminated abnormally
>> Dec 17 09:48:16 [master] about to exec /usr/lib/cyrus/lmtpd
>> Dec 17 09:48:16 [lmtpunix] DBERROR db4: fatal region error detected; run
>> recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: dbenv->open '/var/imap/db' failed:
>> DB_RUNRECOVERY: Fatal error, run database recovery
>> Dec 17 09:48:16 [lmtpunix] DBERROR: init() on berkeley
>> Dec 17 09:48:16 [lmtpunix] executed
> ---
> 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


Messages lost

2004-12-17 Thread Jimmy Karlsson
Hi!

Noob question, I have very little experience with Cyrus and may have
misunderstood everything. I have a problem with Cyrus losing messages (or I
have misunderstood the log). The following three messages was simply lost. The
common thing is that none of them have any message id set, I have checked my
Exim log and the id's are missing at arrival.

/ Jimmy

Dec 17 15:16:37 kilroy lmtpd[83229]: accepted connection
Dec 17 15:16:37 kilroy lmtpd[83229]: lmtp connection preauth'd as postman
Dec 17 15:16:37 kilroy master[83232]: about to exec /usr/local/cyrus/bin/lmtpd
Dec 17 15:16:37 kilroy lmtpunix[83232]: executed
Dec 17 15:16:37 kilroy lmtpd[83232]: accepted connection
Dec 17 15:16:37 kilroy lmtpd[83232]: lmtp connection preauth'd as postman
Dec 17 15:16:37 kilroy lmtpd[83232]: duplicate_check:
   user.jimbo   1103016596
Dec 17 15:16:37 kilroy lmtpd[83232]: mystore: starting txn 2147491417
Dec 17 15:16:37 kilroy lmtpd[83232]: mystore: committing txn 2147491417
Dec 17 15:16:37 kilroy lmtpd[83232]: duplicate_mark:
  .jimbo+.sieve.   1103292997
Dec 17 15:16:37 kilroy lmtpd[83232]: accepted connection
Dec 17 15:16:37 kilroy lmtpd[83232]: lmtp connection preauth'd as postman
Dec 17 15:16:37 kilroy lmtpd[83232]: duplicate_check:
   user.jimbo   1103016596
Dec 17 15:16:37 kilroy lmtpd[83232]: mystore: starting txn 2147491418
Dec 17 15:16:37 kilroy lmtpd[83232]: mystore: committing txn 2147491418
Dec 17 15:16:37 kilroy lmtpd[83232]: duplicate_mark:
  .jimbo+.sieve.   1103292997
Dec 17 15:16:37 kilroy lmtpd[83229]: duplicate_check:
   user.jimbo   1103016596
Dec 17 15:16:37 kilroy lmtpd[83229]: mystore: starting txn 2147491419
Dec 17 15:16:37 kilroy lmtpd[83229]: mystore: committing txn 2147491419
Dec 17 15:16:37 kilroy lmtpd[83229]: duplicate_mark:
  .jimbo+.sieve.   1103292997
Dec 17 15:16:59 kilroy master[397]: process 83223 exited, status 0
Dec 17 15:17:37 kilroy master[397]: process 83232 exited, status 0
Dec 17 15:17:37 kilroy master[397]: process 83229 exited, status 0




This message was sent using IMP, the Internet Messaging Program.

---
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


mysql auxprop plugin problem

2004-12-17 Thread Brad
Hi all,

I am trying to get cyrus up and going on fc3 with postfix and mysql.  I
am using the MySQL-server-4.1.7-0 rpm's from mysql.org.  I also built
and installed MySQL-shared-compat for other dependencies.  My cyrus
rpm's are cyrus-sasl-2.1.19-3, cyrus-sasl-md5-2.1.19-3, cyrus-sasl-
plain-2.1.19-3, cyrus-sasl-devel-2.1.19-3, cyrus-sasl-sql-2.1.19-3,
cyrus-imapd-2.2.10-1.fc3, cyrus-imapd-utils-2.2.10-3.fc3, and cyrus-
imapd-devel-2.2.10-1.fc3.  I built the sasl rpm's from source rpm's and
included --enable-sql.  When I start cyrus-imap I get the following
errors in /var/log/messages:

 perl: unable to
dlopen /usr/lib/sasl2/libsql.so.2: /usr/lib/sasl2/libsql.so.2: undefined
symbol: compress

Dec 17 10:58:41 mybox pop[20869]: SQL engine 'mysql' not supported
Dec 17 10:58:41 mybox pop[20869]: auxpropfunc error no mechanism
available

and the same errors for IMAP.  I followed some other posts that suggest
it's a problem with not having zlib but I have zlib-1.2.1.2-1 and zlib-
devel-1.2.1.2-1 installed.  Here is a snippet from my imapd.conf:

admins: root, cyrus
allowanonymouslogin: no
sasl_pwcheck_method: auxprop
sasl_sql_engine: mysql
sasl_sql_database: mail
sasl_sql_select: SELECT password FROM accountuser WHERE username = '%u'
and domain_name = '%r'
auxprop_plugin: mysql
sasl_sql_verbose: yes
sasl_mech_list: PLAIN
allowplaintext: yes
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
sasl_sql_user: mail
sasl_sql_passwd: password
sasl_sql_hostnames: localhost
imapidresponse: no
quotawarn: 90

Any help is appreciated.

Thanks,

Brad



---
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


[no subject]

2004-12-17 Thread info-andrew
---
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