Re: [vchkpw] imap before smtp

2009-09-21 Thread Christopher Chan

Tom Collins wrote:
Even if it's possible to set up imap-before-smtp, you'll be much better 
off if you have your clients use SMTP AUTH instead. More reliable, more 
predictable, and supported by almost every email client out there.


If you really want to try it, consider Dovecot instead of Courier. I 
think dovecot uses vchkpw, and is probably going to be easier to configure.



dovecot for smtp-auth. dovecot has vpopmail bindings AND sasl support. 
You won't need courier-auth or courier-imap anymore. postfix has support 
for dovecot-sasl. If you are using something else...I have not tried them.


!DSPAM:4ab8227f32711201751689!



[vchkpw] imap before smtp

2009-09-17 Thread kengheng
Dear All, would like to check if there is anyway to do imap before smtp 
relay ? I'm using courier-authlib-0.60.2 with courier-imap.


Thanks.

--
Best regards,
KengHeng. Chan
Mobile : +6-016-717-0273
SQL Technology Sdn Bhd
http://www.mysql.cc
c...@mysql.cc 



!DSPAM:4ab1dc8f32717245867931!



Re: [vchkpw] imap before smtp

2009-09-17 Thread Juan Enciso
One queston,  Why don't use SMTP-AUTH?
I'm using SMTP-AUTH from SpamControl
http://www.fehcom.de/qmail/spamcontrol.html

http://www.fehcom.de/qmail/spamcontrol.htmlIt works good


On Thu, Sep 17, 2009 at 1:51 AM, kengheng kengh...@mysql.cc wrote:

 Dear All, would like to check if there is anyway to do imap before smtp
 relay ? I'm using courier-authlib-0.60.2 with courier-imap.

 Thanks.

 --
 Best regards,
 KengHeng. Chan
 Mobile : +6-016-717-0273
 SQL Technology Sdn Bhd
 http://www.mysql.cc
 c...@mysql.cc

 




-- 
Juan Enciso Condeña
Teléfono: (511) 3238504
E-mail: juan.enc...@gmail.com
MSN: juan_enc...@hotmail.com


!DSPAM:4ab23e5632715567853773!


Re: [vchkpw] imap before smtp

2009-09-17 Thread Tom Collins
Even if it's possible to set up imap-before-smtp, you'll be much  
better off if you have your clients use SMTP AUTH instead. More  
reliable, more predictable, and supported by almost every email client  
out there.


If you really want to try it, consider Dovecot instead of Courier. I  
think dovecot uses vchkpw, and is probably going to be easier to  
configure.


-Tom

On Sep 16, 2009, at 11:51 PM, kengheng kengh...@mysql.cc wrote:

Dear All, would like to check if there is anyway to do imap before  
smtp relay ? I'm using courier-authlib-0.60.2 with courier-imap.


Thanks.

--
Best regards,
KengHeng. Chan
Mobile : +6-016-717-0273
SQL Technology Sdn Bhd
http://www.mysql.cc
c...@mysql.cc





!DSPAM:4ab244f532711143630341!



Re: [vchkpw] Imap Access Disabled

2007-06-13 Thread Navid rasi

well

1. run this command
strace -ff -o /var/mydebug/ff 
/usr/local/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup 
-noidentlookup 143 /usr/local/sbin/imaplogin /usr/local/bin/imapd Maildir


2.telnet 20 127.0.0.1 143




then this file come out in /var/mydeug
ff.8417
---

rt_sigaction(SIGCHLD, {SIG_DFL}, {0x8049e54, [CHLD], SA_RESTORER|SA_RESTART, 
0x6

41a48}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
getsockname(4, {sa_family=AF_INET6, sin6_port=htons(143), 
inet_pton(AF_INET6, :

::127.0.0.1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
close(0)= 0
close(1)= 0
dup(4)  = 0
dup(4)  = 1
close(4)= 0
execve(/usr/local/sbin/imaplogin, [/usr/local/sbin/imaplogin, 
/usr/local/bi

n/imapd, Maildir], [/* 26 vars */]) = 0
uname({sys=Linux, node=TEST-MAIL, ...}) = 0
brk(0)  = 0x8b4f000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or 
directory)
open(/usr/local/lib/courier-authlib/tls/i686/sse2/libcourierauthsasl.so.0, 
O_R

DONLY) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls/i686/sse2, 0xfee80718) = -1 
ENOENT (

No such file or directory)
open(/usr/local/lib/courier-authlib/tls/i686/libcourierauthsasl.so.0, 
O_RDONLY

) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls/i686, 0xfee80718) = -1 ENOENT 
(No su

ch file or directory)
open(/usr/local/lib/courier-authlib/tls/sse2/libcourierauthsasl.so.0, 
O_RDONLY

) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls/sse2, 0xfee80718) = -1 ENOENT 
(No su

ch file or directory)
open(/usr/local/lib/courier-authlib/tls/libcourierauthsasl.so.0, O_RDONLY) 
= -

1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls, 0xfee80718) = -1 ENOENT (No 
such fi

le or directory)
open(/usr/local/lib/courier-authlib/i686/sse2/libcourierauthsasl.so.0, 
O_RDONL

Y) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/i686/sse2, 0xfee80718) = -1 ENOENT 
(No s

uch file or directory)
open(/usr/local/lib/courier-authlib/i686/libcourierauthsasl.so.0, 
O_RDONLY) =

-1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/i686, 0xfee80718) = -1 ENOENT (No 
such f

ile or directory)
open(/usr/local/lib/courier-authlib/sse2/libcourierauthsasl.so.0, 
O_RDONLY) =

-1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/sse2, 0xfee80718) = -1 ENOENT (No 
such f

ile or directory)
open(/usr/local/lib/courier-authlib/libcourierauthsasl.so.0, O_RDONLY) = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0X\10\0\000..., 512) 
= 5

12
fstat64(3, {st_mode=S_IFREG|0755, st_size=7436, ...}) = 0
old_mmap(NULL, 10272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0x

f6ffd000
old_mmap(0xf6fff000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYW

RITE, 3, 0x1000) = 0xf6fff000
close(3)= 0
open(/usr/local/lib/courier-authlib/libcourierauth.so.0, O_RDONLY) = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\4!\0\000..., 512) 
= 51

2
fstat64(3, {st_mode=S_IFREG|0755, st_size=37420, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0

xf6ffc000
old_mmap(NULL, 34884, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0x

f6ff3000
old_mmap(0xf6ffb000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYW

RITE, 3, 0x8000) = 0xf6ffb000
close(3)= 0
open(/usr/local/lib/courier-authlib/libc.so.6, O_RDONLY) = -1 ENOENT (No 
such

file or directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=47991, ...}) = 0
old_mmap(NULL, 47991, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6fe7000
close(3)= 0
open(/lib/tls/libc.so.6, O_RDONLY)= 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \357b\000..., 512) 
= 5

12
fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0
old_mmap(0x61a000, 1207532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0

) = 0x61a000
old_mmap(0x73b000, 16384, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWR

ITE, 3, 0x12) = 0x73b000
old_mmap(0x73f000, 7404, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMO

US, -1, 0) = 0x73f000
close(3)= 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0

xf6fe6000
mprotect(0x73b000, 8192, PROT_READ) = 0
mprotect(0x616000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 - 6, base_addr:0xf6fe66c0, limit:1048575, 
seg_
32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
usea

ble:1}) = 0
munmap(0xf6fe7000, 47991)

[vchkpw] Imap Access Disabled

2007-06-12 Thread Navid rasi
hi 
i used Qmail Toaster great how to and install qmail+vpopmail+courier imap

pop3 and smtp works great but Courier IMAP has problem 
when is use telnet to test it it reporte that imap access is disabled fo users 
?!
telnet 127.0.0.1 143

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THRE
AD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyr
ight 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
a login [EMAIL PROTECTED] pass
a OK LOGIN Ok.
* BYE IMAP access disabled for this account.
Connection closed by foreign host.

i check my /var/log/maillog 
nothing reports?!
just like this 

Jun 12 05:48:43 Refatec-BWM authdaemond: stopping authdaemond children
Jun 12 05:48:45 Refatec-BWM authdaemond: modules=authvchkpw, daemons=5
Jun 12 05:48:45 Refatec-BWM authdaemond: Installing libauthvchkpw
Jun 12 05:48:45 Refatec-BWM authdaemond: Installation complete: authvchkpw
Jun 12 05:49:19 Refatec-BWM imapd: Connection, ip=[:::127.0.0.1]

i use fedora core 3 what is the problem ?


Re: [vchkpw] Imap Access Disabled

2007-06-12 Thread Navid rasi
Yes i use bill shupp and my service is running 


  is your auth services running? did u use the qmail toaster from bill shupp?

  just my 2 cents, 
  Remo

  Navid rasi wrote: 
hi 
i used Qmail Toaster great how to and install qmail+vpopmail+courier imap

pop3 and smtp works great but Courier IMAP has problem 
when is use telnet to test it it reporte that imap access is disabled fo users 
?!
telnet 127.0.0.1 143

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THRE
AD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyr
ight 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
a login [EMAIL PROTECTED] pass
a OK LOGIN Ok.
* BYE IMAP access disabled for this account.
Connection closed by foreign host.

i check my /var/log/maillog 
nothing reports?!
just like this 

Jun 12 05:48:43 Refatec-BWM authdaemond: stopping authdaemond children
Jun 12 05:48:45 Refatec-BWM authdaemond: modules=authvchkpw, daemons=5
Jun 12 05:48:45 Refatec-BWM authdaemond: Installing libauthvchkpw
Jun 12 05:48:45 Refatec-BWM authdaemond: Installation complete: authvchkpw
Jun 12 05:49:19 Refatec-BWM imapd: Connection, ip=[:::127.0.0.1]

i use fedora core 3 what is the problem ?


!DSPAM:466eaf1f282474275821350!

  

Re: [vchkpw] Imap Access Disabled

2007-06-12 Thread bachi
 i check my /var/log/maillog
 nothing reports?!
 just like this

 Jun 12 05:48:43 Refatec-BWM authdaemond: stopping authdaemond children
 Jun 12 05:48:45 Refatec-BWM authdaemond: modules=authvchkpw, daemons=5
 Jun 12 05:48:45 Refatec-BWM authdaemond: Installing libauthvchkpw
 Jun 12 05:48:45 Refatec-BWM authdaemond: Installation complete:
 authvchkpw Jun 12 05:49:19 Refatec-BWM imapd: Connection,
 ip=[:::127.0.0.1]
Sounds like authlib restarts itself because of some internal problems.
Got the same problem with libauthvchkpw.
I use authmysql now and a hack in the authlib to bend permissions to
vpopmail.

I can't help you with libauthvchkpw...




Re: [vchkpw] Imap Access Disabled

2007-06-12 Thread Dvorkin Dmitry

make and
strace
on courier-authlib.
you'll see when it get glibc error

[EMAIL PROTECTED] wrote:

i check my /var/log/maillog
nothing reports?!
just like this

Jun 12 05:48:43 Refatec-BWM authdaemond: stopping authdaemond children
Jun 12 05:48:45 Refatec-BWM authdaemond: modules=authvchkpw, daemons=5
Jun 12 05:48:45 Refatec-BWM authdaemond: Installing libauthvchkpw
Jun 12 05:48:45 Refatec-BWM authdaemond: Installation complete:
authvchkpw Jun 12 05:49:19 Refatec-BWM imapd: Connection,
ip=[:::127.0.0.1]


Sounds like authlib restarts itself because of some internal problems.
Got the same problem with libauthvchkpw.
I use authmysql now and a hack in the authlib to bend permissions to
vpopmail.

I can't help you with libauthvchkpw...


  


--
С уважением,
Дмитрий Солдатов.
__
Служба техничекой поддержки.
Компания Взлет Медиа, Тверь
Тел. +7 (0822) 69-11-55
E-mail: [EMAIL PROTECTED]
http://www.flightmedia.ru 



Re: [vchkpw] Imap Access Disabled

2007-06-12 Thread Navid rasi

did u run the --redhat switch during the installation of courier imap?

Remo
yes i compile with --with-redhat 

make and
strace
on courier-authlib.
you'll see when it get glibc error

sorry but how ?


Re: [vchkpw] Imap Access Disabled

2007-06-12 Thread Navid rasi

I use authmysql now and a hack in the authlib to bend permissions to
vpopmail.

can you help me how to switch to authmysql with vpopmail ?
i can do that before start using by my clients and making users  .






Re: [vchkpw] Imap Access Disabled

2007-06-12 Thread Dvorkin Dmitry

simple!
in 1st window:
telnet yourhost 143
in 2'd window we have:
[EMAIL PROTECTED] .mc]# ps auxw | grep imapl
root 11702 0.0 0.0 1476 392 ? S Jun12 0:00 
/usr/local/courier-authlib/sbin/courierlogger -pid=/var/run/imapd.pid 
-start -name=imapd /usr/local/courier-imap//libexec/couriertcpd 
-address=0 -maxprocs=40 -maxperip=40 -nodnslookup -noidentlookup 143 
/usr/local/courier-imap//sbin/imaplogin 
/usr/local/courier-imap//bin/imapd Maildir
root 11703 0.0 0.0 1572 520 ? S Jun12 0:00 
/usr/local/courier-imap//libexec/couriertcpd -address=0 -maxprocs=40 
-maxperip=40 -nodnslookup -noidentlookup 143 
/usr/local/courier-imap//sbin/imaplogin 
/usr/local/courier-imap//bin/imapd Maildir
root 19659 0.0 0.0 1564 448 ? S 00:54 0:00 
/usr/local/courier-imap//sbin/imaplogin 
/usr/local/courier-imap//bin/imapd Maildir

