weird sieve issues

2005-03-16 Thread Cory D. Wiles
Programs Installed:
Cyrus IMAPd 2.2.12
Cyrus SASL 2.1.20

I have been trying to get sieve running all day, but to no avail. If I
run the following command:

shell>$sieveshell --user=cwiles -a cyrus localhost

I get the following error:

connecting to localhost
Bad protocol from MANAGESIEVE server: EOL2

When I looked at my imadp.log I noticed that I was getting the following
error:
IOERROR: not a sieve bytecode file /usr/local/sieve/c/cwiles/defaultbc

::NOTE::
I had to create the "c/cwiles/defaultbc" directories/files manually...I
am not sure if that is correct or not.

When I removed the defaultbc file I now get:
IOERROR: fstating sieve script /usr/local/sieve/c/cwiles/defaultbc: No
such file or directory

When I checked to make sure that the port(2000) was even open I was
shocked to see that the mimedefang.sock was listening to it and I have
no idea why:

shell>$netstat -na | grep LISTEN

tcp0  0 0.0.0.0:32768   0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:993 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:995 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:33060.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:110 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:143 0.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:783   0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:111 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:20000.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:21  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:22  0.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:631   0.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:32825 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN
unix  2  [ ACC ] STREAM LISTENING 1977
/var/spool/MIMEDefang/mimedefang-multiplexor.sock
unix  2  [ ACC ] STREAM LISTENING 2000
/var/spool/MIMEDefang/mimedefang.sock
unix  2  [ ACC ] STREAM LISTENING 2271   /tmp/mysql.sock
unix  2  [ ACC ] STREAM LISTENING 2276
/tmp/.font-unix/fs7100
unix  2  [ ACC ] STREAM LISTENING 8825
/var/imap/socket/lmtp
unix  2  [ ACC ] STREAM LISTENING 2825
/var/run/dbus/system_bus_socket

I did have to create a new xinetd file:
service sieve
 {
socket_type = stream
protocol= tcp
wait= no
user= cyrus
port= 2000
passenv = PATH
server  = /usr/cyrus/bin/timsieved
}

::IMAPD.CONF::
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cwiles, cyrus
sasl_pwcheck_method: saslauthd
sievedir: /usr/local/sieve
sieveusehomedir: no
hashimapspool: true
altnamespace: yes
sendmail: /usr/sbin/sendmail
timeout: 90
allowplaintext: yes

::CYRUS.CONF::
# standard standalone server implementation

START {
  # do not delete this entry!
  recover   cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
  idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
  # add or remove based on preferences
  imap  cmd="imapd" listen="imap" prefork=0
  imaps cmd="imapd -s" listen="imaps" prefork=0
  pop3  cmd="pop3d" listen="pop3" prefork=0
  pop3s cmd="pop3d -s" listen="pop3s" prefork=0
  sieve cmd="timsieved" listen="sieve" prefork=0

  # these are only necessary if receiving/exporting usenet via NNTP
#  nntp cmd="nntpd" listen="nntp" prefork=0
#  nntpscmd="nntpd -s" listen="nntps" prefork=0

  # at least one LMTP is required for delivery
#  lmtp cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0

  # this is only necessary if using notifications
#  notify   cmd="notifyd" listen="/var/imap/socket/notify"
proto="udp" prefork=1
}

EVENTS {
  # this is required
  checkpointcmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune  cmd="cyr_expire -E 3" at=0400

  # this is only necessary if caching TLS sessions
  tlsprune  cmd="tls_prune" at=0400
}


If anyone has any insight as to what I am  missing then i would really
appreciate it.  I have been googling all day long and I am out of ideas.

Thanks,
Cory
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: using imclient

