Re: [vchkpw] LDAP setup howto

2002-12-06 Thread Jens Jahr
Zitat von Remo Mattei <[EMAIL PROTECTED]>:

> Hi guys, does anyone have an howto on how to setup vpopmail + mysql +
> ldap + qmailadmin? 
> Thanks


Hi,

I have an LDAP-Howto. It is up to date and should
work with latest OpenLDAP.

Read it at:

http://www.tiski.de/linux/patches/vpopmail/LDAP-VPOPMAIL.html

There are also additional patches to make the LDAP-code work.
Download them at:

http://www.tiski.de/linux/patches/vpopmail/patch-ldap-latest.gz

Enjoy ..

Cheers
Jens


 




Re: [vchkpw] LDAP setup howto

2002-12-06 Thread Boris Manojlovic
Ok first of Hi to all

As you know I'm (was better to say) a main developer of ldap module for
vpopmail as that I would ask Bill Shupp to commit these changes into
vpopmail base (and I send you small patch allready but was never commited)

so anyway  Jens Jahr when you created your howto you expeled MD5 support
Ok I must confess that my support was not so good for MD5 but anyway with
tweaking of openldap slapd we can get REAL MD5 hash system `
Anyway I think job is still not done with LDAP module but first we DO need

Bill Shup to commit your changes to base source tree


Bye

-- man slapd.conf -
   password-crypt-salt-format 
  Specify the format of the salt passed  to  crypt(3)
  when generating{CRYPT}passwords(see
  password-hash) during processing of  LDAP  Password
  Modify Extended Operations (RFC 3062).
---

> Zitat von Remo Mattei <[EMAIL PROTECTED]>:
...






[vchkpw] vpopmail no longer using number/letter directory structure

2002-12-06 Thread Nick Lomonte
Running version 5.3.8, but ever since a few upgrades back (i dont
remember how many) vpopmail has stopped adding users and domains to
number/letter subdirectories like it used to. We've added hundreds of
users, and it always puts them in /home/vpopmail/domains/domain.com/user
instead of /home/vpopmail/domains/3/domain.com/A/user

Is this no longer a feature?


-- 
Nick Lomonte
Network Engineer
Eonet
[EMAIL PROTECTED]
409.833.1700





Re: [vchkpw] vpopmail no longer using number/letter directory structure

2002-12-06 Thread Ken Jones
On Friday 06 December 2002 10:31 am, Nick Lomonte wrote:
> Running version 5.3.8, but ever since a few upgrades back (i dont
> remember how many) vpopmail has stopped adding users and domains to
> number/letter subdirectories like it used to. We've added hundreds of
> users, and it always puts them in /home/vpopmail/domains/domain.com/user
> instead of /home/vpopmail/domains/3/domain.com/A/user
>
> Is this no longer a feature?

No. That code is still in there. 

Ken




Re: [vchkpw] vpopmail no longer using number/letter directory structure

2002-12-06 Thread Matthias Trevarthan
It's the active directory structure code that 
causes that directory naming scheme. Is there 
anything in your installation that might 
interfere with the active directory structure 
code? Read about it in the INSTALL and other text 
files that come with the distribution.

On Friday 06 December 2002 11:35, Ken Jones wrote:
> On Friday 06 December 2002 10:31 am, Nick 
Lomonte wrote:
> > Running version 5.3.8, but ever since a few
> > upgrades back (i dont remember how many)
> > vpopmail has stopped adding users and domains
> > to number/letter subdirectories like it used
> > to. We've added hundreds of users, and it
> > always puts them in
> > /home/vpopmail/domains/domain.com/user
> > instead of
> > /home/vpopmail/domains/3/domain.com/A/user
> >
> > Is this no longer a feature?
>
> No. That code is still in there.
>
> Ken





Re: [vchkpw] using SpamAssassin on a per user basis with qmail

2002-12-06 Thread Nick Lomonte
On Wed, 2002-11-27 at 14:34, Cory Wright wrote:
>  |spamc | /var/vpopmail/bin/vdelivermail '' /var/vpopmail/domains/example.com/user/
>   

This works good, is there a way to do this in a .qmail file in the
user's home dir?
 
 
-- 
Nick Lomonte
Network Engineer
Eonet
[EMAIL PROTECTED]
409.833.1700





Re: [vchkpw] using SpamAssassin on a per user basis with qmail

2002-12-06 Thread Cory Wright
On Fri, Dec 06, 2002 at 03:49:43PM -0600, Nick Lomonte wrote:
> On Wed, 2002-11-27 at 14:34, Cory Wright wrote:
> >  |spamc | /var/vpopmail/bin/vdelivermail '' /var/vpopmail/domains/example.com/user/
> 
> This works good, is there a way to do this in a .qmail file in the
> user's home dir?

Sure, I use the following on my account:

  |spamc |maildir ./Maildir/

The 'maildir' command is from the safecat package by Len Budney:

  http://www.nb.net/~lbudney/linux/software/safecat.html

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/




Re: [vchkpw] using SpamAssassin on a per user basis with qmail

2002-12-06 Thread Cory Wright
On Fri, Dec 06, 2002 at 03:49:43PM -0600, Nick Lomonte wrote:
> This works good, is there a way to do this in a .qmail file in the
> user's home dir?

It just occured to me that you might mean the virtual users's vpopmail home
directory.  

  ~vpopmail/domains/example.com/user/.qmail

Is this what you are asking?

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/




[vchkpw] ERR this user has no $HOME/Maildir

2002-12-06 Thread Tobias Åman




Hi i got this problem with the 
 
-ERR this user has no $HOME/Maildir
 
i have added a account and it should 
work!
 
here´s my config line in inetd.conf
 
pop3 stream tcp nowait root 
/var/qmail/bin/qmail-popup mail.server.nu /home/vpopmail/bin/vchkpw 
/var/qmail/bin/qmail-pop3d \ Maildir
 
i´m running it on a slackware machine with latest 
qmail why do i get this error ?
 
Regards / 
Tobias


Re: [vchkpw] ERR this user has no $HOME/Maildir

2002-12-06 Thread Johan Almqvist
* Tobias Åman <[EMAIL PROTECTED]> [021207 00:00]:
>Hi i got this problem with the  -ERR this user has no $HOME/Maildir i
>have added a account and it should work! here´s my config line in
>inetd.conf pop3 stream tcp nowait root /var/qmail/bin/qmail-popup
>mail.server.nu /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d \
>Maildir i´m running it on a slackware machine with latest qmail why do
>i get this error ? Regards / Tobias

Do not insult the list by sending HTML e-mails.

You may be missing a trailing slash after Maildir, try replacing Maildir
with ./Maildir/ in the run script.

If that's not it give us a complete view of the directories in question
(ls -la) and the pop logs.

-Johan
-- 
Johan Almqvist
http://www.almqvist.net/johan/qmail/



msg10074/pgp0.pgp
Description: PGP signature


Re: [vchkpw] LDAP setup howto

2002-12-06 Thread Jens Jahr
Zitat von Boris Manojlovic <[EMAIL PROTECTED]>:

> 
> As you know I'm (was better to say) a main developer of ldap module for
> vpopmail as that I would ask Bill Shupp to commit these changes into
> vpopmail base (and I send you small patch allready but was never commited)
> 
> so anyway  Jens Jahr when you created your howto you expeled MD5 support
> Ok I must confess that my support was not so good for MD5 but anyway with
> tweaking of openldap slapd we can get REAL MD5 hash system `
> Anyway I think job is still not done with LDAP module but first we DO need
> 
> Bill Shup to commit your changes to base source tree
> 

