Cyrus failover steps

2007-05-11 Thread Ilya Vishnyakov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello Cyrus Gurus!

I set up cyrus replication on our freeBSD 6.2 boxes. I used this tutorial.
http://cyrusimap.web.cmu.edu/imapd/install-replication.html
Could someone please suggest a documentation on How to failover from
one server to another in case of emergency? I googled and googled and
couldn't find anything. Please point me to the right direction , don't
let me to ruin all the mailboxes. Thank you in advance.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGRKkcUZGmaUWxLn8RAm7OAKCp/YyZ86diMaYP0PtaNKejDWM8QwCeK/N4
BdQJMfZutSS37eqduzqf4MI=
=NtVI
-END PGP SIGNATURE-


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


Re: cyrus replication validation

2007-04-06 Thread Ilya Vishnyakov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
hmmm. it shows the equal sizes for both files.
thank you.

Dmitriy Kirhlarov wrote:
 On Thu, Apr 05, 2007 at 12:10:14PM -0400, Ilya Vishnyakov wrote:

 Hello Cyrus Gurus!
 I was wondering if there is any specific way to check if the
 replication was done properly? I set up cyrus replication between two
 servers (documentation I used:
 http://cyrusimap.web.cmu.edu/imapd/install-replication.html). However,
 before switching our production servers we would like to make sure
 that replication was done properly. We checked if the directories are

 On both servers:
 find imap/ -type f | awk '!/(cache|index|header)/ {print}' | sort 
server1.lst
 find imap/ -type f | awk '!/(cache|index|header)/ {print}' | sort 
server2.lst

 and
 diff -u server1.lst server2.lst

 WBR.
 Dmitriy
 
 Cyrus Home Page: http://cyrusimap.web.cmu.edu/
 Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGFlLcUZGmaUWxLn8RAl0vAJ9cjGvGj6EDp1TICoXby36tqc/yPwCgkrp+
PiSQGmVFX5NjIlKYNYBxZtM=
=DY+E
-END PGP SIGNATURE-


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


webmail folder delete permission denied

2007-03-09 Thread ilya
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Cyrus Gurus!
In my outlook I got an extra folder all of the sudden. it's named
someone.username I tried to delete it with no luck. It says permission
denied.
I tried to delete from webmail - same story. I logged into the server as
cyrus user and looked for this folder in /var/spool/mymailbox and can't
find it.
Did anyone experience same issue?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFF8bOpASD6kFWhV3YRAvXnAJ0RJJ+vjw4bHclT1AxwO44pxdlzWACfZRFo
mfxwQKwVNSx9oYnZD63fXoc=
=W0aB
-END PGP SIGNATURE-

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


Re: delete user from cyrus

2007-01-26 Thread Ilya Vishnyakov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
i switched user to cyrus:
su cyrus
then made sure that's me:
id
uid=60(cyrus) gid=60(cyrus) groups=60(cyrus), 6(mail), 125(postfix)
then tried sam user.xxx cyrus all
and FreeBSD 6.1 replied with the command not found.
same with dm
please advice



Simon Matter wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello, please tell me how do i delete users from cyrus?

 Login as cyrus administrator using cyradm, then grant the cyrus user
 permission to delete the mailbox, then delete it, like

 sam user.xxx cyrus all
 dm user.xxx

 Simon


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
 
iD8DBQFFugogGaMWa0kHPPoRArhhAJ9HKZhgZ5oaA32J41t8YhmQNMkrfACfXskG
Al1D+5pLGg7Q2/LH1+7oh9E=
=QXBZ
-END PGP SIGNATURE-


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


Re: delete user from cyrus

2007-01-26 Thread Ilya Vishnyakov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
thank you. it worked out for me.

Simon Matter wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

 i switched user to cyrus: su cyrus then made sure that's me: id
 uid=60(cyrus) gid=60(cyrus) groups=60(cyrus), 6(mail),
 125(postfix) then tried sam user.xxx cyrus all and FreeBSD 6.1
 replied with the command not found. same with dm please advice

 sam and dm are not unix commands but cyradm commands, you have to
 login using cyradm first, read man cyradm.

 Simon


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
 
iD8DBQFFuhJGGaMWa0kHPPoRArjgAJ499GHdI/dZgDhm3+UPfK2c166hRQCgjzId
e48X4ICl2rtUjSEAqMXHufM=
=t6eh
-END PGP SIGNATURE-


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


delete user from cyrus

2007-01-25 Thread Ilya Vishnyakov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello, please tell me how do i delete users from cyrus?

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
 
iD4DBQFFuSHVGaMWa0kHPPoRAkAAAJjn37pYslEAEJf1Srlmdx9ak/++AJ9/IMWN
9PZ2nI6fYUu8/qd1Jlgbng==
=BuD7
-END PGP SIGNATURE-


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


Re: Virtual domains in 2.2.3

2004-09-01 Thread Ilya Krel
i belive you have to use [EMAIL PROTECTED]

On Wed, Sep 01, 2004 at 06:38:44PM -0700, Paul Wolstenholme wrote:
 I'm using the the rpm version of cyrus v2.2.3-Red Hat 2.2.3-11 
 2004/01/14 02:11:03 on Fedora Core 2. I have enable virtual domains but 
 I am unable to create new mailboxes with an @. Is this a bug in 
 2.2.3? There was a message in the archives that indicated it may be. If 
 so, is there a patch?.
 
 Symptoms:
 localhost.localdomain cm [EMAIL PROTECTED]
 createmailbox: Invalid mailbox name
 
 
 I've tried /etc/imapd.conf with and without a defaultdomain and it 
 doesn't seem to make a difference.
 
 Cheers,
 Paul
 
 ---
 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


problems with deliver command

2004-08-31 Thread Ilya Krel
if this is a repeat, i apologize, but i never saw email make it to mail archive.

I am having trouble figuring out how to use deliver without lmtp (i used lmtp
successfully with exim/cyrus for a while).

Every time i run deliver i get a mailbox not found error. Ive ran deliver
through strace and noticed that there is always a + added in front of mailbox:

read(3, 220 localhost LMTP..., 4096) = 58
select(4, [3], NULL, NULL, {0, 0})  = 0 (Timeout)
write(3, LHLO localhost\r\n, 30) = 30
read(3, 250-localhost\r\n250..., 4096) = 144
select(4, [3], NULL, NULL, {0, 0})  = 0 (Timeout)
write(3, RSET\r\n, 6) = 6
read(3, 250 2.0.0 ok\r\n, 4096)   = 14
select(4, [3], NULL, NULL, {0, 0})  = 0 (Timeout)
write(3, MAIL FROM:root AUTH=\r\n, 26) = 26
read(3, 250 2.1.0 ok\r\n, 4096)   = 14
select(4, [3], NULL, NULL, {0, 0})  = 0 (Timeout)
write(3, RCPT TO:+system\r\n, 19)   = 19
read(3, 550-Mailbox unknown.  Either the..., 4096) = 149
select(4, [3], NULL, NULL, {0, 0})  = 0 (Timeout)
write(3, QUIT\r\n, 6) = 6

/usr/local/cyrus2/bin/deliver -m system
+system: Mailbox does not exist



i am using  v2.2.1-BETA (i know its old but it worked perfectly for my small
setup and i am having trouble compiling the latest). Running on freebsd 4.10S.
also using virtual domains. I did try deliver -m [EMAIL PROTECTED] and still see a +
being added infront of [EMAIL PROTECTED]

any suggestions?

thanks a lot.
---
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: Delivery to non-user mailbox

2003-11-28 Thread Ilya Basin
On Wednesday 26 November 2003 12:26, Edward Rudd wrote:
Edward!

could you please tell me what did I wrong:
I have (as you said) created a mailbox on the same level as user folder
(cyradm cm test (instead of user.jone or shared.test))
I've set an alias: 
test:   [EMAIL PROTECTED]

system gives me User unkown

also, I've tried to creat shared.test - same result.
in my .mc I use the cyrusv2.m4 and I have 
FEATURE(`preserve_local_plus_detail')dnl
in my global.mc

Pls show me my mistake...

Ilya 

 From the imapd.conf man page.
 postuser: none

 Userid used to deliver messages to shared folders. For example, if set
 to bb, email sent to bb+shared.blah would be delivered to the
 shared.blah folder. By default, an email address of +shared.blah
 would be used.

 You create the shared folders at the same level as user. not in a
 subdirectory of shared.

 On Wed, 2003-11-26 at 01:25, Nikola Milutinovic wrote:
  Hi all.
 
  One simple question. How do I form e-mail address so that it gets
  delivered to a non-user mailbox?
 
  Suppose that I should create a SHARED hierarchy, alongside USER
  hierarchy. I know how to deliver to a user mailbox ([EMAIL PROTECTED]). I
  know how to deliver to subfolder of a user mailbox
  ([EMAIL PROTECTED]). But how do I deliver to shared.info folder?
 
  Nix.



Little help with SHARED folder.

2003-11-27 Thread Ilya Basin
Hi,

I've created a shared folder on top of the user... 
cyradm cm systate (instead of user.SOME_USER_NAME)
cyradm lm
cyradm systate

what kind of the record should I put to /etc/mail/virtusertable
to say the local mailer (I have a single, cyrusv2) to put messages for 
[EMAIL PROTECTED] to this top-level folder
(basicly system tells me - USER UNKOWN)...

Thank you in advance..

Ilya



Re: directing mail to shared folders

2003-11-27 Thread Ilya Basin
On Thursday 27 November 2003 00:58, Prentice Bisbal wrote:

have you set ACL on it?
try to:
cyradm sam deposit [your user name] lrsd

regarding the rule howto say to the local mailer (my case - cyrusv2) to 
deliver the messages to the top folder - I don't know... also waiting for the 
reply fro this mail-list...

Ilya

 What is the best way to direct mail to a shared folder? For example, I
 need mail sent to [EMAIL PROTECTED] to go to the shared folder deposit. The
 folder deposit is a top-level folder:

 # /usr/local/cyrus/bin/cyradm -u cyrus localhost
 Password:
 localhost.localdomain lm
 deposit (\HasNoChildren)  user.prentice.Sent (\HasNoChildren)
 user.prentice (\HasChildren)  user.prentice.Trash (\HasNoChildren)

 When I try to subscribe to deposit, the folder appears under Shared
 Folders in the Subscribe dialog in my mail client (Mozilla 1.4), but
 when I try to subscribe, I get the error

 The current command did not succeed. The mail server responded:
 Subscribe: Mailbox does not exist.

 The relevant log entries are

 /var/log/imapd.log:
 
 Nov 26 16:51:27 pdb-pc-9 imapd[5589]: accepted connection
 Nov 26 16:51:27 pdb-pc-9 master[6260]: about to exec
 /usr/local/cyrus-imapd-2.1.15/bin/imapd
 Nov 26 16:51:27 pdb-pc-9 imaps[6260]: executed
 Nov 26 16:51:27 pdb-pc-9 imapd[6260]: DBERROR db4: 21 lockers
 Nov 26 16:51:27 pdb-pc-9 imapd[5589]: TLS engine: cannot load CA data
 Nov 26 16:51:27 pdb-pc-9 imapd[5589]: starttls: TLSv1 with cipher
 RC4-MD5 (128/128 bits reused) no authentication
 Nov 26 16:51:27 pdb-pc-9 imapd[5589]: login:
 bobblehead.rutgers.edu[128.6.178.121] prentice plain+TLS User logged in


 /var/log/messages:
 --
 Nov 26 16:51:27 pdb-pc-9 imapd[6260]: DBERROR db4: 21 lockers
 Nov 26 16:51:27 pdb-pc-9 imapd[5589]: TLS engine: cannot load CA data
 Nov 26 16:51:27 pdb-pc-9 imapd[5589]: starttls: TLSv1 with cipher
 RC4-MD5 (128/128 bits reused) no authentication
 Nov 26 16:51:27 pdb-pc-9 imapd[5589]: login:
 bobblehead.rutgers.edu[128.6.178.121] prentice plain+TLS User logged in

 I have full access to this folder:

 localhost.localdomain lam deposit
 prentice lrswipcd
 anyone lrs
 localhost.localdomain

 Finally, what do I need to do get mail directed there? Sending mail to
 [EMAIL PROTECTED] doesn't work, and I don't want to make the mailbox
 user.deposit.

 Thanks for your help.

 Prentice



Please help with Cyrus vs MS Outlook over TSL/SSL

2003-11-19 Thread Ilya Basin
Hi,
I've spent a week trying to configure cyrus-imapd-2.1.15
to work with MS Outlook 2000 over TLS/SSL.
I see no way to fix it... maybe I've missed something?


System:

Slackware 9.1
openssl-09.7c
cyrus-imapd-cyrus-sasl-2.1.15 
cyrus-imapd-2.1.15

compiled with no errors.

Mozilla Messanger, PINE - checked  work fine with it over port 993
MS Oultook - (with the options [secure auth], work over SSL (port 993)) gives 
an error CRAM-MD5 auth failed
IMAPD.log:

imapd[25702]: starttls: TLSv1 with cipher RC4-MD5(128/128 bits new) no 
authentication
imapd[25702]: badlogin: [213.152.132.32] NTLM [SASL(-13): user not found: no 
secret in database]
###

my imapd.conf:
###
configdirectory:/usr/local/var/imap
partition-default:  /usr/local/var/spool/imap
sieveusehomedir:false
admins: cyrus, ilya
allowanonymouslogin:  no
allowplaintext: no
sendmail:   /usr/sbin/sendmail
sasl_pwcheck_method: saslauthd
#sasl_mech_list:
srvtab: /etc/ssl
tls_ca_path:  /etc/ssl
tls_ca_file:/etc/ssl/server.pem
tls_cert_file:  /etc/ssl/server.pem
tls_key_file:   /etc/ssl/server.pem

my 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
#  idledcmd=idled
}

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
# add or remove based on preferences
imapcmd=imapd listen=imap prefork=0
imaps   cmd=imapd -s listen=imaps prefork=0
pop3cmd=pop3d listen=pop3 prefork=0
pop3s   cmd=pop3d -s listen=pop3s prefork=0
#  sievecmd=timsieved listen=sieve 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
  delprune  cmd=ctl_deliver -E 3 at=0400

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

my imtest -u ilya -s output:
###
[EMAIL PROTECTED]:~$ imtest -u ilya -s localhost
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
S: * OK torer Cyrus IMAP4 v2.1.15 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE 
UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=SRP AUTH=NTLM AUTH=PLAIN 
AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
C: A01 AUTHENTICATE SRP
S: +
Please enter your password:
C: DAAEaWx5YQAEaWx5YQ==
S: + AAABIQEArGvbQTJKmpvxZt5eE4lYL69ytmUZh+4H/
DGSlD21YFCjcynLtKCZ7YGT4HV3Z6E91SMSq0sDMQ3Nf0ip2gT9UOgIOWntt2ewz2CVF5oWOrNmGgX71fqq6CkYqZYvC5O4Vfl5k
+yXXuqoDXQK2/T/dHNZ0EHVwz6nHSgeRGsUdzvKl7Q6I/
uAFna9IHpDbGSB8dK5B4cXRhpbnTLmiPh3SFRFI7UksNV9Xqd6J3XS7PoDLPvb9S
+zeGFgJ5AE5Xrmr4dOcwPOUymczAQce8MI2CpWmPOo0MOCca41+Onb
+7aUtcgD2J965DXeI21SX1R1m2XjcvzWjvIPpxEfnkr/cwABAhBJ7hWfe/7e2sJFsO
+sRX3PAAltZGE9U0hBLTE=
C: AAABDQEAq7MXJsdRD843HkUEX8cH/
wwTuk4WqoZl97ZQ4PBjHVsz6WO81idFeHBO0r4AzdRTfJmPo32HtgleOLphf1usROjnKH3amiih0Kc7p8b8IBH6ZuWJ7HjcaIir0WiSJV3MnYKC5tcrYfra6rhlhnNO7zOcpQfNrywq8qHG7AMdOaSZYR8n60uhD3fPEdcTqaF2bgbvPDAtcfXW8AiDsElbY401Ck9Xl8r1UVsx8T9Sv3QQrbaN9CxPX8T006
+HQfRHJy8S46wnTSwn7y6bYbuwBhrXwGYPNqU4ancS7mY9cTUMb/fPdROWUwGkEbKt/
c0vWiNu8aUqZ+2b0ijGt7q0mwAJbWRhPVNIQS0x
S: + AAABAgEAHfp4TXZTfSM+z0QC3NW4my/vcJOCoK0c/IJ5rjOSvP7XcBfbRFvIaKmR
+K8qjK8feFciImSB4w
+AuvtYArEuCXsTLAo31mFCWEfjQb8CkYQhqaWht3OIHpMHq2rcsS5hTWvszDQvx6eMhxoGSosJ82JSoXgDvQtP0WuhpvRdz8n88T4Y
+O3TEFmEz8hktFKK5nvEvsyisOWrADzrjJUfvx/F5tl1AFLpMFB2lWgQ+/2zCbGq9ID+bpS
+pfGoiY7WfntuLgVDiWbUZruTZyCAz2rKOICCASsVNtYVgAL0+WFeRfh/
sNQDtN1t6pJYKtXzn7zlgI67LaecWAVEGzSmsw==
C: FRQMsbnVGJCD5pP5opXUXUnLXefjnA==
S: + FRQKUgxKKRnoElg5H5Zj3wk1duK3jg==
C:
S: A01 OK Success (tls protection)
Authenticated.
Security strength factor: 256



Re: Please help with Cyrus vs MS Outlook over TSL/SSL

2003-11-19 Thread Ilya Basin
On Wednesday 19 November 2003 19:14, Ilya Basin wrote:

I have some additional info.
Sorry to provide you with so big bunch of info...
ALL imtest passed with OK, like:

[EMAIL PROTECTED]:~$ imtest -u ilya -p 993 -s localhost -m digest-md5
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
S: * OK torer Cyrus IMAP4 v2.1.15 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE 
UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=SRP AUTH=NTLM AUTH=PLAIN 
AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
C: A01 AUTHENTICATE DIGEST-MD5
S: + 
bm9uY2U9InNRVythSmQxaExpa3hJRzY1elZjanloYjdEZ3Jqdmg5VFhhUk5EcEcweGs9IixyZWFsbT0idG9yZXIiLHFvcD0iYXV0aCIsbWF4YnVmPTQwOTYsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=
Please enter your password:
C: 
dXNlcm5hbWU9ImlseWEiLHJlYWxtPSJ0b3JlciIsbm9uY2U9InNRVythSmQxaExpa3hJRzY1elZjanloYjdEZ3Jqdmg5VFhhUk5EcEcweGs9Iixjbm9uY2U9InNuT2NqNWc3MklHenRmdjhEY2dhOXBZL3l1U1ByNnZBRUhtd1VCVk5uYms9IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxtYXhidWY9MTAyNCxkaWdlc3QtdXJpPSJpbWFwL2xvY2FsaG9zdCIscmVzcG9uc2U9ZWYzMGMyZjg0NTFmYzhlNGY4ZDNmZmFlODFlOTBiMWU=
S: + cnNwYXV0aD0xNzcxNTM4MDlkOTdkNWFhYTNkYjNlM2VjOWMzMTZjMg==
C:
S: A01 OK Success (tls protection)
Authenticated.
Security strength factor: 256

[EMAIL PROTECTED]:~$ imtest -u ilya -p 993 -s localhost -m ntlm
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
S: * OK torer Cyrus IMAP4 v2.1.15 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE 
UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=SRP AUTH=NTLM AUTH=PLAIN 
AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
C: A01 AUTHENTICATE NTLM
S: +
C: TlRMTVNTUAABB4IgACA=
S: + 
TlRMTVNTUAACCgAKADAFggIAbbWlQikzSmE6IE5UTE0gc2VydmVyIHN0VABPAFIARQBSAA==
Please enter your password:
C: 
TlRMTVNTUAADGAAYAEAYABgAWAoACgBwCAAIAHoAggCCBYIAAHEToITshuMXoNRGSZo1bdBAQShmOVTT3SkZ3vXxYZv/
qzD2aNXrN8FSAcpN8VASAVQATwBSAEUAUgBpAGwAeQBhAA==
S: A01 OK Success (tls protection)
Authenticated.
Security strength factor: 256

[EMAIL PROTECTED]:~$ imtest -u ilya -p 993 -s localhost -m cram-md5
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
S: * OK torer Cyrus IMAP4 v2.1.15 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE 
UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=SRP AUTH=NTLM AUTH=PLAIN 
AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
C: A01 AUTHENTICATE CRAM-MD5
S: + PDM3NjY0NTMxMjQuMTIyOTU0NDVAdG9yZXI+
Please enter your password:
C: aWx5YSAyNTdkNzgyODA1ZDBkZWFmOTU5YjdhNWQxZGM1YTY4ZA==
S: A01 OK Success (tls protection)
Authenticated.
Security strength factor: 256

[EMAIL PROTECTED]:~$ imtest -u ilya -p 993 -s localhost -m OTP
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
S: * OK torer Cyrus IMAP4 v2.1.15 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE 
UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=SRP AUTH=NTLM AUTH=PLAIN 
AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
C: A01 AUTHENTICATE OTP
S: +
Please enter your secret pass-phrase:
C: aWx5YQBpbHlh
S: + b3RwLW1kNSA0OTggdG81NTU5IGV4dA==
C: aGV4OjZjZTI4MmFiZTk4ZDIyY2U=
S: A01 OK Success (tls protection)
Authenticated.
Security strength factor: 256

[EMAIL PROTECTED]:~$ imtest -u ilya -p 993 -s localhost -m SRP
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
S: * OK torer Cyrus IMAP4 v2.1.15 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE 
UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT 
THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=SRP AUTH=NTLM AUTH=PLAIN 
AUTH=OTP AUTH=DIGEST-MD5 AUTH=CRAM-MD5
S: C01 OK Completed
C: A01 AUTHENTICATE SRP
S: +
Please enter your password:
C: DAAEaWx5YQAEaWx5YQ==
S: + AAABIQEArGvbQTJKmpvxZt5eE4lYL69ytmUZh+4H/
DGSlD21YFCjcynLtKCZ7YGT4HV3Z6E91SMSq0sDMQ3Nf0ip2gT9UOgIOWntt2ewz2CVF5oWOrNmGgX71fqq6CkYqZYvC5O4Vfl5k
+yXXuqoDXQK2/T/dHNZ0EHVwz6nHSgeRGsUdzvKl7Q6I/
uAFna9IHpDbGSB8dK5B4cXRhpbnTLmiPh3SFRFI7UksNV9Xqd6J3XS7PoDLPvb9S
+zeGFgJ5AE5Xrmr4dOcwPOUymczAQce8MI2CpWmPOo0MOCca41+Onb
+7aUtcgD2J965DXeI21SX1R1m2XjcvzWjvIPpxEfnkr/cwABAhBJ7hWfe/7e2sJFsO
+sRX3PAAltZGE9U0hBLTE=
C: AAABDQEAKWbjLQMWWmYoKrbk0FWHDsuvDjALFkKs9c2DYrAt

Re: Please help with Cyrus vs MS Outlook over TSL/SSL

2003-11-19 Thread Ilya Basin
On Wednesday 19 November 2003 20:03, Ken Murchison wrote:

I'd like to disable plaintext auth at all.
I've changed the conf as you suggested to auxprop and t start to work FINE.
THANK YOU som much. I shame of myself.


 Ilya Basin wrote:
  Hi,
  I've spent a week trying to configure cyrus-imapd-2.1.15
  to work with MS Outlook 2000 over TLS/SSL.
  I see no way to fix it... maybe I've missed something?
 
 
  System:
 
  Slackware 9.1
  openssl-09.7c
  cyrus-imapd-cyrus-sasl-2.1.15
  cyrus-imapd-2.1.15
 
  compiled with no errors.
 
  Mozilla Messanger, PINE - checked  work fine with it over port 993
  MS Oultook - (with the options [secure auth], work over SSL (port 993))
  gives an error CRAM-MD5 auth failed
  IMAPD.log:
  
  imapd[25702]: starttls: TLSv1 with cipher RC4-MD5(128/128 bits new) no
  authentication
  imapd[25702]: badlogin: [213.152.132.32] NTLM [SASL(-13): user not found:
  no secret in database]

 What kind of authentication do you want to do?  Are you only going to
 allow plaintext auth mechanisms (via saslauthd), or do you want to allow
 shared secret mechanisms (via an auxprop plugin like sasldb, LDAP, SQL)?

 The only way you will be able to use Outlook's SPA (NTLM) is to allow
 the user secrets to be stored in an auxprop backend, or to proxy the
 NTLM authentication to an NT/2K server.

 My suggestion is to simply not use Outlook's SPA, since the
 authentication is already protected by SSL.  Unchecking the SPA box
 should solve your problem.



Re: Cyrus 2.2.1-BETA Released

2003-07-17 Thread Ilya
Hi Rob.
On FreeBSD box, I had to change to change cyrusdb_berkeley.c from :
#include db.h to #include /usr/local/include/db3/db.h
which is probably not a big deal and i should be specifying path to db3 anyway.

Also imtest failed to compile with error that INT_MAX is not defined, I looked
around and noticed that imap also contains reference to INT_MAX, so adding
#include limits.h solved that.

So far the 2.2b runs ok

On Thu, Jul 17, 2003 at 11:20:20AM -0400, Rob Siemborski wrote:
 I'm pleased to announce the release of Cyrus 2.2.1 on ftp.andrew.cmu.edu.
 This is a BETA quality release, as it contains significant new
 functionality, and a large number of fixes over 2.2.0-ALPHA.
 
 Feature additions include full r/w ANNOTATEMORE support, and use of
 annotations for administrative operations such as generating SQUAT
 databases and controlling the expiration of messages.  Additionally, the
 sieve bytecode now is stored in network byte order and is therefore
 portable across architectures.  Many features have likewise been added to
 Cyrus NNTPd.
 
 There have been substantial bugfixes in the virtual domain support code,
 along with many of the fixes that have been applied to the 2.1 branch
 since 2.2.0 was released.
 
 Please send comments to [EMAIL PROTECTED] (public list), or
 [EMAIL PROTECTED]  Development issues can be addressed on the
 [EMAIL PROTECTED] list.
 
 You can download this tarball at:
 ftp://ftp.andrew.cmu.edu/pub/cyrus/cyrus-imapd-2.2.1-BETA.tar.gz
 or
 http://ftp.andrew.cmu.edu/pub/cyrus/cyrus-imapd-2.2.1-BETA.tar.gz
 
 -Rob
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
 Research Systems Programmer * /usr/contributed Gatekeeper
 
 


Re: cyrus 2.2 from yesterday cvs

2003-02-19 Thread Ilya
Ken, do you have any plans for global admins without default domain setting?

On Wed, Feb 19, 2003 at 09:24:54AM -0500, Ken Murchison wrote:
 
 
 Jure Pecar wrote:
  
  Hi all,
  
  I started playing with the recent cvs code. Basically i want to set up a
  multidomain server with one default domain and mysql auxprop auth. So i
  have this in imapd.conf (among other things):
  
  admins: cyrus
  allowplaintext: yes
  defaultdomain: example.com
  hashimapspool: 1
  imapidresponse: 1
  loginrealms: example.com
  unixhirearcysep: 1
  virtdomains: 1
  sasl_pwcheck_method: auxprop
  sasl_mysql_statement: select password_plain from users where username='%u'
  and realm='%r'
  sasl_mysql_verbose: yes
  
  Here are my current findings:
  
  cyradm still does not compile to a working state outofthebox. Looks like
  env variables like BDB_LIB and SASL_LIB are not passed down to perl/imap.
  When exporting them by hand and going through standard 'perl Makefile.PL;
  make; make install' it works.
  
  There's a comment at the top of sasl*/plugins/mysql.c which states that '
  %r is the realm which could be the kerbros realm, the FQDN of the computer
  the sasl app is on or what ever is after the @ on a username'. Looking at
  the code it looks like 'whatever is after @ on a username' take precedence
  over server FQDN (line 276 of plugins/mysql.c in sasl-2.1.12).
  Now, if i try to log in with imtest, it looks like it does not care what
  is after @ at all. Regardless if i set -a [EMAIL PROTECTED] or -u
  [EMAIL PROTECTED] or both, i get such log entries: mysql plugin doing
  query select password_plain from users where username='cyrus' and
  realm='myhost.example.com'. Same goes for IMAP logins.
  
  I have a default domain set in imapd.conf. I created its ondisk hirearchy
  with mkimap -d example.com and expect its mailboxes to appear underneath.
  However, mailboxes under default domain appear at the top level, as if
  virtdomains is off. (is this intentional? i havent run mkimap without -d
 
 Yes.  defaultdomain is mainly used for backwards compatibility when
 upgrading a single domain server.  If you're starting from scratch then
 you probably don't want/need to use defaultdomain.
 
 -- 
 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: cyrus 2.2 virtual domains and mailbox delete

2003-02-13 Thread Ilya
Bug 1832 has been added to the database

On Thu, Feb 13, 2003 at 08:28:06AM -0500, Ken Murchison wrote:
 
 
 Ilya wrote:
  
  I just tried to delete a top level ([EMAIL PROTECTED]) from both cyradmin
  and php imap_deletemailbox. The delete works, but subfolders for that user are
  not deleted.
  If however I create a user in defaultdomain (user.username) than whenever I
  delete the user everything is gone under him as well.
  I believe it is the behaviour of 2.1.1x as well.
  
  Ken, are the subfolders left on purpose, or its and error?
 
 Its an error.  Please at this to bugzilla.
 
 -- 
 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: cyrus 2.2 virtual domains and mailbox delete

2003-02-13 Thread Ilya
nevermind, feeling stupid again...
this is the ugly think i created..
at least we know all folders get created automatically

[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)
[EMAIL PROTECTED] (\HasNoChildren)

sorry guys



On Thu, Feb 13, 2003 at 02:41:05PM -0500, Igor Brezac wrote:
 
 On Thu, 13 Feb 2003, Ken Murchison wrote:
 
 
 
  Ken Murchison wrote:
  
   Igor Brezac wrote:
I do see the follwing small problem, other cyradm commands seem to work
fine:
   
localhost lm [EMAIL PROTECTED]
localhost lm ipass.net!user.igor
[EMAIL PROTECTED] (\HasChildren)
  
   Yeah, I see this as well.  I might have broken something when I added
   per-domain quotas.  FYI, you should _NOT_ have to use the domain!mailbox
   syntax anywhere.  If you do, then something is broken.
 
  After further testing, it appears as if this only fails when the result
  of the LIST is one mailbox.  If you try:
 
  lm user.igor*@ipass.net
 
  does it work?
 
  I have a pretty good idea where to look for this bug.  I'll try to get
  to it later today or tomorrow.
 
 
 Yup.  I works fine.
 
 Thanks,
 -- 
 Igor
 



Re: cyrus 2.2 and virtual domain resolution

2003-02-06 Thread Ilya

 i can login as [EMAIL PROTECTED] to both pop3 (telnet) and imap (mutt and
 imtest),
 I can login to pop3 and imtest with user and [EMAIL PROTECTED].
 BUT when I use mutt to login as [EMAIL PROTECTED] or user it 
 fails again with
 same domain=com in log.
 Where as [EMAIL PROTECTED] works fine.
 I cannot understand why pop3 and imtest (with -r and without, as user 
 and as
 [EMAIL PROTECTED]) works but mutt doesnt???
 
 
 Anything I am doing wrong?
  
 
 Do you have an IP reverse lookup setup in DNS for your machine ? dig -x 
 your.ip.address.here gives you defauldomain.com or 
 hostname.defaultdomain.com ?
 
 --Christian--

yes you were right DNS had reverse address for 127.0.0.1 as
localhost.defaultdomain.com. I fixed it, but it didnt change anything.
I still need hosts file to contain localhost.defaultdomain.com for users in
defaultdomain to be able to login at all .



Re: Renaming user mailboxes

2003-02-05 Thread Ilya
I just got 2.2 up and running and the only major thing left to do is to move
users from user.user1 to [EMAIL PROTECTED]
the rename function in cyradmin does not work (same error as original poster).
Is there any way for me to get this done?

move user dirs manually and try reconstruct?

On Sat, Feb 01, 2003 at 04:17:53PM -0500, Rob Siemborski wrote:
 On Sat, 1 Feb 2003, Henrique de Moraes Holschuh wrote:
 
  Hmm... It works on subfolders, but not on the top-level (INBOX) ones here,
  either. Urk, I didn't know that.
 
  However, I am SURE I did this at work, with INBOX folders, to move them
  across partitions.  Although I am not sure I changed their names as well as
  moving them across partitions...
 
 Renaming users is more complicated since it involves sieve scripts, seen
 state, etc.
 
 Also, any ACLs on other mailboxes suddenly are invalid if you change a
 username.
 
 2.2 has some support for this.
 
 -Rob
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
 Research Systems Programmer * /usr/contributed Gatekeeper
 



Re: Renaming user mailboxes

2003-02-05 Thread Ilya
yes of course that worked perfect.
for some reason when I downloaded CVS version of 2.2 imapd.conf.5 was missing
from there.
I looked at CVS Web, but latest imapd.conf.5 there does not have any reference
to virtualdomains or allowusermoves

i noticed that last message for cyrus_imap_2_2 is that file was removed/merged.
did smth go wrong?

On Wed, Feb 05, 2003 at 08:52:43PM -0500, Ken Murchison wrote:
 
 
 Ilya wrote:
  
  I just got 2.2 up and running and the only major thing left to do is to move
  users from user.user1 to [EMAIL PROTECTED]
  the rename function in cyradmin does not work (same error as original poster).
  Is there any way for me to get this done?
 
 Did you set 'allowusermoves: yes' in imapd.conf?
 
 
  
  move user dirs manually and try reconstruct?
  
  On Sat, Feb 01, 2003 at 04:17:53PM -0500, Rob Siemborski wrote:
   On Sat, 1 Feb 2003, Henrique de Moraes Holschuh wrote:
  
Hmm... It works on subfolders, but not on the top-level (INBOX) ones here,
either. Urk, I didn't know that.
   
However, I am SURE I did this at work, with INBOX folders, to move them
across partitions.  Although I am not sure I changed their names as well as
moving them across partitions...
  
   Renaming users is more complicated since it involves sieve scripts, seen
   state, etc.
  
   Also, any ACLs on other mailboxes suddenly are invalid if you change a
   username.
  
   2.2 has some support for this.
  
   -Rob
  
   -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
   Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
   Research Systems Programmer * /usr/contributed Gatekeeper
  
 
 -- 
 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: Cyrus IMAPd 2.1.12 Released

2003-02-04 Thread Ilya
you need to change the db.h to #include /usr/local/include/db3/db.h
in cyrusdb_db3.c

On Tue, Feb 04, 2003 at 02:34:34PM -0500, Chris Scott wrote:
 Has anyone compiled this successfully on FreeBSD 4.7?  I'm getting the 
 following errors:
 
 gcc -c -I..   -I/usr/local/include -I/usr/local/ssl/include 
 -I/usr/local/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2  cyrusdb_db3.c
 cyrusdb_db3.c:87: syntax error before `*'
 cyrusdb_db3.c:87: warning: type defaults to `int' in declaration of `dbenv'
 cyrusdb_db3.c:87: warning: data definition has no type or storage class
 cyrusdb_db3.c:93: syntax error before `*'
 cyrusdb_db3.c:98: syntax error before `75'
 cyrusdb_db3.c:98: warning: type defaults to `int' in declaration of `exit'
 cyrusdb_db3.c:98: conflicting types for `exit'
 /usr/include/stdlib.h:96: previous declaration of `exit'
 cyrusdb_db3.c:98: warning: data definition has no type or storage class
 cyrusdb_db3.c:86: warning: `dbinit' defined but not used
 cyrusdb_db3.c:90: warning: `commit_txn' declared `static' but never defined
 cyrusdb_db3.c:91: warning: `abort_txn' declared `static' but never defined
 *** Error code 1
 
 
 cyrusdb_db3.c is the same as it was in 2.1.11 which compiles OK.
 
 configure was run with the following:
 
 ./configure  --with-sasl=/usr/local --with-perl --with-auth=unix 
 --with-openss
 l=/usr/local/ssl --with-duplicate-db=db3_nosync 
 --with-mboxlist-db=skiplist --wi
 th-seen-db=skiplist --with-subs-db=flat --with-tls-db=db3_nosync
 
 These are the same options that 2.1.11 compiles with fine.  Using gcc 
 version 2.95.4 20020320 [FreeBSD] on FreeBSD 2.7-RELEASE.
 
 Thanks,
 Chris Scott
 
 



Re: SNMP cyrus monitoring.

2003-01-26 Thread Ilya
ive compiled cyrus with snmp using ports in freebsd.
but when I run snmpwalk I get:
/usr/local/bin/snmpwalk -Cc localhost
Unlinked OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
cyrusMasterInfo 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
cyrusMasterInfo 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD alchemistry.net 4.7-STABLE FreeBSD
4.7-STABLE #5: Fri Dec  i386

any suggestions?




Re: SNMP cyrus monitoring.

2003-01-26 Thread Ilya
Hi Igor.
I tried your suggestion and now I dont get errors anymore, but neither -Cc nor
-Of list anything related to cyrus/imap.
Ive restarted everything of course after putting files.
Anything else you can suggest to look at?

thx in advance.

On Sun, Jan 26, 2003 at 08:21:51PM -0500, Igor Brezac wrote:
 
 On Sun, 26 Jan 2003, Ilya wrote:
 
  ive compiled cyrus with snmp using ports in freebsd.
  but when I run snmpwalk I get:
  /usr/local/bin/snmpwalk -Cc localhost
  Unlinked OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
  cyrusMasterInfo 3 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
  2 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
  1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
  1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
  2 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
  cyrusMasterInfo 3 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
  Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
  Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
  SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD alchemistry.net 4.7-STABLE FreeBSD
  4.7-STABLE #5: Fri Dec  i386
 
  any suggestions?
 
 
 Add ftp://ftp.andrew.cmu.edu/pub/mibs/cmu/cmu.mib to your
 mibs dir or run 'snmpwalk -On ...'
 
 -- 
 Igor
 



squat core dump

2003-01-08 Thread Ilya
Today one of my users complained that the inbox doesnt show any messages.
Upon investigation I saw that messages are still present, however there was an
imapd.core file in that user's dir
any suggestions?
this is gdb trace:
#0  0x8076036 in memconst (s=0x2849cff2 Address 0x2849cff2 out of bounds,
len=16, v=0) at squat.c:80
80  squat.c: No such file or directory.
(gdb) where
#0  0x8076036 in memconst (s=0x2849cff2 Address 0x2849cff2 out of bounds,
len=16, v=0) at squat.c:80
#1  0x807624a in squat_search_open (fd=14) at squat.c:133
#2  0x8075e2f in search_squat (msg_list=0x8127c00, mailbox=0x810b180,
searchargs=0x812c180) at search_engines.c:257
#3  0x8075fca in search_prefilter_messages (msg_list=0x8127c00,
mailbox=0x810b180, searchargs=0x812c180)
at search_engines.c:309
#4  0x805c01e in _index_search (msgno_list=0xbfbfebcc, mailbox=0x810b180,
searchargs=0x812c180) at index.c:945
#5  0x805c250 in index_sort (mailbox=0x810b180, sortcrit=0x8129a00,
searchargs=0x812c180, usinguid=1) at index.c:1040
#6  0x805344a in cmd_sort (tag=0x811bb80 0006, usinguid=1) at imapd.c:3339
#7  0x804f8c8 in cmdloop () at imapd.c:1496
#8  0x804d755 in service_main (argc=2, argv=0x8114000, envp=0xbfbffdac) at
imapd.c:667
#9  0x804c1ce in main (argc=2, argv=0xbfbffda0, envp=0xbfbffdac) at
service.c:507
#10 0x804b629 in _start ()

