[Fwd: ] Cyrus-IMAP question

2005-11-14 Thread maisa
 Original Message 
Subject:
From:[EMAIL PROTECTED]
Date:Mon, November 14, 2005 4:30 pm
To:  info-cyrus@lists.andrew.cmu.edu
--

hi all,
i am trying to configure my cyrus-imap in order to use it with
sasl,mysql,pam to support multi-domains mail server ..

my main question is:
i am following up a http://workaround.org/articles/ispmail-sarge/ tutorail
in order to build this mail server ..
this tutorial uses courier-imap instead of cyrus-imap ..

how can i switch to use cyrus-imap instead ?? and what changes should i
apply in order to make my mail server works ???

i asked on postfix channel on irc and they told me that i had to tell
cyrus how to use mysql files that i had created for my multi-domain server
so can any one tell me how to do it ???

i am using debian-sarge as an opertaing system .

last question: does cyrus has any channel on irc ?? what is it's name and
what is the server name that this channel is connected to??

urs
maisa



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[3]: Cyrus IMAP question.

2003-09-18 Thread Andrew Morgan


On Thu, 18 Sep 2003, Denis V. Suhanov wrote:

> Hello Andrew,
>
> AM> For maximum compatibility and ease of use, I'd recommend setting
> AM> altnamespace: yes in imapd.conf.  Otherwise, you *have* to set the Root
> AM> Folder Path to "INBOX." to get folders to work.  Read the documentation
> AM> for altnamespace before you make this change.  Basically, nothing changes
> AM> on the server side (except sieve filters), but you eliminate the needs to
> AM> set the Root Folder Prefix on every client.  Most clients will work out of
> AM> the box this way (no special settings, just use the New Account Wizards).
>
> I  have  set  altnamespaces:  yes  as you suggested and configured the
> client  as  it is described in this document, but the only differene I
> 've  noticed is that now instead of having folder user and then folder
> test  in  it,  I  have  folder "Other Users" and then the folder named
> after  the  user  name.  I  still am unable to make the clients to use
> their  folders  for  inbox/outbox/drafts etc. Is there any way to find
> out what's wrong with my installation? It is getting only worse :(

What do your cyrus logs (logged to syslog facility local6 by default) say
when a client connects and tries to open a folder?

Andy



Re[3]: Cyrus IMAP question.

2003-09-18 Thread Denis V. Suhanov
Hello Andrew,

AM> For maximum compatibility and ease of use, I'd recommend setting
AM> altnamespace: yes in imapd.conf.  Otherwise, you *have* to set the Root
AM> Folder Path to "INBOX." to get folders to work.  Read the documentation
AM> for altnamespace before you make this change.  Basically, nothing changes
AM> on the server side (except sieve filters), but you eliminate the needs to
AM> set the Root Folder Prefix on every client.  Most clients will work out of
AM> the box this way (no special settings, just use the New Account Wizards).

I  have  set  altnamespaces:  yes  as you suggested and configured the
client  as  it is described in this document, but the only differene I
've  noticed is that now instead of having folder user and then folder
test  in  it,  I  have  folder "Other Users" and then the folder named
after  the  user  name.  I  still am unable to make the clients to use
their  folders  for  inbox/outbox/drafts etc. Is there any way to find
out what's wrong with my installation? It is getting only worse :(

I've  forgotten  to mention that it happens in all IMAP clients I have
tried (M$ Outlook, Mozilla Thunderbird and The Bat!).

-- 
Best regards,
 Denismailto:[EMAIL PROTECTED]



Re[6]: Cyrus IMAP question.

2003-09-18 Thread Denis V. Suhanov
Hello Connie,

