question / info

2003-12-17 Thread Geert Reijnders
Hi all
 
I have 2 debian machines running, one as a mail-server with postfix, cyrus-imapd and 
cyrus-sasl. The other server is an OpenLDAP-server. This works fine. For the users 
that use mail, I created a mailbox on my mailserver with cyradm and they get their 
username out off the OpenLDAP-server. 
 
Here comes my question. Is there a way that the users I have created in my 
OpenLDAP-server automaticly get a mailbox on my mailserver. In that way I don't have 
to create for each user a mailbox but if this is possible a program or whatever does 
that for me.
 
I didn't know to which mailinglist I should mail this question so mailed  it to both.
 
I hope anyone could help me.
 
Thanks
 
Regards
Geert
 
 
 
<>

re: imap en ldap

2003-12-12 Thread Geert Reijnders
Oke I think I'am almost there.
I did miss the openldap libraries so I installed them and reconfigured cyrus sasl. 
When I run the command 'saslauthd -v' ldap is aviable :-)
So I executed the command 'saslauthd -a ldap and I needed to create an extra directory 
but after that I didn't get a error message.
In my imapd.conf I did add some extra lines. My imapd.conf looks now like this:
---
# Debian Cyrus imapd.conf
# See imapd.conf(5) for more information
# Configuration directory
configdirectory: /var/lib/cyrus
# Which partition to use for default mailboxes
defaultpartition: default
partition-default: /var/spool/cyrus/mail
# News setup
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
# Uncomment the following and add the space-separated users who
# have admin rights
admins:root cyrus
# No anonymous logins
allowanonymouslogin: no
# Minimum time between POP mail fetches in minutes
popminpoll: 1
# umask used by Cyrus programs
umask: 077
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
---
But when I try to start outlook express and create a new mailbox I get the following 
error message:
Fatal error: invalid option name on line 28 of configuration file
In my imapd.conf is line 28: sasl_pwcheck_method
Is there another package I need to install or is there again something I did forget?

Many thanks in advance

Regards
Geert Reijnders

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Etienne Goyer
Verzonden: donderdag 11 december 2003 16:08
Aan: [EMAIL PROTECTED];
Onderwerp: Re: imap and ldap

Hi,
Did you compiled your own cyrus-sasl or used a third-party package ? If
you compiled, did you used the "--with-ldap" switch to configure ? Do
you have OpenLDAP and assorted libs installed ?
On Thu, Dec 11, 2003 at 03:07:11PM +0100, Geert Reijnders wrote:
> Hi all
> 
> Again I have a question. I want to setup a mail-server and the users must be 
> retrieved from the ldap-server. I have heard from several people and read in several 
> guides that it is possible with saslauthd -a ldap and put the following option in 
> the imapd.conf:
> sasl_pwcheck_method: saslauthd
> 
> But of course when I try to do that I get error messages. The first one is when I 
> execute the command saslauthd -a ldap:
> 
> saslauthd[285] :set_auth_mech : unknown authentication mechanism: ldap
> 
> the solution is not by using pam because that is not an option in saslauthd.
> 
> The second one is when I try to open a mailbox in outlook express. Then I get the 
> messages that on line  (the line where sasl_pwcheck_method is located) that the 
> command is unknown.
> 
> What am I missing or doing wrong? I hope anyone could help me.
> 
> Thanks in advance
> 
> Geert Reijnders
> 
> 
> 
> 
> 


-- 
Etienne Goyer Linux Québec Technologies Inc.
http://www.LinuxQuebec.com [EMAIL PROTECTED]
<>

RE: imap and ldap

2003-12-11 Thread Geert Reijnders
Oke I tried to reconfigure cyrus-sasl with the following options
--with-ldap=/etc/ldap (because I had to give a directory)

Everything was going fine, no errors during the installation but when I executed the 
command saslauthd -v
I get the same options.


saslauthd 2.1.15
authentication mechanisms: getpwent rimap shadow

I don't get it. Is it the version I use because with ldap is experimental in this 
version I read in the help.

Greets
Geert
 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Laurent Larquère
Verzonden: donderdag 11 december 2003 15:31
Aan: Geert Reijnders;[EMAIL PROTECTED]
Onderwerp: Re: imap and ldap


Hi
you must have a "ldap capable" saslauthd

# saslauthd -v
saslauthd 2.1.17
authentication mechanisms: getpwent pam rimap shadow ldap

to obtain this, you have to configure  --with-ldap


Geert Reijnders wrote:

>Hi all
> 
>Again I have a question. I want to setup a mail-server and the users 
>must be retrieved from the ldap-server. I have heard from several people and read in 
>several guides that it is possible with saslauthd -a ldap and put the following 
>option in the imapd.conf:
>sasl_pwcheck_method: saslauthd
> 
>But of course when I try to do that I get error messages. The first one 
>is when I execute the command saslauthd -a ldap:
> 
>saslauthd[285] :set_auth_mech   : unknown authentication mechanism: ldap
> 
>the solution is not by using pam because that is not an option in 
>saslauthd.
> 
>The second one is when I try to open a mailbox in outlook express. Then 
>I get the messages that on line  (the line where sasl_pwcheck_method is located) 
>that the command is unknown.
> 
>What am I missing or doing wrong? I hope anyone could help me.
> 
>Thanks in advance
> 
>Geert Reijnders
> 
>
> 
> 
> 
>  
>

<>

imap and ldap

2003-12-11 Thread Geert Reijnders
Hi all
 
Again I have a question. I want to setup a mail-server and the users must be retrieved 
from the ldap-server. I have heard from several people and read in several guides that 
it is possible with saslauthd -a ldap and put the following option in the imapd.conf:
sasl_pwcheck_method: saslauthd
 
But of course when I try to do that I get error messages. The first one is when I 
execute the command saslauthd -a ldap:
 
saslauthd[285] :set_auth_mech   : unknown authentication mechanism: ldap
 
the solution is not by using pam because that is not an option in saslauthd.
 
The second one is when I try to open a mailbox in outlook express. Then I get the 
messages that on line  (the line where sasl_pwcheck_method is located) that the 
command is unknown.
 
What am I missing or doing wrong? I hope anyone could help me.
 
Thanks in advance
 
Geert Reijnders
 

 
 
 
<>

imap and ldap

2003-12-11 Thread Geert Reijnders
Hi all
 
Again I have a question. I want to setup a mail-server and the users must be retrieved 
from the ldap-server. I have heard from several people and read in several guides that 
it is possible with saslauthd -a ldap and put the following option in the imapd.conf:
sasl_pwcheck_method: saslauthd
 
But of course when I try to do that I get error messages. The first one is when I 
execute the command saslauthd -a ldap:
 
saslauthd[285] :set_auth_mech   : unknown authentication mechanism: ldap
 
the solution is not by using pam because that is not an option in saslauthd.
 
The second one is when I try to open a mailbox in outlook express. Then I get the 
messages that on line  (the line where sasl_pwcheck_method is located) that the 
command is unknown.
 
What am I missing or doing wrong? I hope anyone could help me.
 
Thanks in advance
 
Geert Reijnders
 

 
 
 
<>

installing cyrus imap

2003-12-11 Thread Geert Reijnders
Hi all
 
When I try to install Cyurs imap 2.1.15 on my debian machine I get the following error 
with make:
 
util.c
gcc -c -I.. -I/usr/local/BerkeleyDB.4.1/include  -I/usr/local/include 
-I/usr/lib/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 \
mkgmtime.c
gcc -c -I.. -I/usr/local/BerkeleyDB.4.1/include  -I/usr/local/include 
-I/usr/lib/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 \
prot.c
prot.c:654: macro `va_start' used with too many (2) args
make[1]: *** [prot.o] Error 1
make[1]: Leaving directory `/usr/src/cyrus-imapd-2.1.15/lib'
make: *** [all] Error 1

When I run ./configure with the following options I get no errors
 
--with-dbdir=/usr/local/BerkeleyDB.4.1 
--with-bdb-libdir=/usr/local/BerkeleyDB.4.1/lib 
--with-bdb-incdir=/usr/local/BerkeleyDB.4.1/include 
--with-cyrus-group=cyrus 
--with-sasl=/usr/lib
 
make depend runs fine to.
 
What is wrong or does anyone know what it means?
 
Thanks in advance
 
Greets
 
Geert

 
 
 
<>

authentication through ldap

2003-12-10 Thread Geert Reijnders
 
Hi all,
 
I have a question about cyrus imap. I have a ldap directory in my network based on 
OpenLDAP Everything works fine with this (SSH, login, etc). I want to do the same with 
my mail-server with pam, but I don't know how I must configure this. Is there a howto 
of this or does anybody can give me a hint or something how to start?
 
I'm running a debian machine with cyrus imap and postfix.
 
Thanks in advance
 
Greetz
 
Geert
 
 
<>