localhost.alchemistry.net ver
name   : Cyrus IMAPD
version: v2.1.11 2002/12/19 16:58:38
vendor : Project Cyrus
support-url: http://asg.web.cmu.edu/cyrus
os : FreeBSD
os-version : 4.7-STABLE
environment: Cyrus SASL 2.1.10
 Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)
 OpenSSL 0.9.6g 9 Aug 2002
 CMU Sieve 2.2
 TCP Wrappers
 mmap = shared
 lock = fcntl
 nonblock = fcntl
 auth = unix
 idle = poll
 mboxlist.db = skiplist
 subs.db = skiplist
 seen.db = skiplist
 duplicate.db = skiplist
 tls.db = skiplist




Re: squat core dump

2003-01-08 Thread Ilya
is freebsd included?

- Original Message -

Sent: Wednesday, January 08, 2003 3:47 PM
Subject: Re: squat core dump


Date: Wed, 8 Jan 2003 18:22:06 -0200
From: Henrique de Moraes Holschuh [EMAIL PROTECTED]

On Wed, 08 Jan 2003, Rob Siemborski wrote:
 What bug number is this?

My bad, I did not add it to bugzilla, I just sent it to cyrus-bugs, a
long
time ago.  Hein Roehrig [EMAIL PROTECTED] was the one who tracked it down,
btw.

