[vchkpw] Re: IP alias Domain based for IP destination

2003-03-11 Thread Peter Palmreuther
Hello Juan,

On Monday, March 10, 2003 at 11:25:50 PM you wrote (at least in part):

  I would like have these two domains into a single computer, but I don't
  control over the pool's of IP of my clients.

 That means, the IP address of domain1.com or domain2.com can suddenly
 change without notice, or what? I don't understand this.

 The pool's IP of my clients is very random and I don't know its value.

And these IPs don't matter for '--enable-ip-alias-domain'

With '--enable-ip-alias-domain' set you have to keep a mapping file
like:

192.168.0.1:domain1.com
192.168.1.1:domain2.com

And if a client connects to '192.168.0.1' and gives no domain in login
vpopmail assumes 'domain1.com' should be used.
If a client connects to '192.168.1.1' and no domain is given in login
'domain2.com' is assumed to authenticate against.

The IP the client connects to is propagated through an environment
variable tcpserver sets.

So you can compile one vpopmail, without '--default-domain...' and
just have to tell your clients to use the correct server name to
connect.
-- 
Best regards
Peter Palmreuther

It's life, Jim, but not as we know it. -- Bones McCoy




[vchkpw] Re: Too many connections

2003-03-11 Thread Peter Palmreuther
Hello Enoch,

On Tuesday, March 11, 2003 at 9:49:57 AM you wrote (at least in part):

 I couldn't find it in the FAQ, so decided to ask it
 here.  Today I suddenly started to get the following
 error:

In which FAQ? Sure you had a look at the correct one? vpopmails FAQ
will, for obvious reasons, not list MySQL-FAQ-items.

 could not connect to mysql update server Too many connections with
 database

Quite clear error message.

 vmysql: sql error[1]: Can't create database
 'vpopmail'. Database exists
 vmysql: sql error[3]: No Database Selected
 Sorry, no mailbox here by that name. vpopmail (#5.1.1)

 What exactly is it related to?  Why is it trying to
 create a database?

Maybe because it couldn't figure out the database already exists (due
to max_connections error)?

 Or is it just the limit set by max_connections being reached?

I'd guess.

 If so, how does this happen? Does that mean qmail tried to deliver
 more than 100 mails at once and there were 100 concurrent
 connections to MySQL?

Ask your database who keeps all those connections open. We can't tell
from here.
Solve the cause of too many connections or increase the limit and
see if vpopmail still tries to create the database. Than you and us
don't need to guess in the wild, but know for sure.
-- 
Best regards
Peter Palmreuther

See no evil...well maybe just a little...yeah! - Joel




[vchkpw] Re: tcp.smtp file perms/owns for -enable-roaming-users?

2003-03-11 Thread Peter Palmreuther
Hello Benjamin,

On Monday, March 10, 2003 at 5:39:56 PM you wrote (at least in part):

 In my setup, I see the tcp.smtp.cdb file getting updated regularly, seeming
 to indicate perhaps that the pop-before-smtp may actually be working.  Is
 there anyway to verify the contents of the cdb file to see if it actually
 matches with the current relay table contents?

Additionally to Jonass idea you could fetch cdbtools from D.J.B.s site
[1] and use 'cdbdump  cdb-file [|grep ...]'.

[1] http://cr.yp.to/cdb.html
-- 
Best regards
Peter Palmreuther

I've given up the search for reality; now I'm just looking for a good
fantasy.




[vchkpw] Limitting attachment

2003-03-11 Thread Marcos Dutra
Hi,

How do i do limitting the size in e-mail with attachments? 

Per ex.

I have [EMAIL PROTECTED] i would like limit this user in 1MB to send e-mail with 
attachment per e-mail.

I have another user [EMAIL PROTECTED] and your limit to send e-mail with 
attachments is 5MB per e-mail.

This is possible?

Thanks

Marcos



[vchkpw] Vpopmail has broken non-virtual users/domain

