Re: Virtdomain question

2004-08-16 Thread Cristian Mitrana
Martin Ziegler wrote:
Hi Michael,
i already got it configured to authenticate users against a mysql 
database. It works fine. I have simply no experiences with the 
virtdomain features. I already read all the documentation stuff but to 
be honest from my point of view there are some things which are not 
covered. As already said currently the main problem is that i'm not able 
to create a mailbox for a user [EMAIL PROTECTED] Don't know why. Anyway 
i'll have a look at web-cyradm.

Perhaps you need to put 'unixhierarchysep: yes' in /etc/imapd.conf
to create users with a '.' in thei usernames. Your original post 
mentioned you tried
to make such a user and this could be the solution.

hth,
mitu
---
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: Virtdomain question

2004-08-16 Thread Erik Norgaard
On Mon, 16 Aug 2004, Martin Ziegler wrote:

> does that mean that there must be a valid user account before i create the
> mailbox ?? To be honest i can't believe this because when i use imapd
> without virtdomains this is not the case.
>
> > This means that imap does not find the user "[EMAIL PROTECTED]" - I had the
> > same problem using auxprop/sasldb, but can't help you with mysql.
> >
> > Am Sun, 15 Aug 2004 13:17:30 +0200 hat Martin Ziegler <[EMAIL PROTECTED]>
> > geschrieben:

> >> Is there any HOWTO available (didn't found any suitable HOWTO)?
> >>
> >> I configured virtdomain as described in the documentation but for any
> >> reason there are some problems. For example when i try to 'cm
> >> [EMAIL PROTECTED]' i get an 'invalid mailbox name" error.

Sorry, I missed the start, I'm new on the list. I have setup
virtual domains, more or less succesfull. That is, I have no
problems except with the default domain, and that appears to be a
client-side problem.

1) I have found that cyrus-imapd 2.2.8 only accepts defaultdomain
if it is in /etc/hosts, ie:

::1 localhost.defaultdomain.tld localhost
127.0.0.1   localhost.defaultdomain.tld localhost

Removing 'localhost.defaultdomain.tld' will let you set default
domain to anything. Wierd...? Something about that cyrus does a
reverse lookup.

2) Adding accounts for default domain will/should show up without
@defaultdomain.tld, and you might as well just omit that part when
you create the mailbox.

3) I have reported a bug with mozilla mail client, it can't get
mail for mailbox'es in the default domain. Things works when I use
squirrelmail.

4) I do not use mysql backend for authentication, but that shouldn't
matter. I cannot confirm that you can't create a mailbox for a
nonexisting user - in fact, i created '[EMAIL PROTECTED]'
using cyradm.

Finally: From what you write, it is not clear if you have problems
adding a mailbox to the default domain or to some virtual domain.
Maybe include the imapd.conf, be explicit about what is virtual
domain and what is the defauld domain.

Regarding howtos: There is a wiki, http://asg.web.cmu.edu/cyrus/,
and see the doc's dir included with the source. True, the documen-
tation is really sparce:

When upgrading from a single domain installation to a virtual domain
installation, the name of the existing domain (domain of the server
hostname) should be specified using the defaultdomain option in
imapd.conf. This allows users to continue to access their mailboxes
using unqualified userids. For example, if the primary IP address on
your server resolves to 'www.xxx.yyy.zzz', then set defaultdomain to
'xxx.yyy.zzz'.

It would be nice to know if you are having trouble with your
default domain or your virtual domain(s).

Regards, Erik

GnuPG Key: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc
pub  1024D/B02CC311 2004-04-05 Erik Norgaard <[EMAIL PROTECTED]>
 Key fingerprint = 6C11 B9B1 52BD F16D 34AD  9893 D3EC E6DB B02C C311
---
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: Question about reconstruct behavior

2004-08-16 Thread Ken Murchison
Shawn Sivy wrote:
Is it safe to use reconstruct while the cyrus system is up and people 
are accessing mailfolders, delivering mail, etc?
Yes.

Does reconstruct lock 
the mailbox it is reconstructing so no updates can be made during that 
time?
Yes.