URLs with data for the bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=159558

http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrusmsg=16
085

There is a linux patch in the first URL. I simply allocate more zero
bytes
to avoid squat trying to read past the end of the mmap'ed area. It is
*not*
portable, but it might work on Solaris.

 It will work on Solaris or any other system that supports map_shared.

 Larry






Re: update: Re: cyrus, mysql, is anyone out there?

2002-05-03 Thread Ilya

this is what I have in my pam.conf and it worked fine when I used pam_mysql with
cyrus. I now switched to Simon's patch of mysql-auxprop, which also works fine
for me:
pop auth required /usr/local/lib/pam_mysql.so user=u passwd=p host
=h db=us table=t usercolumn=c passwdcolumn=pc crypt=3
pop accountrequired   /usr/local/lib/pam_mysql.so user=u passwd=p host=h db=us 
table=users usercolumn=user passwdcolumn=password crypt=3
pop password   required   /usr/local/lib/pam_mysql.so user=u passwd=p host=h db=us 
table=users usercolumn=user passwdcolumn=password crypt=3

you have to use above lines with saslauthd -a pam

On Fri, May 03, 2002 at 08:44:39AM -0500, Dustin Puryear wrote:
 At 08:49 AM 5/3/2002 -0300, Patrick Boutilier wrote:
 #%PAM-1.0
 auth   required /lib/security/pam_mysql.so user=xxx passwd=xxx 
 db=school table=user usercolumn=userid passwdcolumn=passwd
 
 accountrequired /lib/security/pam_mysql.so user=xxx passwd=xxx 
 db=school table=user usercolumn=userid passwdcolumn=passwd
 
 
 Also make sure that the cyrus user can read the pam file. Are the 
 permissions the same on both the imap and pop pam files?
 
 This is all being done via /etc/pam.conf.
 
 Regards, Dustin
 
 
 ---
 Dustin Puryear [EMAIL PROTECTED]
 UNIX and Network Consultant
 http://members.telocity.com/~dpuryear
 PGP Key available at http://www.us.pgp.net
 In the beginning the Universe was created.
 This has been widely regarded as a bad move. - Douglas Adams
 
 