2005-03-16 Thread Patrick Radtke
I'll add a little code sample
// server returns NO on an error
imclient_addcallback(imclient, "NO",
   CALLBACK_NOLITERAL,
   callback_error,
   &error_string,
   NULL);
 nc =1;
  imclient_send(imclient,end_command,(void*) &nc,"create 
\"user/bigtestuser3\"");
 while(nc > 0) {
imclient_processoneevent(imclient);
  }
cout << "create data is " << error_string << endl;

So bigtestuser3 already exists. So I would expect the imap server to 
return 'NO Mailbox already exists'.
So I add a callback on the keyword 'NO', but it never gets called. Are 
there other settings I need to use on the callback?

The 'nc' and 'end_command' stuff is how things were done in 'man 
imclient'.

thanks,
-Patrick
On Mar 16, 2005, at 12:41 PM, Patrick Radtke wrote:
Hi,
I am trying to write a program using imclient.
I am not sure how to detect errors when I use send.
For example when I send 'create user/phr2101'
I am unsure how to get the error message from the action (since the 
account already exists).

Does anyone know? or have sample code using imclient that I could look 
at?

thanks,
Patrick
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


logo -

2005-03-16 Thread Per olof Ljungmark
I was hoping to add a nice Cyrus-IMAP logo-symbol-picture to the login 
page of our webmail but failed to locate one, am I correct in saying 
there is none? If there is not I hope some artist could step forward and 
create one, this great piece of software deserves it!

Thanks,
Per olof
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: old issue, again: "cyradm: cannot authenticate to server with DIGEST-MD5"

2005-03-16 Thread Andreas Hasenack
On Mon, Dec 20, 2004 at 09:30:55AM +0100, Sebastian Hagedorn wrote:
> > sasl_mech_list: PLAIN DIGEST-MD5 CRAM-MD5
> > sasl_auto_transition: no
> > sasl_minimum_layer: 256
> 
> I think this line is your problem. I don't know any application that 
> actually uses a layer for DIGEST-MD5. All the ones I've tried use it only 
> for authentication. Try setting sasl_minimum_layer to 0. My guess is it'll 
> work after that ...

mutt uses digest-md5 with ssf=128.
AFAIK, digest-md5 can provide only up to 128, so 256 above will probably
not work.

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieveshell - SOLVED

2005-03-16 Thread Craig White
On Wed, 2005-03-16 at 18:25 +, Cameron Murdoch wrote:

> >
> 
> Not sure if it will solve this problem, (not even sure what the problem 
> is :) but specifying both -a and -u has solved some issues for me in the 
> past:
> 
> sieveshell -a Alec -u Alec
> 
> They do different things though the default user authorization setting 
> is supposed to be derived from the the authentication, (-a). I just 
> remember that specifying both fixed some problem once upon a time!

BING!

thanks

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Reference Cyrus MURDER installation

2005-03-16 Thread Ondřej Surý
Hello all,

I am looking for some people/companies which are using MURDER with vast
(more then 100.000) amount of mailboxes (apart from CMU) and can be used
as kind of *proof of concept*.

Please send then in private, so we don't pollute mailling lists.

Thanks.

Ondrej
-- 
OndÅej Surà <[EMAIL PROTECTED]>

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Conversion from UW to Cyrus _and_ keeping IMAP flags?

2005-03-16 Thread Andrew Morgan

On Wed, 16 Mar 2005, Alan Thew wrote:
On Wed, 16 Mar 2005 07:40 , Craig White <[EMAIL PROTECTED]> said:
On Wed, 2005-03-16 at 13:59 +, Alan Thew wrote:
Has anyone tried using a batch process (for speed) _and_ managed to keep
the flags?
I've not found anything on the web/wiki that indicates this. If I had the
flag data, how would I get this to Cyrus?

