Re: Cyrus IMAPd 2.3.12 Released

2008-04-24 Thread Thomas Robers
Simon Matter schrieb:
>> Did you copy/paste the patch? Then maybe it's a problem with whitespace
>> and such. Can you try the attached one.

Yes I did c/p and that seems to be the problem, because with your
patch it did that:

> imap-1:/export/build/cyrus-imapd-2.3.12# patch -p1 < 
> ../cyrus-imapd-2.3.12-config_parser.patch 
> patching file lib/libconfig.c
> patch unexpectedly ends in middle of line
> Hunk #1 succeeded at 344 with fuzz 1.

and after installing I get:

> (gdb) file /opt/cyrus-imapd-2.3.12/libexec/master
> Reading symbols from /opt/cyrus-imapd-2.3.12/libexec/master...done.
> Using host libthread_db library "/lib/libthread_db.so.1".
> (gdb) run -d
> Starting program: /opt/cyrus-imapd-2.3.12/libexec/master -d
> 
> Program exited normally.
> (gdb)

and cyrus master is running.

>> Simon

Thanks Thomas

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


Re: Cyrus IMAPd 2.3.12 Released

2008-04-24 Thread Thomas Robers
Simon Matter schrieb:
>> They don't apply togheter, only one can be applied. Try with fresh sources
>> and Andy Fiddaman's patch should apply fine.
>> 
>> Simon

I should have mentioned that that I did it with fresh sources.

1. fresh sources with first patch
2. delete source tree
3. unpack sources and second patch

I also verified right now again with fresh sources:

> imap-1:/export/build# tar -xvzf source/cyrus-imapd-2.3.12.tar.gz
 > imap-1:/export/build# cd cyrus-imapd-2-3-12
> imap-1:/export/build/cyrus-imapd-2.3.12# patch -p1 < ../libconfig3.patch  
>
> patching file lib/libconfig.c
> Hunk #1 FAILED at 344.
> 1 out of 1 hunk FAILED -- saving rejects to file lib/libconfig.c.rej

Thomas

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


Re: Cyrus IMAPd 2.3.12 Released

2008-04-24 Thread Thomas Robers
Andy Fiddaman schrieb:
>> That's the line that the patch changes, and that's the old version of the
>> line, so something didn't take with your patching.
>> 
>> A.

It seems so, but I don't understand, why. Here's the patch:

> --- cyrus-imapd-2.3.12/lib/libconfig.c  2008/04/11 20:07:00 1.18
> +++ cyrus-imapd-2.3.12/lib/libconfig.c  2008/04/23 11:00:13 1.18.2.1
> @@ -39,7 +39,7 @@
>   * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
>   * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
>   *
> - * $Id: libconfig.c,v 1.18 2008/04/11 20:07:00 murch Exp $
> + * $Id: libconfig.c,v 1.18.2.1 2008/04/23 11:00:13 murch Exp $
>   */
>  
>  #include 
> @@ -340,7 +340,7 @@ void config_read_file(const char *filena
>  while (fgets(buf+len, bufsize-len, infile)) {
> if (buf[len]) {
> len = strlen(buf);
> -   if (buf[len-1] == '\n') {
> +   if (len && buf[len-1] == '\n') {
> /* end of line */
> buf[--len] = '\0';
> ../libconfig2.patch (END)

and the patching did without error:

> imap-1:/export/build/cyrus-imapd-2.3.12# patch -p1 < ../libconfig2.patch 
> patching file lib/libconfig.c

So no errors but after installling i still get that segfault.

I also tried the other patch from Andy Fiddaman:

> --- cyrus-imapd-2.3.12/lib/libconfig.cTue Apr 22 20:30:33 2008
> +++ cyrus-imapd-2.3.12/lib/libconfig.cTue Apr 22 20:30:40 2008
> @@ -344,7 +344,7 @@
> /* end of line */
> buf[--len] = '\0';
> 
> -   if (buf[len-1] == '\\') {
> +   if (len && buf[len-1] == '\\') {
> /* line continuation */
> len--;
> lineno++;
> ../libconfig3.patch (END) 

but this one got rejected:

> imap-1:/export/build/cyrus-imapd-2.3.12# patch -p1 < ../libconfig3.patch 
> patching file lib/libconfig.c
> Hunk #1 FAILED at 344.
> 1 out of 1 hunk FAILED -- saving rejects to file lib/libconfig.c.rej

I'm not such an expert to see why this one got rejected.

Thomas

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


Re: Cyrus IMAPd 2.3.12 Released

2008-04-23 Thread Thomas Robers
Ken Murchison schrieb:
> Can you try this patch:
> 
> https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/lib/libconfig.c.diff?r1=1.18;r2=1.18.2.1
>  

I tried the patch. Compiling is ok, but the master segfaults when I try to 
start:

This GDB was configured as "x86_64-linux-gnu".
(gdb) file /opt/cyrus-imapd-2.3.12/libexec/master
Reading symbols from /opt/cyrus-imapd-2.3.12/libexec/master...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -d
Starting program: /opt/cyrus-imapd-2.3.12/libexec/master -d

Program received signal SIGSEGV, Segmentation fault.
0x004076b2 in config_read_file (filename=0x530010 
"/var/imap/imapd.conf") at ./../lib/libconfig.c:347
347 if (buf[len-1] == '\\') {
(gdb) bt
#0  0x004076b2 in config_read_file (filename=0x530010 
"/var/imap/imapd.conf") at ./../lib/libconfig.c:347
#1  0x00407fbf in config_read (alt_config=) at 
./../lib/libconfig.c:215
#2  0x004082cf in masterconf_init (ident=0x40c0ef "master", 
alt_config=0x0) at masterconf.c:84
#3  0x00405e0a in main (argc=2, argv=0x7fff73f10b58) at master.c:1681

Thanks

Thomas

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


Re: Cyrus IMAPd 2.3.12 Released

2008-04-23 Thread Thomas Robers
Hi,

thanks for the answer

Bron Gondwana schrieb:
> This would be even more useful:
> 
> % gdb /opt/imap/libexec/master
>> run -d
> [ wait for it to segfault ]
>> bt

here's the output

(gdb) file /opt/imap/libexec/master
Reading symbols from /opt/cyrus-imapd-2.3.12/libexec/master...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -d
Starting program: /opt/cyrus-imapd-2.3.12/libexec/master -d

Program received signal SIGSEGV, Segmentation fault.
0x00407416 in config_read_file (filename=0x530010 
"/var/imap/imapd.conf") at ./../lib/libconfig.c:347
347 if (buf[len-1] == '\\') {
(gdb) bt
#0  0x00407416 in config_read_file (filename=0x530010 
"/var/imap/imapd.conf") at ./../lib/libconfig.c:347
#1  0x00407fbf in config_read (alt_config=) at 
./../lib/libconfig.c:215
#2  0x004082cf in masterconf_init (ident=0x40c0ef "master", 
alt_config=0x0) at masterconf.c:84
#3  0x00405e0a in main (argc=2, argv=0x7fffa930bf58) at master.c:1681

but I got an answer from Andy Fiddaman which solved the problem:

> Take a look at http://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3059 and try
> the patch in there. It looks like the same problem.

and

> Take a look at http://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3059 and try
> the patch in there. It looks like the same problem.

It seems the same problem which is mentioned in bugzilla, because after
using '#' instead of blank lines resp. deleting them in imapd.conf, I was
able to start cyrus 2.3.12.

>> Compiling and running version 2.3.11 with the same options on the same
>> machine works fine.
> 
> Are you able to post your /var/imap/imapd.conf file?
> 
> I'm guessing there's something in there which is causing the segfault.

Yes as mentioned above I had blank lines in imapd.conf which caused the 
segfault.

> Regards,
> 
> Bron.


Thomas

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


Re: Cyrus IMAPd 2.3.12 Released (fwd)

2008-04-23 Thread Thomas Robers
Andy Fiddaman schrieb:
> ; On Wed, 23 Apr 2008, Thomas Robers - TuTech Innovation GmbH wrote:
> ; ; Hello,
> ; ;
> ; ; I'm getting a segmentation fault when I try to start the master process.
> ; ; Compiling went fine on Debian etch (2.6.18-5-xen-amd64) with gcc version
> ; ; (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
> ;
> ; Take a look at http://bugzilla.andrew.cmu.edu/show_bug.cgi?id=3059 and try
> ; the patch in there. It looks like the same problem.
> 
> Or as a workaround, remove all blank lines from the config file or use
> #
> instead.
> 
> A.
> 
Hi,

I tried removing the blank lines resp. using '#' and now cyrus works.
Thanks for the help.

Thomas

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


Re: Cyrus IMAPd 2.3.12 Released

2008-04-23 Thread Thomas Robers - TuTech Innovation GmbH
Ken Murchison schrieb:
> I am pleased to announce the release of Cyrus IMAPd 2.3.12.  This
> release should be considered production quality.
> 
> 
> Noteworthy changes:
> 
> * Added statuscache.db to cache IMAP STATUS data which
> significantly reduces the amount of I/O necessary when neither the
> mailbox nor \Seen state has changed -- courtesy of Fastmail.fm
> * Added option to unexpunge to restore messages by time interval --
> courtesy of David Carter
> * Implemented undocumented IMAP SCAN extension, which allows
> Pine/Alpine to do cross-mailbox searches -- based on work of David Carter
> * Implemented incremental squat updates (see squatter.8) -- courtesy of
> David Carter
> * Fixed major bugs in reconstruct -k implementation -- courtesy of David
> Carter
> 
> For full details, please see doc/changes.html and
> doc/install-upgrade.html which are included in the distribution.
> 
> URLs for this release:
> ftp://ftp.andrew.cmu.edu/pub/cyrus/cyrus-imapd-2.3.12.tar.gz
> or
> http://ftp.andrew.cmu.edu/pub/cyrus/cyrus-imapd-2.3.12.tar.gz
> 
> 
> Questions and comments can be directed to
> info-cyrus@lists.andrew.cmu.edu (public list), or 
> [EMAIL PROTECTED]
> 

Hello,

I'm getting a segmentation fault when I try to start the master process.
Compiling went fine on Debian etch (2.6.18-5-xen-amd64) with gcc version
(GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

configure options were:

[...]
CC=gcc
CFLAGS="-O2 -g -fPIC" \
CPPFLAGS="-I/usr/local/include -I/usr/include"
LDFLAGS="-L/usr/local/lib -L/usr/lib"
export CPPFLAGS LDFLAGS CC CFLAGS

./configure --prefix=$PREFIX \
 --exec-prefix=$EPREFIX \
 --bindir=$BINDIR \
 --sbindir=$SBINDIR \
 --libexecdir=$LIBEXECDIR \
 --datadir=$DATADIR \
 --sysconfdir=$SYSCONFDIR \
 --sharedstatedir=$SHAREDSTATEDIR \
 --localstatedir=$LOCALSTATEDIR \
 --enable-idled \
 --enable-sieve \
 --enable-nntp \
 --enable-murder \
 --enable-oldsievename \
 --enable-listext \
 --enable-replication \
 --enable-netscape-hack \
 --disable-gssapi \
 --with-cyrus-prefix=$PREFIX \
 --with-service-path=$EPREFIX/libexec \
 --with-cyrus-user=cyrus \
 --with-cyrus-group=cyrus \
 --with-statedir=$LOCALSTATEDIR \
 --with-auth=unix \
 --with-bdb=/usr \
 --with-bdb-libdir=/usr/lib \
 --with-bdb-inc-dir=/usr/include \
 --with-ldap=/usr \
 --with-openssl=/usr \
 --with-snmp=/usr \
 --with-pidfile=/var/run/cyrus/cyrmaster.pid \
 --with-sasl=/usr \
 --with-perl=/usr/bin/perl \
 --with-libwrap=/usr


'strace /opt/imap/libexec/master -d' gives (I didn't want to post the whole
output; this is what's  printed just before the segmentation fault):

open("/var/imap/imapd.conf", O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0640, st_size=1366, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2b6c1cebe000
read(3, "# (21.02.2008)\n## directori"..., 4096) = 1366
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 26096 detached

Compiling and running version 2.3.11 with the same options on the same machine 
works fine.

I'm not such an expert to see what went wrong but perhaps someone can give any 
further suggestions.
Thanks!

Thomas


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


Re: Sieve bytecode vs plaintext configuration files

2007-02-14 Thread Thomas Robers
emdeex schrieb:
[...]
> 
> Is it that I can't just write plaintext .sieve files, that they have
> to be bytecode?  If so, how can I do this without sieveshell?

I don't really know, if plain text sieve files can still be used or not, but to
make bytecode out of the plain text sieve files you can use the program
sievec:

[EMAIL PROTECTED]:~ # sievec
Syntax: sievec [-C ]  

HTH Thomas

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


Re: Problems with sieveshell under Solaris 9

2005-02-25 Thread Thomas Robers
Robert Scussel wrote:
I I have perl 5.8.5.  I don't know about 5.8.3 and when I looked around 
I couldn't find it on Sunfreeware any more, but under 5.8.5 it states:

Important Note - Solaris 9 comes with a slightly earlier version of perl 
in /usr/bin. You may wish to use this version rather than the version on 
sunfreeware.com. If you do install this perl and want to use it rather 
than the Sun one, you will need to have /usr/local/bin in your PATH 
before /usr/bin.

Which might mean that the version you have might not be right.
This is just a guess, but I hope it helps.
B
Hi Robert,
you're right. I think I have overseen version 5.8.5 or the download
was to long ago. But your hint regarding the perl version was helpful
because with the self compiled perl version 5.8.6 sieveshell is now
working fine.
Thank you, Thomas
---
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: Problems with sieveshell under Solaris 9

2005-02-24 Thread Thomas Robers
Robert Scussel wrote:
This might be a shot in the dark, but having recently battled through 
some quirks on Solaris 9, make sure that your perl binary is one that 
was compiled on the Solaris box with gcc ( unless of course you actually 
have the sun compiler and compiled cyrus with it ). The one from 
sunfreeware works. I was having all sorts of issues trying to install 
perl modules with the solaris CC compiled perl.

Hope this helps,
B
Hi Robert,
the perl binary is the one from sunfreeware. It's version 5.8.3.
So it should work? I use gcc version 3.2.2 also from sunfreeware.
But I don't know if that perl version is compiled with gcc 3.2.2.
I also tried the perl that comes with Solaris 9
but that didn't work. I got an error message:
> make[2]: cc: Command not found
> make[2]: *** [IMAP.o] Error 127
The compiling stops in the directory ./perl/imap. It seems that
the Sun compiler is assumed from the perl binary shipped with
Solaris.
I think I try it with self compiled version of perl.
Thanks
Thomas
---
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: Problems with sieveshell under Solaris 9

2005-02-23 Thread Thomas Robers
Paul Boven wrote:
Hi Thomas,
Thomas Robers wrote:
I'm running Cyrus-Imapd 2.2.12 on Solaris 9.
I compiled it from source with gcc 3.2.2 from
Sunfreeware. I use saslauthd with method pam
for authentication. The "user accounts" for pam
are from a Windows 2003 Server via Samba/Winbind.

I'm running Cyrus-2.2.12 on Solaris 9 as well and we use a different 
authentication method (namely ldap) and just wanted to let you know that 
sieveshell itself works fine on Solaris 9.

Regards, Paul Boven.
Hi Paul,
thank you for your reply. When your sieveshell works on
Solaris 9 then there must be something different to my
installation which has nothing to do with the authentication
method because even with "sasl_pwcheck_method: auxprop"
(saslpasswd2) sieveshell doesn't work in my environment.
I get the same error message as with "sasl_pwcheck_method: saslauthd".
So did you compile Cyrus also from source or is there any
location to get a precompiled version? If you compiled it
from source, which compiler did you use? And maybe you used
a different version of perl? Maybe there is a patch for Solaris
which causes this error. Is your Solaris installation patched?
I installed the version 09/04 and run then the Recommended patches
from Sun.
Thanks, Thomas
---
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


Problems with sieveshell under Solaris 9

2005-02-23 Thread Thomas Robers
Hello all,
I'm running Cyrus-Imapd 2.2.12 on Solaris 9.
I compiled it from source with gcc 3.2.2 from
Sunfreeware. I use saslauthd with method pam
for authentication. The "user accounts" for pam
are from a Windows 2003 Server via Samba/Winbind.
Everything works so far except sieveshell, which
I need for activating the sievescripts. When I
try:
> [EMAIL PROTECTED]:~ # sieveshell -u cyrus localhost
> connecting to localhost
> unable to connect to server at /opt/imap/bin/sieveshell line 169.
The log shows then:
> imap master[15106]: [ID 392559 local6.debug] about to exec 
/opt/imap/libexec/timsieved
> imap sieve[15106]: [ID 518349 local6.debug] executed
> imap sieve[15106]: [ID 921384 local6.debug] accepted connection
> imap master[11081]: [ID 310780 local6.debug] process 15106 exited, status 0
I searched the archive and documentation but found
nothing regarding this problem. I'm not a perl expert
but it seems that that the perl module managesieve
has some kind of problems, or am I totally wrong?
I tried telneting sieve as mentioned at
http://asg.web.cmu.edu/cyrus/download/imapd/install-sieve.html
telnet localhost sieve
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.2.12"
"SASL" "LOGIN PLAIN"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational 
comparator-i;ascii-numeric regex"
"STARTTLS"
OK
So it seems that the sieve daemon is working, but sieveshell is
unable to connect to the sieve server.
Does anybody have a suggestion where the problem
may be, or where I could have a mistake? Maybe there
is another possibilty to activate a sieve script,
so that I don't need sieveshell?
Here some system information:
-gcc 3.2.2 from sunfreeware
-perl 5.8.3 also from sunfreeware
-cyrus-sasl 2.1.20 compiled from source
-openssl-0.9.7e compiled from source
-compile-flags for cyrus-imap:
CFLAGS="-O2 -g" \
CPPFLAGS="-I/usr/local/include -I/opt/BerkeleyDB/include 
-I/opt/openldap/include -I/opt/cyrus-sasl2/include/sasl \
 -I/opt/net-snmp/include"
LDFLAGS="-L/usr/local/lib -L/opt/BerkeleyDB/lib -L/opt/cyrus-sasl2/lib/sasl2 
-L/opt/cyrus-sasl2/lib -L/opt/openldap/lib \
-R/opt/cyrus-sasl2/lib/sasl2 -R/opt/cyrus-sasl2/lib -L/opt/net-snmp/lib"
export CPPFLAGS LDFLAGS
./configure --prefix=/opt/imap --exec-prefix=/opt/imap --sysconfdir=/var/imap \
--sharedstatedir=/var/imap --localstatedir=/var/imap \
--enable-sieve --enable-nntp --enable-murder --enable-oldsievename \
--enable-listext --enable-netscape-hack --disable-gssapi 
--with-cyrus-prefix=/opt/imap \
--with-service-path=/opt/imap/libexec --with-cyrus-user=cyrus 
--with-cyrus-group=cyrus \
--with-statedir=/var/imap --with-auth=unix 
--with-bdb=/opt/BerkeleyDB
--with-bdb-libdir=/opt/BerkeleyDB/lib 
--with-bdb-inc-dir=/opt/BerkeleyDB/include \
--with-ldap=/opt/openldap --with-openssl=/opt/openssl 
--with-snmp=/opt/net-snmp \
--with-pidfile=/var/run/cyrus-master.pid 
--with-sasl=/opt/cyrus-sasl2
--with-perl=/usr/local/bin/perl --with-libwrap=/usr/local/lib
-imapd.conf:
configdirectory: /var/imap
partition-default: /export/home/imap
sievedir: /export/home/sieve
sieveusehomedir: false
admins: root cyrus
sieve_admins: root cyrus
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
lmtpsocket: /export/home/imap/socket/lmtp
sendmail: /opt/postfix/sbin/sendmail
annotation_db: skiplist
duplicate_db: skiplist
mboxlist_db: skiplist
ptscache_db: skiplist
quotadb: skiplist
seenstate_db: skiplist
subscription_db: skiplist
tlscache_db: skiplist
allowplaintext: 1
mailnotifier: notifyd
sievenotifier: notifyd
temp_path: /tmp
#
tls_cert_file: /var/imap/certs/imap.pem
tls_key_file: /var/imap/certs/imap.pem
tls_ca_file: /var/imap/certs/imap.pem
-cyrus.conf:
# standard standalone server implementation
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/sockets
SERVICES {
  # add or remove based on preferences
  imap  cmd="imapd" listen="imap" prefork=5
#  imapscmd="imapd -s" listen="imaps" prefork=1
  imaps cmd="/opt/imap/libexec/imapd -s" listen="imaps" prefork=5
  pop3  cmd="pop3d" listen="pop3" prefork=3
  pop3s cmd="pop3d -s" listen="pop3s" prefork=1
  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=1
  # 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_deli

Re: ctl_cyrusdb error messages

2003-06-19 Thread Thomas Robers
[EMAIL PROTECTED] wrote:
> Hi,
> 
> Earlier today Thomas Robers asked about messages as below. I just
> joined the list, so I could not reply. But I've found one possible
> solution.
> 
> This happens if you start master process (as root) in a directory which
> cyrus user cannot access due to the directory permissions. E.g.:
> 
> # id
> uid=0(root) gid=1(other)
> # pwd
> /var/log/mail
> # ls -ald .
> drwxr-x---   2 root other512 Jun 18 09:01 .
> # /opt/cyrus-imapd-2.1.13/bin/master -d
> # ps -ef|grep master
>cyrus  2059 1  0 12:26:55 ?0:01 /opt/cyrus-imapd-2.1.13/bin/master -d
> # pwdx 2059
> 2059:   /var/log/mail
> 
> (pwdx is probably Solaris specific, but it shows process work dir).
> 
> Now if I change permissions on the directory to 0755, error messages
> go away.
> 
> Maybe this happens because my cyrus user does not have home directory at
> all?
> 
Hi,

the error messages have gone away, after I did a 'cd' into cyrus home
directory before starting the master.

Thanks!

Thomas




ctl_cyrusdb error messages

2003-06-18 Thread Thomas Robers
Hi,

I've installed cyrus-imap Version 2.1.13 under Solaris 8 and it works so far, but it
seems that the automatical ceckpoiting doesn't work, because ervery 30 minutes I can
see the following error messages in the logfile:

>   ctl_cyrusdb[9872]: [ID 702911 local6.notice] checkpointing 
> cyrus databases
>   ctl_cyrusdb[9872]: [ID 702911 local6.notice] checkpointing 
> cyrus databases
>   ctl_cyrusdb[9872]: [ID 854764 local6.error] DBERROR: error 
> listing log files: Permission denied
>   ctl_cyrusdb[9872]: [ID 854764 local6.error] DBERROR: error 
> listing log files: Permission denied
>   ctl_cyrusdb[9872]: [ID 686478 local6.error] DBERROR: 
> archive /opt/imap/conf/db: cyrusdb error
>   ctl_cyrusdb[9872]: [ID 686478 local6.error] DBERROR: 
> archive /opt/imap/conf/db: cyrusdb error
>   ctl_cyrusdb[9872]: [ID 854764 local6.error] DBERROR: error 
> listing log files: Permission denied
>   ctl_cyrusdb[9872]: [ID 854764 local6.error] DBERROR: error 
> listing log files: Permission denied
>   ctl_cyrusdb[9872]: [ID 686478 local6.error] DBERROR: 
> archive /opt/imap/conf/db: cyrusdb error
>   ctl_cyrusdb[9872]: [ID 686478 local6.error] DBERROR: 
> archive /opt/imap/conf/db: cyrusdb error
>   ctl_cyrusdb[9872]: [ID 127214 local6.notice] done 
> checkpointing cyrus databases
>   ctl_cyrusdb[9872]: [ID 127214 local6.notice] done 
> checkpointing cyrus databases

But I don't think that it's really a problem of missing file permissions, because if I
do the checkpoiting as user cyrus (ctl_cyrusdb -c) I don't get any error massages:

>   ctl_cyrusdb[10354]: [ID 702911 local6.notice] checkpointing 
> cyrus databases
>   ctl_cyrusdb[10354]: [ID 702911 local6.notice] checkpointing 
> cyrus databases
>   ctl_cyrusdb[10354]: [ID 578205 local6.debug] archiving 
> database file: /opt/imap/conf/mailboxes.db
>   ctl_cyrusdb[10354]: [ID 448116 local6.debug] archiving log 
> file: /opt/imap/conf/db/log.02
>   last message repeated 1 time
>   ctl_cyrusdb[10354]: [ID 127214 local6.notice] done 
> checkpointing cyrus databases
>   ctl_cyrusdb[10354]: [ID 127214 local6.notice] done 
> checkpointing cyrus databases

Has anybody an idea how to get rid of them?

Thanks!

Thomas