db-4.0.14

2001-12-04 Thread Amos Gouaux

Looks like there's a new release for Berkeley DB

-- 
Amos




Beta Release of Cyrus SASL 2.0.5

2001-12-04 Thread Rob Siemborski

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm pleased to announce the release of Cyrus SASL 2.0.5 on
ftp.andrew.cmu.edu.  This version includes many significant bug fixes as
well as an OTP mechanism and much more complete documentation.  This is a
beta release only, not intended for use on production systems.

Please send any feedback either to [EMAIL PROTECTED]
(public list) or to [EMAIL PROTECTED]

Download at:
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.0.5-BETA.tar.gz

Thanks,
Rob Siemborski

- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski | Andrew Systems Group * Cyert Hall 235 * 412-CMU-TREK
   | Cyrus SASL Developer, /usr/contributed Gatekeeper


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.76

iQA/AwUBPA1Md2es8cJc4y/MEQIBVwCgu/SVD+U9Iff9ldVdtt2rZZr9PpAAnA7p
arLROsAqF8jIJhZHPzw1gbOB
=lmjk
-END PGP SIGNATURE-





Message Number in Email Notification

2001-12-04 Thread Eranga Udesh

Hi All,

Cyrus email notification facility is a great feature. But I wonder if it's
possible to add to give the Email Message Number (UID), also to come in that
notification. As I can see if the notification is generated after the email
is saved in the perticular mailbox, it shouldn't be that complax to get the
ID.

Please update with any sort of information regarding this matter.

Thanks in advanced!

Eranga




Re: SMTP with Sieve

2001-12-04 Thread Lawrence Greenfield

   Date: Tue, 04 Dec 2001 14:36:47 -0500
   From: Ken Murchison <[EMAIL PROTECTED]>
[...]
   > The problem I am facing is that our systems use Postfix instead of
   > Sendmail.  The Cyrus and Postfix configuration we are using is based on
   > the -C config option.  This means "servers" are bound to specific IP
   > addresses, and not physical systems.  Sieve is using the local delivery
   > agent to send outgoing messages (like vacation, rejections, etc.) which
   > is not configured for virtual servers - therefore having Sieve use an
   > SMTP server would eliminate all configuration problems.
   > 
   > Is this possible?

The problem with having lmtpd talk SMTP is that the SMTP server might
give a temporary failure, and it's not totally clear what lmtpd should
do then.  Return failure to the MTA?  Discard the attempt to send
outgoing messages?

Actually, lmtpd already has this problem (/usr/sbin/sendmail might be
unhappy for some reason) but it is less frequent.

If you search Freshmeat, you can find simple programs that will
pretend to be /usr/sbin/sendmail and deliver to an SMTP server.