Thanks,
 -Shawn
---
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

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


¹â»ªMBA¸¨µ¼°à°àÇìÎåÕÛ´óÓŻݣ¡

2004-08-16 Thread ¹â»ª¹ÜÀí¿ÆÑ§Ôº
热烈庆祝北京光华管理科学研究院MBA联考辅导班开班五周年!

   八月班庆五周年,报班五折大优惠 

   (我们给你的不是不能兑现的承诺,而是看得见的实惠。)

  1、报班A套餐(远程保过班,适合上网方便学员): 
2280 元 ( 远程强化提高班 ) +100 元(送远程模考班) +100 元 ( 送远程冲刺班 ) + 100 元 ( 
送远程基础强化班 )=2580 元(实际价值 5320 元,实得优惠 2740 元)
    
  2、报班B套餐(面授全程班,适合面授方便学员):
2680 元 (强化提高班) +100 元(送模考班) +100 元 ( 送冲刺班 ) + 100 元 ( 
送远程基础强化班 )=2980 元(实际价值 6140 元,实得实惠 3160 元)
 
  3、报班C套餐(模考冲刺班,适合有一定基础学员):
模考班 (1380)+ 精讲班 (600)=980 元(实际价值 1980 元,优惠金额 1000 元)
 
[ 说明 ] 优惠活动时间: 2004 年 8 月 1 日至 31 日   
报班咨询热线: 010-62757888,62758999 
光华2005MBA强化、模考、精讲班招生简章 参见: 
http://www.mba-edu.cn/qianghua.htm
网址:www.mba-edu.cn
       www.mbampa.org.cn
 






---
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: Virtdomain question

2004-08-16 Thread Jure Peèar
On Mon, 16 Aug 2004 08:08:29 +0200
Martin Ziegler <[EMAIL PROTECTED]> wrote:

> Hi Michael,
> 
> i already got it configured to authenticate users against a mysql
> database. It works fine. I have simply no experiences with the virtdomain
> features. I already read all the documentation stuff but to be honest from
> my point of view there are some things which are not covered. As already
> said currently the main problem is that i'm not able to create a mailbox
> for a user [EMAIL PROTECTED] Don't know why. Anyway i'll have a look at
> web-cyradm.

Can you show your imapd.conf? At least the admins and defaultdomain, if you
have it set.


-- 

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


Re: cyrus and gssapi

2004-08-16 Thread Andreas
On Sat, Aug 14, 2004 at 05:57:55PM +0200, Jukka Salmi wrote:
> On gssapi.html[4] it tells about environment variables used by the
> kerberos libraries to determine the keytab file, i.e. KRB5_KTNAME for
> Heimdal (which I can confirm to be correct).

That variable only works for MIT as far as I know.

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


[no subject]

2004-08-16 Thread Monsur
hi there!

i am using cyrus,postfix mail. i am having problems for checking users mail
password from the mysql db. i was doing it previously, my db and mail was in
the same server. but i wanna move the db to a different server now. i have
done the following things,

* added an user in mysql for the mail server
* changed the imapd.conf accordingly

but it failed to connect the database. most surprisingly it is communicating
the local db provided the local mysqld is running and it is checking
password from the local db. how is that possible?!!

i am sending u the copy of my imapd.conf,

-
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true

tls_cert_file: /var/lib/imap/cyrus-imapd.pem
tls_key_file: /var/lib/imap/cyrus-imapd.pem
tls_ca_file: /var/lib/imap/ca-bundle.crt

allowplaintext: yes

sasl_mech_list: PLAIN LOGIN CRAM-MD5

# Do NOT ENABLE THE FOLLOWING LINE
servername: mail.accesstel.net

autocreatequota: 0
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10

dracinterval: 0
drachost: localhost

sieve_maxscriptsize: 32
sieve_maxscripts: 5