root 19667 0.0 0.0 1664 628 pts/3 S+ 00:54 0:00 grep --color imapl

, so we have to call:
strace -ff -o ./mydebug /usr/local/courier-imap//libexec/couriertcpd 
-address=0 -maxprocs=40 -maxperip=40 -nodnslookup -noidentlookup 143 
/usr/local/courier-imap//sbin/imaplogin 
/usr/local/courier-imap//bin/imapd Maildir


then try
telnet yourhost 143
in the other window
make a login
then see the files ./mydebug.*


Navid rasi wrote:


did u run the --redhat switch during the installation of courier imap?

Remo
yes i compile with --with-redhat
make and
strace
on courier-authlib.
you'll see when it get glibc error
sorry but how ?


--
С уважением,
Дмитрий Солдатов.
__
Служба техничекой поддержки.
Компания Взлет Медиа, Тверь
Тел. +7 (0822) 69-11-55
E-mail: [EMAIL PROTECTED]
http://www.flightmedia.ru 



Re: [vchkpw] IMAP connections fail after undetermined period.

2006-03-09 Thread james cooke
I've had it happen when there's only been a couple of connections on the mysql processlist, and the server is mostly for my testing purposes thus far, so it getting slammed with connections is highly unlikely. I'll up the connection limits and see if anything improves just to check for sure.
Even if this were the case, after the connections drop, wouldn't it be expected that you'd be able to connect then? When the problem happens, it's permanent.On 3/8/06, 
Michael Krieger [EMAIL PROTECTED] wrote:
Check your connection limits to the MySQL server. Seems to  occasionally happen when a flood of smtp connections or pop connections  opens up a lot of MySQL backends. Essentially it means that it  tried to run its database queries and the server isn't there and has  broken or didn't accept the connection.
-M  james cooke 
[EMAIL PROTECTED] wrote:  Hello,After a few hours of running - I haven't narrowed it down to a certain time, it seems to vary - IMAP connections fail with:
  dovecot: Mar 08 16:29:59 Error: auth(default): vmysql: sql error[3]: MySQL server has gone awaySetup is FreeBSD 5.4, qmail 1.03, vpopmail 5.4.13, dovecot 1.0, mysql 5.0.18.I thought the issue was with the imap server, but it occurred with courier-imap also.
Auth with pop3 continues to work, and
 if I reset dovecot then imap  begins to work again temporarily, as it did with courier-imap.I'm assuming this might be some sort of MySQL version or connection  timeout issue, but I'm at a loss on where to go from here, I'm fairly  new to this area in general, any feedback would be very welcome.
Thanks,  James Cooke  



Re: [vchkpw] IMAP connections fail after undetermined period.

2006-03-09 Thread james cooke
Apparently, when the mysql connection is lost, it doesn't reconnect as it should, I killed the process in mysql and tried to reconnect via imap and got the error(with no other mysql processes). I had assumed if that if IMAP connections were failing in this situation, pop3 connections would also. If I restart dovecot, then the connection is resumed.
Any guidance on what I would need to do for it to reconnect when connection is dropped would be very helpful, I've read somewhere that it may need to be patched because it's returning true for being connected to mysql regardless of if it actually is, but I can't find the post now.
Thanks,James CookeOn 3/9/06, james cooke [EMAIL PROTECTED] wrote:
I've had it happen when there's only been a couple of connections on the mysql processlist, and the server is mostly for my testing purposes thus far, so it getting slammed with connections is highly unlikely. I'll up the connection limits and see if anything improves just to check for sure.
Even if this were the case, after the connections drop, wouldn't it be expected that you'd be able to connect then? When the problem happens, it's permanent.
On 3/8/06, 
Michael Krieger [EMAIL PROTECTED] wrote:

Check your connection limits to the MySQL server. Seems to  occasionally happen when a flood of smtp connections or pop connections  opens up a lot of MySQL backends. Essentially it means that it  tried to run its database queries and the server isn't there and has  broken or didn't accept the connection.
-M  james cooke 

[EMAIL PROTECTED] wrote:  Hello,After a few hours of running - I haven't narrowed it down to a certain time, it seems to vary - IMAP connections fail with:
  dovecot: Mar 08 16:29:59 Error: auth(default): vmysql: sql error[3]: MySQL server has gone awaySetup is FreeBSD 5.4, qmail 1.03, vpopmail 5.4.13, dovecot 1.0, mysql 5.0.18.I thought the issue was with the imap server, but it occurred with courier-imap also.
Auth with pop3 continues to work, and
 if I reset dovecot then imap  begins to work again temporarily, as it did with courier-imap.I'm assuming this might be some sort of MySQL version or connection  timeout issue, but I'm at a loss on where to go from here, I'm fairly  new to this area in general, any feedback would be very welcome.
Thanks,  James Cooke  





[vchkpw] IMAP connections fail after undetermined period.

2006-03-08 Thread james cooke
Hello,

After a few hours of running - I haven't narrowed it down to a certain time, it seems to vary - IMAP connections fail with:
dovecot: Mar 08 16:29:59 Error: auth(default): vmysql: sql error[3]: MySQL server has gone away

Setup is FreeBSD 5.4, qmail 1.03, vpopmail 5.4.13, dovecot 1.0, mysql 5.0.18.

I thought the issue was with the imap server, but it occurred with courier-imap also.

Auth with pop3 continues to work, and if I reset dovecot then imap
begins to work again temporarily, as it did with courier-imap.

I'm assuming this might be some sort of MySQL version or connection
timeout issue, but I'm at a loss on where to go from here, I'm fairly
new to this area in general, any feedback would be very welcome.

Thanks,
James Cooke




Re: [vchkpw] IMAP connections fail after undetermined period.

2006-03-08 Thread Michael Krieger
Check your connection limits to the MySQL server. Seems to  occasionally happen when a flood of smtp connections or pop connections  opens up a lot of MySQL backends. Essentially it means that it  tried to run its database queries and the server isn't there and has  broken or didn't accept the connection.-M  james cooke [EMAIL PROTECTED] wrote:  Hello,After a few hours of running - I haven't narrowed it down to a certain time, it seems to vary - IMAP connections fail with:  dovecot: Mar 08 16:29:59 Error: auth(default): vmysql: sql error[3]: MySQL server has gone awaySetup is FreeBSD 5.4, qmail 1.03, vpopmail 5.4.13, dovecot 1.0, mysql 5.0.18.I thought the issue was with the imap server, but it occurred with courier-imap also.Auth with pop3 continues to work, and
 if I reset dovecot then imap  begins to work again temporarily, as it did with courier-imap.I'm assuming this might be some sort of MySQL version or connection  timeout issue, but I'm at a loss on where to go from here, I'm fairly  new to this area in general, any feedback would be very welcome.Thanks,  James Cooke  