imapsync works nice
problem with batch is that you would have to feed it names/passwords for
accounts on both servers
My understanding is that imapsync and other imap->imap tools take a long time 
(we have > 15,000 users with large amounts of mail). The batch methods I 
refered to are the type of tools on the Wiki and in the "Managing IMAP" book, 
which normally throw the imap flag data away...
(thinking out loud here)
I think the main problem is getting the Seen flag into Cyrus.  It would be 
fairly easy to parse the mbox format message for the flag.  You'd need to 
keep track of the number of the message in cyrus (1., 2., 3., etc), then 
write that into the seen.db file correctly, perhaps after you've processed 
the last message in that mailbox.

On a related note, one thing which I wish I had done when I migrated was 
set the timestamp on the message files to match the internal timestamp. 
Some email clients (Outlook, notably), would show the time of the message 
as the time of the message file (1., 2., etc), not the time recorded in 
the message headers.  There is an entirely separate column in Outlook for 
showing the "real" time of the message, but it doesn't default to that 
one.  If you are going to take the effect to parse the mbox format 
message, you'll probably want to grab the internal date and "touch" the 
resulting message file (1., 2., etc).

Andy
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieveshell

2005-03-16 Thread Cameron Murdoch
Craig White wrote:
On Tue, 2005-03-15 at 19:41 -0600, Dave McCracken wrote:
 

--On Tuesday, March 15, 2005 17:48:32 -0700 Craig White 
<[EMAIL PROTECTED]> wrote:

   

I want to insert sieve scripts for users via sieveshell but I can't seem
to get that done...
sieveshell -u Alec localhost
will try to authenticate as root, not as Alec and I can't su to Alec
since he doesn't have a usable shell. Is there any other way?
 

Use -a unstead of -u.  The correct syntax would be:
sieveshell -a Alex localhost
   


OK further digging - running saslauthd -a pam -d
shows me that 

sieveshell -a alec localhost
does indeed authenticate but sieveshell reports an authentication
failure anyway...
Not sure if it will solve this problem, (not even sure what the problem 
is :) but specifying both -a and -u has solved some issues for me in the 
past:

sieveshell -a Alec -u Alec
They do different things though the default user authorization setting 
is supposed to be derived from the the authentication, (-a). I just 
remember that specifying both fixed some problem once upon a time!

Cam
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


using imclient

2005-03-16 Thread Patrick Radtke
Hi,
I am trying to write a program using imclient.
I am not sure how to detect errors when I use send.
For example when I send 'create user/phr2101'
I am unsure how to get the error message from the action (since the 
account already exists).

Does anyone know? or have sample code using imclient that I could look 
at?

thanks,
Patrick
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sharing Cyrus Datafiles

2005-03-16 Thread Natalino Picone
Hi everyone,
i was wondering if anybody has been able to run cyrus in any high 
availability configuration.
The main problem i have found is about the concurrent access to the data 
files.

Any idea on how to solve this issue ?
Bye
Nat
--
--
Natalino Picone - [EMAIL PROTECTED]
--
It's a horrible thing to be on top of the world and then to lose it and 
try to get it back.
It's a whole lot harder the second time.
--
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus Newbie

2005-03-16 Thread Shaun Bolling
OndÅej Surà wrote:
On Wed, 2005-03-16 at 08:33 -0500, Shaun Bolling wrote:
I have recently install Cyrus imapd for the first time. One of the 
feature I was attracted to is how you didn't have to create a system 
user account for each email account. I have Redhat ES 4 install with 
Cyrus-imapd working. However for anyone to be able to log in to check 
mail I have to add an account to the system. Any ideas?

Type "cyrus mysql postfix" into google.com.
Ondrej
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Can you authinicate through mysql with out running a patch during 
compile time? I have read about this patch on many pages. I have these 
RPMs installed

