sieve problem

2001-03-07 Thread prune

Hi

As I can't find more documentation, I'm asking for help.
Cyrus + sieve support have been installed, with SASL and pam-ldap.
I use LMTP between cyrus and postfix.

sieve port (2000) is opened. This is what I get when I telnet it :

bash-2.04$ telnet 0 sieve
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v1.0.0"
"SASL" "PLAIN DIGEST-MD5 CRAM-MD5"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
regex"
OK
logout
Ok "Logout Complete"


Then, I tried to use installsieve :
su-2.04# /usr/local/cyrus/perl/sieve/scripts/installsieve.pl  localhost
Please enter your username: 
Please enter your authentication name: xxx
Please enter your password: xxx
Unable to connect to server at
/usr/local/cyrus/perl/sieve/scripts/installsieve.pl line 136, STDIN
line 3.

is this normal ?
what is the difference between username and authentication name ? if my
cyrus mailbox is "user.prune_lecentre_net", which one is it ?

I then tried to install websieve. I have 2 main problems :
-when I give a false user/password, I get the normal management page,
without any mailbox in the list
-when I give a valid password and make some changs, I get the error :

ACL modification successful..
Sieve vacation active
error: IMAP::Sieve [ putscript ]: couldn't save script default : NO
("SASL" "internal error") "Authentication error"

Error: Unable to Modify Entry...



hoops
while looking at the log, I just saw :
Mar  7 11:14:55 diamond timsieved[77218]: mkdir
/usr/sieve/p/prune_lecentre_net: No such file or directory
Mar  7 11:14:55 diamond timsieved[77218]: error in actions_setuser()
Mar  7 11:14:56 diamond timsieved[77219]: mkdir
/usr/sieve/p/prune_lecentre_net: No such file or directory
Mar  7 11:14:56 diamond timsieved[77219]: error in actions_setuser()

so, why is he trying to use /usr/sieve  (should use /var/imap/spool/)
???

Thanks for your help :)

Prune




Re: [Re: Modified drac support patch]

2001-03-07 Thread Ramiro Morales

Glad to apport my two cents for Cyrus.

Excuse me and please tell me if I'm doing wrong 
posting it to the list, maybe one should 
sent the patches to another place.

Just to point thay you may want to correct 
the description of the patch at the top of the file, 
the first reference to the configuration file to 
be edited refers erroneously to cyrus.conf(5) 
instead of imapd.conf.

And as a bonus a question (for the mailling list):

I'm maintaining RPM packages for Red Hat Linux of 
Cyrus IMAPd, and I'm giving the final retouches to 
the package containing version 2.0.12.

Here is the situation (I hope being clear enough with 
my bad english):

1) Now that drac support is selectable at runtime 
I want to be able to make incorporating the 
drac patch at build time a choice for the builder
(he/she should have libdrac.a available in the filesystem 
at this point).

2) Right now the package build process is using configure 
as it comes with the Cyrus IMAPd distribution.

