Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-25 Thread Alexander Skwar

On Mon, 24 Jun 2002 18:47:52 -0400
Sam Varshavchik [EMAIL PROTECTED] wrote:

 This is a packaging bug.  Apache is the primary owner of

Ok, agreed.

 so it should install this directory, instead of having it implicitly

Yes

 That's incorrect.  Because the packages explicitly install this
 directory, any package will satisfy this dependency. 

So you mean, that every package has a

%dir /usr/.../font

line in %files?  Okay, but then we are talking about different things.
I was talking about the way /var/www/cgi-bin is created right now in
the Mandrake apache RPM.  It is created, because it contains files
which are in /var/www/cgi-bin, and that's why I brought up the
/usr/bin example.  Many packages have files in /usr/bin, but on
Mandrake exactly one package provides this directory: basesystem.

So I don't get what you wanted to say with the X font packages
example.  But that's OT here.

 I'll accept a patch that checks for a Mandrake distro, and makes the
 necessary adjustments.  You should be able to come up with something
 that does not depend on an external flag, and detects a Mandrake
 distro automatically. 

What do you mean by external flag?  I thought about checking for the
existance of /etc/mandrake-release, and if this file is present, I
would have assumed that this is a Mandrake distro.  Or I might do a
rpm -q --queryformat '%{RELEASE}' rpm | grep -q mdk  echo TRUE (or
something like that).  Would these be external flags?

Alexander Skwar
-- 
How to quote: http://learn.to/quote (german) http://quote.6x.to (en)
Homepage: http://www.iso-top.de   |   Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: STARTTLS handshake error

2002-06-25 Thread Juri Haberland

Sam Varshavchik wrote:
 Gary MacIsaac writes: 
 
 Hi, 
 
 I'm having a problem getting Eudora (Windows) 5.1.1 to work with Courier 
 IMAP 1.4.4 using SSL and STARTTLS.  The following appears the maillog if I 
 force Eudora to use STARTTLS with our server. 
 
 imapd: starttls: accept: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 
 alert handshake failure 
 
 Any suggestions where I should be looking to fix this?  Standard IMAP 
 connections work just fine.
 
 Check the TLS_PROTOCOL setting.  Another reason might be Eudora not liking 
 the server's certificate, for some reason. 

Same here. Imap-ssl works fine with Outlook, OE, Mozilla, Netscape -
only Eudora has problems.

Cheers,
Juri

-- 
  If each of us have one object, and we exchange them,
 then each of us still has one object.
  If each of us have one idea,   and we exchange them,
 then each of us now has two ideas.



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: A problem while config!

2002-06-25 Thread Bill Michell

[gb2312] ´Þ writes:

 Hello,I am a newbie,
 I downloaded courier Imap-1.4.5
 but when I try to install it ,there occurs a
 problem.
 Here is my step:

 $./configure
 It seems ok!
 and then

 $make

 there occurs an error!

 gcc  -I/home/vpopmail/include -g -O2 -Wall -I.. -I./..  -o authvchkpw  