Hi Boris,

your are right with your slapd tweaks ! I already ajust my how-to ;-)
Because now I have a huge mailsever running vpopmail-ldap i am indeed willing to
improve the vpopmail-LDAP support.
As you may know that many of the M$ guys are using ADS, the only reason to give
this mailserver a chance running linux was definitively : LDAP is supported.

So I have been in big trouble, because I had several problems runing
vpopmail-ldap, including this fancy: "unable to change to userdir".

so I began these patches to make LDAP-supporr work for me and include the whole
LDAP-error message.

There is some work to do and I am willing to address it - making vpopmail
support LDAP in a propper way - You did a __great__ job implenting the initial
LDAP-support  !!

I will offer all my patches to be included in mainstream in order to get a get a
complete LDAP-support in vpopmail and I will also maintain my LDAP-Howto

But I am absolutly not familar to whom I should send my patches.

Cheers 
Jens
 
 






[vchkpw] POP3 Authentication problem

2002-12-06 Thread Thomas Strike
I have installed vpopmail with virtual domains active. When I try to connect
with outlook express from another computer, vchkpw can't find my user
account.  The connection is rejected.  In /var/log/maillog, it says "vchkpw:
vpopmail user not found [EMAIL PROTECTED]"

How can I get vchkpw pointed to the proper virtual domain to find the user
name and authenticate it.

