[vchkpw] Rebuilding vpasswd?

2003-12-23 Thread Shaun Reitan
How can i rebuild a users vpasswd.cdb from vpasswd with out using any of the
vpop utilitys?  I assume i can do this some how with the cdb util?  i have
tryed the following and this is the error i get...

---[SNIP]
cdbmake vpasswd.cdb vpasswd.tmp  vpasswd
cdbmake: fatal: unable to read input: bad format
---

I tryed cdbmake-sv as well and it doesnt error out but courier imap has
issues it seams with the cdb file.  How can rebuild it?


--
Best Regards,

Shaun Reitan
Account Specialist
www.NDCHost.com
www.cPlicensing.net





Re: [vchkpw] Rebuilding vpasswd?

2003-12-23 Thread Rick Widmer


Shaun Reitan wrote:

How can i rebuild a users vpasswd.cdb from vpasswd with out using any of the
vpop utilitys?  I assume i can do this some how with the cdb util?  i have
tryed the following and this is the error i get...


Why?

If you remove the .cdb file it will be automagically recreated the next 
time one of the vpopmail programs needs to use it.  Much easier...

Rick



[vchkpw] [not-OT] Pop3 auth and Courier-Imap (pop3s)

2003-12-23 Thread Andrea Riela
 I'm trying to compile that, but I've a problem:

SOLVED.

My steps:
curl -O
http://aleron.dl.sourceforge.net/sourceforge/courier/courier-imap-2.2.1.tar.
bz2
bzip2 -cd courier-imap-2.2.1.tar.bz2 | tar xf -
cd courier-imap-2.2.1/
./configure --prefix=/usr/local/courier-imap --disable-root-check
--without-authpam --without-authldap --without-authpwd --without-authmysql
--without-authpgsql --without-authshadow --without-authuserdb
--without-authcustom --without-authcram --without-authdaemon
--with-authvchkpw --with-ssl --with-piddir=/var/run
gmake
gmake install
gmake install-configure

QUESTION

My question now is: how could I say Courier, use vchkpw_ssl and not
vchkpw? It's possible to change the path to vchkpw in the Courier-Imap
config, or I've to change the vchkpw in vchkpw_nossl and my
/var/qmail/supervise/qmail-pop3d/run script?

Thanks for your patience and support
Regards
Andrea



Re: [vchkpw] [not-OT] Pop3 auth and Courier-Imap (pop3s)

2003-12-23 Thread Tom Collins
On Dec 23, 2003, at 6:44 AM, Andrea Riela wrote:
QUESTION

My question now is: how could I say Courier, use vchkpw_ssl and not
vchkpw? It's possible to change the path to vchkpw in the Courier-Imap
config, or I've to change the vchkpw in vchkpw_nossl and my
/var/qmail/supervise/qmail-pop3d/run script?
If you're using courier, it will be harder to accomplish your goals.  
Courier-IMAP links libvpopmail in instead of using vchkpw.  So, like 
Jeremy explained in another email, you'll have to do the following:

Configure, make and install vpopmail without roaming user support.
Configure, make and install courier-imap.  Rename this copy to 
something like courier-imap-noroaming.
`make clean` your vpopmail source, reconfigure, make and install 
without roaming user support.
`make clean` your courier-imap source, reconfigure, make and install.

Now, heavily edit /usr/lib/courier-imap/libexec/imapd.rc so it starts 
the noroaming version for non-SSL connections, and the other version 
for SSL connections.  It won't be easy -- you're going to have to do a 
lot of tweaking to that RC file.  It might be easier to switch to 
another IMAP server (like Binc), but I really don't know.

You may want to reconsider your reasons for setting this policy.  It 
will be difficult to maintain (if you ever upgrade vpopmail, you'll 
have to recompile it and courier twice).  It will probably lead to more 
support calls as well.  Consider SMTP AUTH with CRAM-MD5 (which doesn't 
work at the moment, but should hopefully once I apply a patch to the 
last release).

--
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] [not-OT] Pop3 auth

2003-12-23 Thread Andrea Riela
 If you're using courier, it will be harder to accomplish your goals.  
 Courier-IMAP links libvpopmail in instead of using vchkpw.  So, like 
 Jeremy explained in another email, you'll have to do the following:

Ok, I reconside my policy.
I've to do this: users pop3 with ssl auth could relay their emails with my
smtp server, users pop3 without ssl auth no.
I've created two vchkpw binaries, but I need two daemons, pop3d and pop3ds.
The pop3d daemon that I use is the qmail pop3d; as pop3ds, I suppose
Courier-Imap pop3d-ssl is the solution.

It's a wrong policy?
Thanks for your patience and support
Regards
Andrea



[vchkpw] Re: Rebuilding vpasswd?

2003-12-23 Thread Shaun
Ok, so if it doesnt exist and i check email it is rebuilt... but is
courier-imap rebuilding it or is vchkpw?  also, when it rebuilds it, it
creates vpasswd.cdb with 644 permissions... i want 640 or even 600, why is
it giving global read permissions!

I still would like to know how to rebiuld the vpasswd by hand... with out
vpopmail tools... if it's a cdb i must be able to do it via cdb's tools.


--
~Shaun
Rick Widmer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


 Shaun Reitan wrote:

  How can i rebuild a users vpasswd.cdb from vpasswd with out using any of
the
  vpop utilitys?  I assume i can do this some how with the cdb util?  i
have
  tryed the following and this is the error i get...


 Why?

 If you remove the .cdb file it will be automagically recreated the next
 time one of the vpopmail programs needs to use it.  Much easier...


 Rick







[vchkpw] Re: [qmailadmin] Differences in html templates

2003-12-23 Thread Tom Collins
On Dec 23, 2003, at 4:05 AM, Rick Widmer wrote:
The real reason I want to move those items is so I can also move all 
the /head and body... tags into the header.  Once you do that you 
can place content above and/or around the qmailadmin content from 
header.html.  Want your logo at the top of every qmailadmin page?  No 
problem...  just put it in the header and it appears above them all. 
Want links on the left like the rest of the site - start a table in 
header with the links in the leftmost column, then start a column for 
qmailadmin.  Finally in the footer, close the cell, row and table.

I've done it here, and it seems to be working just fine.  If you are 
interested I can send a patch.
Please send the patch directly to me, or post it to the patch tracker 
on SourceForge.  Since we're in rc1 phase, I'll probably wait to apply 
it to the first development release (1.3.0), and if no one reports 
problems, port it back to 1.2.1.

In header.html we have titleQmailAdmin ##H/title but when I look 
in template.c I don't find a case for 'H'.  I haven't ever seen 
anything but 'QmailAdmin' in the title.  Am I missing something?  
Should the ##H be removed from header.html?
In 1.0.6, ##H wasn't used.  I don't know what it was supposed to be.  
We can remove it, or perhaps switch it to ##D.

Finally, in template.c the case 'z' doesn't have a comment above it. 
(about line 608).  It appears this is a special case domain name for 
the login page that fills in the domain name from dom=, or possibly 
DOMAIN_AUTOFILL.  I can try to supply a comment, but someone else 
probably has a better idea what to put there than I do.
I've added a comment in the CVS version.

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