tsl with skiplist

2002-04-30 Thread Ilya

 
I finally got around to recompiling imap and switching from skiplist to db3 for
tls_sessions.
So far I didnt have any dumps, but its to early to say yet.
However I had one core dump on start of cyrus. I think the cause was that the
tsl_sessions.db I converted from skiplist to db3, was owned by root instead of
cyrus. and cyrus couldnt even read it. Here is the dump trace:
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libsasl2.so.2...done.
Reading symbols from /usr/local/lib/libdb3.so.2...done.
Reading symbols from /usr/lib/libssl.so.2...done.
Reading symbols from /usr/lib/libcrypto.so.2...done.
Reading symbols from /usr/lib/libmd.so.2...done.
Reading symbols from /usr/lib/libcom_err.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x280e9ff2 in __txn_undo () from /usr/local/lib/libdb3.so.2
(gdb) bt
#0  0x280e9ff2 in __txn_undo () from /usr/local/lib/libdb3.so.2
#1  0x280e998e in txn_abort () from /usr/local/lib/libdb3.so.2
#2  0x280abb82 in __db_file_setup () from /usr/local/lib/libdb3.so.2
#3  0x280aaa6d in __db_dbopen () from /usr/local/lib/libdb3.so.2
#4  0x280aa920 in __db_open () from /usr/local/lib/libdb3.so.2
#5  0x804cecd in myopen (fname=0xbfbff824 /var/imap/tls_sessions.db,
ret=0x8056aac) at cyrusdb_db3.c:345
#6  0x804b51d in tls_prune_sessions () at tls.c:1020
#7  0x804a44b in main (argc=1, argv=0xbfbffca8) at tls_prune.c:89

