Majordomo not working for large # of people

2002-04-03 Thread E M Recio

Hello all,

I installed majordomo on the cyrus server just like any other majordomo 
installation. However, I notcied that if there are more than say 500 
people on the list, postfix never finishes delivering the stuff to cyrus 
via lmtp. Basically it never gets to the end of the list of recipients. 
Just wondering if anyone had a similar problem.

-Elmo




Re: [Re: [Re: removing mail from box on command line]]

2002-03-14 Thread E M Recio

If found this on the internet, it might be of use to someone who compiles
cyrus from source:

Subject: Questions about ipurge(8)
From: Nicholas Brealey <[PRIVACY PROTECTION]>
Date: Wed, 05 Sep 2001 20:36:09 +0100


Hello

I have been looking at ipurge(8) for deleting e-mail older than a
certain
number of days from users INBOXes.

1) The purge_me function ipurge.c contains the statement:

  /* DON'T purge INBOX* and user.* */
  if ((strncasecmp(name,"INBOX",5)==0) ||
(strncasecmp(name,"user.",5)==0))
  return 0;

Since all mailbox names are likely to start with "user." doesn't this
stop ipurge from ever doing anything useful?

I deleted the statement and ipurge and I think it started doing what
I wanted it to do, namely:

ipurge -d 30 user.fred user.fred.Sent user.alice user.alice.Sent ...

(Delete essages over 30 days old in fred and alice's INBOXes and Sent
folders but keep messages which they have filed in other folders).

2) Is there any reason to use EVENTs in cyrus.conf instead of using
crontab? crontab looks better beacuse I can say that I want messages
purged at 3:00am on Sunday mornings but with EVENTs in Cyrus I can only
say that they should be purged once a week and they may end up
being purged and an inconvenient time.

Regards

Nick

Ken Murchison <[EMAIL PROTECTED]> wrote:
> 
> 
> E M Recio wrote:
> > 
> > Dave McMurtrie <[EMAIL PROTECTED]> wrote:
> > > If you just delete mail from the filesystem, you have to "reconstruct
-r"
> > > and "quota -f" afterward.
> > 
> > We need to automagically delete emails from the system that are older than
a
> > certain amount of time AND only for those accounts who we specify. Is it
> > possible to run IPURGE for specific users to do this? Also, about emptying
the
> > trash can, can we use IPURGE to automagically empty out one's trash can?
> 
> Yes.  Ipurge take a mailbox pattern as an argument, so you can specify
> something like:
> 
> ipurge -f -d  user..Trash
> 
> See ipurge(8) for details.
> 
> 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
> 



--

Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




Re: [Re: [Re: removing mail from box on command line]]

2002-03-14 Thread E M Recio

Ken Murchison <[EMAIL PROTECTED]> wrote:
> Yes.  Ipurge take a mailbox pattern as an argument, so you can specify
> something like:
> 
> ipurge -f -d  user..Trash

I tried to run ipurge but it gives me an error, it doesn't recognise the -f
option. 

[cyrus@manhattan bin]$ ./ipurge -f -d 30 user.exr003.*rash
./ipurge: invalid option -- f
usage: ./ipurge [-C ] [-x] {-d days &| -b bytes|-k Kbytes|-m
Mbytes} [mboxpattern1 ... [mboxpatternN]]
there are no defaults and at least one of -d, -b, -k, -m
must be specified
if no mboxpattern is given ./ipurge works on all mailboxes
 -x specifies an exact match for days or size


--

Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




Re: [Re: PHP Interface/Web GUI]

2002-03-14 Thread E M Recio

david eitzinger <[EMAIL PROTECTED]> wrote:
> There is a tool to manage cyrus via php:
> 
> http://freshmeat.net/projects/php-cyradm/
> 
> I've tried the 1.x version once and it looked quite good.

I tried to use that tool, but it didn't work at all under mozilla, or netscape
6.x. And it was not using the php-library calls, I noticed it was using its
own set of socket commands for administrating the server. I was going to
modify it, but it was pretty hairy, so I just split off. 

I think it was done before the imap commands were in php. It would be nice to
see it updated for php4! It's pretty sexy (feature wise) though, but not very
extensible or modifyable (hairy codewise).



--

Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




Re: [Re: [PHP Interface/Web GUI]]

2002-03-14 Thread E M Recio

Sean Witham <[EMAIL PROTECTED]> wrote:

> Have you got this all hocked up with exim as your MTA ?

Check out http://www.rhsd.net It uses, postfix, openldap, cyrus-imap with
custom administration tools and that web interface. The nice part is that the
setup is done by running one script, answering a set of questions. 


Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