sasl_pwcheck_method: auxprop saslauthd
#auxprop_plugin: sql
sasl_auto_transition: yes
sasl_sql_engine: mysql
sasl_sql_user: myuser
sasl_sql_passwd: mypass
sasl_sql_hostname: 192.168.70.139:3306
sasl_sql_database: radius
sasl_sql_select: SELECT Value FROM radcheck WHERE UserName = 'u' and
Attribute = 'User-Password'
sasl_sql_insert: INSERT INTO radcheck (UserName, Attribute, Value, op)
VALUES ('u', 'User-Password', 'v', ':=')
sasl_sql_update: UPDATE radcheck SET Value = 'v' WHERE UserName = 'u' and
Attribute = 'User-Password'
sasl_sql_verbose: yes

#unixhierarchysep: yes
#altnamespace: yes
#userprefix: pop2.accesstel.net
#loginrealms: pop2.accesstel.net
#foolstupidclients: yes



would u please tell me how to solve the problem?

hoping to hear from u soon. thanking u in advance.

monsurul amin
access telecom bd ltd

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


Deleted folders still exist in filesystem

2004-08-16 Thread Shawn Sivy
When someone deletes a folder or moves a folder to their local hard disk 
(which should delete it on the server), the directory still existing on 
the cyrus server eventhough there is no longer a reference to it in the 
cyrus databases (mailboxes.db).  All of the messages (and cyrus.* files) 
are removed too, but the directory remains.  Is there a reason for this 
or is it a bug or an email client issue?

I'm running Cyrus IMAP 2.2.8 on Solaris 9 (SPARC).  Users typically have 
Netscape 7.x, Mozilla 1.x or Thunderbird 0.5 (or higher) as their email 
client.

 -Shawn
---
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: Sieve Vacation and delivery to sender

2004-08-16 Thread Uwe Hering
On Mon, Jul 26, 2004 at 02:53:03AM +0300, Kristjan Kotkas wrote:
> Hi,
> 
> most probably this is a no brainer for you, but after 7 days of 
> googeling I cant ask the right question in google, also going through 
> the mailing list I find similar problems, but nothing so far seems to work.
> 
> I'm running a SuSE 9.1 site with the SuSE packed cyrus-imapd 2.2.3 with 
> postfix and mysql back end using web-cyradmn. I have had several setups 
> like this before and this is the first time I came across this kind of 
> problem.
> 
> The problem is that sieve vacation module is not working or should I say 
> is working but cyrus is  somehow getting dupes and well.. no vacation 
> message.. redirect and reject functions of sieve are working ok, just 
> the vacation is problematic.
> 

Same problem, but with cyrus-imapd 2.2.3 used on SLES8.

Did you resolve the problem already?

I'm going to dig in.

Uwe


-- 
--
Uwe Hering, Consultant
SUSE LINUX AG, Berliner Straße 27, D-13507 Berlin
T: +49 (0) 30 430 944 776  - M: +49 (0) 179 46 79 784
F: +49 (0) 30 43 73 28 04  - [EMAIL PROTECTED]
--
simply change to www.suse.com



pgpulr054sbzG.pgp
Description: PGP signature


Addusers program does not work

2004-08-16 Thread Sujit Choudhury
I am trying to add users using addusers script as mentioned in the IMAP
book, chapter - 9. First few lines of the script is:

#!/usr/local/bin/cyradm -file

# Batch Cyrus user creation script.  Usage: addusers filename



When I run it from the same machine (i.e the machine which will hold the
accounts), in the following way, I get the errors:

./addusers user_name
Usage: cyradm [args] server
  --user  Connect as  (authentication name)
  --authz Authorize as 
  --[no]rc  (Do not) load the configuration files
  --systemrc  Use system-wide configuration 
  --userrcUse user configuration 
  --port  Connect to server on 
  --auth Authenticate with 