[vchkpw] IMAP before SMTP

2005-11-11 Thread Nicklas Bondesson
I'm having a hard time getting IMAP before SMTP to work.

It seems like the remote ip address is not visible to get_remote_ip() in
vpopmail. I'm using qmail, vpopmail with a mysql backend and Courier-IMAP
(v3.0.8). 

Problem:

The remote ip is not inserted into the relay table. If I check the lastauth
table i only get imap in the remote_ip field.

Any ideas?


Thanks,

Nicklas B




Re: [vchkpw] IMAP before SMTP

2005-11-11 Thread Rick Macdougall

Nicklas Bondesson wrote:

I'm having a hard time getting IMAP before SMTP to work.

It seems like the remote ip address is not visible to get_remote_ip() in
vpopmail. I'm using qmail, vpopmail with a mysql backend and Courier-IMAP
(v3.0.8). 


Problem:

The remote ip is not inserted into the relay table. If I check the lastauth
table i only get imap in the remote_ip field.

Any ideas?



Hi,

It is not possible at all with the 4.x series of Courier-imap.  I'm not 
sure about the 3.x series or maybe Binc Imap.


Regards,

Rick



RE: [vchkpw] IMAP before SMTP

2005-11-11 Thread Nicklas Bondesson
I was able to get it working after i recompiled courier-imap.

Thanks,

Nicklas B

 -Original Message-
 From: Rick Macdougall [mailto:[EMAIL PROTECTED] 
 Sent: den 12 november 2005 00:28
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] IMAP before SMTP
 
 Nicklas Bondesson wrote:
  I'm having a hard time getting IMAP before SMTP to work.
  
  It seems like the remote ip address is not visible to 
 get_remote_ip() 
  in vpopmail. I'm using qmail, vpopmail with a mysql backend and 
  Courier-IMAP (v3.0.8).
  
  Problem:
  
  The remote ip is not inserted into the relay table. If I check the 
  lastauth table i only get imap in the remote_ip field.
  
  Any ideas?
  
 
 Hi,
 
 It is not possible at all with the 4.x series of 
 Courier-imap.  I'm not sure about the 3.x series or maybe Binc Imap.
 
 Regards,
 
 Rick
 
 
 




Re: [vchkpw] IMAP before SMTP

2005-11-11 Thread Jack Kerouac
 The remote ip is not inserted into the relay table. If I check the
 lastauth
 table i only get imap in the remote_ip field.

 
 It is not possible at all with the 4.x series of Courier-imap.  I'm not
 sure about the 3.x series or maybe Binc Imap.

Works fine with BincIMAP (which, IMHO, is a way saner IMAP than 
Courier).

--
Jack


Re: [vchkpw] IMAP before SMTP

2005-11-11 Thread Rick Macdougall

Nicklas Bondesson wrote:

I was able to get it working after i recompiled courier-imap.



Hi,

Just for my personal info, what version of courier-imap was it ?

Rick



RE: [vchkpw] IMAP before SMTP

2005-11-11 Thread Nicklas Bondesson
Courier-IMAP 3.0.8 (the last one in the 3.x series).

Thanks,

Nicklas B

 -Original Message-
 From: Rick Macdougall [mailto:[EMAIL PROTECTED] 
 Sent: den 12 november 2005 00:59
 To: vchkpw@inter7.com
 Subject: Re: [vchkpw] IMAP before SMTP
 
 Nicklas Bondesson wrote:
  I was able to get it working after i recompiled courier-imap.
  
 
 Hi,
 
 Just for my personal info, what version of courier-imap was it ?
 
 Rick
 
 
 




Re: [vchkpw] IMAP before SMTP

2005-11-11 Thread Michael Bowe
 Original Message - 


From: Rick Macdougall [EMAIL PROTECTED]




Nicklas Bondesson wrote:

I'm having a hard time getting IMAP before SMTP to work.

It seems like the remote ip address is not visible to get_remote_ip() in
vpopmail. I'm using qmail, vpopmail with a mysql backend and Courier-IMAP
(v3.0.8). Problem:

The remote ip is not inserted into the relay table. If I check the 
lastauth

table i only get imap in the remote_ip field.

Any ideas?



Hi,

It is not possible at all with the 4.x series of Courier-imap.  I'm not 
sure about the 3.x series or maybe Binc Imap.



( 
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm#ROAMING_USERS  
)


IMAP-before-SMTP is possible when using Courier-IMAP v3.x. However it only 
works when configured --with-authvchkpw --without-authdaemon. When 
running --without-authdaemon, Courier-IMAP's authvchkpw code is able to make 
use of vpopmail's roaming user functions to allow IMAP-before-SMTP 
functionality. IMAP-before-SMTP is not possible when Courier-IMAP has been 
complied --with-authdaemon, because in this mode the user's IP address is 
not made available to the authvchkpw code (via the TCPREMOTEIP env var). 
Also note that in Courier-IMAP v4.x and later, --without-authdaemon 
functionality is no longer available thus preventing IMAP-before-SMTP from 
working.


Michael.



[vchkpw] imap logins failing to update open-smtp file

2004-11-04 Thread Jason Mann
Hi folks.

I have been setting up a new mail server with the following software:

qmail 1.03
vpopmail 5.4.0
Courier IMAP 3.0.8
qmailadmin 1.2.0

vpopmail was configured with:
 --enable-roaming-users --enable-relay-clear-minutes=30

courier-imap is running under tcpserver, as per the instructions at
http://jonaspasche.de/courier-imap-daemontools.txt, and was configured
with:
 --enable-workarounds-for-imap-client-bugs --without-ipv6
 --without-authdaemon --without-authcustom --without-authcram
 --without-authuserdb --without-authshadow --without-authpwd
 --prefix=/usr/local/courier-imap

Everything works as expected except for one thing.  When clients
authenticate in IMAP, the roaming users rules file, open-smtp, is not
updated.

If a client authenticates in pop3, it is updated fine.

I have deleted both vpopmail and courier-imap, cleaned their source
directories and rebuilt, all to no avail.

Does anyone have any suggestions what else I should check?

Thanks.

Jason


Re: [vchkpw] imap logins failing to update open-smtp file

2004-11-04 Thread Jason Mann
On 04/11 10:01, Jason Mann wrote:
 Everything works as expected except for one thing.  When clients
 authenticate in IMAP, the roaming users rules file, open-smtp, is not
 updated.
 
 If a client authenticates in pop3, it is updated fine.

Fixed it. Forgot to set CFLAGS to -DHAVE_OPEN_SMTP_RELAY.

Jason


Re: [vchkpw] IMAP login fails for default domain users

2004-05-30 Thread Tom Collins
On May 28, 2004, at 9:30 PM, Alan Murrell wrote:
All POP logins work great, but with IMAP, only the virtual domains (or
rather, any domain other than the 'default domain') are able to login
in; the 'default domain' fails on IMAP login, regardless of whether I
user the '@defaultdomain.tld' or not (Note: '@defaultdomain' is of
course, a place-holder for the actual domain I used)
It sounds like the vpopmail code in Courier-IMAP doesn't correctly 
handle default domains.  I know that Michael Bowe did a lot of work on 
that code recently -- are you using the latest release of Courier-IMAP? 
 I just took a look at 3.0.4, and it appears to do everything that it 
should -- the call to parse_email should set Domain to the default 
domain if there isn't an '@' in the email address.

At some point in the development cycle, we changed from a hard-coded 
default domain to one stored in an external file.  It looks like 
courier relies entirely on vpopmail code to set the default domain 
(which is a good thing), so it shouldn't be affected by our change.

If you're running MySQL, then I assume it isn't a permissions issue, 
since Courier wouldn't be able to read the vpopmail.mysql file.

If not, make sure that ~vpopmail/etc/defaultdomain is world-readable, 
that could be part of the problem.  Keep in mind that ~vpopmail/etc/ 
needs to be readable by the user that Courier-IMAP runs as.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] IMAP login fails for default domain users

2004-05-30 Thread Alan Murrell
Hi Tom,

On Sun, 2004-05-30 at 10:38, Tom Collins wrote:
 It sounds like the vpopmail code in Courier-IMAP doesn't correctly 
 handle default domains.  I know that Michael Bowe did a lot of work on 
 that code recently -- are you using the latest release of Courier-IMAP?

Not the latest, but version 3.0.4 .  This was copiled from source.  I
have setup the same version of courier from RPM using the SRPMS at
http://www.qmailtoaster.com, on a test box, and Courier-IMAP is
logging users in using the default domain.

 If you're running MySQL, then I assume it isn't a permissions issue, 
 since Courier wouldn't be able to read the vpopmail.mysql file.

I am running MySQL on the backend.  I think you are meaning that
Courier-IMAP does not read the 'vpopmail.mysql' file; is that correct? 
Regardless, I just made it world-readble, and tried logging in:

[EMAIL PROTECTED] root]# telnet localhost 143
trying 127.0.0.1...
connected to van-srv41 [127.0.0.1]
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision,
Inc.  See COPYING for distribution information.
A01 LOGIN alan SeEeCcRrEeTt
A01 NO Login failed.
Connection closed by foreign host.

(I rather suspected that wouldn;t work, but it was worth a try).

 If not, make sure that ~vpopmail/etc/defaultdomain is world-readable, 
 that could be part of the problem.  Keep in mind that ~vpopmail/etc/ 
 needs to be readable by the user that Courier-IMAP runs as.

[EMAIL PROTECTED] root]# ls -l ~vpopmail/etc
total 36
-rw-r--r--1 vpopmail vchkpw 12 May 30 15:53 defaultdomain
-rw-r--r--1 root root   25 May 28 07:53 inc_deps
-rw-r--r--1 root root   77 May 28 07:53 lib_deps
-rw-r--r--1 vpopmail vchkpw 26 May 28 07:48 tcp.smtp
-rw-r--r--1 vpopmail vchkpw  10580 May 30 15:41 tcp.smtp.cdb
-rw-r--r--1 vpopmail vchkpw   1107 May 28 07:53 vlimits.default
-rw-r--r--1 vpopmail vchkpw 42 May 28 07:38 vpopmail.mysql

