can't delete IMAP mail..

2000-11-28 Thread Ajay

Hiya!

Maybe a little verbose in my last request, so lets try again...

For some reason I am completely unable to delete mail when using IMAP, Cyrus
2.0.7.  POP works fine/perfect, but not IMAP.  (And I've tried mutt, Netscape,
Outlook, and fetchmail (which complains it can't flush) to no avail.)
(And no I can't move it to another folder either. ;)

and the permissions are full (lrswipcda) for user.name's mailbox.  I don't
see anything in any log files which can give me any hint (and I have
local6.debug in syslog.. (which is getting annoying for those 1 minute
poppers. ;))

Any help/info would be greatly appreciated, this isn't making any sense to
me!  TIA!!

-Ajay

-- 
Milpitas, ca[EMAIL PROTECTED]HempVille, Planet Talarian
http://os2man.cjb.net/pictures/
All programmers are optimists -- Frederick P. Brooks, Jr.



using ldap for authentication

2000-11-28 Thread unplug

Hi all,

  Does cyrus use the uid & userpassword of ldap as default for
authentication??  How about if I change the userpassword to password??
Cyrus will still work or not??

unplug



RE: Cyrus 2.0.7/RedHat-7/LDAP . . . CRAM-MD5 complaining?

2000-11-28 Thread Gavin Dickinson

Now I am interested, having given up on getting it to compile/build under
SCO I decided to go the linux route, only to be foiled by the RedHat .rpm
for RH7/Powertools breaking cyradm.  What do I need to do to get it to
rebuild from source etc, you allude to a previous message on this topic, is
there a searchable history  can use.

TIA

Gavin Dickinson

Computer Systems for BusinessWeb Site :  http://www.csbl.com.au
Unit 1, 360-364 Ipswich Roademail : [EMAIL PROTECTED]

Annerley Phone : 61-(0)7-3392-3455
QLD AUSTRALIA 4103   Fax   : 61-(0)7-3392-3433



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Darren
> Nickerson
> Sent: Tuesday, 28 November 2000 5:02
> To: [EMAIL PROTECTED]
> Subject: Cyrus 2.0.7/RedHat-7/LDAP . . . CRAM-MD5 complaining?
>
>
>
> Folks,
>
> I've installed 2.0.7 using RedHat's PowerTools source RPM, built
> locally with a
> few trivial mods, outlined in a previous post to this list:
>
>   Message-id: <[EMAIL PROTECTED]>
>
> Overall, I'm very impressed. Nice work! I even managed to get LDAP
> authentication to work by adding the following to /etc/imapd.conf:
>
>   sasl_pwcheck_method: pam
>
> /etc/pam.d/imap reads as:
>
>   #%PAM-1.0
>   auth   sufficient   /lib/security/pam_ldap.so
>   auth   required /lib/security/pam_unix_auth.so
> try_first_pass
>   accountsufficient   /lib/security/pam_ldap.so
>   accountrequired /lib/security/pam_unix_acct.so
>
> My problem is that although I can get plaintext logins from
> Eudora to work just
> fine:
>
> * OK mail2.iworkwell.com Cyrus IMAP4 v2.0.7 server ready
> 0 CAPABILITY
> * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
> NO_ATOMIC_RENAME UNSELECT MULTIAPPEND ID SORT THREAD=ORDEREDSUBJECT
> AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 X-NETSCAPE
> 0 OK Completed
> 1 LOGIN dnickerson x
> 1 OK User logged in
>
> I do not have the same luck when using CRAM-MD5, which I MUST
> use. I'm not sure
> what sequence each of these events happens in, since sniffit does
> not give me
> any timestamps. The client (Eudora) says:
>
> 0 CAPABILITY
> 1 AUTHENTICATE CRAM-MD5
> ZG5pY2tlcnNvbiBkZmYyZjUyOTZkNmQxN2I5NmNlZWFhYjFiYTZlMjNkZQ==
> 2 AUTHENTICATE GSSAPI
>
> And the server says:
>
> * OK mail2.iworkwell.com Cyrus IMAP4 v2.0.7 server ready
> 0 CAPABILITY
> * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
> NO_ATOMIC_RENAME UNSELECT MULTIAPPEND ID SORT
> THREAD=ORDEREDSUBJECT AUTH=GSSAPI AUTH=DIGEST-MD
> 5 AUTH=CRAM-MD5 X-NETSCAPE
> 0 OK Completed
> + PDU3OTk1NzYwMC4yMjcyNTAwQG1haWwyLml3b3Jrd2VsbC5jb20+
> 1 NO authentication failure
> +
> 2 BAD Invalid base64 string
>
>
> Maybe I'm missing a fundamental point here - I notice that on my
> old server,
> where CRAM-MD5 is working just fine, I'm still using sasldb, and
> it has two
> entries, as well as realms:
>
>   user: testuser realm: mail.iworkwell.com mech: PLAIN
>   user: testuser realm: mail.iworkwell.com mech: CRAM-MD5
>
> for each user. Do I need anything special in the LDAP schemas to support
> cram-md5 authentication? Can anyone tell me how to fix CRAM-MD5?
>
> Thanks in advance for any hints.
>
> -Darren
>
>
>




Re: config sasl for PAM

2000-11-28 Thread Nadeem Hasan

Try

 ./configure --pwcheck-method=PAM

> James Presley wrote:
> 
> The walkthrough I am using for my reinstall states that if I want to
> use the PAM authentication for sasl conf that I should use the
> statement
> 
> ./configure --pwcheck_method=PAM
> 
> but all I get in return is
> invalid option, is there a switch I don't see that I should use to set
> up with Pam?

--
Nadeem Hasan ([EMAIL PROTECTED])
http://www.nadmm.com/



config sasl for PAM

2000-11-28 Thread James Presley



The walkthrough I am using for my reinstall states 
that if I want to use the PAM authentication for sasl conf that I should use the 
statement
 
./configure --pwcheck_method=PAM 
 
but all I get in return is
invalid option, is there a switch I don't see that 
I should use to set up with Pam?


Re: Compiling trouble on Solaris 8

2000-11-28 Thread Eric Sorenson


You need to install GNU flex and use that instead of the sun-distributed lex

ftp://nce.sun.ca/pub/freeware/sparc/7/flex-2.5.4a-sol7-sparc-local.gz

-=Eric

On Tue, 28 Nov 2000, Anders Holm wrote:

> Hi!
> 
> I'm a newbie to Cyrus that has a question.
> 
> I'm trying to compile Cyrus IMAPD 1.6.24 and 2.0.7 on Solaris 8 aswell 
> on Red Hat 7.0, and it just doesn't want to complete the compilation.
> 
> The error I am getting is the following:
> 
> ld: fatal: symbol `yys' is multiply defined:
>  (file ../sieve/libsieve.a(sieve.o) and file 
> ../sieve/libsieve.a(addr.o));
> ld: fatal: symbol `yyv' is multiply defined:
>  (file ../sieve/libsieve.a(sieve.o) and file 
> ../sieve/libsieve.a(addr.o));
> ld: fatal: File processing errors. No output written to deliver
> collect2: ld returned 1 exit status
> 
> Either I am missing something or there is something broken in the 
> "deliver" code. Don't know which, since I'm not a programmer, 
> unfortunately.. ;)
> 
> Any pointers to where to look would be greatly appreciated!! ;)
> 
> Thanks folks!
> 
> -- 
> 
> Anders Holm
> Unix SysAdmin/PostMaster
> Worldport Communications Inc.
> Blanchardstown Corporate Park, Blanchardstown, Dublin 15, Ireland
> 
> Email: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
> Tel:+353-(0)1 2412400
> Fax:+353-(0)1 2412495
> Mobile: +353-(0)86 6042374
> Web:http://www.wrdp.com
> 
> 
> The information transmitted by this E-mail may contain confidential and/or
> privileged material and may constitute non-public information.  This E-mail
> is intended to be conveyed only to the designated addressee(s).  If you are
> not a designated addressee, please contact the sender and delete this E-mail
> and all attachments from your computer.  Any review, retransmission,
> dissemination or other use of, or taking of any action in reliance upon,
> this E-mail or its attachments by persons or entities other than the
> designated addressee(s) is strictly prohibited and may be unlawful.
> 
> 
> "Sysadmins do their jobs with sharp knives in a crowded room."
>   - Quote from the ARK motivations page located at:
>   http://ark.sourceforge.net/motivations.html
> 
> 




Re: Test

2000-11-28 Thread James Presley

Okay, I've gotten a lot of really good input from your guys so far about my
problems, and I think I've pretty much botched this install with all my
desperate descrepency installs. I am going to do a clean reinstall of Linux
Redhat 7.0 and am going to reinstall. I am going to list my order of
installs to see if it would be proper for what I am trying to achieve. Any
input would be greatly appreciated.

Red Hat 7.0 with PAM, TCL 8.3, and BIND 8 installed
PostFix
Perl5
mySQL
Cyrus-sasl-1.5.24
./configure --pwcheck_method=PAM
make
make install

Cyrus-Imapd-1.6.24.tar.gz
./configure
./configure --without-krb --with-com_err --with-tclsh=/usr/bin/tclsh
useradd-g mail cyrus
passwd cyrus

The following is a cut and paste from a walkthough I am trying to follow, if
you see anything that might not work for this setup attempt please let me
know...
6.1 Editing conf files

  1.. Edit /etc/syslog.conf and add the following lines at the bottom:
local6.debug/var/adm/imapd.log
auth.debug  /var/adm/auth.log

  2.. Edit a new file /etc/imapd.conf and place in it the following lines:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
srvtab: /var/imap/srvtab
allowanonymouslogin: no
sasl_passwd_check: shadow (I am guessing here I would specify PAM)

6.2 Creating the necessary directories
This list of instructions will set up all the directories necessary for
imap.


  1.. mkdir /var/adm
  2.. touch /var/adm/imapd.log /var/adm/auth.log
  3.. mkdir /var/imap /var/spool/imap /var/imap/srvtab
  4.. chown cyrus /var/imap /var/spool/imap /var/imap/srvtab
  5.. chgrp mail /var/imap /var/spool/imap /var/imap/srvtab
  6.. chmod 750 /var/imap /var/spool/imap /var/imap/srvtab
  7.. su cyrus
You are now the user cyrus. This is necessary for the files to have the
correct owner and group. Continue:


  1.. tools/mkimap (I never see this directory)
  2.. cd /var/imap
  3.. chattr +S . user quota user/* quota/*
  4.. chattr +S /var/spool/imap
  5.. exit
You are now root again. The last command:

chattr +S /var/spool/mqueue

6.3 More configuration file editing

  1.. Edit /etc/services and check for the following lines. If they do not
exist, add them:
pop3110/tcp
imap143/tcp
imsp406/tcp
kpop1109/tcp
sieve   2000/tcp

  2.. Edit /etc/inetd.conf and comment out any imap and pop3 lines and add
the following: (I am guessing in my case I would edit xinetd.conf)
  3.. imapstream  tcp nowait  cyrus   /usr/cyrus/bin/imapd
imapd
  pop3stream  tcp nowait  cyrus   /usr/cyrus/bin/imapd
pop3d

You guys have been great in lending a hand to a newbie, any input would be
great!

James




Re: imapd cpu utilization

2000-11-28 Thread Ken Murchison



Artur Frysiak wrote:
> 
> Hello
> I have cyrus-imapd 2.0.7.
> Some time imapd eat 90% CPU time.
> I start gdb and see:
> (gdb) where
> #0  parse_cached_envelope (env=0x810f9b0 "\"Sat, 25 Nov 2000 18:26:49 +0100", 
>tokens=0xb2d4) at index.c:3019
> #1  0x805c191 in index_msgdata_load (msgno_list=0x810d7a8, n=145, 
>sortcrit=0x810d5d0) at index.c:2970
> #2  0x80589b6 in index_sort (mailbox=0x80fa8e0, sortcrit=0x810d5d0, 
>searchargs=0x810d6c0, usinguid=1) at index.c:1054
> #3  0x8051df6 in cmd_sort (tag=0x810c0d8 "0010", usinguid=1) at imapd.c:2917
> #4  0x804e3fe in cmdloop () at imapd.c:1148
> #5  0x804c647 in service_main (argc=1, argv=0xbd04, envp=0xbd0c) at 
>imapd.c:471
> #6  0x804b41e in main (argc=1, argv=0xbd04, envp=0xbd0c) at service.c:223
> (gdb) list
> 3014{
> 3015char *c;
> 3016int i = 0, len, ncom;
> 3017
> 3018c = env;
> 3019while (*c != '\0') {
> 3020switch (*c) {
> 3021case ' ':   /* end of token */
> 3022*c = '\0';  /* mark end of token */
> 3023c++;
> (gdb) print *c
> $1 = 41 ')'
> (gdb) n
> 3020switch (*c) {
> 1: *c = 41 ')'
> (gdb)
> 3019while (*c != '\0') {
> 1: *c = 41 ')'
> (gdb)
> 3020switch (*c) {
> 1: *c = 41 ')'
> (gdb)
> 3019while (*c != '\0') {
> 1: *c = 41 ')'
> (gdb)
> 3020switch (*c) {
> 1: *c = 41 ')'
> (gdb)
> 3019while (*c != '\0') {
> 1: *c = 41 ')'
> (gdb)
> 3020switch (*c) {
> 1: *c = 41 ')'


Hmmm...  Unless there is a flaw in my logic for parsing address lists in
the cached envelope, I think you might have a corrupt cache.  You might
want to reconstruct the mailbox in question.

That being said, I should handle unexpected input (right now, it gets
into a tight infinite loop).  Applying the following patch should fix
the problem, if reconstructing the mailbox doesn't.  Sorry for the
nconvenience.

BTW, what IMAP client was using the SORT extension (Pine, some c-client
based software)?

diff -c -r1.146 index.c
*** index.c 2000/11/19 05:23:13 1.146
--- index.c 2000/11/28 16:26:23
***
*** 3122,3127 
--- 3122,3131 
}
*(c-1) = '\0';  /* end of list - trim close
paren */
break;
+   default:
+   /* yikes! unparsed junk, just skip it */
+   c++;
+   break;
}
  }
  }


-- 
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: Test

2000-11-28 Thread Alain Turbide

James,
Try running configure with the following options.  It works for me with a
Redhat 7.0 system.
No Kerberos support.
./configure --without-krb --with-com_err --with-tclsh=/usr/bin/tclsh

Note:  you need to tell configure where to find tclsh.  Have a look at the
configure options and you can turn off features you don't need.
Then just run make.   Don't forget to also install the Cyrus-Sasl library as
well

Alain Turbide

- Original Message -
From: "James Presley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 10:11 AM
Subject: Re: Test


>
P.S. I'm trying to install to a RH 7.0, new computer custom build Athlon
> 700, 128 meg ram, Cyrus-Imap with Pam authentication, using Postfix and
> mySQL.
>
>




Re: Using sieve to change subject header

2000-11-28 Thread Ken Murchison



Evan McLean wrote:
> 
> Hi,
> 
> Is is possible to use sieve during email delivery to modify the subject of
> an email message.
> 
> For example, any email from "[EMAIL PROTECTED]" would have
> "[Cyrus] " prepended to the existing subject.

No, sieve currently has no functionality for changing the contents of
the message.  The best you could do would be to file messages from the
list into a particular folder.

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



Compiling trouble on Solaris 8

2000-11-28 Thread Anders Holm

Hi!

I'm a newbie to Cyrus that has a question.

I'm trying to compile Cyrus IMAPD 1.6.24 and 2.0.7 on Solaris 8 aswell 
on Red Hat 7.0, and it just doesn't want to complete the compilation.

The error I am getting is the following:

ld: fatal: symbol `yys' is multiply defined:
 (file ../sieve/libsieve.a(sieve.o) and file 
../sieve/libsieve.a(addr.o));
ld: fatal: symbol `yyv' is multiply defined:
 (file ../sieve/libsieve.a(sieve.o) and file 
../sieve/libsieve.a(addr.o));
ld: fatal: File processing errors. No output written to deliver
collect2: ld returned 1 exit status

Either I am missing something or there is something broken in the 
"deliver" code. Don't know which, since I'm not a programmer, 
unfortunately.. ;)

Any pointers to where to look would be greatly appreciated!! ;)

Thanks folks!

-- 

Anders Holm
Unix SysAdmin/PostMaster
Worldport Communications Inc.
Blanchardstown Corporate Park, Blanchardstown, Dublin 15, Ireland

Email: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Tel:+353-(0)1 2412400
Fax:+353-(0)1 2412495
Mobile: +353-(0)86 6042374
Web:http://www.wrdp.com


The information transmitted by this E-mail may contain confidential and/or
privileged material and may constitute non-public information.  This E-mail
is intended to be conveyed only to the designated addressee(s).  If you are
not a designated addressee, please contact the sender and delete this E-mail
and all attachments from your computer.  Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this E-mail or its attachments by persons or entities other than the
designated addressee(s) is strictly prohibited and may be unlawful.


"Sysadmins do their jobs with sharp knives in a crowded room."
- Quote from the ARK motivations page located at:
http://ark.sourceforge.net/motivations.html




Re: Test

2000-11-28 Thread James Presley


Man its great to finally locate a group that can understand what I am asking
about. I've gone to a couple places seeking help and everyone kinda says,
"Why don't you use this program instead". Ugh, that bugs me, anyhow I am a
new linux admin comming from an NT background. I am charged with converting
all of the mail server duties from a FreeBSD machine to a RH Linux machine
and everything has gone fine except for the Cyrus-Imap install. I must be
doing something really wrong here as I have been trying to get this program
to work for almost two weeks to no avail. I tried to install
Cyrus-Imap-1.6.24 (which was the version on the FreeBSD machine) and all I
get is an error about missing the Kerberos DES library files. I went through
the painstaking process of download the full version from MIT, installed
this huge program even though I am using PAM for authentication, and still
did not satisfy the descrepency. In a fit of madness I broke down and
installed the RPM, cyrus-imap-1.5.24-7, and it came up with a new
descrepency. It is now looking for libtcl8.0.so, I guessed that it is asking
for the TCL libraries version 8.0, sadly I have TCL 8.3 installed, and to
install 8.0 would conflict with the new TCL libs. I tried to install
ignoring the descrepency and it really wigged out on me. I can't execute the
cyradmin without failure messages. So now I have a big mudpie and my sanity
is quickly slipping away. Take pity on this poor soul and help if you can!
: )

James

P.S. I'm trying to install to a RH 7.0, new computer custom build Athlon
700, 128 meg ram, Cyrus-Imap with Pam authentication, using Postfix and
mySQL.




unsubscribe

2000-11-28 Thread Marian Edu




unsubscribe
-Marian 
EduRomanian Data Soft9, Primaverii, Bucharest, RomaniaPhone: 
00401-231 41 92/94


imapd cpu utilization

2000-11-28 Thread Artur Frysiak

Hello
I have cyrus-imapd 2.0.7.
Some time imapd eat 90% CPU time.
I start gdb and see:
(gdb) where
#0  parse_cached_envelope (env=0x810f9b0 "\"Sat, 25 Nov 2000 18:26:49 +0100", 
tokens=0xb2d4) at index.c:3019
#1  0x805c191 in index_msgdata_load (msgno_list=0x810d7a8, n=145, sortcrit=0x810d5d0) 
at index.c:2970
#2  0x80589b6 in index_sort (mailbox=0x80fa8e0, sortcrit=0x810d5d0, 
searchargs=0x810d6c0, usinguid=1) at index.c:1054
#3  0x8051df6 in cmd_sort (tag=0x810c0d8 "0010", usinguid=1) at imapd.c:2917
#4  0x804e3fe in cmdloop () at imapd.c:1148
#5  0x804c647 in service_main (argc=1, argv=0xbd04, envp=0xbd0c) at imapd.c:471
#6  0x804b41e in main (argc=1, argv=0xbd04, envp=0xbd0c) at service.c:223
(gdb) list
3014{
3015char *c;
3016int i = 0, len, ncom;
3017
3018c = env;
3019while (*c != '\0') {
3020switch (*c) {
3021case ' ':   /* end of token */
3022*c = '\0';  /* mark end of token */
3023c++;
(gdb) print *c
$1 = 41 ')'
(gdb) n
3020switch (*c) {
1: *c = 41 ')'
(gdb) 
3019while (*c != '\0') {
1: *c = 41 ')'
(gdb) 
3020switch (*c) {
1: *c = 41 ')'
(gdb) 
3019while (*c != '\0') {
1: *c = 41 ')'
(gdb) 
3020switch (*c) {
1: *c = 41 ')'
(gdb) 
3019while (*c != '\0') {
1: *c = 41 ')'
(gdb) 
3020switch (*c) {
1: *c = 41 ')'

Regards
-- 
Artur Frysiak
http://www.pld.org.pl/



Using sieve to change subject header

2000-11-28 Thread Evan McLean

Hi,

Is is possible to use sieve during email delivery to modify the subject of 
an email message.

For example, any email from "[EMAIL PROTECTED]" would have 
"[Cyrus] " prepended to the existing subject.

Thanx

E.

--
Evan McLeanDid you know that beating your head against
Datatask Pty. Ltd. a brick wall burns 150 calories an hour?
[EMAIL PROTECTED]
http://www.datatrain.net  Question = 0xFF;  // Optimised Hamlet