Re: Sieve - howto - first steps

2001-10-13 Thread Jochen Metzger

Hi Jeremy, Hi Alice, Hi ML,

I've some problems getting sieve to work.

>You can store in /usr/sieve/j/jh_lists (for instance)

O.K. if done this.
My directory is /usr/sieve/j/jochenmetzger (for instance)
(jochenmetzger is my mailbox-user)

What are the recommend rights?
I've got 755 on all directories in /usr/sieve

> in a file
> called 'default'.
o.k. I used sieve-php -> it made up a file

default.script and a link

default -> default.script

>And `chown -R cyrus:mail /usr/sieve`.

O.K. I did this

> You don't need a Sieve server--it's built into imapd. You can
> use a sieve
> script upload daemon to simplify administration of Sieve
> scripts; uncomment
> the sieve line in /etc/cyrus.conf and `man timsieved`.

I've set up one for sieve-php -> this works pretty.

I haven`t changed imapd.conf because I use
default in /usr/sieve
and sieve-files in userdirectories is false
(which - concerning man imapd.conf) should be default.

That's what my default rule looks like:
require "fileinto";
if address :contains :all ["to", "cc", "bcc"] "PI:"{ fileinto
"INBOX.hallo";}
else {fileinto "INBOX";
}

In my opinion sieve isn't being used.
Is sieve being used by default or must I change an option to activate it
(in cyrus.conf or imapd.conf)
I use imapd 2.0.16.

Well I tried
require "fileinto";
if address :contains :all ["to", "cc", "bcc"] "PI:"{ fileinto
"INBOX.hallo";}
else {fileinto "INBOX.2 Test";
}
as well, but the messages are still all delivered to INBOX.

So the system isn't really reading sieve-rules.

-> For instance. Do I have to reload something, when changing the rules?
<-

Can someone give a helping hand?
THX for your help

Jochen Metzger


P.S. I think this might be easier as getting cyrus run. So I'm really
glad to have arrived here by far.






RH-7.1 + Cyrus IMAP + MySQL

2001-10-13 Thread Damir Dezeljin

Is it posible to configure IMAP .rpm package which come with RedHat 7.1
with Postfix to work with PAM module (without recompiling sources)???

Eny sugestion HOWTO???

Regards,
Dezo




reset passwd for cyrus admin user

2001-10-13 Thread Chris Huff


HI all.

Im at a co that just had some BIG layoffs and now im in charge of email
systems. However the old email admin was one of the ones let go and I didnt
get the password for the cyradm admin user (cyrus). Is there a way I can
reset this passwd or get into cyradm with admin access?



--CH



AW: reset passwd for cyrus admin user

2001-10-13 Thread Jochen Metzger

Hi Chris,

>a way I can
> reset this passwd or get into cyradm

 with admin access?
>Admin access. might work lik this (when you have root rights on the
server).
Change imapd.conf in /etc -> add new user to the line admins:

saslpasswd newuser
-> enter passwd. of user

it might work when you have restarted the server.
I don't know how to restart it.

I would do

killall master
/usr/cyrus/bin/master &

But this might not be the right way.

You should probably figure out another method.

HTH

Jochen Metzger


>
>
> --CH
>





saslpasswd Segmentation fault (core dumped) -- RE: reset passwd for cyrus admin user

2001-10-13 Thread Chris Huff


Thanks for the answers guys. So, I have admin rights for cyradm at work but
at home sasl is not working for me.

ver: cyrus-imapd-1.6.24
ver: cyrus-sasl-1.5.24

su-2.04# id
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
5(operator),
20(staff), 31(guest)
su-2.04# uname -a
FreeBSD www.xxx.ca 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55
GMT 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
su-2.04# id
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
5(operator), 20(staff), 31(guest)
su-2.04# saslpasswd cyrus
Password:
Again (for verification):
Segmentation fault (core dumped)
su-2.04#

Im thinking of formatting the box and installing FreeBSD4.4 so I get get a
fresh start on the install of Cyrus.


--CH

-Original Message-
From: Greg Hewett [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 13, 2001 12:32 PM
To: Chris Huff
Subject: Re: reset passwd for cyrus admin user


I would change the password of the admin user which is usually the user
cyrus in
the password database that you authenticate.  That could be the system
database
which you can change the password with "passwd" or the sasldb which you can
change
the password with saslpasswd.  if you are using pam or ldap, you are on your
own
as far as I am concerned, but the same idea applies.  You can verify the
admin
users and your authentication method in your imapd.conf.

Greg


On Sat, Oct 13, 2001 at 11:13:50AM -0700, Chris Huff wrote:
>   
> HI all.
> 
> Im at a co that just had some BIG layoffs and now im in charge of email
> systems. However the old email admin was one of the ones let go and I
didnt
> get the password for the cyradm admin user (cyrus). Is there a way I can
> reset this passwd or get into cyradm with admin access?
> 
> 
> 
> --CH



Yet another perl script for loading Cyrus mailboxes

2001-10-13 Thread mills

People were asking about this perl script, so I thought I'd make
it publically available.  Using it, I was able to load a Unix mail
spool containing about 5 gigabytes of mail, spread over about 17000
mailboxes, in just under five hours.

load-imap is used to populate a Cyrus IMAP server from Unix mailboxes,
preserving the `read' status of messages.  The Cyrus mailboxes should
have been previously created, with the appropriate quota.  User names
are taken from the Unix mailbox names.  load-imap must authenticate as
the user to set the \Seen flag correctly.  To permit this, temporarily
replace the authentication daemon with one that always checks only the
administrator password, regardless of the userid presented.  load-imap
uses only plain-text password authentication.

The perl script, along with patch files and documention, is available
at http://mail.cc.umanitoba.ca/source/  .  I'll also be be adding it
to the Cyrus utilities archive at sourceforge as soon as I figure out
how to do that.


-- 
-Gary Mills--Unix Support--U of M Academic Computing and Networking-



Re: Yet another perl script for loading Cyrus mailboxes

2001-10-13 Thread Ken Murchison



[EMAIL PROTECTED] wrote:
> 
> People were asking about this perl script, so I thought I'd make
> it publically available.  Using it, I was able to load a Unix mail
> spool containing about 5 gigabytes of mail, spread over about 17000
> mailboxes, in just under five hours.
> 
> load-imap is used to populate a Cyrus IMAP server from Unix mailboxes,
> preserving the `read' status of messages.  The Cyrus mailboxes should
> have been previously created, with the appropriate quota.  User names
> are taken from the Unix mailbox names.  load-imap must authenticate as
> the user to set the \Seen flag correctly.  To permit this, temporarily
> replace the authentication daemon with one that always checks only the
> administrator password, regardless of the userid presented.  load-imap
> uses only plain-text password authentication.

FYI, you might want to use the Cyrus::IMAP module and use AUTHENTICATE
PLAIN (or add PLAIN to Net::IMAP).  By doing this, you can proxy for
each user by logging in as an admin and assuming the user's identity
(see RFC2595 for details).  IMO this is cleaner than patching saslauthd.

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