I am suspecting there is something (unrelated) to this server, because I
have also tried recompiling Courier-IMAP, but it gets to a certain point
then hangs during the configure stage (and it takes a couple minutes to
get the full login prompt). This obviously is not your issue, but it's
just odd.

Anyway, any other ideas you may have would be greatly appreciated.

Sincerely,

Alan Murrell




Re: [vchkpw] IMAP login fails for default domain users

2004-05-30 Thread Alan Murrell
On Sun, 2004-05-30 at 10:38, Tom Collins wrote:
 It sounds like the vpopmail code in Courier-IMAP doesn't correctly 
 handle default domains.  I know that Michael Bowe did a lot of work on 
 that code recently -- are you using the latest release of Courier-IMAP? 
   I just took a look at 3.0.4, and it appears to do everything that it 
 should -- the call to parse_email should set Domain to the default 
 domain if there isn't an '@' in the email address.

Okay, here is what I now have installed (on a test box):

  Qmail 1.03
  Vpopmail 5.4.3
  Courier-IMAP 3.0.4

I have compiled Vpopmail and Courier-IMAP according to Michael Bowe's
guide at
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm, except
I added the '--enable-roaming-users' options for Vpopmail, and had to
add '--with-redhat', since I am compiling on a RH system; other than
that, all else is identical.

However, now *no* IMAP logins are able to occur, whenther from default
domain or all other domains.

 If not, make sure that ~vpopmail/etc/defaultdomain is world-readable,

It is.

 that could be part of the problem.  Keep in mind that ~vpopmail/etc/ 
 needs to be readable by the user that Courier-IMAP runs as.

~vpopmail/etc/ is owned by vpopmail:vchkpw, and has permissions of 755

Thank you, again, for your assistance in this matter.

Sincerely,

Alan Murrell




[vchkpw] IMAP login fails for default domain users

2004-05-28 Thread Alan Murrell
Hello,

  Vpopmail 5.4.2
  Courier-imap 3.0.3

I compiled Qmail, Vpopmail, and Courier-Imap according to the following
HOWTO:

http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php

I also created the ~vpopmail/etc/defaultdomain file with the domain I
wanted in there for the default domain.

All POP logins work great, but with IMAP, only the virtual domains (or
rather, any domain other than the 'default domain') are able to login
in; the 'default domain' fails on IMAP login, regardless of whether I
user the '@defaultdomain.tld' or not (Note: '@defaultdomain' is of
course, a place-holder for the actual domain I used)

I have gone over a few other Qmail-Vpopmail-Courier-imap HOWTOS, and
cannot find anything wrong .

Of course, if I remove the 'defaultdomain' file, then the users under
the '@defaultdomain.tld' can log in via IMAP (assuming they use the full
email address).

Unfortunately, it is not too practical for me to do this, since there
are several hundred users who are under the 'default domain', and almost
all log in with only the first part of their email address.

ANy ideas as to what is wrong, and possibly how to correct would be
greatly appreciated!

TIA,

Alan Murrell




[vchkpw] IMAP

2004-04-16 Thread Nelson D. Guerrero
Is there any other IMAP server that can work with vpopmail the way
courier-imap does?

--
nelsong;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:;; [EMAIL PROTECTED]




Re: [vchkpw] IMAP

2004-04-16 Thread Jeremy Kitchen
On Friday 16 April 2004 08:41 am, Nelson D. Guerrero wrote:
 Is there any other IMAP server that can work with vpopmail the way
 courier-imap does?

what's 'the way courier-imap does' ?

Do you really mean, are there any other imap servers that work with 
vpopmail?

If so, the answer is yes.  www.bincimap.org

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE


RE: [vchkpw] IMAP

2004-04-16 Thread Shane Chrisp
BincImap works, but it doesn't support quota's like courier-imap does.

Shane 

-Original Message-
From: Nelson D. Guerrero [mailto:[EMAIL PROTECTED] 
Sent: Friday, 16 April 2004 9:41 PM
To: [EMAIL PROTECTED]
Subject: [vchkpw] IMAP

Is there any other IMAP server that can work with vpopmail the way
courier-imap does?

--
nelsong;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:;; [EMAIL PROTECTED]






Re: [vchkpw] IMAP

2004-04-16 Thread Walter Souto R. Junior

Is there any other IMAP server that can work with vpopmail the way
courier-imap does?
You bet! See www.bincimap.org.

And read http://www.differentpla.net/node/view/165. You can take some 
hints from here.

Cheers,
--
Walter


Re: [vchkpw] IMAP

2004-04-16 Thread Nelson D. Guerrero
On Fri, 2004-04-16 at 11:40, Jeremy Kitchen wrote:
 On Friday 16 April 2004 08:41 am, Nelson D. Guerrero wrote:
  Is there any other IMAP server that can work with vpopmail the way
  courier-imap does?
 
 what's 'the way courier-imap does' ?

I meant the way it authenticates, you know, the vchkpw module. Sorry for
not saying exactlly what I meant. 

 
 Do you really mean, are there any other imap servers that work with 
 vpopmail?
 
 If so, the answer is yes.  www.bincimap.org
 
 -Jeremy

Thanks to everybody that replied. I'll look into BINC today. 

--
nelsong;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:;; [EMAIL PROTECTED]




Re: [vchkpw] imap and vpopmail

2004-01-15 Thread Tom Collins
On Jan 14, 2004, at 4:56 PM, master wrote:
Hi, i have a little question about vpopmail and imap, i have been 
using it
since a while but recently i got a problem, vpopmail has added new 
directory
(0) and put all new domains in it , but the problem is that all domains
there doesn t work with courier-imap, in fact imap only check the main
directory of vpopmail
(i have try the vchkpw2userdb to see and no domain that are in the 0 
appear)
has anyone got that problem and any solutions?
thanks
Did you recompile vpopmail after compiling courier?  Are you using cdb 
of MySQL backend?

Can vuserinfo find the postmaster for those domains?

What version of vpopmail and courier?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] imap and vpopmail

2004-01-14 Thread master
Hi, i have a little question about vpopmail and imap, i have been using it
since a while but recently i got a problem, vpopmail has added new directory
(0) and put all new domains in it , but the problem is that all domains
there doesn t work with courier-imap, in fact imap only check the main
directory of vpopmail
(i have try the vchkpw2userdb to see and no domain that are in the 0 appear)
has anyone got that problem and any solutions?
thanks



Re: [vchkpw] Imap and pop3 problem

2003-12-21 Thread Dean Henrichsmeyer
Just from a best practice stand point, it sounds like you're really 
asking for a headache accessing the same data 2 different ways at the 
same time with the same program. I'd recommend finding a different 
solution. One being setting up a filter in outlook that looks for the 
Spam status header and filtering it in outlook rather than on the 
server (if bandwidth isn't something you're trying to save).

The other being just check the spam folder via webmail once in a while. 
I'd really try and avoid accessing the same data at the same time 2 
different  ways. While unix is forgiving, most client applications 
aren't.

Dean

On Dec 16, 2003, at 5:44 PM, Ross Davis - DataAnywhere.net wrote:

I have configured my new server with pop3 and courier imap.  I built 
the
server within the last week with the latest version from source forge.
I am using maildrop to drop my spam email into a .Spam imap folder and
this works great as I have a folder that is visible from sqwebmail.
That works great.

On my pc (using outlook 2002) I have added one pop3 account to pull the
mail from my inbox off onto my machine and another Imap account that I
can use to monitor my spam folder.  This is really nice concept wise
except I am getting an error about 20% of the time when I check my
email.  If I remove the Imap account I do not get the error.  Outlook
checks both accounts at the same time and there is no way to stop that.
I tried everything.
I think the problem is that imap and pop3 are conflicting with each
other when checking the same account at the same time.  Anyone else
tried this or know of a solution?
Ross Davis
DataAnywhere.net
250-470-9192
ChaletsOnline.com is coming soon
Don't you deserve a vacation!





Re: [vchkpw] Imap and pop3 problem

2003-12-21 Thread Jeremy Kitchen
On Tue, 2003-12-16 at 19:08, [EMAIL PROTECTED] wrote:
 Ross Davis - DataAnywhere.net [EMAIL PROTECTED] wrote:
  On my pc (using outlook 2002) I have added one pop3 account to pull
  the mail from my inbox off onto my machine and another Imap account
  that I can use to monitor my spam folder.  This is really nice
  concept wise except I am getting an error about 20% of the time when
  I check my email.  If I remove the Imap account I do not get the
  error.  Outlook checks both accounts at the same time and there is
  no way to stop that. I tried everything.
 
  I think the problem is that imap and pop3 are conflicting with each
  other when checking the same account at the same time.  Anyone else
  tried this or know of a solution?

first of all, why use the imap AND pop3 account?  You can view your
inbox with your imap account just fine.  I use imap, and only imap
anymore, as I like to be able to get the same emails from anywhere :)

 Incorrect.  The problem is courier-imap only allows a small amount of imap
 connections per IP, and outlook and outlook express both open several
 connections at a time, and the IMAP server is killing the extra connections.

Unfortunately that is true.  Also unfortunately, Mozilla Thunderbird (at
least for linux) also does that.  It sets up a new connection for each
folder, which, in my case, is very bad, as I have lots of imap folders
(at least 2 for every mailing list I'm on, as well as lots of 'personal'
folders)

I don't use windows anymore, and I never really used Outlook with my
imap server, I've been using evolution under linux for the past 2 years,
which is absolutely wonderful.

I would suggest perhaps trying some other mail clients.  I know eudora
(at least later versions) is very nice, but it's not freeware, so unless
you register it you have a few very small (and unobtrusive) ads in your
main client window (it is NOT spyware, and will NOT pop up ads on you)

Also, I'm sure freshmeat would have a nice listing of free email clients
for windows, certainly one of them will perform well enough for you.  I
certainly wish I could recommend one for you other than Eudora, but I do
not use windows anymore, nor do I feel like installing windows just for
that ;)  Maybe some day...