after changing ownership cyrus started fine.



Re: idle pop3d never times out

2002-04-22 Thread Ilya

Have you found any solution, work around ?
I am having the same problem, with both imapd and pop3d

as you see they hang there since wednesday. the clients are outlook express.


42564  0.0  0.2  2392  316  p2- IWed12AM   0:02.67
/usr/local/cyrus2/bin/master
cyrus42821  0.0  0.4  3752  664  p2- IWed01AM   0:03.32 imapd: imapd:
alchemistry.net[192.168.0.3]   (imapd)
cyrus70493  0.0  0.6  3820  996  ??  SWed07PM   0:00.73 imapd: imapd:
sharkjr[192.168.0.22] eugene user.eugene (imapd)
cyrus73125  0.0  0.4  3752  656  ??  IWed09PM   0:00.53 imapd: imapd:
alchemistry.net[192.168.0.3]   (imapd)
cyrus73951  0.0  0.4  3752  596  ??  IWed10PM   0:00.34 imapd: imapd:
alchemistry.net[192.168.0.3]   (imapd)



n Mon, Apr 15, 2002 at 07:28:34PM -0500, Gary Mills wrote:
 On Tue, Apr 16, 2002 at 11:33:00AM +1200, Mike Brady wrote:
  This sounds very similar to a problem that I reported a couple of weeks ago
  with imapd not closing the socket in 2.1.3.  Maybe there is something not
  quite right with the socket handling in 2.x in general.
 
 No, it's not the same.  In my case pop3d was in the middle of a write
 to the client.  The client wasn't reading the data, causing the
 connection to persist forever.
 
 -- 
 -Gary Mills--Unix Support--U of M Academic Computing and Networking-
 



Re: preventing connect from different ip's if cyrus.conf contains specific binds

2002-04-13 Thread Ilya

same thing:

[EMAIL PROTECTED]$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.alchemistry.net.
Escape character is '^]'.
+OK krel.org Cyrus POP3 v2.1.3 server ready [EMAIL PROTECTED]
quit
+OK
Connection closed by foreign host.
[EMAIL PROTECTED]$ telnet 192.168.0.3 110
Trying 192.168.0.3...
Connected to alchemistry.net.
Escape character is '^]'.



^]

telnet quit
Connection closed.
[EMAIL PROTECTED]$ ps -ax|grep pop
 2618  p5  I+ 0:00.17 tail -f pop3d
92404  p8  I  0:00.07 pop3d: pop3d: localhost.alchemistry.net[127.0.0.1]
(pop3d)
92411  p8  S  0:00.03 pop3d


and as soon as I kill 92404 I get response from 192.168.0.3
here is my current config (of course I recycled master before trying)
# 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
#  idledcmd=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
#  imap  cmd=imapd listen=[127.0.0.1]:imap prefork=0
#  imap  cmd=imapd listen=[192.168.0.3]:imap prefork=0
# imap  cmd=imapd listen=[66.114.66.158]:imap prefork=0
  imaps cmd=imapd -s listen=imaps prefork=0
#  pop3  cmd=pop3d listen=pop3 prefork=0
  pop3-local  cmd=pop3d listen=[127.0.0.1]:pop3 prefork=0
  pop3-lan  cmd=pop3d listen=[192.168.0.3]:pop3 prefork=0
#  pop3  cmd=pop3d listen=[66.114.66.158]:pop3 prefork=0
  pop3s cmd=pop3d -s listen=pop3s prefork=0
  sieve cmd=timsieved listen=sieve prefork=0