cyrus-imapd-devel-2.2.10-1.RHEL4.1
cyrus-sasl-plain-2.1.19-5.EL4
cyrus-sasl-devel-2.1.19-5.EL4
cyrus-sasl-ntlm-2.1.19-5.EL4
cyrus-imapd-murder-2.2.10-1.RHEL4.1
cyrus-imapd-utils-2.2.10-1.RHEL4.1
cyrus-sasl-md5-2.1.19-5.EL4
cyrus-sasl-sql-2.1.19-5.EL4
cyrus-imapd-nntp-2.2.10-1.RHEL4.1
cyrus-sasl-2.1.19-5.EL4
cyrus-sasl-gssapi-2.1.19-5.EL4
cyrus-imapd-2.2.10-1.RHEL4.1
Example 
http://www.viperstrike.com/~lopaka/sysadmin/cyrus-sasl-mysql-encrypt/

Thanks
--Shaun
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieveshell

2005-03-16 Thread Robert Scussel
I am having similar problems, and found out by stracing the timsieved 
that the sieveshell connects to, that sieveshell doesn't respect ( at 
least in my case) what I pass as -a. If I run as root, it will try to 
authenticate as root, if I run as user, then it works fine. -a 
apparently has no effect.

On a side note, if sieveshell is saying it can't connect to server, then 
you might want to check your settings in cyrus.conf to make sure that a) 
sieve is in there, and that b) it's running on port 2000.

HTH,
B
Craig White wrote:
On Tue, 2005-03-15 at 19:41 -0600, Dave McCracken wrote:
--On Tuesday, March 15, 2005 17:48:32 -0700 Craig White 
<[EMAIL PROTECTED]> wrote:


I want to insert sieve scripts for users via sieveshell but I can't seem
to get that done...
sieveshell -u Alec localhost
will try to authenticate as root, not as Alec and I can't su to Alec
since he doesn't have a usable shell. Is there any other way?
Use -a unstead of -u.  The correct syntax would be:
sieveshell -a Alex localhost