CSF> Right, but then did you go in with cyradm (or some other method) and create
CSF> the mailboxes: for instance
yes,  exactly. That's how I create them. And I also have all the right
set  for  users  (since I am using SASL and it requires realms, I have
the  right  set  for both user denis and [EMAIL PROTECTED]). Still does
not help :(



-- 
Best regards,
 Denismailto:[EMAIL PROTECTED]



Re: Re[4]: Cyrus IMAP question.

2003-09-18 Thread Connie Starr Fensky
Right, but then did you go in with cyradm (or some other method) and create
the mailboxes: for instance

cyradm>cm user.denis

c*
- Original Message - 
From: "Denis V. Suhanov" <[EMAIL PROTECTED]>
To: "Connie Starr Fensky" <[EMAIL PROTECTED]>
Cc: "cyrus info" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 4:08 PM
Subject: Re[4]: Cyrus IMAP question.


> Hello Connie,
>
> CSF> It sounds like it cannot find the mailbox where it wants to--in the
> CSF> /var/cyrus/partition/users/ directory. Did you create the
> CSF> mailboxes?
> CSF> c*
>
> The  path  is  correct  and  I have created the mailboxes. I used this
> mini-FAQpageas   a   reference
> (http://www.abstrakt.ch/unix/MINI-HOWTO-openbsd-cyrus.html)  because I
> am  using  OpenBSD.  This  is  how  I  created the partition and other
> folders:
>
> mkdir -p /var/cyrus/partition /varcyrus/imap /var/cyrus/sieve
> chown -R cyrus.mail /varcyrus/*
> chmod 750 /var/cyrus/imap
> chmod 750 /var/cyrus/sieve
> ln -s /var/cyrus/imap /var/imap
> ln -s /var/cyrus/sieve /var/sieve
> ln -s /var/cyrus/partition /var/spool/imap
>
> su cyrus
> tools/mkimap
> exit
>
> I also verifyed the access rights and they seem to be fine (cyrus:mail
> access  only to the /var/cyrus and below). Master daemon is started as
> user cyrus, too.
>
>
> -- 
> Best regards,
>  Denismailto:[EMAIL PROTECTED]
>
>
>



Re[2]: Cyrus IMAP question.

2003-09-18 Thread Andrew Morgan


On Thu, 18 Sep 2003, Denis V. Suhanov wrote:

> Hello Andrew,
>
> AM> What you see as the Cyrus admin is a little different that what an IMAP
> AM> user sees.  "user.test" is the Inbox folder, but user's access it as
> AM> "INBOX".  Unless you have set altnamespace: yes in your imapd.conf file,
> AM> you should set your Root Folder Path to "INBOX." (note the period after
> AM> INBOX).
> I  tried the "INBOX.", but even with the period after INBOX, I receive
> the same message in M$ Outlook Express ("your specified Root Folder of
> 'INBOX'  could  not  neither  be  found nor created..."). With Mozilla
> Thunderbird,  I  just  see  nothing  (no error message, no folders, no
> messages). So the presence of the period did not change anything.

I use altnamespace: yes here, so these docs won't work exactly right, but
you might try the documentation we have written for configuring clients to
use Cyrus IMAP:

http://www.onid.orst.edu/docs/email/

Basically, you should just need to add the Root Folder Path setting of
"INBOX." to these instructions.  Also, you *must* refresh the folder
listing in the email client.  Outlook Express does not automatically do
this on an existing account.  For testing purposes at least, I'd delete
all the account settings in the email client and set it up from scratch,
using the instructions above.

> >> I  am  trying  to manually create an inbox folder for users, something
> >> like  'cm  user.test.INBOX'  and  try  to  deliver  one's main to this
> >> manually  created  folder.  This is to put all the folder (Sent Items,
> >> Drafts  etc) under the same 'user.test' and make it look good. I tried
> >> to  find  something  on  the  Net but failed. Is there a way for me to
> AM> "user.test" is the INBOX, as seen from the admin viewpoint.  Mail
> AM> delivered to user "test" will go into that mailbox.  Subfolders would be
> AM> "user.test.subfolder" from the admin viewpoint and "INBOX.subfolder" from
> AM> the user viewpoint.
>
> But  in  the  mail  clients, they usually have something like "Inbox",
> "Sent Items", "Drafts" etc located under the same root. So by creating
> additional  folder named 'Inbox' manually under user's INBOX (which is
> user.username),  I  tried to make it work without having user.username
> in  my  mail clients (which is not just sort of ugly, but also prevent
> the  clients from being able to store appropriate messages on server).
> Is is a wrong approach?

For maximum compatibility and ease of use, I'd recommend setting
altnamespace: yes in imapd.conf.  Otherwise, you *have* to set the Root
Folder Path to "INBOX." to get folders to work.  Read the documentation
for altnamespace before you make this change.  Basically, nothing changes
on the server side (except sieve filters), but you eliminate the needs to
set the Root Folder Prefix on every client.  Most clients will work out of
the box this way (no special settings, just use the New Account Wizards).

> Most  likely  it  is  somewhat  stupid I've done, but I really can not
> realize what that is. Also, as I mentioned in the previos "cry for
> help" message, I am unable to get a pop3 connection. The error message
> is

I don't know much about the pop side of things.  We only run imap here.
I'd start by getting one of your imap clients working to make sure cyrus
is happy, then work on the pop problem.

Andy



Re[4]: Cyrus IMAP question.

2003-09-18 Thread Denis V. Suhanov
Hello Connie,

CSF> It sounds like it cannot find the mailbox where it wants to--in the
CSF> /var/cyrus/partition/users/ directory. Did you create the
CSF> mailboxes?
CSF> c*

The  path  is  correct  and  I have created the mailboxes. I used this
mini-FAQpageas   a   reference
(http://www.abstrakt.ch/unix/MINI-HOWTO-openbsd-cyrus.html)  because I
am  using  OpenBSD.  This  is  how  I  created the partition and other
folders:

mkdir -p /var/cyrus/partition /varcyrus/imap /var/cyrus/sieve
chown -R cyrus.mail /varcyrus/*
chmod 750 /var/cyrus/imap
chmod 750 /var/cyrus/sieve
ln -s /var/cyrus/imap /var/imap
ln -s /var/cyrus/sieve /var/sieve
ln -s /var/cyrus/partition /var/spool/imap

su cyrus
tools/mkimap
exit

I also verifyed the access rights and they seem to be fine (cyrus:mail
access  only to the /var/cyrus and below). Master daemon is started as
user cyrus, too.


-- 
Best regards,
 Denismailto:[EMAIL PROTECTED]



Re: Re[2]: Cyrus IMAP question.

2003-09-18 Thread Connie Starr Fensky
It sounds like it cannot find the mailbox where it wants to--in the
/var/cyrus/partition/users/ directory. Did you create the
mailboxes?
c*
- Original Message - 
From: "Denis V. Suhanov" <[EMAIL PROTECTED]>
To: "Andrew Morgan" <[EMAIL PROTECTED]>
Cc: "cyrus info" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 3:45 PM
Subject: Re[2]: Cyrus IMAP question.


> Hello Andrew,
>
> AM> What you see as the Cyrus admin is a little different that what an
IMAP
> AM> user sees.  "user.test" is the Inbox folder, but user's access it as
> AM> "INBOX".  Unless you have set altnamespace: yes in your imapd.conf
file,
> AM> you should set your Root Folder Path to "INBOX." (note the period
after
> AM> INBOX).
> I  tried the "INBOX.", but even with the period after INBOX, I receive
> the same message in M$ Outlook Express ("your specified Root Folder of
> 'INBOX'  could  not  neither  be  found nor created..."). With Mozilla
> Thunderbird,  I  just  see  nothing  (no error message, no folders, no
> messages). So the presence of the period did not change anything.
>
> >> I  am  trying  to manually create an inbox folder for users, something
> >> like  'cm  user.test.INBOX'  and  try  to  deliver  one's main to this
> >> manually  created  folder.  This is to put all the folder (Sent Items,
> >> Drafts  etc) under the same 'user.test' and make it look good. I tried
> >> to  find  something  on  the  Net but failed. Is there a way for me to
> AM> "user.test" is the INBOX, as seen from the admin viewpoint.  Mail
> AM> delivered to user "test" will go into that mailbox.  Subfolders would
be
> AM> "user.test.subfolder" from the admin viewpoint and "INBOX.subfolder"
from
> AM> the user viewpoint.
>
> But  in  the  mail  clients, they usually have something like "Inbox",
> "Sent Items", "Drafts" etc located under the same root. So by creating
> additional  folder named 'Inbox' manually under user's INBOX (which is
> user.username),  I  tried to make it work without having user.username
> in  my  mail clients (which is not just sort of ugly, but also prevent
> the  clients from being able to store appropriate messages on server).
> Is is a wrong approach?
>
> Most  likely  it  is  somewhat  stupid I've done, but I really can not
> realize what that is. Also, as I mentioned in the previos "cry for
> help" message, I am unable to get a pop3 connection. The error message
> is
>
>  !18.09.2003, 13:35:06: FETCH - Server reports error. The response is:
>  -ERR [SYS/PERM] Unable to open maildrop
>
> that makes me suspect that the problem of invalid (from client's view)
> INBOXes is somewhat related to the pop3 as well. I am reallyl confused
> now and have no slightest clue what to do further.
>
> here is my imapd.conf:
>
> configdirectory: /var/cyrus/imap
> partition-default: /var/cyrus/partition
> admins: cyrus
> allowanonymouslogin: no
> sasl_pwcheck_method: auxprop
> sasl_auxprop_plugin: sasldb
> sasl_mech_list: CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
> sendmail: /usr/sbin/sendmail
> sievedir: /var/cyrus/sieve
> tls_ca_file: /var/cyrus/imap/server.pem
> tls_cert_file: /var/cyrus/imap/server.pem
> tls_key_file: /var/cyrus/imap/server.pem
>
> and cyrusd.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/cyrus/imap/sockets
> SERVICES {
>   # add or remove based on preferences
>   imap  cmd="imapd" listen="imap" prefork=5
>   imaps cmd="imapd -s" listen="imaps" prefork=5
>   pop3  cmd="pop3d" listen="pop3" prefork=5
>   pop3s cmd="pop3d -s" listen="pop3s" prefork=5
>   # sieve   cmd="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/cyrus/imap/socket/lmtp" prefork=1
>
>   # this is only necessary if using notifications
>   #  notify cmd="notifyd" listen="/var/cyrus/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
> }
>
>
> Thanks a lot for your help guys. I am really getting close to give up,
> set pop3a back and never use IMAP anymore :)
>
> -- 
> Best regards,
>  Denismailto:[EMAIL PROTECTED]
>
>
>



Re[2]: Cyrus IMAP question.

2003-09-18 Thread Denis V. Suhanov
Hello Andrew,

AM> What you see as the Cyrus admin is a little different that what an IMAP
AM> user sees.  "user.test" is the Inbox folder, but user's access it as
AM> "INBOX".  Unless you have set altnamespace: yes in your imapd.conf file,
AM> you should set your Root Folder Path to "INBOX." (note the period after
AM> INBOX).
I  tried the "INBOX.", but even with the period after INBOX, I receive
the same message in M$ Outlook Express ("your specified Root Folder of
'INBOX'  could  not  neither  be  found nor created..."). With Mozilla
Thunderbird,  I  just  see  nothing  (no error message, no folders, no
messages). So the presence of the period did not change anything.

>> I  am  trying  to manually create an inbox folder for users, something
>> like  'cm  user.test.INBOX'  and  try  to  deliver  one's main to this
>> manually  created  folder.  This is to put all the folder (Sent Items,
>> Drafts  etc) under the same 'user.test' and make it look good. I tried
>> to  find  something  on  the  Net but failed. Is there a way for me to
AM> "user.test" is the INBOX, as seen from the admin viewpoint.  Mail
AM> delivered to user "test" will go into that mailbox.  Subfolders would be
AM> "user.test.subfolder" from the admin viewpoint and "INBOX.subfolder" from
AM> the user viewpoint.

But  in  the  mail  clients, they usually have something like "Inbox",
"Sent Items", "Drafts" etc located under the same root. So by creating
additional  folder named 'Inbox' manually under user's INBOX (which is
user.username),  I  tried to make it work without having user.username
in  my  mail clients (which is not just sort of ugly, but also prevent
the  clients from being able to store appropriate messages on server).
Is is a wrong approach?

Most  likely  it  is  somewhat  stupid I've done, but I really can not
realize what that is. Also, as I mentioned in the previos "cry for
help" message, I am unable to get a pop3 connection. The error message
is

 !18.09.2003, 13:35:06: FETCH - Server reports error. The response is:
 -ERR [SYS/PERM] Unable to open maildrop

that makes me suspect that the problem of invalid (from client's view)
INBOXes is somewhat related to the pop3 as well. I am reallyl confused
now and have no slightest clue what to do further.

here is my imapd.conf:

configdirectory: /var/cyrus/imap
partition-default: /var/cyrus/partition
admins: cyrus
allowanonymouslogin: no
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
sasl_mech_list: CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
sendmail: /usr/sbin/sendmail
sievedir: /var/cyrus/sieve
tls_ca_file: /var/cyrus/imap/server.pem
tls_cert_file: /var/cyrus/imap/server.pem
tls_key_file: /var/cyrus/imap/server.pem

and cyrusd.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/cyrus/imap/sockets
SERVICES {
  # add or remove based on preferences
  imap  cmd="imapd" listen="imap" prefork=5
  imaps cmd="imapd -s" listen="imaps" prefork=5
  pop3  cmd="pop3d" listen="pop3" prefork=5
  pop3s cmd="pop3d -s" listen="pop3s" prefork=5
  # sieve   cmd="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/cyrus/imap/socket/lmtp" prefork=1

  # this is only necessary if using notifications
  #  notify cmd="notifyd" listen="/var/cyrus/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
}


Thanks a lot for your help guys. I am really getting close to give up,
set pop3a back and never use IMAP anymore :)

-- 
Best regards,
 Denismailto:[EMAIL PROTECTED]



Re: Cyrus IMAP question.

2003-09-18 Thread Andrew Morgan


On Thu, 18 Sep 2003, Denis V. Suhanov wrote:

> Hello,
>
> I  am  using  Cyrus  IMAP 2.1.15 with Sendmail. I've spent lot of time
> trying  to set up my IMAP clients (M$ Outlook, Mozilla Thunderbird and
> "The  Bat!")  to work with it but I keep having problems with folders.
> Whenever  I  create  a user (e.g. cm user.test), each of these clients
> gets  an  non-selectable  folder  "user",  then  fodler  "test"  which
> contains  all  user's messages. I tried to play with IMAP root setting
> on the clients, but it does not seem to help much. If I make user.test
> my IMAP root - I am unable to see the messages :). I can not set INBOX
> as  my  IMAP  root  (all  clients report server error, something like:
> "Your specified Root Folder Path of 'INBOX' could neither be found nor
> created. Please verify your Root Folder Path is correct, and that your
> IMAP  account  is properly configured". When I use 'user.test' in this
> situation,  everything  works just fine, except that I can not see the
> messages (apparentely, they are left higher in the folder hierarchy).

What you see as the Cyrus admin is a little different that what an IMAP
user sees.  "user.test" is the Inbox folder, but user's access it as
"INBOX".  Unless you have set altnamespace: yes in your imapd.conf file,
you should set your Root Folder Path to "INBOX." (note the period after
INBOX).

> I  am  trying  to manually create an inbox folder for users, something
> like  'cm  user.test.INBOX'  and  try  to  deliver  one's main to this
> manually  created  folder.  This is to put all the folder (Sent Items,
> Drafts  etc) under the same 'user.test' and make it look good. I tried
> to  find  something  on  the  Net but failed. Is there a way for me to

"user.test" is the INBOX, as seen from the admin viewpoint.  Mail
delivered to user "test" will go into that mailbox.  Subfolders would be
"user.test.subfolder" from the admin viewpoint and "INBOX.subfolder" from
the user viewpoint.

Andy



Cyrus IMAP question.

2003-09-18 Thread Denis V. Suhanov
Hello,

I  am  using  Cyrus  IMAP 2.1.15 with Sendmail. I've spent lot of time
trying  to set up my IMAP clients (M$ Outlook, Mozilla Thunderbird and
"The  Bat!")  to work with it but I keep having problems with folders.
Whenever  I  create  a user (e.g. cm user.test), each of these clients
gets  an  non-selectable  folder  "user",  then  fodler  "test"  which
contains  all  user's messages. I tried to play with IMAP root setting
on the clients, but it does not seem to help much. If I make user.test
my IMAP root - I am unable to see the messages :). I can not set INBOX
as  my  IMAP  root  (all  clients report server error, something like:
"Your specified Root Folder Path of 'INBOX' could neither be found nor
created. Please verify your Root Folder Path is correct, and that your
IMAP  account  is properly configured". When I use 'user.test' in this
situation,  everything  works just fine, except that I can not see the
messages (apparentely, they are left higher in the folder hierarchy).

I  am  trying  to manually create an inbox folder for users, something
like  'cm  user.test.INBOX'  and  try  to  deliver  one's main to this
manually  created  folder.  This is to put all the folder (Sent Items,
Drafts  etc) under the same 'user.test' and make it look good. I tried
to  find  something  on  the  Net but failed. Is there a way for me to
configure  my  Sendmail  so the LMTP delivery (I am using local mailer
'cyrusv2'  which  is  supposed  to  be  LMTP)  puts  all  e-mails into
'user.username.INBOX' folder?

Here is the piece of my sendmail.mc:

define(`confLOCAL_MAILER', `cyrusv2')dnl
...skipped...
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(cyrusv2)dnl


Also, I have one more question. I tried to use pop3d to access my IMAP
account, but whenever I connect to POP3 daemon, the client reports an
error (after authentication, which works just fine):

 18.09.2003, 12:16:44: FETCH - TLS handshake complete
 18.09.2003, 12:16:45: FETCH - connected to POP3 server
!18.09.2003,  12:16:48: FETCH - Server reports error. The response is:
-ERR [SYS/PERM] Unable to open maildrop

It seems to me that it is still something related to the INBOX folder.
Everything  I tried does not seem to help much. Any ideas on what that
is?


Thank you very much for your help.

-- 
Best regards,
 Denis  mailto:[EMAIL PROTECTED]