#  sieve cmd=timsieved listen=[192.168.0.3]:sieve prefork=0
#  sieve cmd=timsieved listen=[127.0.0.1]:sieve 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
}

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

  # this is only necessary if using duplicate delivery suppression
  delprune  cmd=ctl_deliver -E 3 period=1440

  # this is only necessary if caching TLS sessions
  tlsprune  cmd=tls_prune period=1440
  # this entry creates an index file for full text search
#  squatter  cmd=squatter -v -r user period=1440
}


On Thu, Apr 11, 2002 at 11:09:54PM -0400, Lawrence Greenfield wrote:
 Don't use the same name for each of them.

 ie:
pop3-local  cmd=pop3d listen=[127.0.0.1]:pop3 prefork=0
pop3-remote  cmd=pop3d listen=[192.168.0.3]:pop3 prefork=0

 Larry

Date: Thu, 11 Apr 2002 21:43:46 -0400
From: Ilya [EMAIL PROTECTED]

Is it by design that if I setup in cyrus.conf something like this:
pop3  cmd=pop3d listen=[127.0.0.1]:pop3 prefork=0
pop3  cmd=pop3d listen=[192.168.0.3]:pop3 prefork=0

than after first connection to lets say 127.0.0.1, the spawned pop3d
never
closes, and handles all subsequent connections?

and than no connections can be made to 192.168.0.3, until I manually
kill
127.0.0.1 pop3d

and the other way around.
trying to connect second time says that connection is established, but
no server
prompt appears, until as I mentioned the other interface pop3d is
killed.
same thing with imapd.

using this works:
pop3  cmd=pop3d listen=pop3 prefork=0
but isn't listen there to create flexibility on which interface to
listen?


or am I alone in seeing this problem? or is setting listen on several
ips for
one protocol not allowed?

freebsd 4.5 imapd 2.1.3 sasl 2.1.2






Re: preventing connect from different ip's if cyrus.conf contains specific binds

2002-04-13 Thread Ilya

yes Ive waited for several minutes, the thing is that another pop3d is
spawned immediately as ps shows.
for example in this situation:
22082  p1  I  0:00.07 pop3d: pop3d: localhost.alchemistry.net[127.0.0.1]
(pop3d)   |original
22084  p1  I  0:00.03 pop3d  |second one

they are both sleeping..

iif I kill 22082, than prompt appears immediately in the telnet
I know for sure that master is listening  this is output of sockstat:
cyrusmaster   22064   12 tcp4   127.0.0.1:110 *:*
cyrusmaster   22064   15 tcp4   192.168.0.3:110   *:*
it just that pop3d doesnt work properly I guess. ?

a quick gdb look said that its running function fcntl ?


- Original Message -
From: Ken Murchison [EMAIL PROTECTED]
To: Ilya [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, April 13, 2002 12:22 PM
Subject: Re: preventing connect from different ip's if cyrus.conf contains
specific binds


 Works for me.  Are you waiting a few seconds for the service to be
 spawned by master (since prefork=0)?  If master wasn't listening on the
 given interface, you'd get something like this:

 telnet: connect to address 192.168.0.3: Connection refused

 Ken


 Ilya wrote:
 
  same thing:
 
  [EMAIL PROTECTED]$ telnet localhost 110
  Trying 127.0.0.1...
  Connected to localhost.alchemistry.net.
  Escape character is '^]'.
  +OK krel.org Cyrus POP3 v2.1.3 server ready
[EMAIL PROTECTED]
  quit
  +OK
  Connection closed by foreign host.
  [EMAIL PROTECTED]$ telnet 192.168.0.3 110
  Trying 192.168.0.3...
  Connected to alchemistry.net.
  Escape character is '^]'.
 
  ^]
 
  telnet quit
  Connection closed.
  [EMAIL PROTECTED]$ ps -ax|grep pop
   2618  p5  I+ 0:00.17 tail -f pop3d
  92404  p8  I  0:00.07 pop3d: pop3d:
localhost.alchemistry.net[127.0.0.1]
  (pop3d)
  92411  p8  S  0:00.03 pop3d
 
  and as soon as I kill 92404 I get response from 192.168.0.3
  here is my current config (of course I recycled master before trying)
  # 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
  #  idledcmd=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
  #  imap  cmd=imapd listen=[127.0.0.1]:imap prefork=0
  #  imap  cmd=imapd listen=[192.168.0.3]:imap prefork=0
  # imap  cmd=imapd listen=[66.114.66.158]:imap prefork=0
imaps cmd=imapd -s listen=imaps prefork=0
  #  pop3  cmd=pop3d listen=pop3 prefork=0
pop3-local  cmd=pop3d listen=[127.0.0.1]:pop3 prefork=0
pop3-lan  cmd=pop3d listen=[192.168.0.3]:pop3 prefork=0
  #  pop3  cmd=pop3d listen=[66.114.66.158]:pop3 prefork=0
pop3s cmd=pop3d -s listen=pop3s prefork=0
sieve cmd=timsieved listen=sieve prefork=0
  #  sieve cmd=timsieved listen=[192.168.0.3]:sieve prefork=0
  #  sieve cmd=timsieved listen=[127.0.0.1]:sieve 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
  }
 
  EVENTS {
# this is required
checkpointcmd=ctl_cyrusdb -c period=30
 
# this is only necessary if using duplicate delivery suppression
delprune  cmd=ctl_deliver -E 3 period=1440
 
# this is only necessary if caching TLS sessions
tlsprune  cmd=tls_prune period=1440
# this entry creates an index file for full text search
  #  squatter  cmd=squatter -v -r user period=1440
  }
 
  On Thu, Apr 11, 2002 at 11:09:54PM -0400, Lawrence Greenfield wrote:
   Don't use the same name for each of them.
  
   ie:
  pop3-local  cmd=pop3d listen=[127.0.0.1]:pop3 prefork=0
  pop3-remote  cmd=pop3d listen=[192.168.0.3]:pop3
prefork=0
  
   Larry
  
  Date: Thu, 11 Apr 2002 21:43:46 -0400
  From: Ilya [EMAIL PROTECTED]
  
  Is it by design that if I setup in cyrus.conf something like this:
  pop3  cmd=pop3d listen=[127.0.0.1]:pop3 prefork=0
  pop3  cmd=pop3d listen=[192.168.0.3]:pop3 prefork=0
  
  than after first connection to lets say 127.0.0.1, the spawned
pop3d
  never
  closes, and handles all subsequent connections?
  
  and than no connections can be made to 192.168.0.3, until I
manually
  kill
  127.0.0.1 pop3d
  
  and the other way around.
  trying to connect second time says that connection is established,
but
  no server
  prompt appears, until as I mentioned the other interface pop3d is
  killed.
  same thing with imapd.
  
  using this works:
  pop3  cmd=pop3d listen=pop3 prefork=0
  but isn't listen there to create flexibility on which interface to
  listen?
  
  
  or am I alone in seeing this problem? or is setting

Re: SASL Trace

2002-04-11 Thread Ilya

I am using gdb on freebsd to trace mysql patch. Its been very helpfull, but only
after turning on mysql logs I was able to find the problem. So if you can catch
the query sent to ldap, try that. 
I am ot familiar with ldap though.


On Thu, Apr 11, 2002 at 09:09:11PM +0200, Birger Toedtmann wrote:
 Tim Pushor schrieb am Thu, Apr 11, 2002 at 09:49:39AM -0600:
  Is there any way to trace what SASL is doing?
  
  I am trying to get simon's ldap auxprop patch working, and it isn't. All I
  am seeing in syslog is
  
  badlogin: localhost[127.0.0.1] plaintext timp SASL(-13): user not found:
  checkpass failed
  
  If I new what SASL was trying to do, I could probably figure out whats
  wrong, but at this point, without any other evidence, I am just grasping at
  straws..
 
 If you run it on Linux, you may give an ltrace(1) on the application process
 (i.e. imapd) a try.  It's very suitable to see whether certain config options 
 and file paths match and traces the sasl library calls accordingly.
 
 
 Regards,
 
 Birger
  
 



keeping proccess active after client closed connection

2002-04-03 Thread Ilya

Ive seen reports of Cyrus not closing TCP connection in mail list, 
but no resolution to that problem.
I am seeing a similar issue on FreeBSD 4.5 with cyrus imap 2.1.3.
after telnet localhost 110
login and logout 
the process for pop3 daemon is still present in the system after an hour:
11692  ??  I  0:00.04 pop3d: pop3d: alchemistry.net[192.168.0.3]   (pop3d)
if I kill master process, 11692 still stays. I have to kill it manually to
get rid of it.
if i dont kill the process manually, master will not start properly, it says the 
port is already taken.
same thing happens with imap. quick login with a mail client and than logout
and after 30min I still can see imapd process browsing the folder which mail client
opened.

cyrus imap 2.1.3
cyrus-sasl 2.1.2
everything on skiplist
FreeBSD 4.5 stable
START {
  recover   cmd=ctl_cyrusdb -r
}
SERVICES {
  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
  lmtpunix  cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0
}

EVENTS {
  checkpointcmd=ctl_cyrusdb -c period=30
  delprune  cmd=ctl_deliver -E 3 period=1440
  tlsprune  cmd=tls_prune period=1440
}



Re: keeping proccess active after client closed connection (more info)

2002-04-03 Thread Ilya

sorry to reply to my own message. but here is a little bit more info
output of truss on imapd process which stayed active after client closed
connection,it starts just before i quit mutt