Re: [Re: removing mail from box on command line]

2002-03-14 Thread E M Recio

Dave McMurtrie <[EMAIL PROTECTED]> wrote:
> If you just delete mail from the filesystem, you have to "reconstruct -r" 
> and "quota -f" afterward.

We need to automagically delete emails from the system that are older than a
certain amount of time AND only for those accounts who we specify. Is it
possible to run IPURGE for specific users to do this? Also, about emptying the
trash can, can we use IPURGE to automagically empty out one's trash can?


Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




Re: [PHP Interface/Web GUI]

2002-03-14 Thread E M Recio

"Chong, Arthur" <[EMAIL PROTECTED]> wrote:
>  
> Does anyone have an idea about how far PHP4 
> support is for cyrus-imapd-2.1.3.
>  
> Most of the software is for imap-2001a
> Washington U. stuff.
>  
> Also, anyone administering a web gui type
> interface to cyrus-imapd??

It works great! As part of our email server in-a-box, I wrote a web interface,
rhsdadm edits, adds and deletes users from an ldap enabled cyrus imap process.
See the attached file for our first release. If you need to have rhsdadm edit
system level users (instead of ldap) you can go ahead and modify the code. 


Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




rhsdadm.tar.gz
Description: GNU Zip compressed data


Re: [Linux or Freebsd?]

2002-03-06 Thread E M Recio

Dave C <[EMAIL PROTECTED]> wrote:

> I have been having tons of trouble getting my
> cyrus-imap versions 2.0.16 to 2.1.2 with both sasl v1
> and v2 to authenticate against ldap, I've been talking
> to simon from surf.org he's be a tremendous help but
> we still as of yet havent gotten it to work. my
> question is this im trying to do this all on suse 7.3
> sparc originally, now im trying x86 suse 7.3, it seem
> simon uses Freebsd 4.x, I was just curious what
> Distros other people are using out there that use ldap
> as their authentication or just even with any other
> authentication method. thanks.

I have gotten all of these components to work fine on redhat 7.2 from
source. Please note that if you have sasl kerberos installed it'll screwup
the ldap authentication for some reason.

Anyways, if you want to see how I get cyrus to work with ldap, check out
http://www.rhsd.net One of the files you can download rhems-inst has the
setup.sh script that I wrote to configure your box for cyrus/postfix/sieve
with ldap authentication and a web front end (shameless plug here, hehe).
But anyways, there's a setup.sh that goes through all of the steps (and
configuration options) for installing cyrus imap with sasl -> pam -> ldap
authentication. It's pretty straight forward.




Best Regards,
E. M. Recio


* Chief Systems Engineer, Behavioral Informatics Inc.  *
* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
*  CELL: (215) 681-5612| WORK: (215) 503-0986  *





Re: [cyrus pam to ldap auth]

2002-03-05 Thread E M Recio

Dave C <[EMAIL PROTECTED]> wrote:
> I am trying to get cyrus imap 2.0.16 to work with pam
> to then connect to an existing ldap database i have
> created that does work, runs ldapsearches and what
> not, as it stands now I can't find much documentation
> as to how /etc/pam.d/imap is setup and what options
> would need to be in the ldap.conf file so that this
> would work. if anyone could point me to a useful url
> or extend their assistance that'd be great. basically
> i need some assistance in the processs of pam >
> pamldap > ldap, any help again is appreciated
/etc/pam.d/cyrus:
#%PAM-1.0
authsufficient  pam_ldap.so
authrequiredpam_unix.so
account sufficient  pam_ldap.so
account requiredpam_unix.so

ln /etc/pam.d/cyrus /etc/pam.d/imap 
ln /etc/pam.d/cyrus /etc/pam.d/smtp
... for imaps stmps pop sieve etc etc...


Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




Re: [Postfix & cyrus]

2002-03-04 Thread E M Recio

Manou Rabary <[EMAIL PROTECTED]> wrote:
> Hi all,
> I use cyrus imap with postfix.
> I saw in a documentation ;-) how to use postfix to transport mail:

According to the documentatoin of postfix, cyrus has changed so much that the
deliver program (installed under /usr/cyrus/bin/deliver) is no longer
compatible. Change default_transport: cyrus to commented out value, then add
mailbox_transport: lmtpd.

This worked for me.



Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.




Re: [Cyrus IMAP server and missing directories]

2002-02-26 Thread E M Recio

Ed Sanborn <[EMAIL PROTECTED]> wrote:
> I am using Cyrus IMAP server version 1.6.24
> on a Solaris 8 system.

Set your IMAP Root directory to "INBOX." in the outlook client.


Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.


Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



Re: [Re: LDAP Auth HOW-TO/Install Script]