2003-03-11 Thread chquek76
Hi,

I have installed vpopmail and configured it as stated in The qmail Handbook, now it 
seems like I am unable to receive my non-virtual domain
email.

When I try to :

# telnet 0 110
Trying 0.0.0.0...
Connected to 0.
..

user somerealuser

pass password


I get a response start with -ERR, the authentication failed. But
when I try using my virtual user it went thru'

How can I configure my non-virtual user and domain able to get
authenicated and receieve the mail??

Thanks all






__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/



Re: [vchkpw] Vpopmail has broken non-virtual users/domain

2003-03-11 Thread Johan Almqvist
* [EMAIL PROTECTED] [030311 17:01]:
 I have installed vpopmail and configured it as stated in The qmail
 Handbook, now it seems like I am unable to receive my non-virtual
 domain email.

 How can I configure my non-virtual user and domain able to get
 authenicated and receieve the mail??

http://andreas.hanssen.name/software/multichkpwds.c

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


pgp0.pgp
Description: PGP signature


[vchkpw] vpopmail and courier-imap

2003-03-11 Thread Jason 'XenoPhage' Frisvold
Hi all,

I'm trying to set up courier imap and vpopmail...  I'm not sure about
some configuration settings, however...  I've installed vpopmail and
defined a default domain.  vpopmail *seems* to be working ok.

I need to set up courier-imap and I want the default-domain
authentication to work.  So, can I use authmysql and authdaemon?  Or
must I use authvchkpw?

Thanks,

-- 
---
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
[EMAIL PROTECTED]
RedHat Certified - RHCE # 807302349405893
---
Something mysterious is formed, born in the silent void. Waiting alone
and unmoving, it is at once still and yet in constant motion. It is the
source of all programs. I do not know its name, so I will call it the
Tao of Programming.


signature.asc
Description: This is a digitally signed message part


Re: [vchkpw] vpopmail and courier-imap

2003-03-11 Thread Jason 'XenoPhage' Frisvold
On Tue, 2003-03-11 at 11:24, Jason 'XenoPhage' Frisvold wrote:
 Hi all,
 
   I'm trying to set up courier imap and vpopmail...  I'm not sure about
 some configuration settings, however...  I've installed vpopmail and
 defined a default domain.  vpopmail *seems* to be working ok.
 
   I need to set up courier-imap and I want the default-domain
 authentication to work.  So, can I use authmysql and authdaemon?  Or
 must I use authvchkpw?

Let me elaborate briefly...  I've been reading documentation, but there
is some confusion...  The INSTALL doc says not to use authvchkpw, but to
use authdb.  However, the README.authmysql.html file says not to use
mysql, but to use authvchkpw when dealing with vpopmail...

So do I follow this chain and use authdb, or use authvchkpw..  

I'm thinking authvchkpw  should I use this with authdaemon?  Or is
it better by itself?

 Thanks,
-- 
---
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
[EMAIL PROTECTED]
RedHat Certified - RHCE # 807302349405893
---
Something mysterious is formed, born in the silent void. Waiting alone
and unmoving, it is at once still and yet in constant motion. It is the
source of all programs. I do not know its name, so I will call it the
Tao of Programming.


signature.asc
Description: This is a digitally signed message part


Re: [vchkpw] vpopmail and courier-imap

2003-03-11 Thread Jason 'XenoPhage' Frisvold
On Tue, 2003-03-11 at 12:11, Jesse Guardiani wrote:
  Let me elaborate briefly...  I've been reading documentation, but there
  is some confusion...  The INSTALL doc says not to use authvchkpw, but to
  use authdb.  However, the README.authmysql.html file says not to use
  mysql, but to use authvchkpw when dealing with vpopmail...
 
 I know what you mean. It IS confusing. You should mention that to Mr. Sam.