still struggling here...
starting saslauthd with 'saslauthd -a pam -d'
shows that
sieveshell -a alec localhost
does indeed authenticate but sieveshell still reports failure...
unable to connect to server at /usr/bin/sieveshell line 169, 
line 1.
an strace of this sieveshell attempt ends with...
send(5, "<37>Mar 16 06:37:27 perl: No wor"..., 47, 0) = 47
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
getpeername(4, {sa_family=AF_INET, sin_port=htons(2000),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
getsockname(4, {sa_family=AF_INET, sin_port=htons(47252),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
uname({sys="Linux", node="MY_FQDN_REMOVED", ...}) = 0
write(2, "unable to connect to server at /"..., 77unable to connect to
server at /usr/bin/sieveshell line 169,  line 1.
how can I fix this?
Craig
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

--
Robert Scussel
1024D/BAF70959/0036 B19E 86CE 181D 0912  5FCC 92D8 1EA1 BAF7 0959
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Conversion from UW to Cyrus _and_ keeping IMAP flags?

2005-03-16 Thread Alan Thew
On Wed, 16 Mar 2005 07:40 , Craig White <[EMAIL PROTECTED]> said:
On Wed, 2005-03-16 at 13:59 +, Alan Thew wrote:
Has anyone tried using a batch process (for speed) _and_ managed to keep
the flags?
I've not found anything on the web/wiki that indicates this. If I had the
flag data, how would I get this to Cyrus?

imapsync works nice
problem with batch is that you would have to feed it names/passwords for
accounts on both servers
My understanding is that imapsync and other imap->imap tools take a long 
time (we have > 15,000 users with large amounts of mail). The batch 
methods I refered to are the type of tools on the Wiki and in the 
"Managing IMAP" book, which normally throw the imap flag data away...

Thanks
--
Alan Thew   [EMAIL PROTECTED]
Computing Services, University of Liverpool Fax: +44 151 794-4442
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Conversion from UW to Cyrus _and_ keeping IMAP flags?

2005-03-16 Thread Craig White
On Wed, 2005-03-16 at 13:59 +, Alan Thew wrote:
> Has anyone tried using a batch process (for speed) _and_ managed to keep 
> the flags?
> 
> I've not found anything on the web/wiki that indicates this. If I had the 
> flag data, how would I get this to Cyrus?

imapsync works nice

problem with batch is that you would have to feed it names/passwords for
accounts on both servers

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Conversion from UW to Cyrus _and_ keeping IMAP flags?

2005-03-16 Thread claus westerkamp
Hello Alan,
this is exactly my problem too. I managed to convert .seen db`s to 
skiplist but for some reason cyrus doenst care.

I noticed different directory structures too but cannot find anything 
about that.


Alan Thew wrote:
Has anyone tried using a batch process (for speed) _and_ managed to keep 
the flags?

I've not found anything on the web/wiki that indicates this. If I had 
the flag data, how would I get this to Cyrus?

Thank you
--
Claus Westerkamp
Systems Engineering
Germany
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieveshell

2005-03-16 Thread Craig White
On Tue, 2005-03-15 at 19:41 -0600, Dave McCracken wrote:
> --On Tuesday, March 15, 2005 17:48:32 -0700 Craig White 
> <[EMAIL PROTECTED]> wrote:
> 
> > I want to insert sieve scripts for users via sieveshell but I can't seem
> > to get that done...
> >
> > sieveshell -u Alec localhost
> >
> > will try to authenticate as root, not as Alec and I can't su to Alec
> > since he doesn't have a usable shell. Is there any other way?
> 
> Use -a unstead of -u.  The correct syntax would be:
> 
> sieveshell -a Alex localhost
> 

still struggling here...

starting saslauthd with 'saslauthd -a pam -d'

shows that

sieveshell -a alec localhost

does indeed authenticate but sieveshell still reports failure...

unable to connect to server at /usr/bin/sieveshell line 169, 
line 1.

an strace of this sieveshell attempt ends with...

send(5, "<37>Mar 16 06:37:27 perl: No wor"..., 47, 0) = 47
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
getpeername(4, {sa_family=AF_INET, sin_port=htons(2000),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
getsockname(4, {sa_family=AF_INET, sin_port=htons(47252),
sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
uname({sys="Linux", node="MY_FQDN_REMOVED", ...}) = 0
write(2, "unable to connect to server at /"..., 77unable to connect to
server at /usr/bin/sieveshell line 169,  line 1.

how can I fix this?

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus Newbie

2005-03-16 Thread Ondřej Surý
On Wed, 2005-03-16 at 08:33 -0500, Shaun Bolling wrote:
> I have recently install Cyrus imapd for the first time. One of the 
> feature I was attracted to is how you didn't have to create a system 
> user account for each email account. I have Redhat ES 4 install with 
> Cyrus-imapd working. However for anyone to be able to log in to check 
> mail I have to add an account to the system. Any ideas?

Type "cyrus mysql postfix" into google.com.

Ondrej

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sieveshell

2005-03-16 Thread Craig White
On Tue, 2005-03-15 at 19:41 -0600, Dave McCracken wrote:
> --On Tuesday, March 15, 2005 17:48:32 -0700 Craig White 
> <[EMAIL PROTECTED]> wrote:
> 
> > I want to insert sieve scripts for users via sieveshell but I can't seem
> > to get that done...
> >
> > sieveshell -u Alec localhost
> >
> > will try to authenticate as root, not as Alec and I can't su to Alec
> > since he doesn't have a usable shell. Is there any other way?
> 
> Use -a unstead of -u.  The correct syntax would be:
> 
> sieveshell -a Alex localhost
> 

OK further digging - running saslauthd -a pam -d

shows me that 

sieveshell -a alec localhost

does indeed authenticate but sieveshell reports an authentication
failure anyway...

unable to connect to server at /usr/bin/sieveshell line 169, 
line 1.

so I have tried substituting the fqdn for localhost, no change

I can telnet to timsieve and it responds...

# telnet localhost sieve
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.2.12-Invoca-RPM-2.2.12-1"
"SASL" "PLAIN"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
relational comparator-i;ascii-numeric regex"
"STARTTLS"
OK

and I even computed md5sum against /usr/bin/sieveshell on this system
and another that is working and they are the same.

I'm stuck - help

Craig


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Conversion from UW to Cyrus _and_ keeping IMAP flags?

2005-03-16 Thread Alan Thew
Has anyone tried using a batch process (for speed) _and_ managed to keep 
the flags?

I've not found anything on the web/wiki that indicates this. If I had the 
flag data, how would I get this to Cyrus?

Thank you
--
Alan Thew   [EMAIL PROTECTED]
Computing Services, University of Liverpool Fax: +44 151 794-4442
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus Newbie

2005-03-16 Thread Craig White
On Wed, 2005-03-16 at 08:33 -0500, Shaun Bolling wrote:
> I have recently install Cyrus imapd for the first time. One of the 
> feature I was attracted to is how you didn't have to create a system 
> user account for each email account. I have Redhat ES 4 install with 
> Cyrus-imapd working. However for anyone to be able to log in to check 
> mail I have to add an account to the system. Any ideas?

sasldb

man saslauthd

saslpasswd --help

Craig

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Newbie

2005-03-16 Thread Shaun Bolling
I have recently install Cyrus imapd for the first time. One of the 
feature I was attracted to is how you didn't have to create a system 
user account for each email account. I have Redhat ES 4 install with 
Cyrus-imapd working. However for anyone to be able to log in to check 
mail I have to add an account to the system. Any ideas?

Thanks
--Shaun
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


CVSweb problem

2005-03-16 Thread Christos Soulios
Hi all

  There seems to be a problem with cvs web, because during the last month
every link to a diff from the cyrus-cvs list is broken.

Could it be fixed because this feature is very useful for monitoring
changes in the Cyrus souces.

Regards,
Christos


-- 
Did you visit http://email.uoa.gr?

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


imclient broken on Solaris 9

2005-03-16 Thread Stephen Grier
Dear all,

We've got Cyrus-imapd-2.2.10 running on on a Solaris 9 box, and
everything is fine, except for the cyradm utility, which fails with:

cyradm --user admin imap-test
imclient_connect: unknown host "imap-test" at 
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/Cyrus/IMAP/Admin.pm line 71.

Having done some debugging, the problem appears to be the getaddrinfo()
call of the imclient_connect() function of lib/imclient.c. It does not
appear to like the AI_CANONNAME flag as defined in netdb.h, and returns
EAI_BADFLAGS "invalid ai_flags". If I change line 238 to:

hints.ai_flags = 2;

(which is how AI_CANONNAME is defined in lib/gai.h) cyradm works as
expected.

So the getaddrinfo() call in imclient_connect seems to expect
AI_CANONNAME to be as defined in lib/gai.h rather than as defined in
netdb.h. And this only seems to happen on Solaris 9, not Solaris 7/8.

Does anyone know why this is happening? I have found a couple of
references on this issue in the info-cyrus archives, but nothing
conclusive. We can work with the above fix for now, but I'd rather know
exactly what's going on here.

Regards,
Stephen

-- 

Stephen Grier
Systems Developer
Computing Services
Queen Mary, University of London



---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Virtual domain problem - POP/IMAP, SASL & LDAP

2005-03-16 Thread Julian W H Osborne
Thanks Andy,
In making various changes since the first post I had changed it to yes. 
 Changed it back with the other changes and it all works :-)

Julian

Andy Fiddaman wrote:
Have you got:
virtdomains: userid
in the imapd.conf ?
On Wed, 16 Mar 2005, Julian W H Osborne wrote:
; OndÅej Surà wrote:
; > On Tue, 2005-03-15 at 16:56 +, Julian W H Osborne wrote:
; >
; > > Dear All,
; > >
; > > I'm having some problems getting Cyrus imap to work correctly with sasl
; > > and ldap.  Using the testsaslauthd command all is okay, username and
; > > domain
; > > is passed through.  However, when using the imap or pop client only the
; > > user part of the login name is passed through, e.g. if username is
; > > [EMAIL PROTECTED] only test is being passed through.  I've pasted
; > > everything I think is useful.
; >
; >
; > Always try to startup saslauthd in debug mode like this:
; >
; > saslauthd -a ldap -d
; >
; > to see what data is received and sent...
; >
; > Ondrej
; >
; > ---
; > Cyrus Home Page: http://asg.web.cmu.edu/cyrus
; > Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
; > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
;
; Using imtest instead of testsaslauth I get:
;
; imtest -v -a [EMAIL PROTECTED]
; WARNING: no hostname supplied, assuming localhost
;
; S: * OK IMS MAXIMS MAIL AGGREGATOR IMAP4
; C: C01 CAPABILITY
; S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE
; UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT
; THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT
; LIST-SUBSCRIBED X-NETSCAPE
; S: C01 OK Completed
; Please enter your password:
; C: L01 LOGIN [EMAIL PROTECTED] {8}
; S: + go ahead
; C: 
; S: L01 NO Login failed: authentication failure
; Authentication failed. generic failure
; Security strength factor: 0
;
; Mar 16 09:12:12 localhost slapd[3234]: conn=33 fd=16 ACCEPT from
; IP=127.0.0.1:32896 (IP=0.0.0.0:389)
; Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=0 BIND
; dn="cn=manager,o=virtual_domain" method=128
; Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=0 BIND
; dn="cn=Manager,o=virtual_domain" mech=SIMPLE ssf=0
; Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=0 RESULT tag=97 err=0 text=
; Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=1 SRCH
; base="o=virtual_domain" scope=2 filter="([EMAIL PROTECTED])"
; Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=1 SRCH attr=dn
; Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=1 SEARCH RESULT tag=101
; err=0 nentries=0 text=
;
;
; saslauthd[6067] :rel_accept_lock : released accept lock
; saslauthd[6068] :get_accept_lock : acquired accept lock
; saslauthd[6067] :do_auth : auth failure: [user=test] [service=imap]
; [realm=localdomain] [mech=ldap] [reason=Unknown]
; saslauthd[6067] :do_request  : response: NO
;
;
; Julian
;
;
;

--

Julian W H Osborne
IMS MAXIMS Plc
Sandymount, Station Road, Woburn Sands, MK17 8RR, UK
Tel: +44 (0)1908 588800 Fax: +44 (0)1908 588819
Clara House, Glenageary Park, Glenageary, Dublin, Ireland
Tel: +353 (0)1 2840555 Fax: +353 (0)1 2840829
http://www.imsmaxims.com/

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Virtual domain problem - POP/IMAP, SASL & LDAP

2005-03-16 Thread Julian W H Osborne
OndÅej Surà wrote:
On Tue, 2005-03-15 at 16:56 +, Julian W H Osborne wrote:
Dear All,
I'm having some problems getting Cyrus imap to work correctly with sasl 
and ldap.  Using the testsaslauthd command all is okay, username and domain
is passed through.  However, when using the imap or pop client only the 
user part of the login name is passed through, e.g. if username is
[EMAIL PROTECTED] only test is being passed through.  I've pasted 
everything I think is useful.

Always try to startup saslauthd in debug mode like this:
saslauthd -a ldap -d
to see what data is received and sent...
Ondrej
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Okay using the '-d' option with saslauthd and using a username of 
[EMAIL PROTECTED] I get:

saslauthd[6064] :main: num_procs  : 5
saslauthd[6064] :main: mech_option: NULL
saslauthd[6064] :main: run_path   : /var/run/saslauthd
saslauthd[6064] :main: auth_mech  : ldap
saslauthd[6064] :ipc_init: using accept lock file: 
/var/run/saslauthd/mux.accept
saslauthd[6064] :detach_tty  : master pid is: 0
saslauthd[6064] :ipc_init: listening on socket: 
/var/run/saslauthd/mux
saslauthd[6064] :main: using process model
saslauthd[6065] :get_accept_lock : acquired accept lock
saslauthd[6064] :have_baby   : forked child: 6065
saslauthd[6064] :have_baby   : forked child: 6066
saslauthd[6064] :have_baby   : forked child: 6067
saslauthd[6064] :have_baby   : forked child: 6068
saslauthd[6065] :rel_accept_lock : released accept lock
saslauthd[6066] :get_accept_lock : acquired accept lock
saslauthd[6065] :do_auth : auth failure: [user=test] 
[service=imap] [realm=localdomain] [mech=ldap] [reason=Unknown]

How do I get cyrus imap to pass through the correct realm?
Julian
--

Julian W H Osborne
IMS MAXIMS Plc
Sandymount, Station Road, Woburn Sands, MK17 8RR, UK
Tel: +44 (0)1908 588800 Fax: +44 (0)1908 588819
Clara House, Glenageary Park, Glenageary, Dublin, Ireland
Tel: +353 (0)1 2840555 Fax: +353 (0)1 2840829
http://www.imsmaxims.com/

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Virtual domain problem - POP/IMAP, SASL & LDAP

2005-03-16 Thread Julian W H Osborne
OndÅej Surà wrote:
On Tue, 2005-03-15 at 16:56 +, Julian W H Osborne wrote:
Dear All,
I'm having some problems getting Cyrus imap to work correctly with sasl 
and ldap.  Using the testsaslauthd command all is okay, username and domain
is passed through.  However, when using the imap or pop client only the 
user part of the login name is passed through, e.g. if username is
[EMAIL PROTECTED] only test is being passed through.  I've pasted 
everything I think is useful.

Always try to startup saslauthd in debug mode like this:
saslauthd -a ldap -d
to see what data is received and sent...
Ondrej
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Using imtest instead of testsaslauth I get:
imtest -v -a [EMAIL PROTECTED]
WARNING: no hostname supplied, assuming localhost
S: * OK IMS MAXIMS MAIL AGGREGATOR IMAP4
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN [EMAIL PROTECTED] {8}
S: + go ahead
C: 
S: L01 NO Login failed: authentication failure
Authentication failed. generic failure
Security strength factor: 0

Mar 16 09:12:12 localhost slapd[3234]: conn=33 fd=16 ACCEPT from 
IP=127.0.0.1:32896 (IP=0.0.0.0:389)
Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=0 BIND 
dn="cn=manager,o=virtual_domain" method=128
Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=0 BIND 
dn="cn=Manager,o=virtual_domain" mech=SIMPLE ssf=0
Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=0 RESULT tag=97 err=0 
text=
Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=1 SRCH 
base="o=virtual_domain" scope=2 filter="([EMAIL PROTECTED])"
Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=1 SRCH attr=dn
Mar 16 09:12:12 localhost slapd[3234]: conn=33 op=1 SEARCH RESULT 
tag=101 err=0 nentries=0 text=

saslauthd[6067] :rel_accept_lock : released accept lock
saslauthd[6068] :get_accept_lock : acquired accept lock
saslauthd[6067] :do_auth : auth failure: [user=test] 
[service=imap] [realm=localdomain] [mech=ldap] [reason=Unknown]
saslauthd[6067] :do_request  : response: NO

Julian
--

Julian W H Osborne
IMS MAXIMS Plc
Sandymount, Station Road, Woburn Sands, MK17 8RR, UK
Tel: +44 (0)1908 588800 Fax: +44 (0)1908 588819
Clara House, Glenageary Park, Glenageary, Dublin, Ireland
Tel: +353 (0)1 2840555 Fax: +353 (0)1 2840829
http://www.imsmaxims.com/

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html