2002-02-22 Thread E M Recio

Manuel Hendel <[EMAIL PROTECTED]> wrote:
> I tried this link, but it is not working. I'm right now trying to
> setup the same I think.

Manuel,

I have placed it on sourceforge: http://rhems.sourceforge.net

-Elmo

Best Regards,
E. M. Recio


* Chief Systems Engineer, Behavioral Informatics Inc.  *
* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
*  CELL: (215) 681-5612| WORK: (215) 503-0986  *




Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



Re: []

2002-02-21 Thread E M Recio

Gaƫl LE COZ <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I want to set up a mail server using Cyrus and a RedHat 7.x.
> So I would like to know the capacity in term of account of Cyrus with and
> without cluster implementation.
> 
> Thanks in advance

If you want a quick test install, check out:
http://www.sourceforge.net/project/rhems

It's redhat 7.2 w/ postfix, ldap authentication, cyrus imapd, and web
interface for administrating. Based on the tests done here, on a PII/700, it
installs in under 40 minutes (including the specific os install mentioned in
the docs).

ciao,
elmo


Best Regards,
E.M. Recio

<< http://polywog.navpoint.com >>

Inherent in every intention and desire is the mechanics for
its fulfillment... intention and desire in the field of pure
potentiality have infinite organizing power. And when we
introduce an intention in the fertile ground of pure
potentiality, we put this infinite organizing power to work
for us.


Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



LDAP Auth HOW-TO/Install Script

2002-02-18 Thread E M Recio

I am currently working on an install script and (at least) an article for
binaryfreedom/system toolbox. 

This will cover Redhat 7.2, Cyrus 2.0.16, Postfix 1.1.3, with local OpenLDAP
authentication. The script is already complete (for an alpha-test). It creates
the default users directories and configuration files based on the questions
you answer. IE: dc=example,dc=com and then configures all the services. If
people like it a lot, I guess I can put it on sourceforge or something

Basically, it replaces the dreadful SuSE Email Server III; which we have
having a whole load of headaches and difficulties with from day one.

I'll be working on the web interface etc. tomorrow. If anyone wants to check
out the files you can download it from (11 Mb)
http://polywog.philtered.net/~erecio/RedHat-EmailServer.tar.gz

Or if you already have the postfix sources, and the cyrus-imapd sources, and
have already patched your SASL/OpenLDAP sources, then just download the
stripped down installation scripts.  (52 kb)
http://polywog.philtered.net/~erecio/RedHat-EmailServer-Scripts.tar.gz

(expand the cyrus/postfix sources 2.0.16 and 1.1.3 ONLY into the directory
created by the tarball.)

I have only tested the above with a fresh install of RedHat 7.2 (it may or may
not work with other distributions).

Otherwise, check out the attached shell script file.


Best Regards,
E. M. Recio


* Chief Systems Engineer, Behavioral Informatics Inc.  *
* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
*  CELL: (215) 681-5612| WORK: (215) 503-0986  *




Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



setup.sh
Description: C-Shell script


fixed pam problem

2002-02-15 Thread E M Recio

There was a posting to the openldap group about Cyrus-SASL having a re-entry
patch applied. I on RH-7.2 I did an up2date -u and it fixed Cyrus-SASL for
this reentry problem(??) and it fixed the problems I was having when using
Cyrus -> SASL -> PAM -> LDAP authentication.

-elmo


Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



Re: [Re: PAM + Cyrus]

2002-02-15 Thread E M Recio

julesa <[EMAIL PROTECTED]> wrote:
> Make sure you have liblogin.so and libplain.so in /usr/lib/sasl. I think
> both of these are needed for PAM authentication, though I could be
> mistaken. 

Both of those are in there. I can login via PAM just fine into the box ssh,
etc, (pam is pointed at an LDAP). It's the basic install of SASL for radhat
7.2 rpm. Do I need a special version of sasl in order to use PAM?

-Elmo


Best Regards,
E. M. Recio


* Chief Systems Engineer, Behavioral Informatics Inc.  *
* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
*  CELL: (215) 681-5612| WORK: (215) 503-0986  *




Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



Re: PAM + Cyrus

2002-02-15 Thread E M Recio

Thanks for this help - no luck though! 

[root@PCSC499 pam.d]# imtest -a cyrus -m login localhost
C: C01 CAPABILITY
S: * OK PCSC499 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
S: C01 OK Completed
Password: 
C: L01 LOGIN cyrus {6}
+ go ahead
C: 
failure: prot layer failure

-Elmo