*nod*  I've got it all figured out now...  Makes sense now :)

 Never use authdaemon with vchkpw. It's buggy for some reason. Authentications
 will fail randomly and such. And yes, you should use authvchkpw.

Known bugs?  Hrm.. I didn't see anything in the known bugs section... 
No biggie tho...

I've configured and set it up using authvchkpw and it works perfectly. 
I've got vpopmail running in mysql replication mode too :)  I can
authenticate correctly and it appears to be working great!

Incidentally, I had previously asked (several weeks ago) about vpopmail
not allowing me to authenticate using only my username when the address
is in the default domain.  The reason it was failing was because I was
not using authvchkpwd...  I was using authmysql...  (and here I thought
I was being all cool because I could get it running..)

Well, we live and learn...  :)

Thanks all,

-- 
---
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
[EMAIL PROTECTED]
RedHat Certified - RHCE # 807302349405893
---
Something mysterious is formed, born in the silent void. Waiting alone
and unmoving, it is at once still and yet in constant motion. It is the
source of all programs. I do not know its name, so I will call it the
Tao of Programming.


signature.asc
Description: This is a digitally signed message part


[vchkpw] vpopmail and courier-imap - new thread I hope

2003-03-11 Thread Wil Hatfield - HVHM Customer Care
Jason,

 is in the default domain.  The reason it was failing was because I was
 not using authvchkpwd...  I was using authmysql...  (and here I thought
 I was being all cool because I could get it running..)

Could you elaborate on this segment a bit. I wasn't around for your initial
post. Are you speaking of installing Vpopmail with authmysql? What was the
configure parameter for that, --enable-mysql?

Reason I ask is because I have installed Vpopmail with mysql and it seems to
work ok. Everything goes in the table as desired.  But when I get to
Courier-IMAP I get authentication errors. And before you ask, no I am not
trying to get it to work with username only. user%virtualdomain.com is how I
am attempting authentication.

Configure History:

Vpopmail
./configure --enable-mysql=y --enable-roaming-users=y --enable-relay-clear-m
inutes=120 --enable-logging=y --enable-defaultquota=1000 --enable-softqu
ota=900 --enable-ip-alias-domains=y --enable-tcpserver-file=/sites/home/
vpopmail/etc/tcp.smtp

Courier-IMAP
./configure --prefix=/usr/local --exec-prefix=/usr/local --without-authldap 
--without-authshadow --with-authvchkpw --without-authcram --sysconfdir=/usr/
local/etc/courier-imap --datadir=/usr/local/share/courier-imap --libexecdir=
/usr/local/libexec/courier-imap --enable-workarounds-for-imap-client-bugs --
disable-root-check --without-authdaemon

I copied the config files for courier-imap as shown in the toaster-setup.pl
script. I didn't install with the toaster script, just looked to it for
insight. http://matt.simerson.net/computing/mail/toaster/toaster_setup.pl

If anybody sees any conflicts in the way the two apps were configured your
help is most appreciated. I get the feeling there is something there I am
not seeing but for the life of me can't tell what it is.

TIA

Wil







[vchkpw] vpopmail mysql registration trouble

2003-03-11 Thread miks
I have FreeBSD 5.0, qmail, mysql, vpopmail.
My problem is:

/skynet# ./vdominfo
/domain: section-1.org
/uid:89
/gid:89
/dir:/var/vpopmail/domains/section-1.org
/could not connect to mysql update server Access denied for 
/user: '[EMAIL PROTECTED]' (Using password: YES) with database
/could not connect to mysql update server Access denied for 
/user: '[EMAIL PROTECTED]' (Using password: YES)
/users:  0
/vmysql: sql error[c]: MySQL server has gone away
/vmysql: sql error[b]: MySQL server has gone away
---
there is - '[EMAIL PROTECTED]' 
but why?
I changed vmysql.h file with my name: vpopmail  my password.
please HELP ME.





RE: [vchkpw] vpopmail mysql registration trouble