3) the drac patch needs to rebuild configure from 
the patched configure.in, so it adds two (possibly 
three?) new packages to the list of build 
dependencies: (automake autoconf (and smake?)

I was trying to avoid this and come to the 
following solution:

install automake, autoconf (and smake?) on my system

unpack the Cyrus IMAPd distribution to dir A

unpack the Cyrus IMAPd distribution to dir B

apply the drac patch to dir B

run 
 # rm -f aclocal.m4 configure ; sh SMakefile
on dir B

An now obtain a new drac patch by running

diff -ruN A B

This new drac patch is applied in the %prep
section of the specfile. a diffstat -w 50 
run on  it gives now:

 acconfig.h   |3
 config.h.in  |3
 configure|  511 +
 configure.in |   15
 imap/imapd.c |   52 ++
 imap/pop3d.c |   13
 man/imapd.conf.5 |7
 7 files changed, 378 insertions, 226 deletions

(the high change count in configure is because many 
"echo configure:line number" changes after 
insertion os some lines on it)

I'm doing this because the 'expected audience' for the RPM 
packages is people running Red Hat Linux (as I do), 7 and 
even the coming 7.1 each one with potentially different 
versions (or none at all) of db3 and cyrus-sasl
so I'm recommending people to download and rebuild 
the source RPM in their system rather to use the binary 
one made in my system. But I want to avoid, if 
possible, to force them to install autoconf, 
automake (and smake).

Is it correct or I'm making some wrong assumption(s) ?

TIA !

Ken Murchison [EMAIL PROTECTED] wrote:
 Thanks for the changes.
 
 I have attached a slightly modified version of your patch for 2.0.12.  I
 have also checked a similar patch into CVS for inclusion with future
 releases.
 
 My changes:
 
 - Use value of 'dracinterval' to enable/disable DRAC at runtime.
 
 - Set the default value of 'dracinterval' to 5, since I think that most
 people who compile Cyrus with DRAC support will tend to use it and
 expect it to be on.
 
 - Disable DRAC at runtime if dracd can not be contacted.
 
 Ken
 
 



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



Re: sieve problem

2001-03-07 Thread Atif Ghaffar

prune wrote:
 hoops
 while looking at the log, I just saw :
 Mar  7 11:14:55 diamond timsieved[77218]: mkdir
 /usr/sieve/p/prune_lecentre_net: No such file or directory
 Mar  7 11:14:55 diamond timsieved[77218]: error in actions_setuser()
 Mar  7 11:14:56 diamond timsieved[77219]: mkdir
 /usr/sieve/p/prune_lecentre_net: No such file or directory
 Mar  7 11:14:56 diamond timsieved[77219]: error in actions_setuser()
 
 so, why is he trying to use /usr/sieve  (should use /var/imap/spool/)
 ???

Hi prune.

/usr/sieve is the default sieve directory.
Its clearly documented in the docs.

Here is the excerpt from docs/install-configure.html
-
7. If you wish to use Sieve, and you didn't configure deliver to
look in home directories (see the imapd.conf man page), create the Sieve
   directory:
   cd /usr
   mkdir sieve
   chown cyrus sieve
   chgrp mail
sieve  
   
-

Hope that helps




 
 Thanks for your help :)
 
 Prune

-- 
Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
-.
+41 21 351 53 60  voice
+41 78 787 51 45  mobile
+41 86 0796598972 fax
http://www.4unet.net  www
http://atif.developer.ch  homepage
  [EMAIL PROTECTED]  email



SIEVE question

2001-03-07 Thread Ralf Haferkamp

Hi,

Is it possible to write a SIEVE filterrule that checks all mail headers for
a specific string? Something like:

if header :contains [*] "blahblah"{
discard; ^
}|
 |
 |___
  What do I have do put here to 
  test _all_ mail headers?
-- 
regards,
Ralf



Re: [Re: Modified drac support patch]

2001-03-07 Thread Ken Murchison



Ramiro Morales wrote:
 
 Glad to apport my two cents for Cyrus.
 
 Excuse me and please tell me if I'm doing wrong
 posting it to the list, maybe one should
 sent the patches to another place.
 
 Just to point thay you may want to correct
 the description of the patch at the top of the file,
 the first reference to the configuration file to
 be edited refers erroneously to cyrus.conf(5)
 instead of imapd.conf.

Made the change in CVS.

Gary, if you are going to add the 2.0.12 patch to your web site, do you
want to make this change?

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

2001-03-07 Thread Cillian Sharkey

Bevan Christians [EMAIL PROTECTED] wrote:
 I have a problem with cyradm
 
 it asks for one pwd for the cyrus user which I have,
 then it asks me for an IMAP pwd , which I don't have
 
 Non of the FAQs I have speak about this
 
 Anyone have this problem b4?

Yes. The reason for this is that the first method for authentication fails
(for whatever reason) and so it falls back to using the IMAP LOGIN method
which is what the "IMAP Password:" prompt is about.

Either enter the same password twice at both prompts, or use
'cyradm --auth login' to specifically use the IMAP LOGIN method only.

Regards,

--
Cillian



Re: sieve filtering into a program, or a file?

2001-03-07 Thread Peter S. Housel

"The Hermit Hacker" [EMAIL PROTECTED] wrote:
 Right now, we're using procmail in order to help a user filter mail ...
 basically, if it comes in with a To address of X, file it to a file, else
 file it into his imap mailbox ...

 Is there some way of doing similar with sieve *or* at least having that
 mail message pipe'd through a program?

You could use "resend" to forward the message to a program or file mail
alias defined in /etc/mail/aliases.

Or, you could refile into an IMAP folder and have a program periodically
download messages from there.

Cheers,
-Peter S. Housel-   [EMAIL PROTECTED]   http://members.home.com/housel/