Tom Strike





Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Abel Lucano
On Fri, 6 Dec 2002, Thomas Strike wrote:

> I have installed vpopmail with virtual domains active. When I try to connect
> with outlook express from another computer, vchkpw can't find my user
> account.  The connection is rejected.  In /var/log/maillog, it says "vchkpw:
> vpopmail user not found [EMAIL PROTECTED]"
>
> How can I get vchkpw pointed to the proper virtual domain to find the user
> name and authenticate it.
>
> Tom Strike
>
>
>

try logging with [EMAIL PROTECTED]  where domain.com is the domain that
you've defined  the account thomasj belongs to.

regards


Abel Lucano
[EMAIL PROTECTED]







Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Cory Wright
On Fri, Dec 06, 2002 at 06:07:53PM -0800, Thomas Strike wrote:
> I have installed vpopmail with virtual domains active. When I try to connect
> with outlook express from another computer, vchkpw can't find my user
> account.  The connection is rejected.  In /var/log/maillog, it says "vchkpw:
> vpopmail user not found [EMAIL PROTECTED]"
> 
> How can I get vchkpw pointed to the proper virtual domain to find the user
> name and authenticate it.

Try setting your username in Outlook to the email address that you are trying
to check.  If you want to use just your username then you can compile vpopmail 
with the --enable-default-domain=yourdomain.com option.

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/




Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Thomas Strike
Abel Lucano wrote:
>   try logging with [EMAIL PROTECTED]  where domain.com is the domain that
>   you've defined  the account thomasj belongs to.

Thanks, But that's one of the first things that I tried.
The result was, vpopmail received [EMAIL PROTECTED]@192.168.0.5
and still didn't authenticate.


Kurt Bigler wrote:
>   For what its worth, I find that Outlook Express fails on the connect for
the
>   first 2 or 3 or 5 or 10 times after a new account is created in OE.
Keep
>   repeating and it eventually works.  I never found out why.

I've been trying it all day long, testing it.
If it was going to work as is, it would have done it by now.
Thanks for your response anyway.


Cory Wright wrote:
>   Try setting your username in Outlook to the email address that you are
trying
>   to check.  If you want to use just your username then you can compile
vpopmail
>   with the --enable-default-domain=yourdomain.com option.

I don't remember doing this, just enabling default domains.

Is there a way to set the default domain without deleting the everything and
starting over with a new compile?

Tom S.





Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Cory Wright
On Fri, Dec 06, 2002 at 06:55:51PM -0800, Thomas Strike wrote:
> Is there a way to set the default domain without deleting the everything and
> starting over with a new compile?

No need to delete anything.  Just recompile and rerun 'make install-strip'.

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/




Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Thomas Strike
Cory Wright wrote:
>   No need to delete anything.  Just recompile and rerun 'make install-strip'.

I tried that after the first compile without enabling anything.  The result was,
make ended with a "nothing to do" statement.  So, I deleted the vpopmail
directories and started over again with ./configure --enable-

Tom S.






Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Ajai Khattri
Thomas Strike wrote:


Thanks, But that's one of the first things that I tried.
The result was, vpopmail received [EMAIL PROTECTED]@192.168.0.5
and still didn't authenticate.


192.168.0.5 looks like a non-routable internal IP...

Im assuming you're on a LAN and want to connect to the server through 
your gateway. Shouldn't you be using NAT or a proxy to do this then?