2003-03-11 Thread Michael Bowe
Perhaps compare your config to my vpopmail w/mysql guide at
http://www.pipeline.com.au/staff/mbowe/isp/vpopmail-mysql.htm

Michael.

 -Original Message-
 From: miks [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, 12 March 2003 8:57 AM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] vpopmail  mysql registration trouble
 
 
 I have FreeBSD 5.0, qmail, mysql, vpopmail.
 My problem is:
 
 /skynet# ./vdominfo
 /domain: section-1.org
 /uid:89
 /gid:89
 /dir:/var/vpopmail/domains/section-1.org
 /could not connect to mysql update server Access denied for 
 /user: '[EMAIL PROTECTED]' (Using password: YES) with database 
 /could not connect to mysql update server Access denied for 
 /user: '[EMAIL PROTECTED]' (Using password: YES)
 /users:  0
 /vmysql: sql error[c]: MySQL server has gone away
 /vmysql: sql error[b]: MySQL server has gone away
 ---
 there is - '[EMAIL PROTECTED]' 
 but why?
 I changed vmysql.h file with my name: vpopmail  my password. 
 please HELP ME.
 
 
 
 
 




Re: [vchkpw] Vpopmail has broken non-virtual users/domain

2003-03-11 Thread Jonas Pasche
Hi Anonymous,

 I get a response start with -ERR, the authentication failed. But
 when I try using my virtual user it went thru'
 
 How can I configure my non-virtual user and domain able to get
 authenicated and receieve the mail??

./configure --enable-passwd=y

Jonas




Re: [vchkpw] vpopmail mysql registration trouble

2003-03-11 Thread John Johnson
Not to ask a stupid question, but did you do this before or after compiling?
Also it looks
like this is only a problem logging into the update server, make sure you
edited that field
as well.

-John

- Original Message -
From: miks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 1:57 PM
Subject: [vchkpw] vpopmail  mysql registration trouble


 I have FreeBSD 5.0, qmail, mysql, vpopmail.
 My problem is:
 
 /skynet# ./vdominfo
 /domain: section-1.org
 /uid:89
 /gid:89
 /dir:/var/vpopmail/domains/section-1.org
 /could not connect to mysql update server Access denied for
 /user: '[EMAIL PROTECTED]' (Using password: YES) with database
 /could not connect to mysql update server Access denied for
 /user: '[EMAIL PROTECTED]' (Using password: YES)
 /users:  0
 /vmysql: sql error[c]: MySQL server has gone away
 /vmysql: sql error[b]: MySQL server has gone away
 ---
 there is - '[EMAIL PROTECTED]'
 but why?
 I changed vmysql.h file with my name: vpopmail  my password.
 please HELP ME.








[vchkpw] problem with valias and maildrop filter

2003-03-11 Thread Iain
Hi,

I have been using maildrop to filter spam by using the following in 
.qmail-default for each domain:

| preline /usr/bin/maildrop /etc/spamassassin/mailfilter

I have included the mailfilter at the end of this email.

However when I set this up I found that SQL based aliases stopped working. 
Email sent to these alias addresses goes to a black hole.

This is with vpopmail 5.3.18. Any ideas as to what could be causing this?

cheers, Iain.

import EXT
import HOST
import HOME
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
VPOP=| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

if ($SIZE  262144)
{
xfilter /usr/bin/spamc -u [EMAIL PROTECTED]
}

if ((/^X-Spam-Flag:.*YES/))
{
   `test -d $VHOME/Maildir/.SPAM`
   if( $RETURNCODE == 1 )
   {
   `maildirmake $VHOME/Maildir/.SPAM;chown -R vpopmail.vchkpw 
$VHOME/Maildir/.SPAM`
   }
   `/usr/local/bin/movespam [EMAIL PROTECTED]
   if( $RETURNCODE == 0 )
   {
   to $VHOME/Maildir/.SPAM/
   }
   to $VPOP
}
to $VPOP