I am planning on opening a site very soon that will review a lot of
things, I'm semi keeping it secret because I don't own the domain yet
and don't want someone to steal it before I can get it :\  I will put
Windows MUAs on my checklist of things to review, hopefully it will be
helpful to someone.

 Find your 'imapd' file, (default /usr/lib/courier-imap/etc), and find the
 MAXPERIP variable.  Raise it.

That will certainly help, but in my case I would also be limited by the
max connections configuration directive, because I have far more than 40
(which is the default) imap folders.  I think this is more an MUA
problem than a server side problem.

-Jeremy

-- 
Jeremy Kitchen [EMAIL PROTECTED]
Inter7 Internet Technologies, Inc.



[vchkpw] Imap and pop3 problem

2003-12-16 Thread Ross Davis - DataAnywhere.net
I have configured my new server with pop3 and courier imap.  I built the
server within the last week with the latest version from source forge.
I am using maildrop to drop my spam email into a .Spam imap folder and
this works great as I have a folder that is visible from sqwebmail.
That works great.  

On my pc (using outlook 2002) I have added one pop3 account to pull the
mail from my inbox off onto my machine and another Imap account that I
can use to monitor my spam folder.  This is really nice concept wise
except I am getting an error about 20% of the time when I check my
email.  If I remove the Imap account I do not get the error.  Outlook
checks both accounts at the same time and there is no way to stop that.
I tried everything.  

I think the problem is that imap and pop3 are conflicting with each
other when checking the same account at the same time.  Anyone else
tried this or know of a solution?


Ross Davis
DataAnywhere.net
250-470-9192 

ChaletsOnline.com is coming soon
Don't you deserve a vacation!
 




Re: [vchkpw] Imap and pop3 problem

2003-12-16 Thread foo
Ross Davis - DataAnywhere.net [EMAIL PROTECTED] wrote:
 On my pc (using outlook 2002) I have added one pop3 account to pull
 the mail from my inbox off onto my machine and another Imap account
 that I can use to monitor my spam folder.  This is really nice
 concept wise except I am getting an error about 20% of the time when
 I check my email.  If I remove the Imap account I do not get the
 error.  Outlook checks both accounts at the same time and there is
 no way to stop that. I tried everything.

 I think the problem is that imap and pop3 are conflicting with each
 other when checking the same account at the same time.  Anyone else
 tried this or know of a solution?

Incorrect.  The problem is courier-imap only allows a small amount of imap
connections per IP, and outlook and outlook express both open several
connections at a time, and the IMAP server is killing the extra connections.

Find your 'imapd' file, (default /usr/lib/courier-imap/etc), and find the
MAXPERIP variable.  Raise it.






Re: [vchkpw] imap before smtp

2003-09-15 Thread Tim
On Thu, Sep 11, 2003 at 01:40:02PM -0700, Tom Collins wrote:
 mr. varshavchik addressed this on the sqwebmail mailing list:

 http://www.mail-archive.com/[EMAIL PROTECTED]/msg06068.html
 
 it's a lovely little rant.
 
 As of vpopmail 5.3.8, the buffers are cleared properly and the 
 authdaemon has worked just fine.  A beta 5.2.2 release is on 
 SourceForge with the same fix in place.

  Is there any change between 5.3.5 and 5.3.8 that is relevant to this?
It is not obvious from the ChangeLog.  I've been running 5.2.1 and
authdaemon with just the parse_email() patch (I am the author of the
patch) without any problems.  We have a very small installation though.

  Also my patch doesn't clear the buffer, just making sure that the
buffer is always terminated properly.  Let me know if I am missing
something.

  Thanks,

  Tim



Re: [vchkpw] imap before smtp

2003-09-15 Thread Michael Bowe
- Original Message - 
From: Tim [EMAIL PROTECTED]
To: Tom Collins [EMAIL PROTECTED]
Cc: vpopmail list [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 6:09 PM
Subject: Re: [vchkpw] imap before smtp


 On Thu, Sep 11, 2003 at 01:40:02PM -0700, Tom Collins wrote:
  mr. varshavchik addressed this on the sqwebmail mailing list:
 
  http://www.mail-archive.com/[EMAIL PROTECTED]/msg06068.html
  
  it's a lovely little rant.
 
  As of vpopmail 5.3.8, the buffers are cleared properly and the
  authdaemon has worked just fine.  A beta 5.2.2 release is on
  SourceForge with the same fix in place.

   Is there any change between 5.3.5 and 5.3.8 that is relevant to this?
 It is not obvious from the ChangeLog.  I've been running 5.2.1 and
 authdaemon with just the parse_email() patch (I am the author of the
 patch) without any problems.  We have a very small installation though.

   Also my patch doesn't clear the buffer, just making sure that the
 buffer is always terminated properly.  Let me know if I am missing
 something.

Hi Tim

Your updates to parse_email() that were included with vpopmail-5.3.5 is
definitely the solution to the courier problem

As you say, prior to your fix, the username string was not getting null
terminated correctly.

The incorrect null termination resulted in problems for courier-imap when
running --with-authdaemon. This is because authdaemon runs persistently,
rather than running once per auth request.

Typically the vpopmail code isnt run in a persistent fashion. The vpopmail
tools such as vchkpw (or courier-imap --without-authdaemon) only run once
per auth request, so the incorrect termination issue never really caused a
problem because the string buffers would always be created/initialised from
scratch for each auth.

But when you ran courier --with-authdaemon, the same string buffers being
used over and over again, and the incorrectly terminated username field
would result in auth failure as soon as a shorter username came through than
the previous username.

Michael.




Re: [vchkpw] IMAP and Pop3

2003-09-12 Thread Jeremy Kitchen
Please keep your replies on the list so others can share their
knowledge, and so everything stays nice and archived, thanks! :)

On Fri, 2003-09-12 at 06:51, Geoff Byers wrote:
 The messages are in my folder in the qmail home dir, for my account and 
 virtual domain, but it wont send them when my client goes to check for 
 new mail. It doesnt understand they are new i guess. I can download 
 them from the server with IMAP but not pop3. Any ideas?

so is it in your local home directory or in your vpopmail-run domain? 
Also, you still haven't said if it gives you any errors, which is
important to know.

-- 
Jeremy Kitchen
Systems Administrator
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE




[vchkpw] imap before smtp

2003-09-11 Thread ted
I've got a LWQ-style qmail configuration, plus vpopmail 5.3.27 and 
courier-imap-2.1.1.20030902.  I have  roaming users enabled (as well as 
qmail-ext), and  POP3  before SMTP works perfectly (using  qmail-pop3d).

IMAP also seems to work just fine, but it does not update open-smtp. My 
workaround of creating a separate POP account to POP in without 
retrieving msgs allows me to send via IMAP, but is obviously not an 
ideal solution. (I'm using Thunderbird .2).

I've installed courier-imap numerous times (with different releases up 
to 20030902), both with authdaemon enabled as well as disabled. In both 
cases, the results are the same (meaning that I can read mail but not 
relay).

Perhaps my understanding is wrong, but I was under the impression that 
since these are virtual domains I'm having trouble with (all my domains 
are virtual), the fact that I am able to read mail at all under IMAP 
would indicate that vchkpw is being called from courier-imap. Since 
qmail-pop3d invokes vchkpw and works, I'm puzzled. I'm afraid I don't 
know where to look log-wise.

thanks for any hints.

-ted




Re: [vchkpw] imap before smtp

2003-09-11 Thread Bill Shupp
On Thursday, September 11, 2003, at 10:53  AM, ted wrote:

I've got a LWQ-style qmail configuration, plus vpopmail 5.3.27 and 
courier-imap-2.1.1.20030902.  I have  roaming users enabled (as well 
as qmail-ext), and  POP3  before SMTP works perfectly (using  
qmail-pop3d).

IMAP also seems to work just fine, but it does not update open-smtp. 
My workaround of creating a separate POP account to POP in without 
retrieving msgs allows me to send via IMAP, but is obviously not an 
ideal solution. (I'm using Thunderbird .2).

I've installed courier-imap numerous times (with different releases up 
to 20030902), both with authdaemon enabled as well as disabled. In 
both cases, the results are the same (meaning that I can read mail but 
not relay).

Perhaps my understanding is wrong, but I was under the impression that 
since these are virtual domains I'm having trouble with (all my 
domains are virtual), the fact that I am able to read mail at all 
under IMAP would indicate that vchkpw is being called from 
courier-imap. Since qmail-pop3d invokes vchkpw and works, I'm puzzled. 
I'm afraid I don't know where to look log-wise.
Probably the same old problem of courier not detecting roaming users.. 
Try this:

cd (patth to courier)
(cd authlib ; make clean)
export CFLAGS=-DHAVE_OPEN_SMTP_RELAY
make
make install


Regards,

Bill




Re: [vchkpw] imap before smtp

2003-09-11 Thread Charles Sprickman
This is a good FAQ item, for when we have a FAQ.

Mr. Sam has disabled the imap-before-smtp function in the authvchkpw code.
I've looked at the courier archives, and there's no explanation from him
as to what the problem is...  Just lots of questions. :)

Bill's suggestion might not work, as he #undefs the value.  In your
courier source dir, go into the authlib dir and open preauthvchkpw.c
for editing.  Look for a line like this:

#undef HAVE_OPEN_SMTP_RELAY

Go ahead and change that #undef to #define and it will work properly.
I can't comment on what the security concerns are, because I don't know
what they are.  It does work however.

Charles