select(0x1,0xbfbff2e4,0x0,0x0,0xbfbff2c8)= 1 (0x1)
gettimeofday(0xbfbff26c,0x0) = 0 (0x0)
read(0x0,0x812a000,0x5)  = 5 (0x5)
read(0x0,0x812a005,0x28) = 40 (0x28)
stat(cyrus.index,0xbfbff314)   = 0 (0x0)
fstat(13,0xbfbff314) = 0 (0x0)
flock(0xe,0x2)   = 0 (0x0)
lseek(14,0x430,0)= 1072 (0x430)
write(14,0xbfbfefcc,4)   = 4 (0x4)
lseek(14,0x434,0)= 1076 (0x434)
write(14,0xbfbfefcc,4)   = 4 (0x4)
lseek(14,0x438,0)= 1080 (0x438)
write(14,0xbfbfefcc,4)   = 4 (0x4)
lseek(14,0x43c,0)= 1084 (0x43c)
write(14,0xbfbfefcc,4)   = 4 (0x4)
lseek(14,0x19f4,0)   = 6644 (0x19f4)
writev(0xe,0xbfbff094,0xa)   = 236 (0xec)
fsync(0xe)   = 0 (0x0)
lseek(14,0x1ae0,0)   = 6880 (0x1ae0)
write(14,0xbfbff270,4)   = 4 (0x4)
fsync(0xe)   = 0 (0x0)
flock(0xe,0x8)   = 0 (0x0)
munmap(0x2838f000,0x8000)= 0 (0x0)
munmap(0x283f1000,0x56000)   = 0 (0x0)
close(11)= 0 (0x0)
munmap(0x28386000,0x96)  = 0 (0x0)
close(12)= 0 (0x0)
munmap(0x28387000,0x8000)= 0 (0x0)
close(13)= 0 (0x0)
munmap(0x2839b000,0x56000)   = 0 (0x0)
sendto(0x6,0xbfbff284,0x1e,0x0,0x8103ac0,0x10)   ERR#2 'No such file or
directory'
open(/var/imap/msg/shutdown,0,00)  ERR#2 'No such file or
directory'
select(0x1,0xbfbff2e4,0x0,0x0,0xbfbff2c8)= 0 (0x0)
write(1,0x8134000,53)= 53 (0x35)
gettimeofday(0xbfbff26c,0x0) = 0 (0x0)
select(0x1,0xbfbff2e4,0x0,0x0,0xbfbff2c8)= 1 (0x1)
gettimeofday(0xbfbff26c,0x0) = 0 (0x0)
read(0x0,0x812a000,0x5)  = 5 (0x5)
read(0x0,0x812a005,0x28) = 40 (0x28)
sendto(0x6,0xbfbff294,0x1f,0x0,0x8103ac0,0x10)   ERR#2 'No such file or
directory'
write(1,0x8134000,69)= 69 (0x45)
sendto(0x6,0xbfbff6b4,0x1f,0x0,0x8103ac0,0x10)   ERR#2 'No such file or
directory'
close(8) = 0 (0x0)
unlink(0x8107d40)= 0 (0x0)
close(0) = 0 (0x0)
close(1) = 0 (0x0)
close(2) = 0 (0x0)
break(0x8135000) = 0 (0x0)
write(3,0xbfbff8b0,4)= 4 (0x4)
sigaction(SIGALRM,0xbfbff89c,0x0)= 0 (0x0)
setitimer(0x0,0xbfbff894,0xbfbff884) = 0 (0x0)
SIGNAL 14
SIGNAL 14
SIGNAL 14
fcntl(0x7,0x9,0xbfbff900)ERR#92 'Unknown error: 92'
sigreturn(0xbfbff724)ERR#92 'Unknown error: 92'

PS 
i dont have /var/imap/msg/shutdown , but should I? my msg directory is empty

