[vchkpw] chkuser and smtproutes

2004-11-01 Thread Kleiner, Peter
Greetings,

I have been considering using the chkuser patch in conjunction with
simscan.  I've looked at the docs and FAQs, but can't find anything
that talks about how chkuser works with a domain in smtproutes.  Is
there a way that chkuser could accept e-mail to any account in one
particular domain?  Is there support for smtproutes?  I have a few
domains that forward to exchange boxes.

I did Google for smtproutes both on inter7.com and interazioni.it,
finding nothing.  Found two threads on the mailing list archives,
but didn't get a distinct answer.  Sorry if this is a FAQ.

PK


RE: [vchkpw] multimaildir in .qmail

2004-02-03 Thread Kleiner, Peter
Tom Collins wrote:
 
 On Feb 2, 2004, at 7:21 AM, Luca Morettoni wrote:
  I have two server running vpopmail (5.3.27 on the first and 
 5.3.30 on
  the second), some user have a particular .qmail file (with some
  command executed with | command) and all work fine.
  The problem (on both version) come when I try to put a multiple
  maildir delivery command in .qmail file, like this:
 
  ./Maildir/
  ./Maildir2/
 
 I'm pretty sure that vdelivermail is assuming the second line is an 
 address and not a Maildir since it doesn't contains the string 
 /Maildir/.  I'll look into updating vpopmail to do Maildir delivery 
 if the line starts with . or /.
 

How about using safecat?  You could use something like
   ./Maildir/
   |safecat /path/to/Maildir2/tmp /path/to/Maildir2/new

More info on safecat:
http://budney.homeunix.net:8080/users/budney/linux/software/safecat.html

PK


RE: [vchkpw] Vpopmail script

2003-12-29 Thread Kleiner, Peter
 Does anyone have a script that will add or delete email 
 accounts in vpopmail
 given a static file with the email address of each user we 
 want to add or
 delete?  

Do you mean something like
# for f in `cat file.txt` ; do /home/vpopmail/bin/vadduser $f ; done

Then you'd have to manage the passwords...


RE: [vchkpw] Has the format of vpasswd file changed?

2003-11-06 Thread Kleiner, Peter
 We added a clear password field that used to be default turned off
 for backwards compatibility. I think in later versions of 5.3 folks
 updated the code to support either. I'd recommend backing up
 your vpopmail/bin, lib and include directory then doing a regular
 install of vpopmail with --enable-clear-passwd=n. Re config/compile
 courier-imap from scratch. If that does not work you can put
 the old binaries back. I bet it would work. 
It's a good bet.  Everything's working well now.  Thanks for the 
suggestion.



 my 2cents
Worth a lot more than that!



[vchkpw] RE: vpopmail and smtp-auth...

2003-11-06 Thread Kleiner, Peter
 Hello All,
 
 i have a stupid problem with vpopmail and smtp-after-pop or 
 smtp-auth. I have 
 read a howto in the web where vpopmail is used to make 
 smtp-after-pop or 
 smtp-auth. I have configured my run script for pop3d and 
 smtpd like it was 
 configured in the howto but it doesn't work. The virual 
 Domains are running 
 and the pop3d is running too but i could not get smtpd running with 
 authentification.
 
 Here is my qmail-smtpd/run script:
 
 #!/bin/bash
 QMAILDUID=`id -u vpopmail`
 NOFILESGID=`id -g vpopmail`
 MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
 
 exec /usr/bin/softlimit -m 6600 \
 /usr/bin/tcpserver -H -R -v -p -x /etc/tcp.smtp.cdb \
 -c $MAXSMTPD -u $QMAILDUID -g $NOFILESGID \
 0 smtp /var/qmail/bin/qmail-smtpd `hostname --fqdn` \
 /var/vpopmail/bin/vchkpw /bin/true 21
 
 could someone tell me whats wrong here? is it possible to do 
 it like i want 
 it?
 
 Only people who are in registered as 
 virtual-domain-email-user should be 
 allowed to send email thrue my smtp server.  I don't need 
 smtp-after-pop, 
 smtp-auth is doing all i need but it could be smtp-after-pop too...

Three questions:
1. have you checked to make sure that `hostname --fqdn` returns your
domain name?
2. Did you apply the smtp-auth patch to qmail before running make?
3. Are you sure that the path to vchkpw is /var/vpopmail/bin and not
/home/vpopmail/bin?  I think that the default install directory for
vpopmail is in /home.



[vchkpw] RE: vpopmail and smtp-auth...

2003-11-06 Thread Kleiner, Peter
  Three questions:
  1. have you checked to make sure that `hostname --fqdn` returns your
  domain name?
 
 Yes, it returns the hostname of my Server but the domain name 
 is not a virtual 
 host...  should it be that?
No, shouldn't matter.

  2. Did you apply the smtp-auth patch to qmail before running make?
 
 Yes, i use Gentoo-Linux and the Patch is inluded and qmail should be 
 patched... I have thought that it could the problem already.
OK.  Had to ask, anyway.  I'm not familiar with Gentoo.

  3. Are you sure that the path to vchkpw is /var/vpopmail/bin and not
  /home/vpopmail/bin?  I think that the default install directory for
  vpopmail is in /home.
 
 Yes, thats right but in Gentoo they have changed the path 
 from /home/vpopmail 
 to /var/vpopmail. I have checked that and vchkpw is in this path.
Figured as much.

 Is my solution possible?
It should be.  How are you deducing that amtp-auth is not working?
What have you tried?



[vchkpw] Has the format of vpasswd file changed?

2003-11-05 Thread Kleiner, Peter
Greetings folks,

if(you don't care about the explanation) goto QUESTION

:EXPLANATION
I am this close - '' to getting courier-imap to work (well) with vchkpw.
I have compiled courier --without-authdaemon and --with-authvchkpw.

I have been running vpopmail 5.2.1 for a while now, but on someone's
advice I also compiled 5.3.29 and copied libvpopmail.a to the
/home/vpopmail/lib directory, renaming the old one.  I did this, of
course, before I built courier-imap.

When I start courier using tcpserver, I believe that the authentication
process itself is successful, but it craps out, citing the following
failure:
chdir Pop User by CGI: No such file or directory
Looking in that domain's vpasswd file, the format is this:
username:password:1:0:Pop User by CGI:path-to-user's-dir:NOLOGIN
Sometimes the Pop User by CGI is replaced with the username, or
Pop User by CLI.

So my question is this:

:QUESTION
Has the format of the vpasswd file changed between 5.2.x and 5.3.x?
I looked in the docs, ChangeLog and FAQ and can't find anything that
explains the syntax.

I realize my whole setup is cracked, especially the fact that I did
not install vpopmail 5.3.29, that I'm just using the libvpopmail.a
from it.  I didn't want to screw up my vpopmail installation, since
it has been working fine for so long now.

Thanks in advance, and let me know if I need to supply any more info.

PK