On Thu, 11 Sep 2003, ted wrote:

 I've got a LWQ-style qmail configuration, plus vpopmail 5.3.27 and
 courier-imap-2.1.1.20030902.  I have  roaming users enabled (as well as
 qmail-ext), and  POP3  before SMTP works perfectly (using  qmail-pop3d).

 IMAP also seems to work just fine, but it does not update open-smtp. My
 workaround of creating a separate POP account to POP in without
 retrieving msgs allows me to send via IMAP, but is obviously not an
 ideal solution. (I'm using Thunderbird .2).

 I've installed courier-imap numerous times (with different releases up
 to 20030902), both with authdaemon enabled as well as disabled. In both
 cases, the results are the same (meaning that I can read mail but not
 relay).

 Perhaps my understanding is wrong, but I was under the impression that
 since these are virtual domains I'm having trouble with (all my domains
 are virtual), the fact that I am able to read mail at all under IMAP
 would indicate that vchkpw is being called from courier-imap. Since
 qmail-pop3d invokes vchkpw and works, I'm puzzled. I'm afraid I don't
 know where to look log-wise.

 thanks for any hints.

 -ted






Re: [vchkpw] imap before smtp

2003-09-11 Thread Ken Jones
The preauthvchkpw.c module needs to be modified.
The problem is, when a user attempts to authenticate,
if their user name exists on the system then it will
open up relay. However, at that point in the code the
user has not been authenticated. I attempted to fix
this before but became confused on which function
is called from what file. It's a bit obtuse for me. 

an quick hack could be to verify the password at
that point, then open up relay on a valid password.

The real fix would be to trace the fucntions and
open up relay after password verification.

Perhaps someone could figure it out.

Ken Jones


On Thursday 11 September 2003 2:35 pm, Charles Sprickman wrote:
 This is a good FAQ item, for when we have a FAQ.

 Mr. Sam has disabled the imap-before-smtp function in the authvchkpw code.
 I've looked at the courier archives, and there's no explanation from him
 as to what the problem is...  Just lots of questions. :)

 Bill's suggestion might not work, as he #undefs the value.  In your
 courier source dir, go into the authlib dir and open preauthvchkpw.c
 for editing.  Look for a line like this:

 #undef HAVE_OPEN_SMTP_RELAY

 Go ahead and change that #undef to #define and it will work properly.
 I can't comment on what the security concerns are, because I don't know
 what they are.  It does work however.

 Charles

 On Thu, 11 Sep 2003, ted wrote:
  I've got a LWQ-style qmail configuration, plus vpopmail 5.3.27 and
  courier-imap-2.1.1.20030902.  I have  roaming users enabled (as well as
  qmail-ext), and  POP3  before SMTP works perfectly (using  qmail-pop3d).
 
  IMAP also seems to work just fine, but it does not update open-smtp. My
  workaround of creating a separate POP account to POP in without
  retrieving msgs allows me to send via IMAP, but is obviously not an
  ideal solution. (I'm using Thunderbird .2).
 
  I've installed courier-imap numerous times (with different releases up
  to 20030902), both with authdaemon enabled as well as disabled. In both
  cases, the results are the same (meaning that I can read mail but not
  relay).
 
  Perhaps my understanding is wrong, but I was under the impression that
  since these are virtual domains I'm having trouble with (all my domains
  are virtual), the fact that I am able to read mail at all under IMAP
  would indicate that vchkpw is being called from courier-imap. Since
  qmail-pop3d invokes vchkpw and works, I'm puzzled. I'm afraid I don't
  know where to look log-wise.
 
  thanks for any hints.
 
  -ted




Re: [vchkpw] imap before smtp

2003-09-11 Thread Paul Theodoropoulos
mr. varshavchik addressed this on the sqwebmail mailing list:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg06068.html

it's a lovely little rant.

At 12:35 PM 9/11/2003, Charles Sprickman wrote:
This is a good FAQ item, for when we have a FAQ.

Mr. Sam has disabled the imap-before-smtp function in the authvchkpw code.
I've looked at the courier archives, and there's no explanation from him
as to what the problem is...  Just lots of questions. :)
Bill's suggestion might not work, as he #undefs the value.  In your
courier source dir, go into the authlib dir and open preauthvchkpw.c
for editing.  Look for a line like this:
#undef HAVE_OPEN_SMTP_RELAY

Go ahead and change that #undef to #define and it will work properly.
I can't comment on what the security concerns are, because I don't know
what they are.  It does work however.
Charles

On Thu, 11 Sep 2003, ted wrote:

 I've got a LWQ-style qmail configuration, plus vpopmail 5.3.27 and
 courier-imap-2.1.1.20030902.  I have  roaming users enabled (as well as
 qmail-ext), and  POP3  before SMTP works perfectly (using  qmail-pop3d).

 IMAP also seems to work just fine, but it does not update open-smtp. My
 workaround of creating a separate POP account to POP in without
 retrieving msgs allows me to send via IMAP, but is obviously not an
 ideal solution. (I'm using Thunderbird .2).

 I've installed courier-imap numerous times (with different releases up
 to 20030902), both with authdaemon enabled as well as disabled. In both
 cases, the results are the same (meaning that I can read mail but not
 relay).

 Perhaps my understanding is wrong, but I was under the impression that
 since these are virtual domains I'm having trouble with (all my domains
 are virtual), the fact that I am able to read mail at all under IMAP
 would indicate that vchkpw is being called from courier-imap. Since
 qmail-pop3d invokes vchkpw and works, I'm puzzled. I'm afraid I don't
 know where to look log-wise.

 thanks for any hints.

 -ted



Paul Theodoropoulos
http://www.anastrophe.com




Re: [vchkpw] imap before smtp

2003-09-11 Thread ted
Charles, Bill, Ken, thanks for the quick responses. Indeed Bill's 
suggestion doesn't do the trick for my configuration. Charles, I'd make 
your suggested change, but am concerned about Ken's further input on the 
topic. I don't suppose an older version of Courier-IMAP is the answer?

-ted

Ken Jones wrote:

The preauthvchkpw.c module needs to be modified.
The problem is, when a user attempts to authenticate,
if their user name exists on the system then it will
open up relay. However, at that point in the code the
user has not been authenticated. I attempted to fix
this before but became confused on which function
is called from what file. It's a bit obtuse for me. 

an quick hack could be to verify the password at
that point, then open up relay on a valid password.
The real fix would be to trace the fucntions and
open up relay after password verification.
Perhaps someone could figure it out.

Ken Jones

On Thursday 11 September 2003 2:35 pm, Charles Sprickman wrote:
 

This is a good FAQ item, for when we have a FAQ.

Mr. Sam has disabled the imap-before-smtp function in the authvchkpw code.
I've looked at the courier archives, and there's no explanation from him
as to what the problem is...  Just lots of questions. :)
Bill's suggestion might not work, as he #undefs the value.  In your
courier source dir, go into the authlib dir and open preauthvchkpw.c
for editing.  Look for a line like this:
#undef HAVE_OPEN_SMTP_RELAY

Go ahead and change that #undef to #define and it will work properly.
I can't comment on what the security concerns are, because I don't know
what they are.  It does work however.
Charles

On Thu, 11 Sep 2003, ted wrote:
   

I've got a LWQ-style qmail configuration, plus vpopmail 5.3.27 and
courier-imap-2.1.1.20030902.  I have  roaming users enabled (as well as
qmail-ext), and  POP3  before SMTP works perfectly (using  qmail-pop3d).
IMAP also seems to work just fine, but it does not update open-smtp. My
workaround of creating a separate POP account to POP in without
retrieving msgs allows me to send via IMAP, but is obviously not an
ideal solution. (I'm using Thunderbird .2).
I've installed courier-imap numerous times (with different releases up
to 20030902), both with authdaemon enabled as well as disabled. In both
cases, the results are the same (meaning that I can read mail but not
relay).
Perhaps my understanding is wrong, but I was under the impression that
since these are virtual domains I'm having trouble with (all my domains
are virtual), the fact that I am able to read mail at all under IMAP
would indicate that vchkpw is being called from courier-imap. Since
qmail-pop3d invokes vchkpw and works, I'm puzzled. I'm afraid I don't
know where to look log-wise.
thanks for any hints.

-ted
 



 






Re: [vchkpw] imap before smtp

2003-09-11 Thread Tom Collins
On Thursday, September 11, 2003, at 01:06  PM, Paul Theodoropoulos 
wrote:
mr. varshavchik addressed this on the sqwebmail mailing list:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg06068.html

it's a lovely little rant.
Does someone have an email address for him?  I'm trying 
[EMAIL PROTECTED], hopefully it will get to him.

It would be nice to let him know that the current dev version of 
vpopmail addresses both of his concerns.

As of vpopmail 5.3.8, the buffers are cleared properly and the 
authdaemon has worked just fine.  A beta 5.2.2 release is on 
SourceForge with the same fix in place.

As of vpopmail 5.3.27, mysql login information is stored in an external 
file and libvpopmail has 644 permissions, making it possible to link it 
into courier-imap without having to run as root.

If there are any further problems that prevent courier-imap from 
working with vpopmail, we'd love to hear about them (either here or via 
bug reports to the SourceForge project).

--
Tom Collins
[EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] imap before smtp

2003-09-11 Thread Bill Shupp
On Thursday, September 11, 2003, at 01:14  PM, ted wrote:

Charles, Bill, Ken, thanks for the quick responses. Indeed Bill's 
suggestion doesn't do the trick for my configuration. Charles, I'd 
make your suggested change, but am concerned about Ken's further input 
on the topic. I don't suppose an older version of Courier-IMAP is the 
answer?
I'm curious.. if you have clients capable of IMAP, are they not capable 
of SMTP-AUTH?  IMO, this is a better solution than roaming users.

Regards,

Bill




[vchkpw] IMAP and Pop3