On Wed, Apr 03, 2002 at 08:53:53PM -0500, Ilya wrote:
 Ive seen reports of Cyrus not closing TCP connection in mail list, 
 but no resolution to that problem.
 I am seeing a similar issue on FreeBSD 4.5 with cyrus imap 2.1.3.
 after telnet localhost 110
 login and logout 
 the process for pop3 daemon is still present in the system after an hour:
 11692  ??  I  0:00.04 pop3d: pop3d: alchemistry.net[192.168.0.3]   (pop3d)
 if I kill master process, 11692 still stays. I have to kill it manually to
 get rid of it.
 if i dont kill the process manually, master will not start properly, it says the 
 port is already taken.
 same thing happens with imap. quick login with a mail client and than logout
 and after 30min I still can see imapd process browsing the folder which mail client
 opened.
 
 cyrus imap 2.1.3
 cyrus-sasl 2.1.2
 everything on skiplist
 FreeBSD 4.5 stable
 START {
   recover   cmd=ctl_cyrusdb -r
 }
 SERVICES {
   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
   lmtpunix  cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0
 }
 
 EVENTS {
   checkpointcmd=ctl_cyrusdb -c period=30
   delprune  cmd=ctl_deliver -E 3 period=1440
   tlsprune  cmd

IMAP 2.1.0 Perl module compilation

2002-01-14 Thread Ilya Sedelnikov


Hi, 

There's no cc compiler on my Solaris 8 machine.
Did somebody succeed to compile the Perl module ( $BASE_DIR/perl/imapd )
using gcc ?
(  Makefile, created from /perl/imap/Makefile.PL uses cc as a default
compiler.
   I tries to substitute gcc for cc but there is an -KPIC option
that gcc
   does not recognize )

Ilya 





IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14

2002-01-13 Thread Ilya Sedelnikov
Title: IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14







Hi,

 when trying to compile IMAPD-2.1.0-BETA with cyrus-sasl-2.0.5-BETA and BerkeleyDB 4.0.14 installed

 on Solaris 8,

 I get following error:

 cyrusdb_db3.c: In function `init'

 cyrusdb_db3.c:151: too many arguments to function

 Corresponding lines in cyrusdb_db3.c are

#if DB_VERSION_MINOR  0

 r = dbenv-open(dbenv, dbdir, flags, 0644); 

#else

 r = dbenv-open(dbenv, dbdir, NULL, flags, 0644); 

#endif



 Definition of type DB_ERR, found in include file db.h created when installing BerkeleyDB 4.0.14 and

 used by cyrusdb_db3.c includes declaration of function open:

 int (*open) __P((DB_ENV *, const char *, u_int32_t, int));

 

 Note that this function has 4 parameters.

 Also, db.h contains following definition

# define DB_VERSION_MINOR 0

So, reason for the error message I get when trying to compile cyrusdb_db3.c is clear.

Did anyone have similar problem ?

Does anybody know how to solve the problem ? 



Regards,

Ilya Sedelnikov

P.S. 

 

 


 

 

 




sasl DB

2001-12-05 Thread Ilya

is it possible NOT to use SASL DB with cyrus?
i want authentication to go through PAM to mysql (as it does now), and not
being put through berkley DB (CRAM and stuff)?
do i need to compile cyrus differently (option?) so it wont use CRAM ?




Re: signalled to death by 11?

2001-05-08 Thread Ilya

ive seen so many reports about death by 11, if this error is removed from
code, it should fix all this problems. ;)




Re: Cyrus IMAP 2.0.11 released

2001-02-02 Thread Ilya

uups, sorry about it. 2.09 was installed in two places.
but 2.11 doesnt start. I installed ucs-snm-4.2 for it to compile properly.
but during start it look for file I dont have:
./master
/usr/libexec/ld-elf.so.1: Shared object "libucdagent.la" not found

- Original Message -----
From: "Ilya" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 11:23 PM
Subject: Re: Cyrus IMAP 2.0.11 released


 I just downloaded 2.0.11, compiled 2.0.11, moved 2.09 cyrus to different
 directory, make install 2.0.11
 but hwne I connecto to 110 or 143 I get report that it is still 2.0.11
 running!!!
 I ran manually master from new compiled 2.0.11 folder - same results. I
dont
 have anything in inetd.conf for mail, all is handled by master. any
 suggestions?

 - Original Message -
 From: "Lawrence Greenfield" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, January 31, 2001 2:44 PM
 Subject: Cyrus IMAP 2.0.11 released


  I've just put version 2.0.11 on the ftp site; it's mostly an
  accumulation of small bugfixes since 2.0.9 and is very similiar to
  what we're running in production on cyrus.andrew.cmu.edu.
 
  We now consider the 2.0 line production quality code.
 
  Download Cyrus imapd at:
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-2.0.11.tar.gz
 
  Comments/bugs/etc to:
  [EMAIL PROTECTED]
 
  or to the info-cyrus mailing list at:
  [EMAIL PROTECTED]
  join via:
  [EMAIL PROTECTED]
 
  Thanks,
  Larry Greenfield
 
 






Re: Cyrus IMAP 2.0.11 released

2001-02-01 Thread Ilya

I just downloaded 2.0.11, compiled 2.0.11, moved 2.09 cyrus to different
directory, make install 2.0.11
but hwne I connecto to 110 or 143 I get report that it is still 2.0.11
running!!!
I ran manually master from new compiled 2.0.11 folder - same results. I dont
have anything in inetd.conf for mail, all is handled by master. any
suggestions?

- Original Message -
From: "Lawrence Greenfield" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 31, 2001 2:44 PM
Subject: Cyrus IMAP 2.0.11 released


 I've just put version 2.0.11 on the ftp site; it's mostly an
 accumulation of small bugfixes since 2.0.9 and is very similiar to
 what we're running in production on cyrus.andrew.cmu.edu.

 We now consider the 2.0 line production quality code.

 Download Cyrus imapd at:
   ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-2.0.11.tar.gz

 Comments/bugs/etc to:
 [EMAIL PROTECTED]

 or to the info-cyrus mailing list at:
 [EMAIL PROTECTED]
 join via:
 [EMAIL PROTECTED]

 Thanks,
 Larry Greenfield






Re: building 2.0.9

2000-12-23 Thread Ilya

you were correct, that fixed it. but now i am stuck in a new place... any
ideas? ;)
make all CFLAGS=-O
### Making all in /root/temp/cyrus-imapd-2.0.9/man
### Making all in /root/temp/cyrus-imapd-2.0.9/sieve
### Making all in /root/temp/cyrus-imapd-2.0.9/acap
### Making all in /root/temp/cyrus-imapd-2.0.9/lib
### Making all in /root/temp/cyrus-imapd-2.0.9/master
gcc -L/usr/local/lib -R/usr/local/lib  -L/usr/include/openssl/lib -g -O2 -o
master master.o masterconf.o
cyrusMasterMIB.o -lucdagent -lucdmibs -lsnmp -lfl -ldb  -lssl -lcrypto -lwra
p  -lcom_err
/usr/local/lib/libsnmp.so: warning: mktemp() possibly used unsafely;
consider using mkstemp()
/usr/local/lib/libucdmibs.so: undefined reference to `auto_nlist_value'
/usr/local/lib/libucdmibs.so: undefined reference to `kvm_getswapinfo'
/usr/local/lib/libucdmibs.so: undefined reference to `auto_nlist'
/usr/local/lib/libucdagent.so: undefined reference to `kvm_geterr'
/usr/local/lib/libucdagent.so: undefined reference to `kvm_read'
/usr/local/lib/libucdagent.so: undefined reference to `kvm_openfiles'
*** Error code 1

Stop in /root/temp/cyrus-imapd-2.0.9/master.
*** Error code 1

Stop in /root/temp/cyrus-imapd-2.0.9.


- Original Message -
From: [EMAIL PROTECTED]
To: "Ilya" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 22, 2000 2:46 AM
Subject: Re: building 2.0.9


 On 21-Dec-00 at 21:04, Ilya ([EMAIL PROTECTED]) wrote:
  I am trying to build 2.0.9 on a freebsd 4.2 and i am getting this error,
  any ideas? :
 
  rusdb_db3.c
  cyrusdb_db3.c:75: syntax error before `*'
  cyrusdb_db3.c:75: warning: data definition has no type or storage class

 Look at this line and see what type is being used.

  cyrusdb_db3.c:80: syntax error before `*'
  cyrusdb_db3.c:84: syntax error before `75'
  cyrusdb_db3.c:84: conflicting types for `exit'
  /usr/include/stdlib.h:94: previous declaration of `exit'
  cyrusdb_db3.c:84: warning: data definition has no type or storage class
  *** Error code 1

 Without looking at the code, my first guess would be that cyrusdb_db3.c
 is including db.h without a directory qualifier and getting the wrong
 version.  The older version of db is bundled with the OS.  The cleanest
 way to get the db3 files is to specify 'db3/' in the include:

 #include db3/db.h

 (Grep for db.h in all of the cyrus sources to make sure you get them all.)



 -Pat





Re: building 2.0.9

2000-12-23 Thread Ilya

auto_nlist i think comes from
/usr/local/include/ucd-snmp/auto_nlist.h
i couldnt figure out how to make gcc see it, so i just removed references to
snmp from compilation as a quick fix. after that i didnt have any trouble,
and compilation is complete

- Original Message -
From: [EMAIL PROTECTED]
To: "GOMBAS Gabor" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, December 23, 2000 1:11 PM
Subject: Re: building 2.0.9


 On 23-Dec-00 at 08:41, GOMBAS Gabor ([EMAIL PROTECTED]) wrote:
  On Fri, Dec 22, 2000 at 11:26:42PM -0800, [EMAIL PROTECTED] wrote:
 
/usr/local/lib/libucdmibs.so: undefined reference to
`auto_nlist_value'
/usr/local/lib/libucdmibs.so: undefined reference to
`kvm_getswapinfo'
/usr/local/lib/libucdmibs.so: undefined reference to `auto_nlist'
/usr/local/lib/libucdagent.so: undefined reference to `kvm_geterr'
/usr/local/lib/libucdagent.so: undefined reference to `kvm_read'
/usr/local/lib/libucdagent.so: undefined reference to
`kvm_openfiles'
*** Error code 1
  
   find /usr/include -name '*.h' -print | xargs grep kvm_getswapinfo
   shows it in kvm.h.  The rest of the kvm items are probably also
   in there.  My first guess would be a missing system-specific include.
 
  You are completely missing the point. It's a linker error, so it has
  absolutely _nothing_ to do with headers. You have to find out which
  library contains the kvm_* functions and add it to the command line.
  I do not know FreeBSD but on Solaris you would need to add "-lkvm"...

 Argh.  Yep, you're right - I shouldn't try to answer technical
 questions when I'm that tired.

 The grep was still a good starting point because it indicates that
 the kvm_* entities should be coming from a system library.  So the
 next step is:

 nm --print-file-name /usr/lib/lib*.so /usr/lib/lib*.a \
 2/dev/null | grep '[Td] kvm_'

 This shows that they are in, unsurprisingly, libkvm.a and libkvm_p.a.
 So the link for FreeBSD is missing '-lkvm'.  (Or, possibly, has it
 too early in the list.)

 I still don't know where auto_nlist is supposed to be coming from.
 Grepping through the source and examining the code around references
 might give a clue based on what it appears to be doing.



 -Pat


- Original Message -
From: [EMAIL PROTECTED]
To: "GOMBAS Gabor" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, December 23, 2000 1:11 PM
Subject: Re: building 2.0.9


 On 23-Dec-00 at 08:41, GOMBAS Gabor ([EMAIL PROTECTED]) wrote:
  On Fri, Dec 22, 2000 at 11:26:42PM -0800, [EMAIL PROTECTED] wrote:
 
/usr/local/lib/libucdmibs.so: undefined reference to
`auto_nlist_value'
/usr/local/lib/libucdmibs.so: undefined reference to
`kvm_getswapinfo'
/usr/local/lib/libucdmibs.so: undefined reference to `auto_nlist'
/usr/local/lib/libucdagent.so: undefined reference to `kvm_geterr'
/usr/local/lib/libucdagent.so: undefined reference to `kvm_read'
/usr/local/lib/libucdagent.so: undefined reference to
`kvm_openfiles'
*** Error code 1
  
   find /usr/include -name '*.h' -print | xargs grep kvm_getswapinfo
   shows it in kvm.h.  The rest of the kvm items are probably also
   in there.  My first guess would be a missing system-specific include.
 
  You are completely missing the point. It's a linker error, so it has
  absolutely _nothing_ to do with headers. You have to find out which
  library contains the kvm_* functions and add it to the command line.
  I do not know FreeBSD but on Solaris you would need to add "-lkvm"...

 Argh.  Yep, you're right - I shouldn't try to answer technical
 questions when I'm that tired.

 The grep was still a good starting point because it indicates that
 the kvm_* entities should be coming from a system library.  So the
 next step is:

 nm --print-file-name /usr/lib/lib*.so /usr/lib/lib*.a \
 2/dev/null | grep '[Td] kvm_'

 This shows that they are in, unsurprisingly, libkvm.a and libkvm_p.a.
 So the link for FreeBSD is missing '-lkvm'.  (Or, possibly, has it
 too early in the list.)

 I still don't know where auto_nlist is supposed to be coming from.
 Grepping through the source and examining the code around references
 might give a clue based on what it appears to be doing.



 -Pat





building 2.0.9

2000-12-21 Thread Ilya

I am trying to build 2.0.9 on a freebsd 4.2 and i am getting this error, any
ideas? :

rusdb_db3.c
cyrusdb_db3.c:75: syntax error before `*'
cyrusdb_db3.c:75: warning: data definition has no type or storage class
cyrusdb_db3.c:80: syntax error before `*'
cyrusdb_db3.c:84: syntax error before `75'
cyrusdb_db3.c:84: conflicting types for `exit'
/usr/include/stdlib.h:94: previous declaration of `exit'
cyrusdb_db3.c:84: warning: data definition has no type or storage class
*** Error code 1

Stop in /root/temp/cyrus-imapd-2.0.9/lib.
*** Error code 1

Stop in /root/temp/cyrus-imapd-2.0.9.




sieve and mysql

2000-12-08 Thread Ilya

Hi.
I have a mysql db with users and passwords, which I use from PAM-MySQL.
Cyrus itself is working perfectly, I can login to imap/pop/cyradmin with
usernames and passwords from mysql db. But when I try to use installsieve as
described in INSTALL document (testing sieve) I always get User Not Found
error. even if I supply -u user.
To use cyradm i need to specify -m PAM, for imap and pop i have these
entries in pam.conf:
imap auth required  /usr/local/lib/pam_mysql.so user=user passwd=pass
host=localhost db=db table=table usercolumn=user passwdcolumn=password
crypt=2
(same for account and password and than 3 lines like this for pop).
I have tried to create same lines for sieve ie:
sieve auth required  /usr/local/lib/pam_mysql.so user=user passwd=pass
host=localhost db=db table=table usercolumn=user passwdcolumn=password
crypt=2
and specify -m PAM in installsieve line, but than I get immediately :
Authentication failed.

does anyone have any ideas how to get sieve working with my setup? there is
probably just minor thing i missing from the picture.

thx





Sieve and MySQL authentication

2000-12-08 Thread Ilya

Hi.
I have a mysql db with users and passwords, which I use from PAM-MySQL.
Cyrus itself is working perfectly, I can login to imap/pop/cyradmin with
usernames and passwords from mysql db. But when I try to use installsieve as
described in INSTALL document (testing sieve) I always get User Not Found
error. even if I supply -u user.
To use cyradm i need to specify -m PAM, for imap and pop i have these
entries in pam.conf:
imap auth required  /usr/local/lib/pam_mysql.so user=user passwd=pass
host=localhost db=db table=table usercolumn=user passwdcolumn=password
crypt=2
(same for account and password and than 3 lines like this for pop).
I have tried to create same lines for sieve ie:
sieve auth required  /usr/local/lib/pam_mysql.so user=user passwd=pass
host=localhost db=db table=table usercolumn=user passwdcolumn=password
crypt=2
and specify -m PAM in installsieve line, but than I get immediately :
Authentication failed.

does anyone have any ideas how to get sieve working with my setup? there is
probably just minor thing i missing from the picture.

thx




sorry about duplicates

2000-12-08 Thread Ilya

;(