Larry

   Hmm.  This would require lmtpd to speak [E]SMTP.  There is client-side
   LMTP code in lmtpengine.c which we might be able to use for this
   purpose.  This would eliminate problems with incompatible command-line
   options (IIRC, Postfix doesn't like '-f <>')  I would imagine that the
   option would be something like 'host[:port]'.  This way we could talk to
   a MSA (port 587) as well as a MTA.

   I can take a look at this possibility for 2.1.1.  




Re: SMTP with Sieve

2001-12-04 Thread Ken Murchison



"John C. Amodeo" wrote:
> 
> Greetings.
> 
> Is there a way to configure the following line in the imapd.conf file to
> use an SMTP port instead of the local delivery agent?
> 
> sendmail:   /usr/sbin/sendmail
> 
> change to something like:
> 
> sendmail:   servername.domain
> 
> The problem I am facing is that our systems use Postfix instead of
> Sendmail.  The Cyrus and Postfix configuration we are using is based on
> the -C config option.  This means "servers" are bound to specific IP
> addresses, and not physical systems.  Sieve is using the local delivery
> agent to send outgoing messages (like vacation, rejections, etc.) which
> is not configured for virtual servers - therefore having Sieve use an
> SMTP server would eliminate all configuration problems.
> 
> Is this possible?


Hmm.  This would require lmtpd to speak [E]SMTP.  There is client-side
LMTP code in lmtpengine.c which we might be able to use for this
purpose.  This would eliminate problems with incompatible command-line
options (IIRC, Postfix doesn't like '-f <>')  I would imagine that the
option would be something like 'host[:port]'.  This way we could talk to
a MSA (port 587) as well as a MTA.

I can take a look at this possibility for 2.1.1.  

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



Re: Mailbox Backup

2001-12-04 Thread Mika Iisakkila

On Tue, 4 Dec 2001, Tarjei Huse wrote:
> thanks, does this info also apply if you shut down cyrus prior to backup?

Nope -- if you can shut down cyrus, backing up by normal means is OK.
But when cyrus is running, the mailbox/delivery database state on the
disk is a "moving target", and you can't get a complete backup out of
it; it would only work up to the last completed checkpoint and would
need manual recovery procedures. Or that's how I understand it...

--mika




Re: login error

2001-12-04 Thread Victor

> > Try this:
> >
> > cyradm --user admin --auth plain localhost
> >
> > It seems that auth method is not set by default and
> crammd5 is tried. This
> > seems to work.
> >
>
> G'day Victor, I noticed yesterday the we seemed to be
> travelling along the same road at the same time, but
> driving different versions of UNIX.
>
> I am using the wonderful postfix MTA so sasldb is thus:-
> ls -l /etc/sasldb
> -rw-r-1 cyruspostfix 12288 Dec  3
> 10:32 /etc/sasldb
>
> Maybe I should chgrp it to mail & add group mail to
> user postfix?

I am not sure that is important. What you have now seems fine.

> cyradm --user admin plain localhost
> Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC
> contains: /usr/lib/perl5/5.6.1/i386-linux
> /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.
>
> find / -name Shell.pm
> /usr/lib/perl5/5.6.1/Shell.pm
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI/Shell.pm
> /usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Shell.pm
> /usr/local/cyrus-imapd-2.0.16/perl/imap/IMAP/Shell.pm
> /usr/local/cyrus-imapd-2.0.16/perl/imap/blib/lib/Cyrus/IMAP/Shell.pm
>
> Hmmm
>
> Is there such a thing as a perl path that needs to be
> set

Yes, there is such a thing as perl path. Edit the perl script cyradm and
where it exec's perl, add "-I/path/to/here". That's what I did because I
installed into /usr/cyrus.

Add
-I/usr/local/lib/site_perl/5.6.1/i386-linux

there're two "exec perl" in cyradm, just add that as first arg to both.

> I have installed postfix, openssl, sasl & cyrus from
> source in /usr/local.





Re: [PATCH] daemonization support for master

2001-12-04 Thread Simon Loader

Henrique de Moraes Holschuh wrote:
> 
> On Tue, 04 Dec 2001, Simon Loader wrote:
> > /usr/cyrus/bin/master &
> > echo $! > /var/run/cyrus.pid
> >
> > which sort gives the same control.
> 
> Well, it depends. The pidfile support inside master allows it to fork() at
> will and still keep the pidfile current. This way, we can setsid() without
> any sort of trouble... so it has its advantages.
> 

I do agree just thought Id show a way to do it now.
(i amazed more services dont come with scripts like this).

-- 
Simon



Re: login error HELP!!!!!!!!

2001-12-04 Thread Craig Skinner

> Can login now (sort of.)
> 
> 
> 
> telnet localhost imap
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> * OK aberdeen.chstk.co.uk Cyrus IMAP4 v2.0.16 server
ready
> . logout
> * BYE LOGOUT received
> . OK Completed
> Connection closed by foreign host.
> 
> imtest -m login -a admin localhost
> C: C01 CAPABILITY
> S: * OK aberdeen.chstech.co.uk Cyrus IMAP4 v2.0.16
> server ready
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+
> NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT
> MULTIAPPEND SORT THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES IDLE AUTH=CRAM-MD5 AUTH=DIGEST-MD5
> X-NETSCAPE
> S: C01 OK Completed
> Password: C: L01 LOGIN admin {1}
> + go ahead
> C: 
> L01 NO Login failed: authentication failure
> Authentication failed. generic failure
> Security strength factor: 0


I have chgrp'd /etc/sasldb from:-

ls -l /etc/sasldb
-rw-r 1 cyrus postfix 12288 Dec 3 /etc/sasldb

to:-

ls -l /etc/sasldb
-rw-r 1 cyrus mail 12288 Dec 3 /etc/sasldb

And added group mail to user postfix

I have set sasl_pwcheck_method: sasldb|passwd|shadow|PAM

But get the same reuslt as above when I do:-
imtest -m login -a admin localhost


> 
> cat /etc/imapd.conf
> configdirectory: /var/imap
> partition-default: /var/spool/imap
> admins: cyrus admin
> allowanonymouslogin: no
> umask: 027
> timeout: 30
> autocreatequota: 20
> allowplaintext: yes
> plaintextloginpause: 10
> singleinstancestore: yes
> sieveusehomedir: false
> sievedir: /usr/local/sieve
> sendmail: /usr/sbin/sendmail
> postmaster: postmaster
> sasl_pwcheck_method: sasldb
> sasl_auto_transition: yes
> lmtpsocket: /var/imap/socket/lmtp
> idlesocket: /var/imap/socket/idle
> notifysocket: /var/imap/socket/notify
> 
> tail /var/log/imapd.log
> Dec  3 10:59:24 aberdeen master[1207]: process 2073
> exited, status 0
> Dec  3 10:59:24 aberdeen service-imap[2162]: executed
> Dec  3 11:00:03 aberdeen imapd[2090]: accepted
connection
> Dec  3 11:00:03 aberdeen master[2171]: about to exec
> /usr/local/cyrus/bin/imapd
> Dec  3 11:00:03 aberdeen service-imap[2171]: executed
> Dec  3 11:00:44 aberdeen imapd[2090]: accepted
connection
> Dec  3 11:01:47 aberdeen master[1207]: process 2090
> exited, status 0
> Dec  3 11:05:33 aberdeen master[2270]: about to exec
> /usr/local/cyrus/bin/ctl_mboxlist
> Dec  3 11:05:34 aberdeen ctl_mboxlist[2270]:
> checkpointing mboxlist
> Dec  3 11:05:34 aberdeen master[1207]: process 2270
> exited, status 0
> 
> sasldblistusers
> user: admin realm: aberdeen.chstech.co.uk mech:
DIGEST-MD5
> user: admin realm: aberdeen.chstech.co.uk mech: PLAIN
> user: admin realm: aberdeen.chstech.co.uk mech: CRAM-MD5
> 
> after reboot..
> 
> tail /var/log/syslog
> Dec  3 10:35:31 aberdeen postfix: Starting S80postfix: 
> Dec  3 10:35:31 aberdeen master: unable to change
> limit of file descriptors available
> Dec  3 10:35:31 aberdeen master[1207]: process started
> Dec  3 10:35:31 aberdeen master[1228]: about to exec
> /usr/local/cyrus/bin/ctl_mboxlist
> Dec  3 10:35:31 aberdeen ctl_mboxlist[1228]: running
> mboxlist recovery
> Dec  3 10:35:32 aberdeen ctl_mboxlist[1228]: done
> running mboxlist recovery
> Dec  3 10:35:32 aberdeen master[1231]: about to exec
> /usr/local/cyrus/bin/ctl_deliver
> Dec  3 10:35:33 aberdeen master[1207]: ready for work
> Dec  3 10:35:33 aberdeen master[1234]: about to exec
> /usr/local/cyrus/bin/ctl_mboxlist
> Dec  3 10:35:33 aberdeen master[1235]: about to exec
> /usr/local/cyrus/bin/ctl_deliver
> Dec  3 10:35:33 aberdeen master[1237]: about to exec
> /usr/local/cyrus/bin/imapd
> Dec  3 10:35:33 aberdeen master[1236]: about to exec
> /usr/local/cyrus/bin/imapd
> Dec  3 10:35:33 aberdeen ctl_mboxlist[1234]:
> checkpointing mboxlist
> Dec  3 10:35:33 aberdeen master[1207]: process 1234
> exited, status 0
> Dec  3 10:35:33 aberdeen master[1238]: about to exec
> /usr/local/cyrus/bin/imapd
> Dec  3 10:35:33 aberdeen ctl_deliver[1235]:
> duplicate_prune: pruning back 3 days
> Dec  3 10:35:33 aberdeen ctl_deliver[1235]:
> duplicate_prune: /var/imap/deliverdb/deliver-a.db:
> purged 0 out of 0 entries
> Dec  3 10:35:33 aberdeen service-imaps[1237]: executed
> Dec  3 10:35:33 aberdeen service-imap[1238]: executed
> Dec  3 10:35:33 aberdeen service-imap[1236]: executed
> Dec  3 10:35:33 aberdeen ctl_deliver[1235]:
> duplicate_prune: /var/imap/deliverdb/deliver-b.db:
> purged 0 out of 0 entries
> Dec  3 10:35:33 aberdeen ctl_deliver[1235]:
> duplicate_prune: /var/imap/deliverdb/deliver-c.db:
> purged 0 out of 0 entries
> Dec  3 10:35:33 aberdeen ctl_deliver[1235]:
> duplicate_prune: /var/imap/deliverdb/deliver-d.db:
> purged 0 out of 0 entries
> Dec  3 10:35:34 aberdeen ctl_deliver[1235]:
> duplicate_prune: /var/imap/deliverdb/deliver-e.db:
> purged 0 out of 0 entries
> Dec  3 10:35:34 aberdeen ctl_deliver[1235]:
> duplicate_prune: /var/imap/deliverdb/deliver-f.db:
> purged 0 out of 0 entries
> Dec  3 10:35:34 aberdeen ctl_deliver[1235]:
> duplicate_prune: /var/imap/deliverdb

SMTP with Sieve

2001-12-04 Thread John C. Amodeo

Greetings.

Is there a way to configure the following line in the imapd.conf file to
use an SMTP port instead of the local delivery agent?

sendmail:   /usr/sbin/sendmail

change to something like:

sendmail:   servername.domain

The problem I am facing is that our systems use Postfix instead of
Sendmail.  The Cyrus and Postfix configuration we are using is based on
the -C config option.  This means "servers" are bound to specific IP
addresses, and not physical systems.  Sieve is using the local delivery
agent to send outgoing messages (like vacation, rejections, etc.) which
is not configured for virtual servers - therefore having Sieve use an
SMTP server would eliminate all configuration problems.

Is this possible?

Thanks -John




Re: Mailbox Backup

2001-12-04 Thread Tarjei Huse

Hi,
> The remaining mailbox data and their contents can be then salvaged from
> the mail store with 'reconstruct -r user.*' after pulling them from
> regular backups. Fixing quotas (quota -f) might also be necessary.
> 
> Cyrus uses the DB3 libraries in a transactional manner, so a backup
> taken from a running system will not be enough to restore it to
> a consistent state. After a crash, you can use the DB utilities
thanks, does this info also apply if you shut down cyrus prior to backup?
Tarjei



Tarjei Huse
920 63 413





Re: [PATCH] daemonization support for master

2001-12-04 Thread Henrique de Moraes Holschuh

On Tue, 04 Dec 2001, Simon Loader wrote:
> /usr/cyrus/bin/master &
> echo $! > /var/run/cyrus.pid
>
> which sort gives the same control.

Well, it depends. The pidfile support inside master allows it to fork() at
will and still keep the pidfile current. This way, we can setsid() without
any sort of trouble... so it has its advantages.

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



Re: Mailbox Backup

2001-12-04 Thread Mika Iisakkila

Tarjei Huse wrote:
> PS: Some people noted that in addition to backing up the /var/imap 
> and /var/spool/imap folders, you need to export some of the .db files to 
> txt. Does anyone want to fill me out on this?? 

To export mailboxes.db to a text file:

ctl_mboxlist -d > tempfile

To restore it later:

ctl_mboxlist -u < tempfile

(start I-might-be-wrong section:)
The point in this is that the fine option for rebuilding the master
mailbox database from scratch (reconstruct -m) DOES NOT WORK for
some reason in Cyrus 2.0.16, even if it is on the man page.
Once you screw up the mailboxes.db (or some of the huge files under
db/*, they are part of the same database), Cyrus has lost knowledge of
your mailboxes and their ACLs. That's when you'll need the tempfile you
created above to recreate the mailbox database first.

The remaining mailbox data and their contents can be then salvaged from
the mail store with 'reconstruct -r user.*' after pulling them from
regular backups. Fixing quotas (quota -f) might also be necessary.

Cyrus uses the DB3 libraries in a transactional manner, so a backup
taken from a running system will not be enough to restore it to
a consistent state. After a crash, you can use the DB utilities
to "roll back" the events to a previous safe point in time, which is 
saved periodically (the checkpoint events in cyrus.conf you always
wondered about, but was afraid to ask...). If you want to know more,
read the gigabyte of fine documentation at www.sleepycat.com :-)

I don't know what should be done with deliver.db and its contents
(might be safe to just delete before restart?) and whether
singleinstancestore on or off affects that. Would anyone
who actually knows this stuff care to comment?

--mika



Re: [PATCH] daemonization support for master

2001-12-04 Thread Henrique de Moraes Holschuh

This one is a bit more complete. Requires PID support, and
start-stop-daemon (i.e. it is for Debian, and I do not know if it is
portable to other places;  you can always get our start-stop-daemon,
everything in Debian is free software).

You'll likely want to change DAEMON to master (we use cyrmaster in Debian),
for example.

The non-pidfile version I had before was so gross I wrote the pidfile
support to get rid of it :P

BTW, I also place the sockets under /var/run/cyrus, as per the FHS...

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


#! /bin/sh
#
# cyrus21   /etc/init.d/ script for cyrus2 IMAPd
#   This file manages the Cyrus IMAPd master process.
#
#   Copr. 2001 by Henrique de Moraes Holschuh <[EMAIL PROTECTED]>
#   Distributed under the GPL version 2
#
# Version:  $Id: cyrus21-common.init,v 1.1 2001/11/25 18:24:27 hmh Exp $
#

# Overridable defaults
CYRUS_VERBOSE=
LISTENQUEUE=
[ -r /etc/default/cyrus21 ] && . /etc/default/cyrus21

OPTIONS=
[ "x${LISTENQUEUE}" != "x" ] && OPTIONS="-l ${LISTENQUEUE} ${OPTIONS}"

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/cyrmaster
NAME=cyrmaster
DESC="Cyrus IMAPd master server"

test -x ${DAEMON} || exit 0

set -e

START="--start --quiet --pidfile /var/run/${NAME}.pid --exec ${DAEMON} -- ${OPTIONS}"

fixdirs () {
[ -d /var/run/cyrus ] || {
mkdir -p /var/run/cyrus
chmod 750 /var/run/cyrus
chown -h -R cyrus:mail /var/run/cyrus
}
}

case "$1" in
  start)
echo -n "Starting ${DESC}: "
fixdirs
if start-stop-daemon ${START} 2>&1 >/dev/null; then
echo "$NAME."
else
if start-stop-daemon --test ${START} 2>&1 >/dev/null; then
echo "(failed)."
exit 1
else
echo "${DAEMON} already running."
exit 0
fi
fi
;;
  stop)
echo -n "Stopping $DESC: "
if start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--quiet --startas $DAEMON 2>&1 >/dev/null; then
echo "$NAME."
else
echo "(failed)."
fi
exit 0
;;
  reload|force-reload)
echo "Reloading $DESC configuration files."
start-stop-daemon --stop --signal 1 --quiet \
--pidfile /var/run/$NAME.pid --exec $DAEMON 2>&1 >/dev/null
;;
  restart)
$0 stop || true
exec $0 start
;;
  *)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac

exit 0


# Defaults for Cyrus IMAPd 2.1 initscript
# sourced by /etc/init.d/cyrus21
# installed at /etc/default/cyrus21 by the maintainer scripts
# $Id: cyrus21-common.default,v 1.1 2001/11/25 18:24:27 hmh Exp $

#
# This is a POSIX shell fragment
#

# Set this to 1 or higher to enable debugging on cyrmaster
#CYRUS_VERBOSE=1

# Socket listen queue backlog size
# See listen(2). Default is 32, you may want to increase
# this number if you have a very high connection rate
#LISTENQUEUE=32



Re: [Exim] Re: Mail delivery failed: returning message to sender

2001-12-04 Thread Sean Witham

On Tuesday 04 Dec 2001 11:31 am, Philip Hazel wrote:

> Try adding
>
>   prefix =
>   suffix =
>
> as it tells you to do in the manual, section 18.5.

It worked, surprised it effected an address that had no prefix or 
suffix in the local_part.

Thanks everyone, I'm off to read the manual for an explination on why 
it effected a local_part with no prefix or suffix.

--Sean Witham



Message Number in Email Notification

2001-12-04 Thread Eranga Udesh



Hi All,
 
Cyrus email notification facility is a great 
feature. But I wonder if it's possible to add to give the Email Message Number 
(UID), also to come in that notification. As I can see if the notification is 
generated after the email is saved in the perticular mailbox, it shouldn't be 
that complax to get the ID.
 
Please update with any sort of information 
regarding this matter.
 
Thanks in advanced!
 
Eranga


Re: [PATCH] daemonization support for master

2001-12-04 Thread Simon Loader

Henrique de Moraes Holschuh wrote:
> 
> This patch should be applied on top of the previous one in this thread (in
> message <20011128123038.K13192@khazad-dum>).
> 
> It adds configure support for --enable-pidfile (which enables pidfile and
> daemon mode). The full filename (with path info) for the pidfile can be sent
> as the optional argument for --enable-pidfile.
> 
> The default is the old behaviour (no pidfile). The default pidfile is
> /var/run/cyrus-master.pid (unlikely to cause colisions).

just a quicky I currently use a shell script like this :-

#!/bin/sh

case "$1" in

start)
if [ -x /usr/cyrus/bin/master ]
then
/usr/cyrus/bin/master &
echo $! > /var/run/cyrus.pid
echo -n " Cyrus Master"
fi
;;

stop)
if [ -e /var/run/cyrus.pid ]
then
kill `cat /var/run/cyrus.pid`
rm /var/run/cyrus.pid
fi
;;

*)
echo "usage: $0 {start|stop}" 1>&2
exit 64

;;
esac


which sort gives the same control.

-- 
Simon loader
yes I do need a job.



Re: Problem with cyrus imap 2.0.16 and Outlook Express 5.0: Seen flag does not stick

2001-12-04 Thread Heiki Kask

>>I'd blame Outlook Express but unfortunately I have another working IMAP
>>server for comparision ;)
>>
> 
> I disagree.  You're well justified in calling it buggy and recommending
> something else.  


I already heard people complaining like "this IMAP stuff is much worse 
than the POP3 and is not working at all" and sending me links to the 
sites trying to prove that whole UNIX concept is quite bad idea...

About the subject.

What about following quick solution:

First, lets forget preforking.
Second, lets modify master process to maintain table of incoming 
connections and certain timeouts. Next imapd daemon will be launched 
from same originator (IP address) only after certain timeout has expired.

Worst case: local network is accessing mailserver though NAT-box. The 
performance is reduced for all connections.

Not so bad case: multiple connections from same client are little bit 
"spread" in time and therefore reducing the risk of fetching wrong 
results from the server. All other connections are working OK.

Performance is reduced only for creating connections, overall 
performance is not affected.

I haven't read listings yet, so I'll ask before hacking: is it worth of 
trying?

heiki







Re: Mailbox Backup

2001-12-04 Thread Tarjei Huse

You got some options:

backup over the imap protocol.
Never done this, anyone got an example of how?

other libe backupmethods
Never done this either. ame as above.

Shutdown server make tarball startserver.
check cyrus-utils.sf.net/faq there's a script there that can be used.

PS: Some people noted that in addition to backing up the /var/imap 
and /var/spool/imap folders, you need to export some of the .db files to 
txt. Does anyone want to fill me out on this?? 

Tarjei

> How to backup cyrus mailbox/folder? 
> is there any tool/utility for local mailbox cyrus imapd server backup?
> 
> I have search on archive but found nothing. 
> -- 
>__   
>   (oo)  Open Solution Provider visit http://www.trabas.com
>  / \/ \ GnuPg public information pub 1024/EBD26280 
>  `V__V' A9A9 8F57 9E9D 14E3 05B4  3EDB C241 A313 EBD2 6280
> You will probably marry after a very brief courtship.



Tarjei Huse
920 63 413





Re: Mail delivery failed: returning message to sender

2001-12-04 Thread Sean Witham


I thought it was time to demonstrate my cyrus/exim ignorance. Would 
anyone like to say what is wrong with the headers generated by exim 
in the message below that would have caused cyrus to reject it ?

I was creating a seperate director to handle a limited set of "top 
level" mailboxes in the cyrus tree. I already have a working 
cyrus_users director which using a cyrus_lmtp transport to deliver 
messages to user mailboxes. This uses an lmtp driver and the cyrus 
deliver program with the "-l" option.

Not knowing any better I created a new director cirus_boxes and a new 
transport cyrus_pipe to handle a selected list of top level mailboxes 
in our cyrus tree. There may be a much simpler approach. The 
cyrus_pipe transport uses the pipe director and uses the cyrus 
deliver program again but with "-m $local_part".
When I run the command by hand from a shell it seems to work fine but 
when exim uses the deliver command this way it rejects the message. 
Below is what was returned by exim. It looks as thought deliver has 
rejected a header in the message. The message I delivered by hand 
would not have included the headers generated by exim.

Here is the cyrus_pipe transport from my configuration file:
cyrus_pipe:
 driver = pipe
 command = "/usr/pkg/cyrus/bin/deliver -m $local_part"
 user = cyrus
 group = mail
 delivery_date_add
 envelope_to_add
 return_path_add
 return_output
 ignore_status = false
 temp_errors = 75

On Monday 03 Dec 2001 6:17 pm, you wrote:
> This message was created automatically by mail delivery software
> (Exim).
>
> A message that you sent could not be delivered to one or more of
> its recipients. This is a permanent error. The following
> address(es) failed:
>
>   [EMAIL PROTECTED]
> Child process of cyrus_pipe transport returned 65 (could mean
> error in input data) from command: /usr/pkg/cyrus/bin/deliver
>
> The following text was generated during the delivery attempt:
>
> -- [EMAIL PROTECTED] --
>
> +bugs: Message contains invalid header
>
> -- This is a copy of the message, including all the headers.
> --
>
> Return-path: <[EMAIL PROTECTED]>
> Received: from host217-37-4-60.in-addr.btopenworld.com
> ([217.37.4.60] helo=there) by esme.webscreen-technology.com with
> smtp (Exim 3.32 #1) id 16AxeH-0001km-00
>   for [EMAIL PROTECTED]; Mon, 03 Dec 2001 18:17:01 +
> Content-Type: text/plain;
>   charset="iso-8859-1"
> From: Sean Witham <[EMAIL PROTECTED]>
> Organization: Webscreen Technology Ltd
> To: [EMAIL PROTECTED]
> Subject: test 11
> Date: Mon, 3 Dec 2001 18:16:28 +
> X-Mailer: KMail [version 1.3.1]
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Message-Id: <[EMAIL PROTECTED]>
>
>
> test 11



Re: login error

2001-12-04 Thread Craig Skinner


> Try this:
> 
> cyradm --user admin --auth plain localhost
> 
> It seems that auth method is not set by default and
crammd5 is tried. This
> seems to work.
> 

G'day Victor, I noticed yesterday the we seemed to be
travelling along the same road at the same time, but
driving different versions of UNIX.

I am using the wonderful postfix MTA so sasldb is thus:-
ls -l /etc/sasldb
-rw-r-1 cyruspostfix 12288 Dec  3
10:32 /etc/sasldb

Maybe I should chgrp it to mail & add group mail to
user postfix?

cyradm --user admin plain localhost
Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC
contains: /usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl .).
BEGIN failed--compilation aborted.

find / -name Shell.pm
/usr/lib/perl5/5.6.1/Shell.pm
/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI/Shell.pm
/usr/local/lib/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Shell.pm
/usr/local/cyrus-imapd-2.0.16/perl/imap/IMAP/Shell.pm
/usr/local/cyrus-imapd-2.0.16/perl/imap/blib/lib/Cyrus/IMAP/Shell.pm

Hmmm

Is there such a thing as a perl path that needs to be
set

I have installed postfix, openssl, sasl & cyrus from
source in /usr/local.

-- 

Get your free email from www.linuxmail.org 


Powered by Outblaze



Mailbox Backup

2001-12-04 Thread Abu @ Trabas Dot Com

How to backup cyrus mailbox/folder? 
is there any tool/utility for local mailbox cyrus imapd server backup?

I have search on archive but found nothing. 
-- 
   __   
  (oo)  Open Solution Provider visit http://www.trabas.com
 / \/ \ GnuPg public information pub 1024/EBD26280 
 `V__V' A9A9 8F57 9E9D 14E3 05B4  3EDB C241 A313 EBD2 6280
You will probably marry after a very brief courtship.