2003-09-11 Thread Geoff Byers
For some reason my pop3d has stopped working. It still running but 
fails to deliver my mail :(. IMAP gets the messages fine but pop3 
refuses to send them.  Any ideas or guesses as to why this is would be 
very helpful, thanks :D

Geoff




Re: [vchkpw] IMAP and Pop3

2003-09-11 Thread Jeremy Kitchen
On Thu, 2003-09-11 at 22:53, Geoff Byers wrote:
 For some reason my pop3d has stopped working. It still running but 
 fails to deliver my mail :(. IMAP gets the messages fine but pop3 
 refuses to send them.  Any ideas or guesses as to why this is would be 
 very helpful, thanks :D

'refuses to send them'  not very helpful.  you get an error message?

also, make sure that the message you are trying to retrieve are in your
inbox, because pop3 doesn't have the capability to look at anything
else.

-Jeremy

-- 
Jeremy Kitchen
Systems Administrator
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE




Re: [vchkpw] IMAP/POP3 errors

2003-07-31 Thread alucard
Hi there

Im Using qmail's POP3d and Vpopmail... and I still get the same erroos as
soon as I go back to POP3 after logging into IMAP for the first time...

Thanx for your help...

RHCE/Oracle DBA Juan F. Hernández
Administrador/Programador de Sistemas Linux/Unix/PHP
Tel: 58212-6902445
Cel: 0412-9784303
MacPC Station C.A.
www.macpcstation.com



 On Wed, 30 Jul 2003, Juan Hernandez wrote:

 The problem comes when one user logs into the server thru IMAP using
 webmail and then if he lf he logs back again thru pop3 will most of the
 time get errors, Is it because of all the directories that IMAP creates?

 Probably not.  What pop server are you using?  Qmail's popper or the
 Courier popper?  How are you starting the popd?  What are the errors the
 user gets when using pop?

 Is it because I have to apply a patch or something?? Is it because you
 either have to log all the time with IMAP or POP3 and not both??

 Probably not, you should be able to use both imap/pop at the same time,
 Maildirs should not have a problem with that at all.

 Charles

 Thanx a lot for your help and expect more mails in this great mailing
 list

 RHCE/Oracle DBA Juan F. Hernández
 Administrador/Programador de Sistemas Linux/Unix/PHP
 Tel: 58212-6902445
 Cel: 58412-9784303
 MacPC Station C.A.
  http://www.macpcstation.com/ www.macpcstation.com









Re: [vchkpw] IMAP/POP3 errors

2003-07-31 Thread Ajai Khattri
[EMAIL PROTECTED] wrote:

Im Using qmail's POP3d and Vpopmail... and I still get the same erroos as
soon as I go back to POP3 after logging into IMAP for the first time...
 

What is the IMAP server?

--
Aj.
Systems Administrator / Developer




Re: [vchkpw] IMAP/POP3 errors

2003-07-31 Thread Evren Yurtesen
there was a bug in vpopmail's olders versions,
which version of vpopmail is this? update to latest version
if possible try with the latest development version

Evren

On Thu, 31 Jul 2003, Ajai Khattri wrote:

 [EMAIL PROTECTED] wrote:
 
 Im Using qmail's POP3d and Vpopmail... and I still get the same erroos as
 soon as I go back to POP3 after logging into IMAP for the first time...
   
 
 What is the IMAP server?
 
 -- 
 Aj.
 Systems Administrator / Developer
 
 
 
 




Re: [vchkpw] IMAP/POP3 errors

2003-07-30 Thread spork
On Wed, 30 Jul 2003, Juan Hernandez wrote:

 The problem comes when one user logs into the server thru IMAP using
 webmail and then if he lf he logs back again thru pop3 will most of the
 time get errors, Is it because of all the directories that IMAP creates?

Probably not.  What pop server are you using?  Qmail's popper or the
Courier popper?  How are you starting the popd?  What are the errors the
user gets when using pop?

 Is it because I have to apply a patch or something?? Is it because you
 either have to log all the time with IMAP or POP3 and not both??

Probably not, you should be able to use both imap/pop at the same time,
Maildirs should not have a problem with that at all.

Charles

 Thanx a lot for your help and expect more mails in this great mailing
 list

 RHCE/Oracle DBA Juan F. Hernández
 Administrador/Programador de Sistemas Linux/Unix/PHP
 Tel: 58212-6902445
 Cel: 58412-9784303
 MacPC Station C.A.
  http://www.macpcstation.com/ www.macpcstation.com





[vchkpw] IMAP dot folders

2003-03-26 Thread Wil Hatfield - HVHM Customer Care
List,

I know this could be a post for the Courier list but since it was brought up
recently in here I figure I may as well go where I know someone has the
answers.

What dot folders such as .Trash and .Sent does Courier-IMAP use?
Does it create these as they are needed or used?

I ask this because I notice that there aren't any created automatically when
creating a new email account.

Your time is appreciated,

Wil






RE: [vchkpw] IMAP dot folders

2003-03-26 Thread Wil Hatfield - HVHM Customer Care
I don't know that is why I asked?

If Squirrel Mail does use IMAP to create them does that mean that other
webmail/IMAP systems would also create them since IMAP is doing the
creating?

Wil

 -Original Message-
 From: Ajai Khattri [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 26, 2003 12:15 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] IMAP dot folders


 Wil Hatfield - HVHM Customer Care wrote:

  What dot folders such as .Trash and .Sent does Courier-IMAP use?
  Does it create these as they are needed or used?
 
  I ask this because I notice that there aren't any created
 automatically when
  creating a new email account.

 Doesn't SquirrelMail create these using IMAP?

 --
 Aj.
 Systems Administrator / Developer






Re: [vchkpw] IMAP dot folders

2003-03-26 Thread Charles Sprickman
On Wed, 26 Mar 2003, Ajai Khattri wrote:

 I found that the folder names corresponded exactly with the folder names
 in SquirrelMail. Since SquirrelMail uses IMAP, Im assuming it told
 courier-imap to make these folders.

And the fun part starts when you throw multiple mail clients into the mix.
Pine likes making sent-mail, sqwebmail I think makes something else,
Mail.app has yet another scheme...  It's a shame the IMAP spec doesn't
include a standard naming scheme for standard mailboxes.

C

 --
 Aj.
 Systems Administrator / Developer






RE: [vchkpw] IMAP dot folders

2003-03-26 Thread Wil Hatfield - HVHM Customer Care

There's the answer to my question! So IMAP is only doing the creating
because of the scheme passed down from the IMAP client. And since I don't
use Squirrel or SQWebmail it isn't creating the dot files everyone speaks
of.  Thank you!

Wil Hatfield

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Charles
 Sprickman
 Sent: Wednesday, March 26, 2003 2:36 PM
 To: Ajai Khattri
 Cc: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] IMAP dot folders


 On Wed, 26 Mar 2003, Ajai Khattri wrote:

  I found that the folder names corresponded exactly with the folder names
  in SquirrelMail. Since SquirrelMail uses IMAP, Im assuming it told
  courier-imap to make these folders.

 And the fun part starts when you throw multiple mail clients into the mix.
 Pine likes making sent-mail, sqwebmail I think makes something else,
 Mail.app has yet another scheme...  It's a shame the IMAP spec doesn't
 include a standard naming scheme for standard mailboxes.

 C

  --
  Aj.
  Systems Administrator / Developer
 
 
 





[vchkpw] IMAP and OE issue

2002-12-19 Thread Marcin Soltysiak
Hi all,

I got problem with Outlook Express and qmail+vpopmail+courier-imap.

Ocasionally it happens that new message is marked as Message is no longer
available and then the on;ly way to read it is to get via other reader.

Any hints?

Thx
Solt





Re: [vchkpw] IMAP and OE issue

2002-12-19 Thread Kit Halsted
At 8:14 PM +0100 12/19/02, Marcin Soltysiak wrote:

Hi all,

I got problem with Outlook Express and qmail+vpopmail+courier-imap.

Ocasionally it happens that new message is marked as Message is no longer
available and then the on;ly way to read it is to get via other reader.

Any hints?


Umm, don't use OE?

(Sorry, I just couldn't resist.)

-Kit
--
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.
-Benjamin Franklin

...qui desiderat pacem, praeparet bellum
(...if you would have peace, be prepared for war)
-Flavius Vegetius Renatus



Re: [vchkpw] IMAP and OE issue

2002-12-19 Thread Rick Romero
On Thu, 2002-12-19 at 13:14, Marcin Soltysiak wrote:
 Hi all,
 
 I got problem with Outlook Express and qmail+vpopmail+courier-imap.
 
 Ocasionally it happens that new message is marked as Message is no longer
 available and then the on;ly way to read it is to get via other reader.
 
 Any hints?

Not any good ones.  I had the same (random) problem with Evolution
reading messages via IMAP from a Mercury/32 server.  The latest
Evolution doesn't have this problem.  Have you tried newer OE?  
(OE 6 comes with IE 6)

Rick


 Thx
 Solt






Re: [vchkpw] imap authentication fails SOMETIMES with authvchkpw (vpopmail)

2002-12-17 Thread Bill Shupp
On Tuesday, December 17, 2002, at 03:59  PM, Alex Martin wrote:


Hello,

I followed these instructions:
http://hibrida.interaksi.web.id/man/qmail/step-dnata.html

to set everything up, then used the following for courier-imap 
installation.

http://www.inter7.com/courierimap/INSTALL.html#install

Everything works great. sqwebmail, POP3, smtp, IMAP even.

_Except:_ randomly when using an IMAP client, the
server authentication fails.

It seems that when I restart the authdaemon, it cures the problem, 
though
temporarily.

Don't use authdaemon.

Bill Shupp





RE: [vchkpw] imap authentication fails SOMETIMES with authvchkpw (vpopmail)

2002-12-17 Thread Michael Bowe


 -Original Message-
 From: Caffeinate The World [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 18 December 2002 12:43 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] imap authentication fails SOMETIMES with
 authvchkpw (vpopmail)
 
 
 
 [...]
   _Except:_ randomly when using an IMAP client, the
   server authentication fails.
  
   It seems that when I restart the authdaemon, it cures the 
 problem, 
   though
   temporarily.
  
  Don't use authdaemon.
 
 Why not? Is it not reliable? If so, what's wrong with it?

Yes there is some sort of clash with vpopmail and courier-imap's authdaemon

If you use authdaemon, it will usually work for a short period and then stop responding

So, to ensure things will work reliabily, you should compile courier-imap with :

 --without-authdaemon --with-authvchkpw

Michael.




Re: [vchkpw] IMAP Relay export vpopmail

2002-12-11 Thread Miguel A. Argañaraz² ®
Run this before ./configure  make

export CFLAGS=-DHAVE_OPEN_SMTP_RELAY


Cheers,
// Mitch²®

- Original Message - 
From: Remo Mattei [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 4:05 AM
Subject: [vchkpw] IMAP Relay export vpopmail


 Hi Guys I can never remember how to set the variable before setting Imap up
 so that it works with vpopmail user relay agent.
 
 Thanks, 
 Remo   
 
 





[vchkpw] IMAP Relay export vpopmail

2002-12-10 Thread Remo Mattei
Hi Guys I can never remember how to set the variable before setting Imap up
so that it works with vpopmail user relay agent.

Thanks, 
Remo   





[vchkpw] IMAP connection disconnects if no domain is specified

2002-12-02 Thread Garrett Mead
I am forwarding this to the vpopmail group as I was told that it does not 
apply to the courier-imap group. Any help would be appreciated. 


Good day,
 I just installed Vpopmail 5.2 and Courier-IMAP 1.3.10. When I telnet to 
the imap port to test, all logins (valid or invalid) result in a 
disconnection. 
I do not get an error message, just a Connection closed by foreign host.

Here is what it looks like:
telnet localhost 143
* OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc.  See 
COPYING for distribution information.
a login user1 test
Connection closed by foreign host.

However, if I specify [EMAIL PROTECTED] as the login it works ok:

* OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc.  See 
COPYING for distribution information.
a login [EMAIL PROTECTED] test
a OK LOGIN Ok.

I have verified that vpopmail uses a default domain by login in to qmail's 
pop3 
daemon:

[root@F150 src]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK 16177.1038256384@F150
user user1 pass test
+OK 

I have never had a problem in the past with this. How do I get courier-imap to 
use the default domain for logins without domains entered?


My compile options for vpopmail were:
./configure --enable-roaming-users=y --enable-mysql=y 
--enable-defaultquota=NOQUOTA --enable-default-domain=mydomain.com

My compile options for Courier-IMAP were:
./configure --with-authvchkpw --without-authdaemon --without-authcustom 
--without-authuserdb --without-authpam --without-authldap --without-authpwd 
--without-authshadow --without-authmysql --without-authcram 

Thanks for your help!

  -- Garrett

- End forwarded message -


  -- Garrett

- End forwarded message -


  -- Garrett


msg10016/bin0.bin
Description: PGP Public Key


PGP_Public_Key
Description: PGP Public Key


PGP_Public_Key
Description: PGP Public Key


Re: [vchkpw] IMAP + vipmap

2002-11-02 Thread Bill Shupp
On Friday, November 1, 2002, at 05:54  AM, Andre Fortin wrote:


I'm still having a hard time with this..

courier imap has been recompiled, and so has vpopmail.  I need to be 
able to
use vipmap'd domains with both POP3 and IMAP.  The POP3 sessions work 
fine;
The problem is the imap sessions still use the --enable-default-domain
domain instead of the one specified using vipmap
and --enable-ip-alias-domains .. I've tried using Bill Shupp's patch 
but it
didnt change anything.. Perhaps I'm missing something that was implied 
but
not said?

The only problem was the IP format, and it's in the host_in_locals() 
function in the vpopmail library.  My patch fixes it, as tested by Rick 
and myself.  One thing you might try, for testing, is to use MySQL auth 
and turn on logging in MySQL.  This way, you can see the query going to 
the database.  That's how I was able to see what IP was being used in 
the query of the ip_alias_map table, like so:

96 Query   select domain from ip_alias_map where ip_addr = 
127.0.0.1

That should tell you exactly what's happening, and help you figure out 
the problem.

Regards,

Bill Shupp




RE: [vchkpw] IMAP + vipmap

2002-11-01 Thread Andre Fortin
I'm still having a hard time with this..

courier imap has been recompiled, and so has vpopmail.  I need to be able to
use vipmap'd domains with both POP3 and IMAP.  The POP3 sessions work fine;
The problem is the imap sessions still use the --enable-default-domain
domain instead of the one specified using vipmap
and --enable-ip-alias-domains .. I've tried using Bill Shupp's patch but it
didnt change anything.. Perhaps I'm missing something that was implied but
not said?

Andre

-Original Message-
From: Bill Shupp [mailto:hostmaster;shupp.org]
Sent: Thursday, October 31, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] IMAP + vipmap


On Thursday, October 31, 2002, at 07:51  AM, Andre Fortin wrote:

 Heya..

 I'm using 5.2.1 still..  I used the code I got from Rick on the list
 and put
 it into vpopmail.c .. The section in question now looks like this:

 #ifdef IP_ALIAS_DOMAINS
 tmpstr = getenv(TCPLOCALIP);

   /* courier-imap uses IPv6 */
   if ( tmpstr != NULL   tmpstr[0] == ':') {
 tmpstr +=2;
 while(*tmpstr!=':') ++tmpstr;
 ++tmpstr;
   }


 memset(host,0,156);
 if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
 if ( strlen(host)  0 ) {
 strncpy( domain, host, 156 );
 }
 return;
 }
 #endif


 Does this look ok? I re-compiled/make install'd vpopmail, but the
 vipmaps
 still dont seem to be working.. Maybe I'm missing something obvious..
 Let me
 know if you see any problems with the way i put the code in, thanks :)