julesa <[EMAIL PROTECTED]> wrote:
> what is the output of
> imtest -a cyrus -m login localhost 
>
> On Fri, 2002-02-15 at 12:15, E M Recio wrote:
> > julesa <[EMAIL PROTECTED]> wrote:
> > > Which version of Cyrus are you using?
> > 
> > Latest version off of the 2.0.x series: 2.0.16



Best Regards,
E. M. Recio


* Chief Systems Engineer, Behavioral Informatics Inc.  *
* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
*  CELL: (215) 681-5612| WORK: (215) 503-0986  *




Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



cyradm authentication

2002-02-15 Thread E M Recio

When I try to login via cyradm:

[root@PCSC499 RedHat-EmailServer]# cyradm -u cyrus localhost
IMAP Password: at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 78
cyradm: cannot authenticate to server with  as cyrus

If I type the correct password (as per PAM ldap module) it returns quickly
with that error message. If I type the incorrect password (as per PAM ldap
module), it waits about 3 or four seconds and then returns an extended error
message:

[root@PCSC499 RedHat-EmailServer]# cyradm -u cyrus localhost
IMAP Password:Login failed: authentication failure at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 78
cyradm: cannot authenticate to server with  as cyrus

Best Regards,
E. M. Recio


* Chief Systems Engineer, Behavioral Informatics Inc.  *
* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
*  CELL: (215) 681-5612| WORK: (215) 503-0986  *




Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



PAM + Cyrus

2002-02-15 Thread E M Recio

Is there a 'special' configuration option I have to give cyrus (when
compiling) so that it looks at PAM for authentication? I tried the following
(On RH7.2): 

./configure  --with-sasl=/usr/lib/sasl --with-cyrus-user=cyrus
--with-cyrus-group=mail --without-krb=/usr/kerberos --with-auth=unix
--with-perl=/usr/bin/perl
I pointed the machine (pam) to use the ldap for authentication. This works
fine for logging in to the machine (ie: telnet ssh etc.) but when I try to
login via cyradm (cyradm -u cyrus localhost) it doesn't work.

My imapd.conf has 'sasl_pwcheck_method: pam' but no luck authenticating under
PAM. In /etc/pam.d/imap I have:
#%PAM-1.0
authsufficient  pam_ldap.so
authrequiredpam_unix.so
account sufficient  pam_ldap.so
account requiredpam_unix.so

and I've even tried copying the /etc/pam.d/ssh to /etc/pam.d/imap (figuring
that if I can ssh via PAM, then I would be able to do IMAP via pam) but no
luck there either. Any help on these matters would be greatly appreciated.

Best Regards,
Elmo Recio


Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



cyradm authentication

2002-02-14 Thread E M Recio

what is the password which is used for cyrus authentication using cyradm. I
have cyrus imapd.conf pointing to sasl_pwcheck=pam, but I did --with-auth=unix
 is that correct?
Basically, i want pam to handle all requests, and I am pointing PAM to the
ldapserver. I can login to the machine just fine (using an ldap server
account) but cannot login to cyradm.


-Elmo


Get free e-mail and a permanent address at http://www.amexmail.com/?A=1



Too Many Files Open

2002-01-17 Thread E M Recio

Hello,

I am getting an error in SYSLOG that says:

Jan 14 14:54:01 richmond lmtpd[7325]: DBERROR dup:
/var/imap/deliverdb/deliver-t.db: Too many open files
Jan 14 14:54:01 richmond lmtpd[7325]: duplicate_check: opening
/var/imap/deliverdb/deliver-t.db: Too many open files
Jan 14 14:54:01 richmond lmtpd[7325]: IOERROR: opening
/var/spool/imap/user/ttf001/cyrus.index: Too many open files
Jan 14 14:54:01 richmond lmtpd[7325]: sieve runtime error for ttf001 id
<[EMAIL PROTECTED]>: Keep: System I/O error
Jan 14 14:54:01 richmond lmtpd[7325]: IOERROR: opening
/var/spool/imap/user/ttf001/cyrus.index: Too many open files


Then it won't deliver the messages (sometimes there's a bounce with System I/O
Error) or it takes _days_ almost a week to deliver the message.

I tried the echo "32768" > /proc/fs/sys/file-max; even tried ulimit -n with no
luck. Just wondering if anyone knew what might be up with IMAPD.?


Best Regards,
E. M. Recio


* Chief Systems Engineer, Behavioral Informatics Inc.  *
* EMAIL: [EMAIL PROTECTED] |  AIM: emrecio *
* PAGER: (215) 314-2622|  FAX: (215) 503-2648  *
*  CELL: (215) 681-5612| WORK: (215) 503-0986  *




Get free e-mail and a permanent address at http://www.amexmail.com/?A=1