Defaults to interactive mode. Please see man cyradm(1) and the 'help'
command
in the cyradm-shell for details.
imclient_connect: unknown host "connect" at
/usr/local/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/Cyrus/IMAP/
Admin.pm line 71.
./addusers: line 9: puts: command not found
./addusers: line 19: syntax error near unexpected token `}'
./addusers: line 19: `} else {'


I shall be grateful for any help.


Regards

Sujit
---
Sujit Choudhury
ISLS
University of Westminster
115 New Cavendish Street, London
E-Mail: [EMAIL PROTECTED]
Tel No: 020 - 7911 5000 Ext 3851

---
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: Sieve Vacation and delivery to sender

2004-08-16 Thread Shelley Waltz
I had the same behavior.  Sieve filtering worked fine, but vacation
did not work.  After much searching, I discovered this ...

http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&searchterm=vacation&msg=22894

My squirrelmail plugin did not require the user to fill in the "addresses" 
field, and most left it blank.  Vacation will not work unless the To 
address(or addresses) are specified.

Shelley Waltz


On Mon, 16 Aug 2004, Uwe Hering wrote:

   On Mon, Jul 26, 2004 at 02:53:03AM +0300, Kristjan Kotkas wrote:
   > Hi,
   > 
   > most probably this is a no brainer for you, but after 7 days of 
   > googeling I cant ask the right question in google, also going through 
   > the mailing list I find similar problems, but nothing so far seems to work.
   > 
   > I'm running a SuSE 9.1 site with the SuSE packed cyrus-imapd 2.2.3 with 
   > postfix and mysql back end using web-cyradmn. I have had several setups 
   > like this before and this is the first time I came across this kind of 
   > problem.
   > 
   > The problem is that sieve vacation module is not working or should I say 
   > is working but cyrus is  somehow getting dupes and well.. no vacation 
   > message.. redirect and reject functions of sieve are working ok, just 
   > the vacation is problematic.
   > 
   
   Same problem, but with cyrus-imapd 2.2.3 used on SLES8.
   
   Did you resolve the problem already?
   
   I'm going to dig in.
   
   Uwe
   
   
   

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


Solved: mailboxes.db insists on using Berkeley ??

2004-08-16 Thread J. W.Andersen, Falster System Teknik
Thanks to Edward Rudd and Simon Matter, who helped sort this out.
First:
--with-mboxlist-db=skiplist- no difference.
This is no longer supported in cyrus 2.2.x dB formats are specified only
in the configuration file.
   

No, I realized that when I looked into the configure file. The funny 
thing is, that I get not complaints from
./configure when I set this parameter - most configure files do not 
accept illegal params.

You need to run cvt_cyrusdb_all after changing the configuration.
   

The cvt_cyrusdb_all script is only part of my cyrus-imapd rpms, it's not
part of the cyrus-imapd distribution or other packaged distributions.
IIRC there is another possible problem with Berkeley db logs still beeing
around after a conversion to skiplist. In that case I think the files in
db/
can be deleted before starting cyrus-imapd. However, always be sure to
keep backups of all files in a safe place.
Simon
 

That explains why I looked almost all over the world without finding 
cvt_cyrusdb_all. I was
rather puzzled about it, since I (from Edward Rudds mail) got the 
impression, that it was
somehow included in the CMU distro. However, I learned that quite a lot 
of people were
helped significantly by means of that script. Simon,  can we not 
persuade you to make the
script (and perhaps a short readme or a man page)  avaliable somewhere 
?  TIA !

And now to the point: Simon was rigth about the Berkeley db logs. After 
converting
mailboxes.db I simply renamed the db/ directory and created a new one 
with the same
rigths, and then skiplist took over with no  problems whatsoever. The 
general idea was
to get rid of Berkeley, which has brougth too many "interesting" 
experiences over the
years, and now I finally got there. Thanks a lot, guys !

Cheers, Joern
---
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


saslauthd filter

2004-08-16 Thread Adi Linden
Hi,

I am using saslauthd to control access to a mail server running SMATP 
AUTH. Can I check for the existance or lack of existance of a ldap 
attribute using saslauthd?

Here is what I have in /etc/saslauthd.conf now:

ldap_auth_method: bind
ldap_servers: ldap://172.28.1.22
ldap_search_base: ou=people,dc=example,dc=ca
ldap_use_sasl: no
ldap_method: simple

If I add a line such as:

ldap_filter: myNewUser=true

I would have expected the authentication to succeed if the user has the 
myNewUser attribute set to true. That doesn't work, that's my first 
problem. The second problem is that once this is working I need to invert 
the meaning in the sense that users with myNewUser=true should not 
authenticate...

Thanks,
Adi

---
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: Newbie sieve problem w/sieveshell

2004-08-16 Thread Derrick J Brashear
On Tue, 10 Aug 2004, Rob Tanner wrote:
Unfortunately, it doesn't look like sieveshell does what I was hoping for.
I'm looking for some tool that will allow me, as the administrator, to manage
other users' sieve space (add/modify scripts, etc).  Do you have any
suggestions?
Sadly I don't believe there is one, if what you mean is doing it for all 
users, at once.

But, you can do e.g.
sieveshell --user=someuser --authname=my-admin sieve-server
On a per-user basis to manage sieve state, one user at a time. Is that 
acceptable?

---
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: saslauthd filter

2004-08-16 Thread Igor Brezac
On Mon, 16 Aug 2004, Adi Linden wrote:
Hi,
I am using saslauthd to control access to a mail server running SMATP
AUTH. Can I check for the existance or lack of existance of a ldap
attribute using saslauthd?
Here is what I have in /etc/saslauthd.conf now:
ldap_auth_method: bind
ldap_servers: ldap://172.28.1.22
ldap_search_base: ou=people,dc=example,dc=ca
ldap_use_sasl: no

ldap_method: simple
  ^^^
This is an invalid param
If I add a line such as:
ldap_filter: myNewUser=true
You need to use
ldap_filter: (&(uid=%u)(myNewUser=true))
I would have expected the authentication to succeed if the user has the
myNewUser attribute set to true. That doesn't work, that's my first
problem. The second problem is that once this is working I need to invert
the meaning in the sense that users with myNewUser=true should not
authenticate...
Try
ldap_filter: (&(uid=%u)(!(myNewUser=true)))
--
Igor
---
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: Not a bytecode file?

2004-08-16 Thread Derrick J Brashear
On Fri, 13 Aug 2004, Stefan Suurmeijer wrote:
Hi list,
I'm having some trouble getting sieve to work. I've just installed my new 
machine, cyrus is working flawlessly, but sieve isn't. Nothing is filtered, 
and in the logs I see the following errors:

sieve runtime error for stefan id 
<[EMAIL PROTECTED]>: Not a bytecode file
If the magic number in the file header isn't right, you get this. Have you 
moved sieve service between machines of different byte orders? That was a 
problem some time ago (I think).

You might be able to use sievec to save yourself here.
sieve[11492]: can't use home directories
  sieve_usehomedir = config_getswitch(IMAPOPT_SIEVEUSEHOMEDIR);
  if (!sieve_usehomedir) {
  sieve_dir = (char *) config_getstring(IMAPOPT_SIEVEDIR);
  } else {
  /* can't use home directories with timsieved */
  syslog(LOG_ERR, "can't use home directories");
sieveusehomedir: true
isn't supported.
---
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: saslauthd filter

2004-08-16 Thread John Wade
Hi Adi,

The trick is that your filter must be a complete ldap filter to find the
user.   This is documented somewhere in the saslauthd ldap documentation.

The default filter is:

ldap_filter: (cn=%U)

Where %U represents the case unchanged version of the username.   i.e. if  I
am "[EMAIL PROTECTED]" it would be "JWade"   Note that we use %u which
converts to lower case.

Just add your other attributes using the apropriate LDAP syntax:

ldap_filter: (&(cn=%U)(!(myNewUser=true)))

This one means CN equals username and myNewUser is not equal to true.   Be
careful with undefined values, if myNewUser is not a mandatory attribute, you
will not retrieve any users for whom it is not defined using the syntax above

There is a relatively simple way to construct a filter that works properly
with undefined values.   For example, we use the following to search for
users whose "login disabled" property is either undefined or FALSE:   (This
is from a perl script, not saslauthd.conf.)


$filter="(&(cn=$username)(objectclass=user)(passwordExpirationTime=*)(|(loginDisabled=FALSE)(!(logindisabled=*";

When in doubt, do a google search for ldap filter syntax and find some good
examples.

Hope this helps,
John



Adi Linden wrote:

> Hi,
>
> I am using saslauthd to control access to a mail server running SMATP
> AUTH. Can I check for the existance or lack of existance of a ldap
> attribute using saslauthd?
>
> Here is what I have in /etc/saslauthd.conf now:
>
> ldap_auth_method: bind
> ldap_servers: ldap://172.28.1.22
> ldap_search_base: ou=people,dc=example,dc=ca
> ldap_use_sasl: no
> ldap_method: simple
>
> If I add a line such as:
>
> ldap_filter: myNewUser=true
>
> I would have expected the authentication to succeed if the user has the
> myNewUser attribute set to true. That doesn't work, that's my first
> problem. The second problem is that once this is working I need to invert
> the meaning in the sense that users with myNewUser=true should not
> authenticate...
>
> Thanks,
> Adi
>
> ---
> 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


Re: Deleted folders still exist in filesystem

2004-08-16 Thread Ken Murchison
Shawn Sivy wrote:
When someone deletes a folder or moves a folder to their local hard disk 
(which should delete it on the server), the directory still existing on 
the cyrus server eventhough there is no longer a reference to it in the 
cyrus databases (mailboxes.db).  All of the messages (and cyrus.* files) 
are removed too, but the directory remains.  Is there a reason for this 
or is it a bug or an email client issue?

I'm running Cyrus IMAP 2.2.8 on Solaris 9 (SPARC).  Users typically have 
Netscape 7.x, Mozilla 1.x or Thunderbird 0.5 (or higher) as their email 
client.
This is because all versions of Cyrus prior to 2.3 chdir() into the 
mailbox directory when it is SELECTed by the client and some OSs won't 
remove a directory when a process is in it.  In 2.3 the chdir() has been 
removed, mainly because the meta-data files can now be split into 
separate directories.

--
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
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyrus and gssapi

2004-08-16 Thread Jukka Salmi
Andreas --> cyrus-sasl (2004-08-16 10:17:54 -0300):
> On Sat, Aug 14, 2004 at 05:57:55PM +0200, Jukka Salmi wrote:
> > On gssapi.html[4] it tells about environment variables used by the
> > kerberos libraries to determine the keytab file, i.e. KRB5_KTNAME for
> > Heimdal (which I can confirm to be correct).
> 
> That variable only works for MIT as far as I know.

Quoting heimdal-0.6.2/lib/krb5/context.c:

static krb5_error_code
init_context_from_config_file(krb5_context context)
{
[...]
/* default keytab name */
tmp = NULL;
if(!issuid())
tmp = getenv("KRB5_KTNAME");
if(tmp != NULL)
context->default_keytab = tmp;
else
INIT_FIELD(context, string, default_keytab, 
   KEYTAB_DEFAULT, "default_keytab_name");

Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
---
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


email in spam folder

2004-08-16 Thread Kevin Williams
All,

>From monitoring the list I *thought* I could send an email in the
following format [EMAIL PROTECTED] and it would go into the spam
folder for testuser1.  I just tried this though, and it didn't work.

I'm still in the learning phase here, so is my assumption that the email
should appear in the spam folder for testuser1 correct?

If this assumption is correct, then why do I still receive email in my
inbox instead of the spam folder?  


Thanks in advance!

Kevin Williams
---
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: saslauthd filter

2004-08-16 Thread Adi Linden
Hi John,

You are correct in that the myNewUser attribute is optional. Therefore I 
configured /etc/saslauth.dconf like this:

ldap_auth_method: bind
ldap_servers: ldap://172.28.1.22
ldap_search_base: ou=people,dc=example,dc=ca
ldap_use_sasl: no
ldap_filter: (&(uid=%u)(|(!(myNewUser=true)))(!(myNewUser=*)))

This is working perfectly. The saslauthd documentation wasn't clear on 
this. Never occured to me to try proper LDAP syntax.

Thanks,
Adi


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


Why doesn't Cyrus put mail into boxes?

2004-08-16 Thread Mike Jones
Maybe somebody can help with this:

I'm working my way through a Postfix/Cyrus/SASL setup with the intention of adding 
MySQL later.

I have come so far that I can see files named __db. grow in the

/var/lib/cyrus/db directory (Debian woody).

However, no mail ends up in the mailboxes underneath the

/var/spool/cyrus/mail directory.

I assume this means that postfix successfully transfers mail to Cyrus via lmtp (I use 
a tcp socket to communicate between chroot jails). There are registered Cyrus 
users corresponding to the email addresses queued up, so I'm puzzled as to why 
the mail doesn't move - any bids?

Also, I must admit that I don't understand the Cyrus documentation very well (and I 
miss a bunch of basic functions in cyradm, especially such providing more enquiry 
possibilities into parts of the queueing system). I have searched the web for more 
understandable information without luck - can anybody point me to a good paper 
explaining the internal workings of Cyrus (including diagrams :-))?

Many thanks!
Mike

-- 

Whatever you Wanadoo:
http://www.wanadoo.co.uk/time/

This email has been checked for most known viruses - find out more at: 
http://www.wanadoo.co.uk/help/id/7098.htm
---
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: Why doesn't Cyrus put mail into boxes?

2004-08-16 Thread Joakim Ryden
On Mon, 2004-08-16 at 15:37, Mike Jones wrote:
[...]
> However, no mail ends up in the mailboxes underneath the
> 
> /var/spool/cyrus/mail directory.
[...]

Start with the logs. What does Postfix tell you? I think on Debian the
logging goes in /var/log/mail.log - does it look like Postfix has
successfully handed off to Cyrus?

--Jo

---
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: email in spam folder

2004-08-16 Thread Ken Murchison
Kevin Williams wrote:
All,
From monitoring the list I *thought* I could send an email in the
following format [EMAIL PROTECTED] and it would go into the spam
folder for testuser1.  I just tried this though, and it didn't work.
I'm still in the learning phase here, so is my assumption that the email
should appear in the spam folder for testuser1 correct?
If this assumption is correct, then why do I still receive email in my
inbox instead of the spam folder?  
Give the 'anonymous' user the 'p' (post) right on the mailbox.
--
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
---
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: email in spam folder

2004-08-16 Thread Kevin Williams
On Mon, 2004-08-16 at 16:29, Ken Murchison wrote:
> Kevin Williams wrote:
> > All,
> > 
> >>From monitoring the list I *thought* I could send an email in the
> > following format [EMAIL PROTECTED] and it would go into the spam
> > folder for testuser1.  I just tried this though, and it didn't work.
> > 
> > I'm still in the learning phase here, so is my assumption that the email
> > should appear in the spam folder for testuser1 correct?
> > 
> > If this assumption is correct, then why do I still receive email in my
> > inbox instead of the spam folder?  
> 
> Give the 'anonymous' user the 'p' (post) right on the mailbox.

Gee...that sure was an easy fix.  Thanks!
---
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


How to send Umlauts with Sieve

2004-08-16 Thread Daniel Stellwagen
Hi there,
I have a problem with my old easysieve-script and a new cyrus(2.1.15) 
installation. If I produce an autorespond message like this:


Date: Mon, 12 Jul 2004 11:23:04 +0200
X-Sieve: CMU Sieve 2.2
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: test
In-Reply-To: <[EMAIL PROTECTED]>
Auto-Submitted: auto-replied (vacation)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: by amavisd-new at outerspace.local
à ae à oe à ue
the email client shows only
ï ae ï oe ï ue
in the message view. If I change the clients character encoding from 
UTF-8 to ISO-8895-x I can see the umlauts. Then I tried the following:
I used iconv and changed the encoding of my default.script from ISOxxx 
to UTFxxx and then I could see the umlauts too.

Now I have two questions:
Can I change "Content-Type:" somewhere in sieve to ISOxxx ?
Or how can I save the default.script directly with UTFxxx encoding (is 
it more a kind of linux configuration issue like save all text files 
allways in UTF)?

I hope someone can give me a hint. Thanks in advance.
d a n i e l
---
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