You need to recompile courier imap.  Please keep posts on the list.

Regards,

Bill Shupp







[vchkpw] IMAP + vipmap

2002-10-31 Thread Andre Fortin
Hi,

I have --enable-ip-alias-domains=y, and vipmap for a domain working fine via
pop3 using vchkpw.  I have courier-imapd running, and authvchkpw is being
used.  Should authvchkpw understand IP alias maps?

I've noticed this question has been asked before, but I don't see an answer
in the archives.. anyone have any more information?


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266






Re: [vchkpw] IMAP + vipmap

2002-10-31 Thread Bill Shupp
On Thursday, October 31, 2002, at 07:27  AM, Andre Fortin wrote:


Hi,

I have --enable-ip-alias-domains=y, and vipmap for a domain working 
fine via
pop3 using vchkpw.  I have courier-imapd running, and authvchkpw is 
being
used.  Should authvchkpw understand IP alias maps?

I've noticed this question has been asked before, but I don't see an 
answer
in the archives.. anyone have any more information?

I posted a patch to vpopmail.c last week.  Should be in the archives 
somewhere.

Bill




Re: [vchkpw] IMAP + vipmap

2002-10-31 Thread Rick Macdougall
Hi,

Bill Shupp has a patch to fix the problem.  Courier is send IPv6 instead of
IPv4, so the vipmap doesn't work.  I don't think it's in the archives
because I think he sent it directly to me.  I've included it below to make
sure it gets in this time.  (Thanks Bill!!!, hope you enjoyed that virtual
beer!)

Patches cleanly against 5.3.11 but I had to add it manually to 5.3.8

--- ../vpopmail-5.3.11/vpopmail.c   Wed Oct 23 13:01:40 2002
+++ vpopmail.c  Thu Oct 24 17:38:40 2002
@@ -1668,6 +1668,14 @@

  #ifdef IP_ALIAS_DOMAINS
tmpstr = getenv(TCPLOCALIP);
+
+  /* courier-imap uses IPv6 */
+  if ( tmpstr != NULL   tmpstr[0] == ':') {
+tmpstr +=2;
+while(*tmpstr!=':') ++tmpstr;
+++tmpstr;
+  }
+
memset(host,0,156);
if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
  if ( strlen(host)  0 ) {


Regards,

Rick

- Original Message -
From: Andre Fortin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 31, 2002 10:27 AM
Subject: [vchkpw] IMAP + vipmap


Hi,

I have --enable-ip-alias-domains=y, and vipmap for a domain working fine via
pop3 using vchkpw.  I have courier-imapd running, and authvchkpw is being
used.  Should authvchkpw understand IP alias maps?

I've noticed this question has been asked before, but I don't see an answer
in the archives.. anyone have any more information?


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266








Re: [vchkpw] IMAP + vipmap

2002-10-31 Thread Bill Shupp
On Thursday, October 31, 2002, at 07:51  AM, Andre Fortin wrote:


Heya..

I'm using 5.2.1 still..  I used the code I got from Rick on the list 
and put
it into vpopmail.c .. The section in question now looks like this:

#ifdef IP_ALIAS_DOMAINS
tmpstr = getenv(TCPLOCALIP);

  /* courier-imap uses IPv6 */
  if ( tmpstr != NULL   tmpstr[0] == ':') {
tmpstr +=2;
while(*tmpstr!=':') ++tmpstr;
++tmpstr;
  }


memset(host,0,156);
if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
if ( strlen(host)  0 ) {
strncpy( domain, host, 156 );
}
return;
}
#endif


Does this look ok? I re-compiled/make install'd vpopmail, but the 
vipmaps
still dont seem to be working.. Maybe I'm missing something obvious.. 
Let me
know if you see any problems with the way i put the code in, thanks :)

You need to recompile courier imap.  Please keep posts on the list.

Regards,

Bill Shupp





RE: [vchkpw] IMAP + vipmap

2002-10-31 Thread Andre Fortin
I've recompiled courier-imap, but I'm still getting the same results.. Is
there anything special I need to do when compiling/configuring it?

Andre

-Original Message-
From: Bill Shupp [mailto:hostmaster;shupp.org]
Sent: Thursday, October 31, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] IMAP + vipmap


On Thursday, October 31, 2002, at 07:51  AM, Andre Fortin wrote:

 Heya..

 I'm using 5.2.1 still..  I used the code I got from Rick on the list
 and put
 it into vpopmail.c .. The section in question now looks like this:

 #ifdef IP_ALIAS_DOMAINS
 tmpstr = getenv(TCPLOCALIP);

   /* courier-imap uses IPv6 */
   if ( tmpstr != NULL   tmpstr[0] == ':') {
 tmpstr +=2;
 while(*tmpstr!=':') ++tmpstr;
 ++tmpstr;
   }


 memset(host,0,156);
 if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
 if ( strlen(host)  0 ) {
 strncpy( domain, host, 156 );
 }
 return;
 }
 #endif


 Does this look ok? I re-compiled/make install'd vpopmail, but the
 vipmaps
 still dont seem to be working.. Maybe I'm missing something obvious..
 Let me
 know if you see any problems with the way i put the code in, thanks :)

You need to recompile courier imap.  Please keep posts on the list.

Regards,

Bill Shupp