Re: Bouncing over quota

2001-03-06 Thread Scott Pederick

Thanks - that did the trick. I'll have to get Postfix to give the bounced
message a better description of why it bounced (ie. Quota exceeded). Should
be ... interesting. :)

>I'm patched lmtpengine.c, function
>static char *convert_lmtp(int r)
>
>case IMAP_QUOTA_EXCEEDED:
>//MY: return "452 4.2.2 Over quota";
>return "552 4.2.2 Over quota";
>
>and it's work for me
>
>Scott Pederick wrote:
>>
>> G'Day,
>>
>> cyrus-imapd-2.0.9
>> postfix-19991231-pl10
>>
>> Just wondering if anyone has modified Cyrus to return a Permanent Failure
>> rather than a Temporary Failure when a user has exceeded their quota? On
a
>> temporary failure postfix just leaves it in the queue and I would prefer
a
>> bounce.
>>
>> I intend to make greater modification to the server with my preferred
method
>> of quota handling but I really need a 'quick-fix' at the moment. Any
ideas,
>> comments, suggestions?
>>
>> Thanks in advance...
>>
>> Scott




Bouncing over quota

2001-03-05 Thread Scott Pederick

G'Day,

cyrus-imapd-2.0.9
postfix-19991231-pl10

Just wondering if anyone has modified Cyrus to return a Permanent Failure
rather than a Temporary Failure when a user has exceeded their quota? On a
temporary failure postfix just leaves it in the queue and I would prefer a
bounce.

I intend to make greater modification to the server with my preferred method
of quota handling but I really need a 'quick-fix' at the moment. Any ideas,
comments, suggestions?

Thanks in advance...

Scott




Re: User rename patch (Was: Renaming users)

2001-01-27 Thread Scott Pederick

Ken,

It works beautifully - truly poetry in motion (or maybe I'm slightly
over-reacting out of relief ;) ).

Thanks again!

Scott

>Sorry this took so long, but I've been out of town the last two days.
>Here is a patch against cyrus-imapd-2.0.9.  Consider it beta.
>
>1. Apply this patch in the imap/ directory of the distribution
>2. run config.status from the toplevel directory so that imap/Makefile
>gets rebuilt
>3. run make from either the toplevel or the imap/ directory
>
>NOTE:  I put this patch together from the 'user-rename' branch in CVS
>and tested it *very* quickly.  However I'm pretty confident that it will
>work without any problems.
>
>If you want to be really safe, use the 'user-rename' branch from CVS
>(that's what I've been using and developing on).  This branch also
>contains all of the changes from the trunk that will be in 2.0.10.
>
>As long as you're using cyrusdb_flat for seen state, subscriptions and
>quotas, you shouldn't have any problems if someone is accessing the
>folders when they are renamed.  But just to play it safe, make sure that
>the user that you are renaming is not logged into the server when you
>rename him/her.  To help prevent this, change their login name via
>whatever SASL mechanism you're using first, so they can't log in using
>their old login.
>
>When you rename the user, the seen state, quota, subscriptions and ACLs
>should all be renamed as well.  The only thing that won't happen is the
>renaming of any sieve scripts (this is outside of the scope of IMAP -- I
>might modify cyradm to handle this however).
>
>Let me know how it goes,
>Ken




Re: Renaming users

2001-01-24 Thread Scott Pederick


-Original Message-
From: Ken Murchison <[EMAIL PROTECTED]>
To: Scott Pederick <[EMAIL PROTECTED]>
Cc: Cyrus Mailing List <[EMAIL PROTECTED]>
Date: Thursday, 25 January 2001 1:10
Subject: Re: Renaming users


>
>
>Scott Pederick wrote:
>>
>> G'day,
>>
>> Just wondering if anyone has done this before. The username format has
>> changed from being "@xyz.com" to "> name>_@xyz.com".
>>
>> Therefore I have to rename a number of mailboxes. The problem is that
cyradm
>> tells me "renamemailbox: Operation is not supported on mailbox". It
doesn't
>> seem to be a permissions issue so I'm thinking I'll have to do something
>> more low-level (ie. move files, rebuild db's, etc).
>>
>> If anyone has any advice or can point me in the right direction, it would
be
>> greatly appreciated. Thanks in advance.
>
>I have some user rename code checked-in on a dev branch in CVS which I
>trying to put the finishing touches on (primarily file locking) before I
>submit it to the list as beta.  If you need this immediately, I can post
>the patches with the standard disclaimer.
>
>FYI, I have tested this on my production server (~20 users) without any
>problems, but I make SURE that nobody is trying to access any of the
>user's mailboxes while doing the rename.  You must also note that this
>is a fairly expensive operation, since it requires renaming all of the
>mailboxes, renaming the seen state and quota files and modifying the
>ACLs and subscriptions.
>
>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

Ken,

If you could post it, that would be great. I need to get this done as soon
as possible.

Thanks again for your help - greatly appreciated!

Scott Pederick




Renaming users

2001-01-24 Thread Scott Pederick

G'day,

Just wondering if anyone has done this before. The username format has
changed from being "@xyz.com" to "_@xyz.com".

Therefore I have to rename a number of mailboxes. The problem is that cyradm
tells me "renamemailbox: Operation is not supported on mailbox". It doesn't
seem to be a permissions issue so I'm thinking I'll have to do something
more low-level (ie. move files, rebuild db's, etc).

If anyone has any advice or can point me in the right direction, it would be
greatly appreciated. Thanks in advance.

Regards,

Scott Pederick




PAM Authentification

2000-11-16 Thread Scott Pederick

Hello all,

I'm having problems using PAM authentication with Cyrus imap.

I'm running : Cyrus Imap 2.0.7, Cyrus SASL 1.5.24, Berkeley DB 3.1.17

What appears to be happening is that Imap isn't paying attention to
/etc/pam.d/imap and always uses sasldb. The username/password specified in
/etc/sasldb authenticates me OK. I've added debugging code to the pam-mysql
module and it seems to never get run.

My imapd.conf is:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
srvtab: /var/imap/srvtab
allowanonymouslogin: no
sasl_passwd_check: PAM

My /etc/pam.d/imap is:
#%PAM-1.0
authrequired/lib/security/pam_mysql.so host=localhost
database=system user=xxx password=xxx table=users usercol=user_name
passwordcol=user_pass crypt=y

SASL was built with:
./configure --with-pam

Imap was built with:
./configure  --with-auth=unix --without-openssl


Any thoughts, hints or suggestions would be greatly appreciated.

Myself and what's left of my sanity thanks you in advance.

Scott