modauthvchkpw.o libauthmod.a libauth.a ../md5/libmd5.a ../sha1/libsha1.a 
-L/home/vpopmail/lib -lvpopmail -L/usr/local/mysql/lib/mysql/ -lmysqlclient -lz -lm 
-lcrypt
 /usr/bin/ld: cannot find -lvpopmail
 collect2: ld returned 1 exit status
 make[1]: *** [authvchkpw] Error 1
 make[1]: Leaving directory `/home/test/courier-imap-1.4.5/authlib'
 make: *** [all-recursive] Error 1

 I have already installed e-mail system with qmail-1.03+vpopmail-5.2.1+mysql-4.23
 and it works fine.

 What's the problem?
The default permissions on the directory containing the vpopmail library are
too restrictive. You need to give the user who is installing courier
permission to access this directory.
 Thanks for your help!


  
kent


--
Bill Michell
[EMAIL PROTECTED] (home)


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] User authenticated but unable to read new mail (vpopmail 5.2 +courier 1.4.4)

2002-06-25 Thread Jörg Mühlberger

Hi!
I use RH 7.2 with qmail 1.03, vpopmail 5.2, courier-imap 1.4.4 and sqwebmail
3.3.3.
My problem is that I had to move users from one virtual domain to another
and therefore I added these user in the new domain by using vpopmail and
later I copied their Maildir.
This worked fine for about ten users, but one user has the problem that he
cannot access his new mails via courier-imap. So when he updates his list of
mails the mail gets transfered from
/home/vopmail/domains/example.com/user/new to
/home/vopmail/domains/example.com/user/cur . In Outlook Express he can see
the subject but then it looks like the mail got deleted. In fact it does not
get deleted and when using sqwebmail everything is fine. What I found out is
that it seems as courier or vpopmail cannot rename the file, so that it has
an S at the end. But why?? With sqwebmail the filename gets renamed
without any problem.
The filerights are okay, that's what I think.
/home/vopmail/domains/example.com/user/cur has drwx-- with
vpopmail:vchkpw
and the files have -rw--- vpopmail:vchkpw
Can anybody help me?? It's really urgent.
Thank you.
Jörg




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-25 Thread Sam Varshavchik

Alexander Skwar writes: 


 I'll accept a patch that checks for a Mandrake distro, and makes the
 necessary adjustments.  You should be able to come up with something
 that does not depend on an external flag, and detects a Mandrake
 distro automatically. 
 
 What do you mean by external flag?  I thought about checking for the
 existance of /etc/mandrake-release, and if this file is present, I
 would have assumed that this is a Mandrake distro.  Or I might do a
 rpm -q --queryformat '%{RELEASE}' rpm | grep -q mdk  echo TRUE (or
 something like that).  Would these be external flags?

Either one will work fine. 

-- 
Sam 



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Is compatibility still broken beetwin MSOE courier?

2002-06-25 Thread Andres A Moya

Hi

I'm new in this list.
I can't find any search engine on  
http://www.geocrawler.com/redir-sf.php3?list=courier-users
Sorry

so
1) Is compatibility still broken beetwin MSOE  courier?
2) Is it possible to create any top-level folders. FAQ answers: you are using 
wrong client. OE, Netscape, kmail - incorect. Where can I get clients that 
compatiable with Courier-IMAP ( except sqwebmail of course)?

I've tried to solve that problems by implementing UW-IMAP.
I've patched it so it can use authdaemond... But i've tired to integrate new 
versions + I'm shure that my code has some security holes.  


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: Is compatibility still broken beetwin MSOE courier?

2002-06-25 Thread Tim

Andres A Moya writes: 

 Hi 
 
 I'm new in this list.
 I can't find any search engine on  
 http://www.geocrawler.com/redir-sf.php3?list=courier-users
 Sorry 
 
 so
 1) Is compatibility still broken beetwin MSOE  courier?

I didnt know compatibility was broken between OE and courier.
I have most of my clients using OE or Outlook on courier-IMAP.  I never had 
a serious problem or complaint with any customers about these clients. 

 2) Is it possible to create any top-level folders. FAQ answers: you are using wrong 
client. OE, Netscape, kmail - incorect. Where can I get clients that compatiable with 
Courier-IMAP ( except sqwebmail of course)?

Again I have never seen this FAQ, its not on http://www.courier-mta.org
My guess is you are having configuration problems, either on your client(s), 
your server or both.  There are FAQ's about how to setup most clients, if 
you can't find it, ask. 

 
 I've tried to solve that problems by implementing UW-IMAP.
 I've patched it so it can use authdaemond... But i've tired to integrate  new 
versions + I'm shure that my code has some security holes.  

Yuck. 

  
 


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] MySQL authorization

2002-06-25 Thread Peter C. Norton

On Tue, Jun 25, 2002 at 09:44:18AM +0300, Antony Dovgal wrote:
  Have you tried using varchars instead of chars?
 I don't think this can be the reason.

In the postgres module, using char instead of varchar returns a
whitespace padded string which prevents matching of hashed passwords.
I don't know if the mysql module does the same or not.  Why not test it?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] MySQL authorization

2002-06-25 Thread Marquis Chan

I am facing the same problem.


- Original Message -
From: David A. Mason [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 25, 2002 12:55 PM
Subject: Re: [courier-users] MySQL authorization


 Another clue, actually:

 Incoming mail to a local account is accepted, while incoming mail to an
 account in the mysql table is not.b

 On Mon, 2002-06-24 at 21:09, David A. Mason wrote:
 Greetings.

 My courier is allowing system authentication via PAM with no problem,
 and when I attempt to use an account listed in the mysql table, I can
 see in the mysql logfile that the query was executed, and when I copy
 and paste that same query, I get good results, but I am not able to
 authenticate any users in the mysql database.

 In case this was due to a lack of maildirs, I created the users' home
 directories and maildirs using the maildirmake command and setting the
 owner and group to match those in the database (65534).

 I've tried with just a clear password set, and I've tried with both
 clear and crypt set (created using the userdbpw command.

 Anyway, after all these efforts, I only get responses . NO Login
 failed. with pretty wan logs.

 Anybody encountered and got around this?

 DAM




 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe:
https://lists.sourceforge.net/lists/listinfo/courier-users





 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Courier-IMAP and MySQL SMTP Authentication

2002-06-25 Thread ygor

I am using Courier-IMAP POP3 daemon on a MacOS X box with a MySQL
authentication setup so that mailbox users do not have a system login.

I am using POP-Before-SMTP, but I want to do Authenticated SMTP, but that
seems either to require PAM (which is coming in MacOS 10.2/Jaguar) or
the whole courier bundle (which does not compile on MacOS X - separate
issue which I will be pounding upon in the near future)

Any suggestions ?



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Is compatibility still broken beetwin MSOE courier?

2002-06-25 Thread Roland Schneider

--Andres A Moya wrote on 25.06.2002 17:25 +:

 1) Is compatibility still broken beetwin MSOE  courier?

There is not much compatibility between Outlook Express and
IMAP, and OE will never conform fully to the standards because
MS wants you to buy their Exchange crap.

But setting MAXDAEMONS/MAXPERC/MAXPERIP to insane high values 
will keep even the worst incarnations of Outlook happy.

 2) Is it possible to create any top-level folders. FAQ answers: you are using 
 wrong client. OE, Netscape, kmail - incorect. Where can I get clients that 
 compatiable with Courier-IMAP ( except sqwebmail of course)?

Outlook Express (5.50.4807) has no problem creating folders at
the top-level. But its too stupid to recognize the root of the
namespace by itself. Should be also in the faq somewhere.

 I've tried to solve that problems by implementing UW-IMAP.

You could as well try that with MS-Exchange ;)

Roland



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] courier-imap and LDAP

2002-06-25 Thread Konrads_Smelkovs/EmicoVero

Hello

I here ran into a strange problem:

courier-imap is compiled with ldap support and authldap is the only auth 
method. When i try to check mail via pop3/imap courier-imap won't even 
_try_ to connect to LDAP server. 
There are no errors apart from: 
/var/log/maillog.1:Jun 19 10:49:10 mail0 pop3d: Connection, 
ip=[:::127.0.0.1]
/var/log/maillog.1:Jun 19 10:49:17 mail0 pop3d: LOGIN FAILED, 
ip=[:::127.0.0.1]
/var/log/maillog.1:Jun 19 10:49:17 mail0 pop3d: Disconnected, 
ip=[:::127.0.0.1]
any clues on where to dig?


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] authdaemond.mysql change

2002-06-25 Thread courier

Hello, 

I implemented for my company feauture to limit users to use only specified 
from me services ( imap, pop3, webmail ). 

I'm shure that this change is far away from ideal, but this works fine for 
me. 

The problem is that I can't make difference between pop3 and pop3-ssl, imap 
and imap-ssl, webmail and webmail via secure connection. May be someone can 
tell me how to make this. 

I add to mysql table 3 additional fields:
imap tinyint(1) notnull default 0
pop3 tinyint(1) notnull default 0
webmail tinyint(1) notnull default 0 

When I set coresponding field to 1 user is allowed to logon thru this 
service ( imap, pop3, webmail ). 

Any comments for bugs in this patch are wellcome. 


Svetozar Mihailov 


PS: Please ignore syslog() functions, they was only for check what's going 
on. 



diff -a courier-0.37.3/authlib/authmysql.c courier-0.37.3_z/authlib/authmysql.c
21a22,23
 #include  syslog.h
 
30c32,34
 
---
 /*
   syslog(LOG_INFO,Login Service: %s\n, service );
 */
38c42
   authinfo=auth_mysql_getuserinfo(user);
---
   authinfo=auth_mysql_getuserinfo(user,service);
144c148
   authinfo=auth_mysql_getuserinfo(user);
---
   authinfo=auth_mysql_getuserinfo(user,service);

diff -a courier-0.37.3/authlib/authmysql.h courier-0.37.3_z/authlib/authmysql.h
23c23
 extern struct authmysqluserinfo *auth_mysql_getuserinfo(const char *);
---
 extern struct authmysqluserinfo *auth_mysql_getuserinfo(const char *,const char *);

diff -a courier-0.37.3/authlib/authmysqllib.c courier-0.37.3_z/authlib/authmysqllib.c
19a20,21
 #include  syslog.h
 
578c580
 struct authmysqluserinfo *auth_mysql_getuserinfo(const char *username)
---
 struct authmysqluserinfo *auth_mysql_getuserinfo(const char *username,const char 
*service)
599c601
   SELECT %s, %s, %s, %s, %s, %s, %s, %s, %s FROM %s WHERE %s = \;
---
   SELECT %s, %s, %s, %s, %s, %s, %s, %s, %s FROM %s WHERE %s = 1 AND %s = \;
674c676
   querybuf=malloc(sizeof(query) + 100 + strlen(user_table) + 
strlen(defdomain)
---
   querybuf=malloc(sizeof(query) + 150 + strlen(user_table) + 
strlen(defdomain)
688c690
   name_field, user_table, login_field);
---
   name_field, user_table, service, login_field);
707c709,711
 
---
 /*
   syslog(LOG_INFO,MySQL Query: %s\n, querybuf );
 */

diff -a courier-0.37.3/authlib/preauthmysql.c courier-0.37.3_z/authlib/preauthmysql.c
32c32
   authinfo=auth_mysql_getuserinfo(user);
---
   authinfo=auth_mysql_getuserinfo(user,service);



[courier-users] courier-imap needs restart to auth vpopmail users

2002-06-25 Thread Kevin Monroe

Hello,

I'm using qmail-1.03, courier-imap-1.5.0, and vpopmail-5.2. After creating a 
virtual domain with vpopmail, I can check the postmaster account with no 
problems (ie: using [EMAIL PROTECTED] as the username). However, after 
adding a virtual user (ie: [EMAIL PROTECTED]), I can only check that account for 
about 15 minutes before I begin getting failed authentication messages.

/var/log/maillog shows LOGIN FAILED until I restart courier-imap. Then it shows 
LOGIN, [EMAIL PROTECTED] and the user can successfully access mail. Even 
after a virtual user fails, the postmaster can still log in successfully.

I have the following in authdaemonrc:
authmodulelist=authpam authcustom authcram authuserdb authvchkpw authldap

My current solution is to restart courier-imap about every 10 minutes via cron, 
but I'd like a real fix. Thanks for any ideas...

-- 
Kevin





---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] authdaemond.mysql change

2002-06-25 Thread courier

Hello again, 

there was additional service I just found: 'courier' !!
To use this change I need to additional field: 

courier tinyint(1) notnull default 1 

otherwise system say '450 Service temporaly unavailabe' to all incoming 
mail. 


Svetozar Mihailov 


---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: MySQL Auth

2002-06-25 Thread Antony Dovgal

So ?
Can anybody who have all this stuff working show configs ?
Or there is no such people at all ?


With best regards, 
Antony Dovgal aka tony2001
Linux user #276688



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] mysql and pop3d still trying...

2002-06-25 Thread Scott Lambert

On Tue, Jun 25, 2002 at 01:17:48PM -0300, OMestre wrote:
   Hello, 
   i'm still trying to configure the postfix + courier-imap (pop3d) +
 mysql and my configurations do not work 

Is this on your FreeBSD box?

If so, the mysql port installes the mysql socket file at /tmp/mysql.sock 

Make sure your MYSQL_SOCKET line of authmysqlrc matches the FreeBSD
location rather than the default.

I never got mine to work with TCP sockets.  I haven't played with it 
much beyond getting it working with MYSQL_SOCKET.

But that only works if your MySQL server is on the same host as your
courier-imap server.


   Now, i have put the strace software to debug the daemons (pop3login
 and authmysql). When i login by telnet in port 110 (from other host or
 from localhost), the pop3login daemon is started, and i follow it. The
 pop3login receives the user and the password, and after some strange
 messages about Resource temporarily unavailable, it call the
 authdaemon (write to the authdameon's socket), and exits.  I have some
 window with strance in my authdaemon, that appears the username and
 the password that i did pass, so the pop3login did his jog. :) 
 here is the fragment (initial) from strace to authdaemond.mysql: 
 ... 
 select(9, [5 8], NULL, NULL, NULL)  = 1 (in [8]) 
 accept(8, {sin_family=AF_UNIX, path=@}, [16]) = 4 
 fcntl(4, F_SETFL, O_RDONLY) = 0 
 select(5, [4], NULL, NULL, {10, 0}) = 1 (in [4]) 
 read(4, AUTH 27\npop3\nlogin\ngisele\nbundch..., 1024) = 36 
 open(/etc/authmysqlrc, O_RDONLY)  = 6 
 fstat(6, {st_mode=S_IFREG|0640, st_size=5850, ...}) = 0 
 break(0x8059000)= 0 
 
 
 But the final of the debug is the problem... the daemon look for my dns
 server (i did install one named in my FreeBSD machine to fix this, but
 do not work), but do not look for mysql in no moment! 
   I have in my resolv.conf the address to my dns server, but as i don't
 know what to do, i did configure one dns server ( that is working) in my
 FreeBSD box... 
   But why the look for the DNS??? and why the daemon do not try access
 the mysql tables??? What the daemon is trying to resolv
 
 Here is the rest of the log that i did. 
 Thanks 
 * after some read in /etc/authysqlrc and some other files** 
 ... 
 open(/etc/hosts, O_RDONLY)= 9 
 fstat(9, {st_mode=S_IFREG|0644, st_size=121, ...}) = 0 
 read(9, # 127.0.0.1\t\tlocalhost.mydomain ..., 512) = 121 
 read(9, , 512)= 0 
 close(9)= 0 
 issetugid(0x28143664)   = 0 
 issetugid(0x28143664)   = 0 
 kqueue(0x28143664)  = 9 
 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10 
 connect(10, {sin_family=AF_INET, sin_port=htons(53),
 sin_addr=inet_addr(127.0.0 
 .1)}}, 16) = 0 
 sendto(10, \230$\1\0\0\1\0\0\0\0\0\0\nlocalhost\t\10mydomain..., 37,
 0, NULL, 
 0) = 37 
 gettimeofday({1025019004, 226851}, NULL) = 0 
 kevent(0x9, 0xbfbfe16c, 0x1, 0xbfbfe16c, 0x1, 0xbfbfe150) = 1 
 recvfrom(10, \230$\205\203\0\1\0\0\0\1\0\0\nlocalhost\t\10mydomain...,
 1024, 0 
 , {sin_family=AF_INET, sin_port=htons(53),
 sin_addr=inet_addr(127.0.0.1)}}, [1 
 6]) = 92 
 close(10)   = 0 
 close(9)= 0 
 kqueue(0x28143664)  = 9 
 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10 
 connect(10, {sin_family=AF_INET, sin_port=htons(53),
 sin_addr=inet_addr(127.0.0 
 .1)}}, 16) = 0 
 sendto(10, \230%\1\0\0\1\0\0\0\0\0\0\nlocalhost\t\0\0\1\0\1, 28, 0,
 NULL, 0) = 
 28 
 gettimeofday({1025019004, 228184}, NULL) = 0 
 kevent(0x9, 0xbfbfe16c, 0x1, 0xbfbfe16c, 0x1, 0xbfbfe150) = 1 
 recvfrom(10, \230%\201\202\0\1\0\0\0\0\0\0\nlocalhost\t\0\0\1\0\1,
 1024, 0, {s 
 in_family=AF_INET, sin_port=htons(53),
 sin_addr=inet_addr(127.0.0.1)}}, [16]) 
 = 28 
 close(10)   = 0 
 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10 
 sendto(10, \230%\1\0\0\1\0\0\0\0\0\0\nlocalhost\t\0\0\1\0\1, 28, 0,
 {sin_famil 
 y=AF_INET, sin_port=htons(53), sin_addr=inet_addr(10.124.67.8)}}, 16)
 = 28 
 gettimeofday({1025019004, 229060}, NULL) = 0 
 kevent(0x9, 0xbfbfe16c, 0x1, 0xbfbfe16c, 0x1, 0xbfbfe150) = 1 
 recvfrom(10, \230%\201\202\0\1\0\0\0\0\0\0\nlocalhost\t\0\0\1\0\1,
 1024, 0, {s 
 in_family=AF_INET, sin_port=htons(53),
 sin_addr=inet_addr(10.124.67.8)}}, [16] 
 ) = 28 
 close(10)   = 0 
 close(9)= 0 
 shutdown(6, 2 /* send and receive */)   = 0 
 close(6)= 0 
 close(4)= 0 
 close(4)= 0 
 select(9, [5 8], NULL, NULL, NULL unfinished ... 
 
   With my dns server (real) in /etc/resolv.conf i get the same problem!
 Tries to resolv (access) one DNS server... and no access to my mysql
 server.
 
  Thanks
 
 -- 
 
 FreeShell's master  

Re: [courier-users] authdaemond.mysql change

2002-06-25 Thread Roland Schneider

[EMAIL PROTECTED] wrote on 25.06.2002 21:35 +0300:

 Hello again, 
 there was additional service I just found: 'courier' !!
 To use this change I need to additional field: 
 courier tinyint(1) notnull default 1 
 otherwise system say '450 Service temporaly unavailabe' to all incoming mail. 

And you still missed one more service...

http://courier.serv.ch/patches/authentification/authmysql-0.39.0.patch
works with MYSQL_SELECT_CLAUSE, check the list-archive for examples.

Roland



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] mysql and pop3d still trying...

2002-06-25 Thread Roland Schneider

--Antony Dovgal wrote on 25.06.2002 20:26 +0300:

   Hello, 
   i'm still trying to configure the postfix + courier-imap (pop3d) +
 mysql and my configurations do not work 
 Heh =) Another one bites the dust =)

 Is there anybody who already have solved this problem or not?

Connection to mysql without query logged is usually caused by
trailing spaces and other typos in fieldnames.
People will either find them or move on with other software.

 I need just an example of working authentication IMAP+MySQL with db dump and
 authmysqlrc. ?

Actually _your_ dump and config would be more useful for solving
the problem, and dont forget to check the output of authinfo,
authtest, the runnig daemons, and the mysql-query-log.

Roland



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] mysql and pop3d still trying...

2002-06-25 Thread OMestre

  So...
  I guess that the problem is the module (authmysql). Then i change the
authdaemon in /etc/pop3d to authmysql, bypassing the authdaemon and
using the authmysql module direct! But the errors are the same. The
authtest program do not work... :) The error is Authentication FAILED.
Does anyone have one simple c program that uses this module, to test
it??? Or somebody have one FreeBSD box 4.5 with one good authmysql
module? maybe can i use it.

 Tnanks.



On Tue, 2002-06-25 at 14:26, Antony Dovgal wrote:
Hello, 
i'm still trying to configure the postfix + courier-imap (pop3d) +
  mysql and my configurations do not work 
 Heh =) Another one bites the dust =)
 Is there anybody who already have solved this problem or not?
 I need just an example of working authentication IMAP+MySQL with db dump and 
authmysqlrc.
 ?
 
 With best regards, 
 Antony Dovgal aka tony2001
 Linux user #276688
 
 
 ---
 This sf.net email is sponsored by: Jabber Inc.
 Don't miss the IM event of the season | Special offer for OSDN members! 
 JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
 
-- 

FreeShell's master   http://omestre.freeshel.org




---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: MySQL Auth

2002-06-25 Thread Bill Schindler

On Tuesday, June 25, 2002, at 11:06  AM, Antony Dovgal wrote:

 So ?
 Can anybody who have all this stuff working show configs ?
 Or there is no such people at all ?

Most likely, it is your config file that is in error. Showing you 
our working config would only confuse you more, since it's 
customized for our set-up. You would be better served by posting 
your faulty configuration.

The most common errors seem to be:

* Wrong location set for MYSQL_SOCKET

* Trailing spaces on database, table, and field names

* Using the clear password without setting MYSQL_CLEAR_PWFIELD (or 
crypt without setting MYSQL_CRYPT_PWFIELD)

* Forgetting to restart authdaemond after changing authmysqlrc

Turn on mysqld's logging and look at the output from an attempted 
connection.

If mysqld does not log anything for the connection, your config 
file has one or more of: the wrong socket, the wrong server, the 
wrong database username, the wrong database password, or the wrong 
database.

If it logs a SELECT statement, but the LOGIN fails, then either you 
do not have the correct field names set (see crypt/clear above) or 
you have the wrong login-id/password in the database or at the 
client.

There are other places you can go wrong, but those are high on the 
most likely list.

You should also read the authlib/README.authmysql.html file in the 
source distribution.

--Bill



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: webmail and webadmin require %{cgibindir}

2002-06-25 Thread Alexander Skwar

So sprach Sam Varshavchik am 2002-06-25 um 07:26:15 -0400 :
 Either one will work fine. 

Attached.  It also sets the %courier_release to mdk and further replaces
the obsolete Copyright: tag with License:

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 2 days 8 hours 59 minutes


--- courier.spec.in 2002-06-23 13:17:04.0 -0400
+++ courier.spec.in.mdk 2002-06-25 15:13:59.0 -0400
@@ -6,8 +6,14 @@
 #  Need to version-upgrade RH builds due to different directory locations.
 #
 
-%define courier_release %(release=`rpm -q --queryformat='.%{VERSION}' redhat-release 
2/dev/null` ; if test $? != 0 ; then release= ; fi ; echo $release)
 %define alternatives %(test -x /usr/sbin/alternatives  echo 1 || echo 0)
+%define is_not_mandrake %(test ! -x /etc/mandrake-release  echo 0 || echo 1)
+
+%if %is_not_mandrake
+%define courier_release %(release=`rpm -q --queryformat='.%{VERSION}' redhat-release 
+2/dev/null` ; if test $? != 0 ; then release= ; fi ; echo $release)
+%else
+%define courier_release mdk
+%endif
 
 %define __libtoolize /bin/true
 
@@ -15,7 +21,7 @@
 Name: courier
 Version: @VERSION@
 Release: 1%{courier_release}
-Copyright: GPL
+License: GPL
 Group: Applications/Mail
 Source: http://download.sourceforge.net/courier/courier-@VERSION@.tar.gz
 Packager: %{PACKAGER}
@@ -29,7 +35,10 @@
 Requires: courier-sendmail-wrapper
 %endif
 
-BuildPreReq: rpm = 4.0.2 fileutils binutils sed perl make openssl gdbm-devel 
openssl-perl openssl-devel pam-devel gnupg = 1.0.5 expect
+BuildPreReq: rpm = 4.0.2 fileutils binutils sed perl make openssl gdbm-devel 
+openssl-devel pam-devel gnupg = 1.0.5 expect
+%if %is_not_mandrake
+BuildPreReq: openssl-perl
+%endif
 
 #
 #  RH custom locations.
@@ -79,12 +88,18 @@
 %package webmail
 Summary: Courier @VERSION@ Integrated HTTP (webmail) server
 Group: Applications/Mail
-Requires: courier = @VERSION@ %{_cgibindir} %{_documentrootdir} vixie-cron gnupg = 
1.0.5 expect fileutils
+Requires: courier = @VERSION@ %{_documentrootdir} vixie-cron gnupg = 1.0.5 expect 
+fileutils
+%if %is_not_mandrake
+Requires: %{_cgibindir}
+%endif
 
 %package webadmin
 Summary: Courier @VERSION@ web-based administration tool
 Group: Applications/Mail
-Requires: courier = @VERSION@ %{_cgibindir} %{_documentrootdir}
+Requires: courier = @VERSION@ %{_documentrootdir}
+%if %is_not_mandrake
+Requires: %{_cgibindir}
+%endif
 
 %package mlm
 Summary: Courier @VERSION@ Integrated Mailing List Manager



[courier-users] Courier-IMAP 1.5.0 will not connect to my LDAP server

2002-06-25 Thread Joshua E Warchol

I've been using Courier-IMAP for a while (about a year). I've recently built
a new 1.4.5 RPM to install on a bunch of new servers. This worked perfectly, 
as expected. I had it apply a patch I wrote to add DRAC pop-before-smtp 
support, as well as a patch I hacked together to change the quota behavior.
That patch is no obsolete thanks to 1.5.0's --with-trashquota compile time
option. 

But when I try to run 1.5.0 from my development server, it does not connect
to the LDAP server. authldap is the only method listed in authdaemonrc, and
it is configured exactly like it was in 1.4.5 

Has anyone else had problems with LDAP in 1.5.0? I'm open to suggestions, any
suggestions.

Thanks.

-- 
Joshua Warchol
UNIX Systems Administrator
DSL.net


---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



FW: [courier-users] mysql and pop3d still trying...

2002-06-25 Thread Matt Hackett

Sorry, forgot to hit reply to all. Just in case this helps someone
else, I'll forward to the list.

-Original Message-
From: Matt Hackett [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 25, 2002 1:21 PM
To: 'OMestre'
Subject: RE: [courier-users] mysql and pop3d still trying...

I'm not quite sure what brings you to the conclusion that authdeamon is
the problem, but it's pretty unlikely that it is. As has been said, it's
probably just a minor configuration problem. Look over your authmysqlrc
again, Make sure you comment out DEFAULT_DOMAIN, unless you want and
understand that functionality and your id fields in the database reflect
it. That's what tripped me up before.

Good luck.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of OMestre
Sent: Tuesday, June 25, 2002 11:28 AM
To: Antony Dovgal
Cc: [EMAIL PROTECTED]
Subject: Re: [courier-users] mysql and pop3d still trying...

  So...
  I guess that the problem is the module (authmysql). Then i change the
authdaemon in /etc/pop3d to authmysql, bypassing the authdaemon and
using the authmysql module direct! But the errors are the same. The
authtest program do not work... :) The error is Authentication FAILED.
Does anyone have one simple c program that uses this module, to test
it??? Or somebody have one FreeBSD box 4.5 with one good authmysql
module? maybe can i use it.

 Tnanks.



On Tue, 2002-06-25 at 14:26, Antony Dovgal wrote:
Hello, 
i'm still trying to configure the postfix + courier-imap (pop3d) +
  mysql and my configurations do not work 
 Heh =) Another one bites the dust =)
 Is there anybody who already have solved this problem or not?
 I need just an example of working authentication IMAP+MySQL with db
dump and authmysqlrc.
 ?
 
 With best regards, 
 Antony Dovgal aka tony2001
 Linux user #276688
 
 
 ---
 This sf.net email is sponsored by: Jabber Inc.
 Don't miss the IM event of the season | Special offer for OSDN
members! 
 JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe:
https://lists.sourceforge.net/lists/listinfo/courier-users
 
-- 

FreeShell's master   http://omestre.freeshel.org








---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: authdaemond.mysql change

2002-06-25 Thread courier

Philon Terving writes: 
I implemented for my company feauture to limit users to use only specified 
from me services ( imap, pop3, webmail ). 
 

hello there! 

I'm searching for a such solution for some time now 

do you have a working patch for this? How is the setup going on? Can I have 
a special field in my mysql, which tells which services are aviable? 

I would realy appreciate if you could give me some informations about this 
as I'm not any C or such developer. I know you mentioned your company, so 
I'm probably out of luck. 

regards, 

philon 

I forgot to say that there have 1 more service 'apop', but I don't know when 
this service 'apop' ask for authetication. Just for safe is good idea to add 
field 'apop' with '1' for all users that You have. 

 --
Svetozar Mihailov 



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] courier-imap and LDAP

2002-06-25 Thread Aly Dharshi

[EMAIL PROTECTED] wrote:
 Hello
 
 I here ran into a strange problem:
 
 courier-imap is compiled with ldap support and authldap is the only auth 
 method. When i try to check mail via pop3/imap courier-imap won't even 
 _try_ to connect to LDAP server. 
 There are no errors apart from: 
 /var/log/maillog.1:Jun 19 10:49:10 mail0 pop3d: Connection, 
 ip=[:::127.0.0.1]
 /var/log/maillog.1:Jun 19 10:49:17 mail0 pop3d: LOGIN FAILED, 
 ip=[:::127.0.0.1]
 /var/log/maillog.1:Jun 19 10:49:17 mail0 pop3d: Disconnected, 
 ip=[:::127.0.0.1]
 any clues on where to dig?
 

Try the authtest program in the authlib directory of your source. That 
maybe a good place to start, post you ldap config file for Courier as 
well may help.

Cheers,

Aly.




-- 
Aly Dharshi
[EMAIL PROTECTED]
[EMAIL PROTECTED]

System Administrator ORS Servers



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: mysql and pop3d still trying...

2002-06-25 Thread Sam Varshavchik

OMestre writes: 

 
 But the final of the debug is the problem... the daemon look for my dns
 server (i did install one named in my FreeBSD machine to fix this, but
 do not work), but do not look for mysql in no moment! 

Your trace shows the response from the DNS server indicating that the server 
hostname, 'localhost.mydomain', is invalid. 

-- 
Sam 



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: courier-imap needs restart to auth vpopmail users

2002-06-25 Thread Sam Varshavchik

Kevin Monroe writes: 


 My current solution is to restart courier-imap about every 10 minutes via cron, 
 but I'd like a real fix. Thanks for any ideas...

The real fix is to get vpopmail fixed.  It's a known bug in recent versions 
of vpopmail. 

-- 
Sam 



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: Is compatibility still broken beetwin MSOE courier?

2002-06-25 Thread Sam Varshavchik

Tim writes: 

 Andres A Moya writes:  
 
 so
 1) Is compatibility still broken beetwin MSOE  courier?
 
 I didnt know compatibility was broken between OE and courier.
 I have most of my clients using OE or Outlook on courier-IMAP.  I never 
 had a serious problem or complaint with any customers about these clients. 

It really depends on factors such as the specific MSOE build, which version 
of MSIE is installed, in combination with which service packs.  It's black 
magic. 

 I've tried to solve that problems by implementing UW-IMAP.
 I've patched it so it can use authdaemond...

Now that, aside from anything else, definitely deserves some kind of an 
award for originality. 

-- 
Sam 



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Re: courier-imap and LDAP

2002-06-25 Thread Sam Varshavchik

[EMAIL PROTECTED] writes: 

 Hello 
 
 I here ran into a strange problem: 
 
 courier-imap is compiled with ldap support and authldap is the only auth 
 method. When i try to check mail via pop3/imap courier-imap won't even 
 _try_ to connect to LDAP server. 

And you reached that conclusion because... 


-- 
Sam 



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users