--
Aj.
Systems Administrator / Developer




Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Cory Wright
On Fri, Dec 06, 2002 at 07:16:15PM -0800, Thomas Strike wrote:
> I tried that after the first compile without enabling anything.  The result was,
> make ended with a "nothing to do" statement.  So, I deleted the vpopmail
> directories and started over again with ./configure --enable-

You needed to run 'make distclean' before you ran ./configure again.

Anyway, if your problem still is not solved, show us the full ./configure 
command you ran.

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/




Re: [vchkpw] POP3 Authentication problem

2002-12-06 Thread Thomas Strike
Cory Wright wrote:
>   You needed to run 'make distclean' before you ran ./configure again.

Did distclean and recompiled and it looks like I'm making headway now.
Now, the maillog shows "vchkpw: password failier [EMAIL PROTECTED]:192.168.0.5".
I assume that this means that it in fact found thomasj at gabbs.org 
but it isn't getting the password correct.

Cory Wright wrote:
>   Anyway, if your problem still is not solved, show us the full ./configure 
>   command you ran.

I used:
   [root@Gabbs-01 vpopmail-5.2.1]# ./configure --enable-roaming-users=y 
--enable-clear-passwords=y 
   --enable-valias=y --enable-default-domain=gabbs.org --enable-relay-clear-minutes=20 
   --enable-ucspi-dir=../ucspi-tcp-0.88 --enable-logging=y 
[EMAIL PROTECTED]

The following is what it compiled to:

   vpopmail 5.2.1
Current settings
---

vpopmail directory = /home/vpopmail
   uid = 7797
   gid = 2209
  ip alias = OFF --enable-ip-alias-domains=n (default)
address extentions = OFF --enable-qmail-ext=n (default)
 roaming users = ON  --enable-roaming-users=y
tcpserver file = /home/vpopmail/etc/tcp.smtp
open_smtp file = /home/vpopmail/etc/open-smtp
user quota = OFF --enable-defaultquota=NOQUOTA default
table optimization = many domains --enable-many-domains=y default
   auth module = cdb default
  system passwords = OFF --enable-passwd=n default
  file locking = ON  --enable-file-locking=y default
 file sync = OFF --enable-file-sync=n default disable vdelivermail fsync
  auth logging = ON  --enable-auth-logging=y default
 mysql logging = OFF --enable-mysql-logging=n default
  clear passwd = ON  --enable-clear-passwd=y (default)
 valias processing = ON  --enable-valias=y
pop syslog = show successful and failure login attempts
 --enable-logging=y
default domain = gabbs.org --enable-default-domain=gabbs.org
  auth inc = -Icdb
  auth lib =

Thanks,
Tom S.





[vchkpw] SpamAssassin on a per user basis

2002-12-06 Thread John Stile
I am using vpopmail version 5.20 and trying to get SpamAssassin working
on a per user basis. Modifying .qmail-default and .qmail-user files,
according to past threads in this list, fail to work, causing mail to
bounce.

Do I have to up upgrade above 5.20 to get it working or is it possible
to get it working with what I have?

._.
|   \0/John Stile |
| UniX Administration |
|   / \  510-305-3800 | 
| [EMAIL PROTECTED] |
.-.





[vchkpw] mailfilter for newly created mailbox

2002-12-06 Thread LanMan
Hi, 

Wondering if there is an easy way to enable mail filtering automatically for 
every new mailbox created.  Right now I have to manually turn mail filter on 
for each user like this: 

cat domain.com/.qmail-user
| /usr/local/bin/maildrop ./user/.mailfilter 

cat domain.com/user/Maildir/maildirfilterconfig
MAILDIRFILTER=../.mailfilter
MAILDIR=user/Maildir 

The line 'MAILDIR=user/Maildir' above does not work if I use 
MAILDIR=./Maildir (according to the docs).  I get this in the log: 

delivery 24: deferral: /usr/local/bin/maildrop:_Unable_to_open_mailbox./ 

By the way, I'm using qmailadmin to create users.  Any suggestions are 
welcome.  Thanks. 

LanMan