Re: [vchkpw] small fix for vpopmaild

2007-02-18 Thread Justin Heesemann
shadowplay.net wrote:
 um.. y not use a 
 
 ln -s vpopdir towherethehellitreallyis
 
 y are we patching crap that can be handled by the damn
 os

because ./vadddomain supports domains at other locations.
and i don't want to use some sort of hack like

./vaddomain something.com
mv /var/vpopmail/domains/something.com /home/someuser/domains
ln -s /home/someuser/domains/something.com /var/vpopmail/domains/

that's why.


-- 
Mit internetten Grüßen
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org


[vchkpw] small fix for vpopmaild

2007-02-15 Thread Justin Heesemann
Hello..
My domains are located somewhere else then ~vpopmail/domains/somedomain.com
(each system user has his own domains/ directory in his homedir).

Since vpopmaild doesn't allow a server admin to use the 
read_file/list_dir/write_file ... functions for those domains, I wrote a 
small patch.

Imho a serveradmin account should be able to access ALL domains handled by 
vpopmail, so I think this patch should get included in the next release.

Patch is for vpopmail-5.4.18


-- 
Best Regards
---
Justin Heesemann                                        ionium Technologies
[EMAIL PROTECTED]                                                www.ionium.org
*** vpopmaild.old.c	2006-12-17 07:53:39.0 +0100
--- vpopmaild.c	2007-02-15 13:51:51.0 +0100
*** int validate_path(char *newpath, char *p
*** 1239,1244 
--- 1239,1245 
  return(2);
}
  
+   int valid_domain_path = 0;
/* expand the path */
if ( path[0] == '/' ) {
  snprintf(newpath, MAXPATH, path);
*** int validate_path(char *newpath, char *p
*** 1300,1310 
} 
snprintf(newpath, MAXPATH, thedir);
strncat(newpath, path[i], MAXPATH );
  }
}
  
if ( AuthVpw.pw_gid  SA_ADMIN ) { 
! if ( strncmp(TheVpopmailDomains, newpath, strlen(TheVpopmailDomains))!=0 ) {
snprintf(WriteBuf,sizeof(WriteBuf), 
  RET_ERR 1510 unauthorized directory RET_CRLF);
return(10);
--- 1301,1312 
} 
snprintf(newpath, MAXPATH, thedir);
strncat(newpath, path[i], MAXPATH );
+   valid_domain_path = 1;
  }
}
  
if ( AuthVpw.pw_gid  SA_ADMIN ) { 
! if ( valid_domain_path == 0  strncmp(TheVpopmailDomains, newpath, strlen(TheVpopmailDomains))!=0 ) {
snprintf(WriteBuf,sizeof(WriteBuf), 
  RET_ERR 1510 unauthorized directory RET_CRLF);
return(10);


Re: [vchkpw] courier-imap

2004-12-08 Thread Justin Heesemann
On Friday 03 December 2004 20:42, Oden Eriksson wrote:

 Thanks Jeremy, but smtp auth isn't the answer I was looking for. I
 know mr. sam and some other profilic people in this sphere thinks
 pop-before-smtp is dead, is silly and obsolete, but I can say it
 isn't.

just add a bogus account to vpopmail ([EMAIL PROTECTED] 
works fine and shouldn't get you that much spam),  add it as a kmail 
pop3 account and switch on interval checking. or you could use the 
filter messages if they are greater than 1 bytes option in kmail for 
a pop3 account.

Or you could use the Precommand functionality of kmail and use 
something like fetchmail -c -s as you precommand line for your smtp 
transport.

 The question still, is how to make this work, not to make me start
 using smtp auth.

 If was really smart I would stop using an utterly dead (not developed
 since 1998), and unsupported software like qmail is and use _any_ of
 the others that is still alive, supported, developed and in much
 wider use.


Don't throw stones, when you're sitting in a glashouse. (German 
proverb) That's what smart people try to remember. :)

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org


Re: [vchkpw] what is rcpthosts and morecpthosts ? sorry, that domain isn't allowed relay

2004-07-27 Thread Justin Heesemann
On Tuesday 27 July 2004 20:32, [EMAIL PROTECTED] wrote:
 what is file rcpthosts and morercpthosts ? what is defferent ?
-
# man qmail-smtpd
Rule  of  thumb  for  large  sites: Put your 50 most commonly used
domains into rcpthosts, and the rest into morercpthosts.
-

the rcpthosts file is just a textfile which qmail-smtpd reads, whenever 
someone tries to send a message. if it cannot find the domain in 
rcpthosts, it will check a cdb database, generated from morercpthosts.
(this is why adding domains to the morercpthosts file alone doesn't 
help: you have to call qmail-newmrh afterwards to recreate the cdb file 
- vpopmail does this for you, when you call vadddomain)

i hope this helps..


 concurrencyincoming: I have no idea what this file does.
 blacklists: I have no idea what this file does.
 deaultdelivery: I have no idea what this file does.
 rpthosts.lock: I have no idea what this file does.
 sql: I have no idea what this file does.
 tarpitcount: I have no idea what this file does.
 tarpitdelay: I have no idea what this file does.
 virtualdomains.lock: I have no idea what this file does.
 locals.lock: I have no idea what this file does.
 morercpthosts.lock: I have no idea what this file does.
 servercert.pem: I have no idea what this file does.
 defaultdomain.origin: I have no idea what this file does.
 badmailto: I have no idea what this file does.
 concurrencyincoming.origin: I have no idea what this file does.

 when i send mail to [EMAIL PROTECTED] it return sorry, that domain
 isn't allowed relay



most of the files are explained in the qmail-smtpd or qmail-local 
manpage

the others probably are related to the various patches you seem to have 
applied to qmail.
it's safe to ignore the .lock files..



-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org


Re: [vchkpw] maildrop with bounce-no-mailbox

2004-07-16 Thread Justin Heesemann

more thoughts..
the reason why maildrop exits 75 is the sigpipe it receives, because 
vdelivermail exits 100 without reading the pipe. so a hack would be to 
always read the input, even if the user does not exist. i might prepare 
a patch for this on the weekend.

you could test this right now by changing your to maildropfilter line 
to something like:
VPOP=| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox
to | /usr/bin/tee /dev/null 2/dev/null $VPOP

hm.. i'm going to test this over the weekend instead of a patch..

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org


[vchkpw] maildrop with bounce-no-mailbox

2004-07-15 Thread Justin Heesemann
Hi..
although this is a highly maildrop regarded question, I have to ask 
here, since maildrop folks seem to be unresponsive..

some of you are using maildrop together with vpopmail, usually somewhere 
in the maildirfilter file there's some line like 
VPOP=| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox

to $VPOP

this works totally fine, when the user exists.
however if he doesn't, vpopmail exits 100, which seems to be a great 
problem for maildrop: any process not exiting 0 makes maildrop exit 
with code 75. this is especially bad, because 75 means for qmail to 
defer this message and try it again and again until the queuelifetime 
is reached. and we all know about those little spammers trying invalid 
usernames...

so, how do you do it?
use the chkuser patch for qmail, so no illegal users get into the queue?
write a wrapper for vpopmail so that it exits 0 even when the user 
doesn't exist?
use some hack for maildrop??

each way seems to have it's own disadvantage :/

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org


Re: [vchkpw] Vpopmail + maildrop

2004-05-15 Thread Justin Heesemann
On Thursday 13 May 2004 05:20, Tan Han Khing wrote:
 Hi All,

 I have problems configuring vpopmail and maildrop to work.
 when i use maildrop, all mails to my local domain fails.
 but mails that are sent from my domain to remote domain, is working
 fine. meaning to says there is something wrong for my incoming
 traffic. (qmail-lspawn)

what are the error messages in your qmail-send log ?

 How do I test maildrop if its working fine?
 This is because when running maildrop mailfilter in my shell, it
 just stop there.

 How do I check if $EXT and $HOST have been successfully passed in?

you could try to put a line like 
`env  /tmp/maildroplog`
in your maildropfilter file

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] Mysql Threads

2003-11-24 Thread Justin Heesemann
On Monday 24 November 2003 19:57, Mandy wrote:
 Hello,

 I saw, that on the mailserver there are 10 Mysqltreads waiting for
 requests. Everyone of the use 10MB RAM (standard installation of the
 rpms) Is this nessesary, our would 2 threads be enought. If yes,
 where can i change this ?
 Because 10 Threads -- 10 MB Ram -- 100MB RAM only for mysql ??

threads ? or processes?

usually threads share memory, processes don't.
so 10 processes with 10mb ram each = 100mb
10 threads with 10mb ram = 10mb

but as vpopmail doesn't use threads, this is quite offtopic.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] read my mail with mozilla]]

2003-11-17 Thread Justin Heesemann
On Monday 17 November 2003 06:13, deny wrote:
 Matt wrote:
  what happens when you hit the Get new messages button?
 
  d

 when i hit this button ,mozilla try to connect to localhost
 but nothing arrive
 this is a log of rc.startmail

 tcpserver: status: 1/40
 tcpserver: pid 2394 from 127.0.0.1
 tcpserver: ok 2394 localhost:127.0.0.1:110 :127.0.0.1::32916
 tcpserver: end 2394 status 256
 tcpserver: status: 0/40
  394  -ERR usage: popup hostname subprogram
 2394  [EOF]

looks like some problem with your rc script.
could you paste the line where qmail-pop3d,qmail-popup and vpopmail are 
started (actually only qmail-popup is started.. but the others should 
appear in the same line)


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] read my mail with mozilla]]

2003-11-17 Thread Justin Heesemann
On Monday 17 November 2003 11:33, you wrote:

 tcpserver: end 2394 status 256
 tcpserver: status: 0/40
  394  -ERR usage: popup hostname subprogram
 2394  [EOF]
 
 looks like some problem with your rc script.
 could you paste the line where qmail-pop3d,qmail-popup and vpopmail
  are started (actually only qmail-popup is started.. but the others
  should appear in the same line)

 of course
 hre is my rc.startmail who starts all the script
 #!/bin/bash
 export 
 PATH=/usr/local/bin:/var/qmail/bin:/var/vpopmail/bin:/usr/local/bin/
 ezmlm:$PATH 
 echo Starting Qmail and Vpopmail daemons ...
 export QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
 /var/qmail/rc 

what exactly is in /var/qmail/rc ?

your qmail start script was somewhat hard to read, because of the 
automatic wrapping of your mail client.. could you attach it to the 
mail? 

oh.. and I am subscribed to the list, please answer to the list only.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] telnet authentification ?

2003-11-05 Thread Justin Heesemann
On Wednesday 05 November 2003 10:50, Florent Gilain wrote:
 Hi again,
 
 I think these configuration files could help you too...

yes..

from your run_qmail-pop3d file:
#!/bin/sh
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup 
\
`hostname` /bin/checkpassword /var/qmail/bin/qmail-pop3d ./Maildir/
INBOX/ 21

/bin/checkpassword should be /var/vpopmail/bin/vchkpw
(or whereever your vpopmail is installed to)

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] telnet authentification ?

2003-11-04 Thread Justin Heesemann
On Tuesday 04 November 2003 18:03, Florent Gilain wrote:
 Hi all,
 
 Oup, email sent twice due to error from my keyboard   ;-(( sorry
 !
 
 Here is my configuration (qmail was installed using the Life With
 Qmail.pdf documentation):
 
 Sun SOlaris 2.9
 openssl-0.9.7c
 Qmail
 daemontools-0.76
 expect-5.39
 ezmlm-0.53
 vpopmail-5.3.29

vpopmail 5.3.29 has a bug which sometimes prevents pop3 login.
could you send the output of 
vmoddomlimits -S test.com 
and
vuserinfo [EMAIL PROTECTED]
(careful if you have clear passwords enabled and this is a valid 
account... just scramble the clear password field in your answer)




-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] vpopmail PECL extension for php

2003-11-02 Thread Justin Heesemann
On Sunday 02 November 2003 03:48, John wrote:
 Thanks,
 
 Yeah, qmailadmin/vqadmin are great tools we use, but I have designed
 a tool
 at work that manages apache vhosts, dialup accounts, dhcp
 leases, etc, all in one application (csr application), and I wanted
 to make my development time for the email/pop/etc.. admin part of the
 tool shorter to save work some money since I knew an extension was
 being developed.
 
 If anyone else would be interested in a working php extension, let me
 know.
 We are using the 5.3.29 series and php 4.3.x, so work would
 mainly support newer versions, not really old vpopmail versions or
 older php versions for now.
 
 I'll contact the vpopmail extension owner, and maybe give a status
 update
 later if anyone's interested.

The problem with the php extension is, that apache has to run as 
vpopmail user. So I've written a small daemon which takes care of all 
of vpopmail's functions for administration (adding domains, aliases, 
users...). php can talk to it with some easy functions and 
authentification is integrated as well.. 
This also enables you to run apache on a different server than vpopmail.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] mysql database on another machine

2003-11-02 Thread Justin Heesemann
On Sunday 02 November 2003 11:20, [EMAIL PROTECTED] wrote:
 Hi to all,
 i use vpopmail for authentication of qmail smtp and it works fine.
 However i have to read accounts for authentication on another machine
 that runs vpopmail (for pop3 service) with. Both use mysql. How can i
 do this?

just use the same mysql server in both of your vpopmail setups ?

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] Re: qmail installation script 1.3.6 final release

2003-11-01 Thread Justin Heesemann
On Friday 31 October 2003 15:35, Nick Harring wrote:
 That's funny, it looked a lot like signal to me. I'd never heard
 about 
 such an install script, and am interested in looking at his
 project since I have needs that aren't the same, but are similar
 enough that I can borrow some of his work.
 Obviously the announcements aren't that regular, since I've been 
 subscribed to this list for something like 8 months now, and this is
 the 
 first one I remember seeing.

Then you are no frequent reader of this mailinglist or you seem to 
easily forget about noise (which is signal to you.. whatever)
I have been notified about the qmail installation script version 
1.3.6rc3
1.3.6rc4
1.3.6rc5
1.3.6rc6
and 
1.3.6 final
via this list.

The linux kernel announcements could interest a lot of people in this 
list, too, so why don't they send their announcements? What about 
quake? I've played quake sometimes, some of you might have played it as 
well.. why not start posting about every new version of other stuff 
people might be interested in? Right, because there are lists/
websites, which take care of this. Freshmeat is just one of them.

It is something different when someone asks Hey, I have trouble setting 
up qmail/vpopmail. Do you know about a script which could do this for 
me?
But since people keep asking these questions regardless of the fact that 
they have been answered a hundred times in the archives, there is no 
need to fill the archives with announcements of new software, unless 
it's named vpopmail.

 I have no real desire to get into some large debate about this,
 however 
 I would definitely say that I vehemently disagree with
 applying a term like entropy to questionably off-topic messages to a
 mailing list. If you're so thoroughly concerned with signal to noise 
 on a list that subscribe to, I'd recommend unsubscribing.
 Particularly since you've demonstrated that you're quite skilled with
 vpopmail, so its doubtful you derive any real benefit from the list,
 other than the emotional highs you get from tearing into people.

Paul has helped so many people on this list, that you might rather think 
of him benefiting from the emotional highs by helping others.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] Log errors

2003-10-28 Thread Justin Heesemann
On Tuesday 28 October 2003 02:05, Ryan Burton wrote:
 Hey all, I was wondering if someone could help me out with this error
 in
 my log files.  Thanks!

looks like a qmail error, not a vpopmail one.
what's your .qmail-default file, and your /var/qmail/users/assign file 
showing? is blasted.602global.com in your virtual domain list?

 
 Oct 27 19:51:47 blasted qmail: 1067302307.787823 starting delivery
 16:
 msg 5496023 to local [EMAIL PROTECTED]
 Oct 27 19:51:47 blasted qmail: 1067302307.787871 status: local 1/10
 remote 0/20
 Oct 27 19:51:47 blasted qmail: 1067302307.789805 delivery 16:
 deferral:
 Temporary_error_on_maildir_delivery._(#4.3.0)/
 Oct 27 19:51:47 blasted qmail: 1067302307.789856 status: local 0/10
 remote 0/20


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] Inserting new users via mysql-insert into the vpopmail database

2003-10-27 Thread Justin Heesemann
On Monday 27 October 2003 14:55, Oliver Etzel - GoodnGo.COM (R) wrote:
 Hello list,
 
 I have vpopmail -with-mysql installation.
 
 I want to create new users like [EMAIL PROTECTED] NOT with vadduser
 BUT with just .
 
 Any hints,
 how I can generate the encrypted password in the column pw_passwd
 (looks like this $1$S/TPu$GjMMj7yMJqG.0ckx) ???

Dear sir. We have answered your previous question

Date: Fri 24.10.2003 [00:47]
From: Oliver Etzel - GoodnGo.COM \(R\)
Subject: [vchkpw] password generation - vpopmail table - pw_passwd

to some extent. If you did not read the answers of paul allen, michael 
bowe and me, did not visit the page http://bluedot.net/mail/archive/
read.php?f=2i=7411t=7409
like michael suggested, then i guess you should do this right now.
Or hire someone repeating things all day long. I certainly won't do this 
for free.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] suggestions on script

2003-10-27 Thread Justin Heesemann
On Monday 27 October 2003 16:32, Remo Mattei wrote:
 Hello guys is there a way that I can add users with script in a for
 syntax.
 Example
 
 USERS=`cat users`
 LASTNAMES=`cat last`
 
 for myusers in $USERS $LASTNAMES
   do
   vaddusers $myusers
   done
 thanks, 


man awk
www.google.com
./vadduser -h

read this and come back.

 
 Remo Mattei
 Network Security Engineer
  ^
cool title though.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] Change UID and GID

2003-10-26 Thread Justin Heesemann
On Sunday 26 October 2003 00:43, Tom Tu wrote:
 Hi,
 
 My production box was using 89 as the UID and GID. I just migrated
 all the
 mail over and currently can not access the mailboxes through
 sqwebmail or qmailadmin.  I had previous on this test box used 189 as
 the UID and GID for vpopmail and vchkpw.  I deleted those accounts
 and re-created them with the ID of 89.
 
 PROBLEM: vpopmail still picks up 189.  Help!
 
 Thanks,
 Tom

still picks up 189 ?
have you recompiled vpopmail after recreating the vpopmail user ?
and which uid/gid does your /var/qmail/users/assign file show ?

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] Problems with 5.3.29

2003-10-24 Thread Justin Heesemann
On Saturday 25 October 2003 01:45, Martin Kos wrote:
 hi tom!
 
 already gone?
 
 i have a problem with the pop auth... i get for every user a pop
 access denied.. it's not apop. i have compiled without the
 roaming-user option.

even when you telnet to 110?
please give us the exact error message, and provide us with some more 
information about your setup (mysql/cdb/...?)
 

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] password generation - vpopmail table - pw_passwd

2003-10-24 Thread Justin Heesemann
On Friday 24 October 2003 10:57, Oliver Etzel - GoodnGo.COM (R) wrote:
 Hello Remo, hello all,
 
 I know that vadduser will do that, but I want to generate just the
 password so that I can insert it
 solely into the vpopmail mysl-database.
 
 I other words I don´t want to make ./vadduser ... first, I just want
 generate thi user in my database.


basically vpopmail uses your systems crypt function.
just have a look at the other passwords created by the vpasswd function.
do they start with $1$ ? then they are probably md5 crypted passwords.
if they don't, then they are probably normal des crypted passwords. (you 
can check that with 
`grep MD5_PASSWORDS /path/to/vpopmail/source/config.h`)
i don't now if you are using php or anything like that, but most 
languages support some kind of crypt() call.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] Problems with 5.3.29

2003-10-24 Thread Justin Heesemann
On Saturday 25 October 2003 02:04, Martin Kos wrote:
 On Sat, 25 Oct 2003, Justin Heesemann wrote:
 

 even when you telnet to 110?

 yes
 
 vchkpw-pop3: pop access denied [EMAIL PROTECTED]:10.1.0.13
 

 please give us the exact error message, and provide us with some
 more information about your setup (mysql/cdb/...?)

 i'm using vpopmail with mysql.
 
 i have compiled vpopmail with:
 
 ./configure --enable-apop=y --enable-mysql=y
 --enable-learn-passwords=y --enable-logging=v
 --enable-mysql-logging=y --enable-auth-logging=y
 --enable-libdir=/usr/lib
 
 i'll try to disable apop and see what happens.

and which version did you update from?
are you still able to add new users/domains ?

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] vadddomain failure

2003-10-23 Thread Justin Heesemann
On Wednesday 22 October 2003 23:38, Thomas Ledet wrote:
  
  /home/vpopmail/bin  (or where ever your vpopmail home dir is) and
  do 
 ./vadddomain..so like below...
 the vpopmail homedir is /var/vpopmail
  
  #./vadddmomain testdmomain.com 123test

 
 I get the exact same result and I don't really see what diffence it 
 should make

You're right, and it shouldn't.
Have you tried running strace ?
# strace ./vadddomain testdomain.com 123test

this might give us a little more information about what is going wrong.
the error message, which you get, only occurs when vpopmail has trouble 
accessing /var/qmail/control/locals   (or whereever your qmail 
directory may be), so maybe this file doesn't exist, or vpopmail can't 
access it for some reason.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] maildrop

2003-10-23 Thread Justin Heesemann
On Wednesday 22 October 2003 20:42, Alexander Bruns wrote:
 Hi,
 
 where Do I find Informations about getting maildrop work with
 vpopmail? I put a .mailfilter in the users homedirectory to
 /home/vpopmail/domains/mydomaind.local/username/.mailfilter
 and a 
 /home/vpopmail/domains/mydomaind.local/username/.qmail
 with only one line in it:
 | /usr/local/bin/maildrop


 /usr/local/bin/maildrop:_Unable_to_create_a_dot-lock./

have you tried changing the .qmail line to 
| /usr/local/bin/maildrop /home/vpopmail/domains/mydomaind.local/
username/.mailfilter
?

from the maildrop man page:
If /etc/maildroprc does not exist, or its mail delivery instructions do
not  completely  dispose  of this message, maildrop then reads the mail
delivery instructions from $HOME/.mailfilter.

which would, afaik be: /home/vpopmail/domains/mydomaind.local
and not /home/vpopmail/domains/mydomaind.local/username

if your unsure, just create a .qmail-test file in your 
~vpopmail/domains/mydomaind.local reading:
| env  /tmp/qmail-env

then send a mail to [EMAIL PROTECTED] and check the /tmp/qmail-env 
file for the HOME variable

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] domain quotas..

2003-10-23 Thread Justin Heesemann
On Thursday 23 October 2003 20:48, B. Cook wrote:
 Hello,
 
 I've been trying to figure out how to get domain quota's working. 
 I'm
 wondering if anyone else does them.
 
 Do I need to zero out the users quota in order for domain quota's to
 work?

no. vlimits support domain quotas. the setting is:
first check if domain quotas have reached its limit, then check for user 
quotas.

you will need to use the development version, as there is no vlimit 
support in the stable tree.

this has been covered in the mailing list before, so i suggest next time 
you read the archives.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] suggestions on vmoddomains

2003-10-23 Thread Justin Heesemann
On Thursday 23 October 2003 18:37, Remo Mattei wrote:
 Hi guys here is my command
 
 Running vpopmail v .5.3.29
 
 vmoddomlimits -P 200 me.com
 Failed to vget_limits

yeah.
this has been posted before:
you have to create a vlimits.default file in ~vpopmail/etc/
if you run the cvs version you can also do
vmoddomlimits -V -P 200
to set the default value for the max amount of pop accounts to 200 for 
all domains.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] adding domains error

2003-10-21 Thread Justin Heesemann
On Tuesday 21 October 2003 18:40, Trey Nolen wrote:
  Should we update the code so that it doesn't generate an error if
  neither .qmailadmin-limits or vlimits.default exist?

 That would be good because I'm sure there are a lot of servers like
 ours out
 there that don't have either file in most of their existing
 domains. 
Oh, and i forgot to mention:
you don't need an .qmailadmin-limits file for every domain, but just the 
vlimits.default file (in ~vpopmail/etc/) to make the error message 
disappear.

a vlimits.default file might look like

maxpopaccounts: -1
maxaliases: -1
maxforwards: -1
maxautoresponders: -1
maxmailinglists: -1
quota: 0
maxmsgcount: 0
default_quota: 0
default_maxmsgcount: 0
perm_account: 0
perm_alias: 0
perm_forward: 0
perm_autoresponder: 0
perm_maillist: 0
perm_quota: 0
perm_defaultquota: 0


(which ofcourse doesn't limit anything at all ;)

a better way would be to have vmoddomlimits create one for one domain of 
yours, and then copy that 
~vpopmail/domains/domain.com//.qmailadmin-limits file to 
~vpopmail/etc/vlimits.default


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: [vchkpw] vuserinfo problems

2003-10-14 Thread Justin Heesemann
On Tuesday 14 October 2003 22:41, Abdul Mahzeer wrote:
 Hi all,

 I've been using vpopmail for awhile now in conjunction with qmail and
 recently i've been trying use vpopmails vuserinfo utility.  When i
 type vuserinfo -Q [EMAIL PROTECTED] it gives me an output that says
 0%.  It is my understanding that the -Q option displays quota usage,
 and i know that this user has over 500 messages (all are marked
 unread) in his box yet it says that 0% of his quota is used (which
 happens to be 20MB).  My question to you guys is what constitutes a
 user's quota?  Is vuserinfo the wrong utility to use to determine how
 much of a user's quota remains?

no, it should do list the quota..

# ~vpopmail/bin/vuserinfo -Q [EMAIL PROTECTED]
2%

is shown at my box (vpopmail-devel-5.3.29-cvs), for a test user with a 
100Kb quota, after i sent him a 2kb message.

habe a look at this file:
~vpopmail/domains/mydomain.com/user/Maildir/maildirsize

what does it show in your case?
also, which vpopmail version are you using?

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] different per user quotas on a single domain

2003-10-11 Thread Justin Heesemann
On Saturday 11 October 2003 13:47, Animesh Bansriyar wrote:
 Hi All,

 Is it possible to implement per user level per domain based quotas
 with vpopmail. Suppose I have a virtual domain using vpopmail and
 want some users to have 2 MB quotas, some to have 5 MB quotas and
 some say, 10 MB quotas. What do I do.

 I have searched the Mailing List Archives, Google extensively but was
 unable to come up triumphs.

 I would be really grateful if somebody could send me some pointers on
 this.

 With Warm Regards,
 Animesh

domain quotas need vlimits, so you have to use the -devel branch.
--enable-domainquotas=y  is the config switch.
then it should be fine. user quotas get checked first, domain quotas 
afterwards (so you can even do things like: user1 2mb, user2 10mb and 
domain 10mb = when user1 has reached his quota, user2 can only use 
8mb..

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] How to backup/recovery vpopmail domain and account ?

2003-10-10 Thread Justin Heesemann
On Friday 10 October 2003 21:40, songrit wrote:
 Thank you for answer. I have some problem. In my vpopmail/domain is
 large.I use this server with IMAP  POP3 . i can't backup. I want
 mail domain. not want data in mail box.

i read this as: you want to save your email account settings (passwords, 
usernames) but you don't want to save the emails, correct?
well. at least mysqldump the vpopmail database and save the 
/var/qmail/control  and /var/qmail/users  directories.

you can save the ~vpopmail/domains directory structure without the 
emails, too. (find ~vpopmail/domains -type d)


 - Original Message -
 From: greg gede [EMAIL PROTECTED]
 To: songrit [EMAIL PROTECTED]
 Sent: Friday, October 10, 2003 12:13 PM
 Subject: Re: [vchkpw] How to backup/recovery vpopmail domain and
 account ?

  back up vpopmail database using mysqldump and also
  back up vpopmail/yourdomain using compression tool
  like tar or zip or both.
 
  why do you want to back up anyway?? do you want to
  upgrade??

lol?
maybe he doesn't want his complete email setup to go oneway to nirvana, 
when his disk dies? everybody should backup his email settings. (it's 
hard enough to tell your customers that all their unfetched mails are 
lost, but that all there email accounts are gone too? the learning 
password feature is great, but it doesn't cover what a backup can do.)

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] virtual domain limit in /var/vpopmail/domains ?

2003-10-08 Thread Justin Heesemann
On Wednesday 08 October 2003 16:27, Jan Reilink wrote:
 Hi list,

 Running vpopmail 5.2.1 we noticed the following:

 We have 17287 virtual domains in /var/vpopmail/domains and new
 domains are now placed in /var/vpopmail/domains/0/ (100 in total) and
 /var/vpopmail/domains/1/ (65 at this moment).

 Is there a maximum per directory ? And, if yes, the maximum is?

 [EMAIL PROTECTED]:/var/vpopmail/domains# ls -1 |wc -l
17287
 [EMAIL PROTECTED]:/var/vpopmail/domains# cd 0/
 [EMAIL PROTECTED]:/var/vpopmail/domains/0# ls -1 |wc -l
  100
 [EMAIL PROTECTED]:/var/vpopmail/domains/0# cd ../1
 [EMAIL PROTECTED]:/var/vpopmail/domains/1# ls -1 |wc -l
   65
 [EMAIL PROTECTED]:/var/vpopmail/domains/1#

well, i have this from the source (bigdir.c).
it looks like the maximum of users/domains per directory is 100 (it's 
defined in vauth.h : MAX_USERS_PER_LEVEL 100)
this seems to match your /[0-9]/ subdirectories. Ho you ended up, having 
that enormous amount in your domain root dir, is somewhat more 
difficult:
it looks like, vpopmail counts domains per directory and uid.
meaning: you can add 100 domains for user customer1 ('vadddomain -u 
customer1 domain.com') and they all are created in /var/vpopmail/
domains/
then you add another 100 domains for user customer2 ('vadddomain -u 
customer2 domain.com') and they also get created in /var/vpopmail/
domains/

so, i assume, in your case, you have at least 173 different system users 
with an average of almost 100 domains per user.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] SMTP after POP3

2003-10-07 Thread Justin Heesemann
On Tuesday 07 October 2003 19:58, Björn Hahnefeld wrote:
 Hello,

 my system has worked with the SMTP after POP3-mechanism. But
 nowadays it doesn't work. Can everyone tell me what the problem is?

this is a noncommercial tech support mailinglist for a product used by 
system administrators. you won't get any answers unless you provide us 
with enough information :)

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] bounce-no-mailbox

2003-10-07 Thread Justin Heesemann
On Tuesday 07 October 2003 20:05, Kevin Angus wrote:
 I was looking for the other values/actions that can be used in the
 dot-qmail (.qmail) file, I simply want to delete any e-mail where the
 host does not exist. I changed bounce to delete so now I have
 delete-no-mailbox and when I send an e-mail to [EMAIL PROTECTED] (
 the host nobody does not exist) I no longer see any forwards in my
 [EMAIL PROTECTED]

is there a question in this email? no? fine. next please :)


there's no such thing as 'delete-no-mailbox' unless you have changed 
vpopmail.h.  the real name is just 'delete' and a .qmail-default file 
would look like:
|/var/vpopmail/bin/vdelivermail '' delete

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] My mail server is deleting accounts

2003-08-21 Thread Justin Heesemann
On Thursday 21 August 2003 15:08, Jesus Ruiz wrote:
 My authorization backend is mysql. The maildirs are missing too.

 I create the accounts with the default utilities.


well then this looks like someone removed the accounts using the tools. 
if only you have access to these tools, and you have nothing like 
qmailadmin or the php vpopmail extension running, then it was either 
you, who deleted them, or somebody who shouldn't be able to do so.

do you have a mysql.log ? this might become usefull, when you want to 
determine when the accounts disappeared (delete from vpopmail...)

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] My mail server is deleting accounts

2003-08-20 Thread Justin Heesemann
On Wednesday 20 August 2003 23:40, Jesus Ruiz wrote:
 i'm using qmail with vpopmail 5.2.1. I check all my mail accounts and
 some of there are missing, but nobody delete it.

 Anyone has any clue, why this is happening.

 Thanks in advance.

 Jesus

are the maildirs missing too? or just the entries in your auth backend? 
(which is ?!? in your case?)? or vice-versa ?

are you running anything like qmailadmin? or do you create all account 
yourself with the default utilities?
 
-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] need some help in VPOPmail

2003-08-14 Thread Justin Heesemann
On Monday 11 August 2003 12:11, kareem kamel wrote:
 Hi all,

 I have installed VPOPMail, but how do i know that it is working ?
 also now when i am trying to add user this error appear to me
 *
*** Error: Unable to chdir to vpopmail/users directory
 *
***

 Also when i make telnet on my pop3 port and wrting my username and
 passwrod this error appears to me:
 *
*** -ERR unable to write pipe
 *


 So any one can help me in solving these problems as i think if
 continued thinking in this problem , i ll have no hair to pull put
 :))

how did you install vpopmail ?
the first error message looks like a permission problem.
could you show the output of  ls -l ~vpopmail please ? (i assume your 
vpopmail system user is called vpopmail)

oh.. and would you please add how your pop3 daemon is started ? 

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] SQL data

2003-07-30 Thread Justin Heesemann
On Monday 30 July 2001 15:20, Rudi Ahlers wrote:
 I know this is not entirely an SQL mailing list, but how do I dump
 only my database table layout? I don't want a dump of all the data


man mysqldump 

...
-d|--no-data
  No row information.
---

so i assume   mysqldump -d databaseyouwanttodump
does the job


and this really is not entirely a SQL mailing list.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] Usernames in vpopmail

2003-07-02 Thread Justin Heesemann
On Wednesday 02 July 2003 22:12, Ajai Khattri wrote:
 What is the reason we can't have single letter usernames in vpopmail?
--with-users-bigdir=n

and voila: you can use single letter usernames.
hashing is disabled though..

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] Mailer-Daemon Message Sizes

2003-04-05 Thread Justin Heesemann
On Saturday 05 April 2003 00:55, Wil Hatfield - HVHM Customer Care wrote:
 I am sure Is there a way to chop the size of Postmaster and Mailer-Daemon
 messages? When a user gets an over quota bounce or any other bounce for
 that matter and there is an attachment the bounce is HUGE. Limiting it to
 the first 1024 or 2048 characters would be IDEAL.

 Thanks for the help.

 Wil Hatfield

www.qmail.org  and search for bounce
this is what you may find:
http://www.jedi.claranet.fr/qmail-bounce.patch


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] apostrophe in username?

2003-04-04 Thread Justin Heesemann
On Friday 04 April 2003 16:37, Trevor Little wrote:
 I'm trying to add a username of to'donnel using the qmailadmin interface
 as well as on the command line with vadduser and I'm returned Illegal
 username.  Am I out of luck?

it is simply not allowed to have ' in usernames.
have a look at the rfc's .. 

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




[vchkpw] vadmind + vlimits patch

2003-04-03 Thread Justin Heesemann
 vpopmail-dev with user patches on something that 
valuable, will you?


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org


vadmin-vlimits-5.3.19.diff.gz
Description: GNU Zip compressed data


Re: [vchkpw] fail install vpopmail-5.3.19

2003-04-02 Thread Justin Heesemann
On Wednesday 02 April 2003 16:59, Andrew wrote:
 On Tue, 2003-04-01 at 14:58, Lanny wrote:
  Hi,
  Anyone know a fix for the following:
 
  ./toaster_setup.pl -s vpopmail
 
  Do you want password learning? (y) (y/n): y
  Do you want logging enabled? (y) (y/n): y
  Do you want verbose logging? (y) (y/n): y
  Do you want to use a default domain? (y/n): y
  Please enter your default domain: domain.com
  Do system users (/etc/passwd) get mail? (n) (y/n): n
  Do you use valias processing? (n) (y/n): y
  Do you want mysql logging? (n) (y/n): n
  Do you want mysql limits? (n) (y/n): n
  Do you want mysql replication enabled? (n) (y/n): n
  Please enter your MySQL read server hostname. (localhost) :localhost
  Please enter your MySQL user name. (vpopmail) :vpopmail
  Please enter your MySQL password: secret
  Do you want vpopmail's domain quotas? (n) (y/n): n
 
  [snip compile]
 
  gcc -I. -I/usr/local/include/mysql -g -O2 -Wall -c vchkpw.c
  vchkpw.c:40: shadow.h: No such file or directory
  *** Error code

 Does the file exist? Who are you running toaster_setup.pl as? Usually
 when I see an error like that, the script needs permissions to that
 library but doesn't have it.

we're speaking of shadowlib here.. i'd say the user he runs the script as, 
should be able to access shadow.h. does /usr/include/shadow.h exist? by the 
way.. which OS are you using ?? i guess there are still some which don't have 
shadow passwords.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] disclamer or footer

2003-04-02 Thread Justin Heesemann
On Wednesday 02 April 2003 19:29, Kenneth Ling wrote:
 how to add the disclamer or footer message on the each outgoing email
 and on difference domain..

search the qmail archives. this question has been asked so many times...


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] bogofilter with vpopmail?

2003-04-02 Thread Justin Heesemann
On Wednesday 02 April 2003 18:02, Robin Bowes wrote:
 Justin,

 On Mon, March 31, 2003 2:51 pm, Justin Heesemann said:
   furthermore you might want to try move the .qmail-bogo-spam  file to
   /home/vpopmail/domains/robinbowes.com/.qmail-bogo-spam

 This works.

   and move the .qmail file to
   /home/vpopmail/domains/robinbowes.com/.qmail-robin
 
  Would this catch everything delivered to [EMAIL PROTECTED]
 
  the problem is: i think vpopmail completly ignores
  ~vpopmail/domain.com/user/.qmail-ext  files.

 At the risk of repeating myself, is there any particular reason for this?
 Is there any work around?

i don't think there is a well defined reason.. however vpopmail is designed 
for many users. and as you can see from the directory structure  (chmod 700 
vpopmail.vchkpw) it is not meant that every user puts his own .qmail-whatever 
files in that tree, even more so, as most of these users don't know what to 
put in it and could do some damage by (imagine someone putting a 
|rm -fR ~vpopmailalias into his own .qmail file..)

well, some of us know what to do with .qmail files, but no one forces you to 
use vdelivermail for them. you can probably put them into 
/var/qmail/users/assign and still have all other users of that domain use 
vdelivermail.


  so you could stick with your
  /home/vpopmail/domains/robinbowes.com/robin/.qmail
  file to catch all [EMAIL PROTECTED] mail
  and use a /home/vpopmail/domains/robinbowes.com/.qmail-robin-bogo-spam
  file to
  catch mail for
  [EMAIL PROTECTED]  (mail to this adress won't be processed
  by the
  robin/.qmail file)

 I've done this and it works.

 However, this is rather awkward to use for several users. I guess a more
 centralised way to do this would be to run bogofilter from qmail-queue and
 to use maildrop to filter the messages as they are delivered, or even
 filter in the MUA.

bogofilter is best used with different spam/ham lists for every user. as it 
learns, which mail users receive you'll get less good results when you use 
only one database for all. furthermore, imagine a newsletter. some users may 
see it as spam, and mark it that way..

i use it in a domain based way: one database for each domain (they have only 
few users, who often share the same interests)

also, why do you have to filter the mail for them? add the **spam** part to 
the subject and have them filter those mails themselves.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] Multiple mail delivery

2003-04-01 Thread Justin Heesemann
On Tuesday 01 April 2003 11:40, Juraj Hantak wrote:
 Hi,

 I have a problem with mail delivery.

 Imagine situation you have one mail box:

 [EMAIL PROTECTED]

 and you have in .qmail-default

 | patch to vpopmail/bin/vdelivermail '' patch to vpopmail/test.com/catchall

 When you send mail one mail to multiple addreses in one domain
 eg.
 TO: [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]

 the mail will be delivered twice into the catchall mailbox.

 Can you help me how to fix this bug in vdelivermail please?

this is not a bug. this is the feature of a catchall account. the mail comes 
in twice via qmail, so vdelivermail is starte two times and every time 
delivering the mail like it should.


 Or can you help me how to make it to deliver just one time.

you would have to run some kind of duplicate mail check tool. try google or 
the qmail archives. there is no way that i know of, to make vdelivermail 
check for duplicates out of the box.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] path / tcp-smtp / relay

2003-04-01 Thread Justin Heesemann
On Tuesday 01 April 2003 12:54, [EMAIL PROTECTED] wrote:
 When i get mails via POP, my tcp.smtp.cdb file is been
 regenerated and is containing the correct IPs. The IPs wich
 shall be open for relay until clearopensmtp removes the entries
 a while later ... So, all is functional here. tcp.smtp.cdb
 is updated ..

 But it seems that qmail ONLY looks into it´s rcpthosts file and
 NOT into the tcp.smtp.cdb ...

 My qmail-smtpd startup is like

 exec /usr/bin/softlimit -m 800 \
 /usr/bin/tcpserver -c512 -H -R -v -x/etc/tcp.smtp.cdb \
 -u $QMAILDUID -g $NOFILESGID 0 smtp \
 rblsmtpd /var/qmail/bin/qmail-smtpd 21

 And as i said, all seems to work fine.
 The tcp.smtp.cdb file is been regenerated when i authenticated
 via pop and also the clearopensmtp works (removal of the IPs).

how did you configure your vpopmail ?
by default vpopmail updates ~vpopmail/etc/tcp.smtp.cdb and not 
/etc/tcp.smtp.cdb

 I use mysql so i can see the ips twice, first in the mysql tabe
 and second in the tcp.smtp.cdb.

 i chmodded tcp.smtp* to 777, too but it is still not working.

 Help needed because now my machine is open for relay...

 Why does my qmail seems not to be reading the tcp.smtp.cdb ?!
 Any path setting missing or shall i symlink something ?

did you try -x /etc/tcp.smtp.cdb  instead of -x/etc/tcp.smtp.cdb (i'm not sure 
this will change anything.. just a shot into the dark)

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] Multiple mail delivery

2003-04-01 Thread Justin Heesemann
On Tuesday 01 April 2003 19:58, Kenneth Ling wrote:
 hi
 I have other question to ask..base on the [EMAIL PROTECTED]
 if I send a mail BCC to [EMAIL PROTECTED]
 and it will auto send to [EMAIL PROTECTED] maildir..
 my question is.. from that email on [EMAIL PROTECTED], how do I know that
 email is actually to [EMAIL PROTECTED]

.qmail-default gets the variables $EXT and $HOST. ([EMAIL PROTECTED] is the original 
receipient, so far as i know)
you could write a small tool which simply precedes every mail with
Orig-Rcpt: [EMAIL PROTECTED]

and then passes the complete message.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] bogofilter with vpopmail?

2003-03-31 Thread Justin Heesemann
On Monday 31 March 2003 09:01, Robin Bowes wrote:
 Hi,

 Has anyone got much experience using bogofilter with vpopmail?

 I'm looking into implementing it but not having much look.

 Here's what I've got so far:

 In /home/vpopmail/domains/robinbowes.com/robin/.qmail:
 |condredirect robin-bogo-spam /usr/bin/bogofilter

 ./Maildir/

 In /home/vpopmail/domains/robinbowes.com/robin/.qmail-bogo-spam:

 ./Maildir/.Spam.unverified

at least you should add a / to that line. and use maildirmake to create 
.Spam.unverified

furthermore you might want to try move the .qmail-bogo-spam  file to 
/home/vpopmail/domains/robinbowes.com/.qmail-bogo-spam
and move the .qmail file to 
/home/vpopmail/domains/robinbowes.com/.qmail-robin



I'm using bogofilter but instead of moving mail to some other Maildir, i'm 
using the -p option to add a X-Bogosity Header and have my MUA filter it 
(Outlook Express can't but most others can filter userdefined headers)



-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] bogofilter with vpopmail?

2003-03-31 Thread Justin Heesemann
On Monday 31 March 2003 14:53, Robin Bowes wrote:
 Hi Justin,


  furthermore you might want to try move the .qmail-bogo-spam  file to
  /home/vpopmail/domains/robinbowes.com/.qmail-bogo-spam
  and move the .qmail file to
  /home/vpopmail/domains/robinbowes.com/.qmail-robin
 Would this catch everything delivered to [EMAIL PROTECTED]

the problem is: i think vpopmail completly ignores  
~vpopmail/domain.com/user/.qmail-ext  files.

so you could stick with your
/home/vpopmail/domains/robinbowes.com/robin/.qmail
file to catch all [EMAIL PROTECTED] mail
and use a /home/vpopmail/domains/robinbowes.com/.qmail-robin-bogo-spam file to 
catch mail for 
[EMAIL PROTECTED]  (mail to this adress won't be processed by the 
robin/.qmail file)


-- 
Mit internetten Grüßen
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] MySQL configure trouble

2003-03-29 Thread Justin Heesemann
On Saturday 29 March 2003 23:16, Niklas Saers Mailinglistaccount wrote:
 Hi, I'm running vpopmail on a FreeBSD box. I've just installed it from
 scratch through ports with the following options:

 -DWITH_MYSQL -DWITH_MYSQL_LARGE_SITE -DWITH_MYSQL_LIMITS \
 -DWITH_IP_ALIAS -DHARDQUOTA=1000 -DLOGLEVEL=y -DWITH_MYSQL_LOG \
 -DWITH_MYSQL_SERVER=my.server.com -DWITH_MYSQL_USER=vpopmail \
 -DWITH_MYSQL_PASSWD= -DWITH_MYSQL_DB=vpopmail

 However, when installed it doesn't seem to recognize my DB parameters.
 When I try adding a domain I get:

 # bin/vadddomain mydomain.com 
 could not connect to mysql update server Can't connect to local MySQL
 server through socket '/tmp/mysql.sock' (2) with database could not connect
 to mysql update server Can't connect to local MySQL server through socket
 '/tmp/mysql.sock' (2) vmysql: sql error[c]: MySQL server has gone away
 vmysql: sql error[b]: MySQL server has gone away
 vmysql: sql error[3]: MySQL server has gone away
 vmysql: sql error[c]: MySQL server has gone away
 vmysql: sql error[c]: MySQL server has gone away
 vmysql: sql error[b]: MySQL server has gone away
 vmysql: sql error[3]: MySQL server has gone away
 vmysql: sql error[2]: MySQL server has gone away
 Error: Unable to chdir to vpopmail/users directory

 Apparently it tries to use an unnamed database on the localhost
 mysql-server. Since I run a separate DB server, it cannot connect to the
 localhost db server as it is not running.

 Any clues? Is there some parameters I could add to increase the logging?

 Cheers

Nik

it seems ports isn't updating vmysql.h. either try compiling from source or 
check the vpopmail ports package..
there are no parameters like --with-mysql-server=my.dbserver.com 
--with-mysql-user=vpopmail .. so ports would have to change vmysql.h itself

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] Inter7 mail server doesn't have reverse DNS!

2003-03-28 Thread Justin Heesemann
On Saturday 29 March 2003 14:25, dWi saSonO b wrote:
 On Fri, 28 Mar 2003 09:53:47 +0100

 Lucas Valdeón [EMAIL PROTECTED] wrote:
   Hi,
 
   Talking about reverse dns I have a little problem.
  In the same machine there are several ips. In the first ip .71 there is
  no service.
  In the second one .72 mail is running ( pop3, smtp ).
  .71 has reverse dns ( ssh.x.com )
  .72 has reverse dns ( mail.x.com )
  Qmail send mail from default route .71, so it has reverse dns, but it is
  not mail.landm.net.
  So I supossed I have to patch qmail to send from a different ip, or move
  mail service to another one.
  Is correct to send mail from a reverse dns in the same domain, but
  different hostname that MX entry ?
 
  Thank you in advance,
 
  Lucas

 errr correct me if im wrong.
 reverse dns needed with smtp to validate IP and nameserver ?
 some of smtp server around the world need reverse dns to validate your smtp
 server some time if your smtp server can't be validate .. there's
 posibility your email message denied.

 ps.
 i dont know if this in RFC thought

exactly. and as some people in this list already pointed out: it is not.
i don't like people to enforce their strict policies on me, unless these 
strict policies are legal. what's next? everybody needs to run an ident 
daemon on his mail server ?

if you want to help your customers getting rid of their spam, why not force 
them to use a spam filter? oh, i forgot.. they pay you and we don't.
it's pretty obvious, that as long as the reverse dns isn't in RFC, chances are 
that the good guys send mail from servers without reverse dns. = if you 
don't accept mail from them, your customers will lose ham mail.


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] vlimits patch [1/??]

2003-03-27 Thread Justin Heesemann
On Thursday 27 March 2003 14:35, you wrote:
 Could someone provide details of what vlimits patch does.

 I have seen some interesting threads about it

 thanks

 Matt.

basically it lets you limit the usage of a vpopmail controlled domain.
this means: 
limit the max no of pop accounts/forwards/aliases/mailinglists
set max domain quota and max message limit (per domain)
set default quota/message limit for every new user
limit the permissions you have with qmail-admin


so far for theory. at the moment the max number of pop accounts isn't 
enforced in vpopmail (actually vpopmail really doesn't care).. and most other 
features also only work with qmailadmin.

i'm going to provide patches for the other tools, so that you won't be able to 
create a vpopmail pop account when max_popaccounts=10 and there already are 
10 popmail accounts..

this will be more difficult for the forwards/mailingslists, as they just 
aliases. (and there is a limit for aliases as well). same for autoresponders. 
to limit autoresponders/mailinglists one would have to define a autoresponder 
at compile time (one thing that i think we should do)


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] vlimits patch [1/??]

2003-03-26 Thread Justin Heesemann
On Tuesday 25 March 2003 18:25, Brian Kolaci wrote:
 Do you think we need both domain permissions and
 default new user permissions for each type of permission?
 (This is the case for quotas, a domain limit and a default
 for new users).

 I like the idea of having both (which just generates more
 work...).  But we didn't take that into account with the
 original design.

 I would say that we should do what you were intending
 by using the current values as domain permissions, and
 add a field for default_user_permissions that would
 populate the gid field of the user password entry.
 What I would also do is encapsulate the code you
 wrote into a function (you don't need the #ifdefs)
 and have it return the mask which can be AND'd with
 the gid field of the password entry.  This masking
 function could go into vlimits.c and called in the
 vauth_getpw() functions.

sounds good to me. I guess a single field added to the mysql table for 
default_user_permissions is enough, as it only has to contain the mask. 
(Well, we could have done this to the disable_* as well, it wouldn't bloat 
the mysql table that much)
something like enforced_domain_permissions and default_user_permissions .. but 
if it's to late to change that now, i won't object :)

i'm adding two functions now:
vget_limits_default_mask (const char *domain, int *mask)
vget_limits_enforced_mask (const char *domain, int *mask)

but I thought about making some changes to vset_limits/vget_limits plus 
changing the structure of .qmail-limits/mysql:vpopmail.limits
to drop all the disable_* and replace it with the masks.

i'll also add an update script which makes the necessary changes to existing 
.qmailadmin-limits/mysql:vpopmail.limits

only someone would have to alter the qmailadmin for me (i've never touched 
that thing :) )

(well .. i will only start with the altered tables/.qmailadmin-limits files if 
you say it's ok.. I don't know how many out there are already using vlimits. 
i think the masks help adding future disable flags without having to change 
the table structure every time, so yes, we have a incompatible update this 
time, but _only_ this time)

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] About to release new devel version 5.3.20

2003-03-25 Thread Justin Heesemann
On Tuesday 25 March 2003 01:47, Brian Kolaci wrote:

 Hi Justin,

 There are currently ways to limit IMAP.  One thing you
 should remember is that the vlimits API is for full domain
 limits, not individual users.  There are permission bits in the GID
 field in the password entry for the user.  These I believe
 work.  Before actually implementing the API, I sent out a request
 for all the additional items people wanted to see over and above
 what I wanted.  This way the database schema would only have to be
 written once, and filled in later.  Some limit the qmailadmin app,
 others go directly into vdelivermail.  Others will go into other
 areas.

 Overall, I think we have a functional system as is, with placeholders
 for future features.  The wishlist is high, but only so many things
 can make each release.  If you've got the cycles and can crank out
 some of it tonight, send in a patch.


Hm, i tried to explain by mentioning disable_imap as an example. disable_pop, 
disable_smtp, disable_webmail ... things like that should be cared for in 
vchkpw. furthermore, vadduser doesn't care for maxpopaccounts, valias ignores 
maxaliases... I guess it's ok, the way it is now. And: I love it the way it 
is for a 5.3.20.
But: not for 5.4.0. The next stable release shouldn't have placeholders for a 
very nice system and get some of the features added for every update release. 
Instead it should have a working system with fully implemented vlimits. But 
this is just my opinion, and since I've always used the vpopmail-dev 
versions, the whole 5.4.0 release isn't bothering me that much :)


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




[vchkpw] vlimits patch [1/??]

2003-03-25 Thread Justin Heesemann
this enforces the disable_* vlimits:
e.g: if vlimits.disable_imap=1 it is the same as if every user has the NO_IMAP 
gid flag set.
i'm going to post (a very similar one) tomorrow for .qmail-limits files.
is there vlimit support being added for postgres/sybase/oracle ?


--- vpopmail-orig-5.3.19/vmysql.c   2003-03-05 18:09:47.0 +0100
+++ vpopmail-new-5.3.19/vmysql.c2003-03-25 16:22:13.0 +0100
@@ -327,6 +327,10 @@
  uid_t myuid;
  uid_t uid;
  gid_t gid;
+#ifdef ENABLE_MYSQL_LIMITS
+ struct vlimits limits;
+#endif
+

 vget_assign(domain,NULL,156,uid,gid);
 myuid = geteuid();
@@ -406,6 +410,35 @@
 return(NULL);
 }
 mysql_free_result(res_read);
+#ifdef ENABLE_MYSQL_LIMITS
+if (vget_limits (in_domain,limits) == 0) {
+  int mask = 0;
+  if (limits.disable_pop) {
+mask += NO_POP;
+  }
+  if (limits.disable_smtp) {
+mask += NO_SMTP;
+  }
+  if (limits.disable_imap) {
+mask += NO_IMAP;
+  }
+  if (limits.disable_passwordchanging) {
+mask += NO_PASSWD_CHNG;
+  }
+  if (limits.disable_relay) {
+mask += NO_RELAY;
+  }
+  if (limits.disable_webmail) {
+mask += NO_WEBMAIL;
+  }
+  if (limits.disable_dialup) {
+mask += NO_DIALUP;
+  }
+
+  vpw.pw_gid = vpw.pw_gid | mask;
+}
+#endif
+
 return(vpw);
 }




Re: [vchkpw] vlimits patch [1/??]

2003-03-25 Thread Justin Heesemann
On Tuesday 25 March 2003 17:34, Brian Kolaci wrote:
  i'm going to post (a very similar one) tomorrow for .qmail-limits files.
:)
i think this should stay in the vauth_getpw function (which is in vauth.c).
this way, when you later decide to  disable_imap=1 you won't have to change it 
for all the users in that domain. also authvchkpw.c (from 
courier-imap/authlib) directly calls vauth_getpw.
and as i said.. i'm posting a patch vor vcdb.c/vpgsql.c/vsybase.c tomorrow to 
cover the other auth modules.

anyways, i can see that the vpopmail.c:vadduser approach also has a good 
point: vlimits would then only serve as a default for each domain. one 
could still enable _single_ users to access their mail via imap/webmail/ ... 
or disable smtp for others. maybe some others post their opinion on this?

brian: is this what vlimits was originally indented to be? a default setting 
for the users of a domain (well plus some generall max settings..)? 

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] delete old mails

2003-03-24 Thread Justin Heesemann
On Monday 24 March 2003 13:22, Andrew Kohlsmith wrote:
  i have the same idea with this kind problem
  where user can get email his latest email only
  all email that not filter nor move is automaticaly delete
  i think this need some changing on vpopmail code

 Can you elaborate?  I'm not sure I understand what you are trying to say.

 I use a cron script with the 'find' command to find spam email older than
 21 days and remove it automatically.  It erases about 500 emails a day now.

 Regards,
 Andrew

at least paul said it in a way i could understand:
he wants to delete _old_ mail in case new mail arrives but would be bounced if 
that _old_ mail wasn't deleted.

old mail could be mail in the Maildir/cur directory. However, if you retrieve 
mail but do not delete it from your pop3 account, this could be for a reason, 
don't you think? If I'm on the road and just check my mail via web2mail.com 
(or something similar).. I might expect the very important job offer/customer 
request/. to still be in my pop3 account and not being deleted for some 
dumb 7mb spam.

and even if that 7mb mail was more important than any old mail i still have 
in my pop3 account: the sender is notified, that i did not get it and may 
therefor send it again.

Pail: if you really want to do this, i think you would have to alter 
vdelivermail.c yourself, as there is no patch, that i know of.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Justin Heesemann
On Monday 24 March 2003 20:53, Ken Jones wrote:
 I'm about to release a new 5.3.20 devel version.

 Does anyone have any patches they  would like to submit?


 Thta's about it.
 If no one submits patches by end of day Tuesday, I'll
 release 5.3.20 as is. The plan then is to let Bill
 Shupp finish up some things before we release a
 new 5.4.0 stable version in association with a new
 qmailadmin 1.2.0 release.


Fine. I really think we should finish vlimits before 5.4.0. At least to an 
extent where it actually is doing something.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] About to release new devel version 5.3.20

2003-03-24 Thread Justin Heesemann
On Monday 24 March 2003 22:05, you wrote:
On Monday 24 March 2003 20:53, Ken Jones wrote:
 I'm about to release a new 5.3.20 devel version.

 Does anyone have any patches they  would like to submit?


 Thta's about it.
 If no one submits patches by end of day Tuesday, I'll
 release 5.3.20 as is. The plan then is to let Bill
 Shupp finish up some things before we release a
 new 5.4.0 stable version in association with a new
 qmailadmin 1.2.0 release.
   
Fine. I really think we should finish vlimits before 5.4.0. At least to
an extent where it actually is doing something.

 Its been working for me since mid last year.  I've submitted
 the patches only this year, starting around January.
 It essentially wraps the .qmailadmin-limits file access
 to an API and also allows the information to be stored
 in MySQL.  When I put together the API, I had asked for
 other wishlist items, which I put into the structures
 but haven't implemented such as permissions.  The quotas,
 limits, defaults limits, etc. all work fine and have been
 for quite some time.

 So I have no idea what you mean that it should do something.

 The infrastructure is now there for people to implement the
 items they wished for.  If I get spare cycles, I'll look
 at them, but the areas I use were done a year ago, except for
 domain quotas which was completed last month.

 Brian

ok, sorry brian :)
it is just that i don't use qmailadmin and i don't want to. if i have some 
option in my vlimits which denies imap, then why does vchkpw allow me to 
login via imap ?? this is what i feel vlimit should do. for limiting some 
userfrontend i actually don't need any feature of vpopmail, as i can easily 
use my own mysql tables.

furthermore there is no single ./vsetlimit utility.
this isn't meant to attack you in any way, brian, and i didn't say _you_ 
should do all this. you did a great job adding the vlimits, which are able to 
do more, than they are doing at the moment.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] what's --enable-file-sync for?

2003-03-22 Thread Justin Heesemann
On Friday 21 March 2003 23:32, Benjamin Tomhave wrote:
 Hello,

 After a few hours of googling, I'm at a loss.  What is
 the --enable-file-sync flag for?  In a previous build, according to my
 notes, I set it to =y.  However, it appears that =n is the default and that
 most people configure that way.  I for one am using a mysql backend, so
 perhaps they're related?  If anybody could set me straight, would
 appreciate it.


i'd say it calls fsync after every write operation to disk. this of course 
slows delivery.

-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] Spam Assassin implementation

2003-03-21 Thread Justin Heesemann
On Thursday 20 March 2003 18:35, Joe Young wrote:

 I have spamassassin running in the user's .qmail. It looks like this...

 | /var/qmail/bin/preline /usr/local/bin/maildrop

  /home/vpopmail/etc/mailfilter

 And the mailfilter script looking like this...
 ##
 #mailfilter
 ##
 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/.JunkMail`
if( $RETURNCODE == 1 )
{
`maildirmake $VHOME/Maildir/.JunkMail;chown -R vpopmail.vchkpw
 $VHOME/Maildir/.JunkMail`
}
to $VHOME/Maildir/.JunkMail/
 }

 to $VHOME/Maildir/



Just one question: what are your users doing with mail in 
$VHOME/Maildir/.JunkMail ? They have to access it in one way as you never can 
be sure whether it is really _only_ spam (well, this is why you save it and 
don't simply drop it). So.. are they all using imap ?
Because this was worrying me. Setting up a spamfilter (i personally would 
stick with bogofilter..) is not my problem, but finding a way for my users to 
handle the spam marked mails.

The X-Bogosity/X-Spam headers would be just great, but not all MUAs support 
filtering for userdefined headers (at least outlook express for windows 
doesn't). So i thought about offering two different solutions which my users 
could choose from:
a) Simply add the X-Bogosity/X-Spam-Status Header for those who don't use MS 
oe.
b) Move Spammail to a second popaccount [EMAIL PROTECTED] since outlookexpress 
can easily handle several pop accounts.

As i thought of using mailaddresses for controlling the spamfilter anyway, 
this would just fit my plan.

any mail to [EMAIL PROTECTED] calls bogofilter with register mail as spam (and 
eventually drops the mail to the [EMAIL PROTECTED] pop3 account)
any mail to [EMAIL PROTECTED] calls bogofilter with register mail as ham 
(and eventually drops the mail at the [EMAIL PROTECTED] pop3 account)


-- 
Mit internetten Grüßen/Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




[vchkpw] vdelivermail.c: first argument ?

2003-03-21 Thread Justin Heesemann
as we all know our .qmail-default to look like
| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox

(or something similar)
what exactly is the '' good for? is this just some relict for compatibility 
reason? the get_arguments function seems to only care for the last argument 
(the last one meaning the second one.. bounce-no-mailbox/[EMAIL PROTECTED])


-- 
Mit internetten Grüßen / Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] vpopmail and courier-imap

2003-03-12 Thread Justin Heesemann
On Tuesday 11 March 2003 21:03, Jason 'XenoPhage' Frisvold wrote:
 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...

when using authdaemon relaying fails = someone who authenticates via imap 
won't be able to _send_ mail (unless he/she uses smtp auth or is generally 
enabled to send mail (tcp.smtp)


-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] vpopmail 5.3.19

2003-03-08 Thread Justin Heesemann
On Saturday 08 March 2003 00:45, Kari Suomela wrote:
 Friday March 07 2003 13:39, Steve Fulton wrote to Kari Suomela:
SF Define user expiry for me, I'm curious as to what you mean.

  SF confrontational, I'm simply curious if you're referring to a
  SF system
  SF where I clients e-mail account or domains expire at a certain
  SF date, or
  SF something else.

 We don't offer lifetime email accounts, so setting the accounts to
 expire automatically at the end of their term, is what we'd like to do.

but is this really something vpopmail should worry about? i guess we could add 
a new option to vadduser, like -x 2003-05-12  which then also adds the expire 
date to the vpopmail sql table. then you would have to run a script once a 
day SELECT * FROM vpopmail WHERE expiredate  CURRENT_DATE and calling 
vdeluser for every returned row.. an automated check every 
vdelivermail/vchkpw is uneccessary and just slows mail delivery down.

-- 
Regards
Justin




Re: [vchkpw] Suggestions a username problem

2003-03-02 Thread Justin Heesemann
On Friday 28 February 2003 23:48, Júlio Espada Olivares wrote:
 by default u need to use at least 2 chars


unless you use the option:
--without-users-big-dir  that's true.
however note that you shouldn't add several thousands of pop3 accounts per 
domain then..

 - Original Message -
 From: Bryan Ballard [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:45 PM
 Subject: [vchkpw] Suggestions a username problem

  I can't seem to get vadduser to add email addresses with only one
  character. for example:
 
  vadduser [EMAIL PROTECTED] test works
 
  vadduser [EMAIL PROTECTED] test -fails with a illegal username error.
 
  I am not sure what is illegal about the username t or any other
  character a-z but any suggestions would be helpful.
 
  --
  Bryan Ballard
  Netsolus Consultants
  http://www.netsolus.com

-- 
Mit internetten Grüßen
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] qmail+vpopmail+mysql+courier-imap+gentoo empty relay table with roamingusers enabled

2003-02-27 Thread Justin Heesemann
On Thursday 27 February 2003 02:12, bob ketterhagen wrote:
 This vpopmail-5.2.1-r4.ebuild everything is default nothing special, I
 have it working on numerous other servers with not a single problem. It'
 s just the newest mailserver I have built that I am having this problem
 on. I can send myself email and recieve it. I can remove the relay
 table, check my email and it readds it but, it continues to stay empty.

 bob

ok.. i guess i might have an answer.
courier-imap-1.7.ebuild makes use of authdaemon.
authdaemon doesn't get the TCPREMOTEIP env variable.
so: what should the poor vpopmail vopen_smtp_relay think it should set ??

i don't know, why this worked on your other servers. i guess you might be 
running another version of courier-imap.
i have an ebuild for courier, which works.. but it's more or less a unclean 
hack.

a quick'n'dirty solution:

make sure  /usr/lib/courier-imap/authlib/authvchkpw  exists.

replace the need net authdaemond lines in your /etc/init.d/courier* scripts
with need net

replace the AUTHMODULES=authdaemon line with AUTHMODULES=authvchkpw in 
your /etc/courier-imap/imapd /etc/courier-imap/imapd-ssl 
/etc/courier-imap/pop3d /etc/courier-imap/pop3d-ssl files.

/etc/init.d/authdaemond stop
/etc/init.d/courier-imap restart

(i hope i've covered every variable i changed...)


-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] Redeliver mail to another MTA

2003-02-27 Thread Justin Heesemann
On Thursday 27 February 2003 13:56, Peter Mikeska wrote:
 Hi, plz can any1 help me ;))
 I have local qmail+vpopmail with few domains, I have few (well many)
 users which use adreses with local domain , but they have also adreses
 from another domain.
 Local .edu .com
 NONLocal .de
 I make virtualdomain .de,.com,edu
 so I want when some local user send mail to [EMAIL PROTECTED] and this
 user exist in my own .de domain, its OK, but when it doesn not exist,
 just redeliver message to another smtp host(regular MX for domain .de).

 Mail to this adreses when its com from internet , go to .de origin
 server by DNS MX and it forward mails to my mailboxes. but I dont know
 how to retrieve mail for local user which are not found in my local domain.
 uff, well its messy , any ideas ?
 I found that in .qmail-default in domain dir make this thig but its
 redirect to exact mail adres, but i need just redirect it to smtp
 server.

 thnx in advance

Miki

i think this was covered somewhen last year..
i'm not sure, what the solution was back then, but i'd say

on your Local server:
add mx record for pseudo.one.de
and alias the pseudo.one.de domain to one.de domain

.qmail-default:
| /home/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]

on your NONLocal Server:
add mx record for realmx.one.de
and alias the realmx.on.de domain to one.de domain.

.qmail-default:
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

.qmail-someuseronlocal:
 [EMAIL PROTECTED]




what does this do?
qmail puts the username part of the RCPT TO: email address into the env 
variable EXT (at least i think it does?).
so on your local server vdelivermail will first check, if the user exist on 
the _local_ system ? if no: it forwards the mail to [EMAIL PROTECTED] which 
is no local domain, but handled by the NONLocal server.

on the NONLocal server it receives the mail, as realmx.one.de is an 
aliasdomain for one.de it will handle the mail just as expected: if the user 
doesn't exist on this system either, it will bounce the mail.

you just have to make sure, that for each user on the local server a 
.qmail-useronlocalname file on the NONLocal server exists.




-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] vpopmail + mysql. Basic question.

2003-02-26 Thread Justin Heesemann
On Wednesday 26 February 2003 17:33, Brian Kolaci wrote:
 using vadduser not only adds the row to the table, but
 creates the directory structure for vdelivermail to put
 mail into.  It also encrypts the password field.  So
 you should either use the vadduser program or the vpopmail
 vadduser() API routine.

well.. not really. vchkpw for example creates the maildir, if it's missing, 
and so does vdelivermail.
so if you just want to _create_ users by adding them to the mysql table, this 
is just fine.

just if you want to delete the users thas way, it will keep their Maildirs in 
place.


-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] vpopmail + mysql. Basic question.

2003-02-26 Thread Justin Heesemann
On Wednesday 26 February 2003 22:29, Justin Heesemann wrote:
 On Wednesday 26 February 2003 17:33, Brian Kolaci wrote:
  using vadduser not only adds the row to the table, but
  creates the directory structure for vdelivermail to put
  mail into.  It also encrypts the password field.  So
  you should either use the vadduser program or the vpopmail
  vadduser() API routine.

 well.. not really. vchkpw for example creates the maildir, if it's missing,
 and so does vdelivermail.
 so if you just want to _create_ users by adding them to the mysql table,
 this is just fine.

 just if you want to delete the users thas way, it will keep their Maildirs
 in place.

add: i don't know, when this was introduced.. i'm speaking of 5.3.18 here (but 
i think this was already in some earlier versions)

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] qmail+vpopmail+mysql+courier-imap+gentoo empty relay table with roamingusers enabled

2003-02-26 Thread Justin Heesemann
On Thursday 27 February 2003 01:26, bob ketterhagen wrote:
 Howdy,

 I have spent all day trying to figure out why my relay table in the
 vpopmail database is empty. I have previously had this same setup in
 gentoo a few months ago and never had a single problem. Currently I have
 rebuilt checked and rebuilt everything numerous time even from scratch
 and my database continues to stay empty. If i manually add the ip_addr
 and timestamp it works fine but it is not working properly like
 everyother server I have with this setup. I can't even isolate whether
 it is courier-imap or vpopmail. If anyone would like to enlighten me on
 what exactly my problem is that would be wonderful.

well .. you can. just stop courier-imap and try to authentificate via pop3 (or 
keep courier running.. shouldn't matter)
so now that we do know, that it's vpopmails fault, it would be very nice if 
you told us the vpopmail configuration string (or is it the 
vpopmail-5.2.1-r4.ebuild ? still.. many list members don't use gentoo)
and your /service/qmail-pop3d/run  file would be nice too :)


 I am using courier-imap 1.7.0 and vpopmail 5.2.1.

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: [vchkpw] vpopmail as a daemon

2003-02-23 Thread Justin Heesemann
On Sunday 23 February 2003 19:26, Ron Culler wrote:
 I agree with that it would make life alot easier to integrate other
 web-based email apps.  I currently use vpopmail with a mysql backend and
 have compiled in the valias support.  This works great except that if I
 use qmailadmin I loose the valias(mysql) support as it only creates a
 .qmail file in the users Maildir. Having the ability to integrate the
 functionality of qmailadmin into what ever web front-end that you wish
 using the lang. of your choice would be great.


i've just started writing something similar to the daemon of vmailmgr. it 
would allow you to add/modify/delete domains, users, aliases..

the reason why i'm doing this, is simply:
i want to do all these things from my php frontend. AND: it do _not_ want to 
run apache as vpopmail user.
until now i've accomplished this by writing to a jobs mysql table and read 
this every 30 minutes from a cron job running as vpopmail user.


-- 
Best Regards,

Justin




[vchkpw] vpopmail 5.3.18 with --enable-vlimits

2003-02-22 Thread Justin Heesemann
hi.. just built 5.3.18 and i have a problem with vlimits.

it was a fresh install, i dropped any existing tables from the vpopmail mysql 
database.

built with:

./configure  --enable-roaming-users=y --enable-md5-passwords=y 
--enable-mysql-logging=y --enable-users-big-dir=n --enable-mysql=y 
--enable-qmail-ext=y --enable-clear-passwd=y --enable-file-sync=y 
--enable-valias=y --enable-mysql-limits=y --enable-vpopgroup=vpopmail

adding domains works fine.

when i try to send a mail locally 

# /var/qmail/bin/qmail-inject -froot [EMAIL PROTECTED]

qmail tells me:

2003-02-22 14:42:43.729012500 delivery 2: success: 
could_not_create_limits_table_CREATE_TABLE_limits_(_domain_CHAR(64)_PRIMARY_KEY,___maxpopaccounts___INT(10)_NOT_NULL_DEFAULT_-1,___maxaliases___INT(10)_NOT_NULL_DEFAULT_-1,___maxforwards__INT(10)_NOT_NULL_DEFAULT_-1,___maxautorespondersINT(10)_NOT_NULL_DEFAULT_-1,___maxmailinglists__INT(10)_NOT_NULL_DEFAULT_-1,___diskquotaINT(12)_NOT_NULL_DEFAULT_0,___maxmsgcount__INT(12)_NOT_NULL_DEFAULT_0,___defaultquota_INT(12)_NOT_NULL_DEFAULT_0,___defaultmaxmsgcount___INT(12)_NOT_NULL_DEFAULT_0,___disabl/vmysql:_sql_error[j]:_Table_'vpopmail.limits'_doesn't_exist/did_0+0+1/

it could create all the other tables, however
furthermore: after i created the table myself, it still shows the same error 
message. the sql query the qmail-send log is showing is obviosly truncated. i 
checked with the source and there it seems complete.


-- 
Best Regads,

Justin



Re: [vchkpw] vpopmail 5.3.18 with --enable-vlimits

2003-02-22 Thread Justin Heesemann
solved.

increasing vmysql.c:   SQL_BUF_SIZE  to 2000 fixed it.

however i do get 
delivery 6: success: 
vnysql:_can't_find_limits_for_domain_'test.com'/did_0+0+1/


(with a type in it too..   vnysql = vmysql)

shouldn't it add some defaults when calling vadddomain ?

-- 
Best Regards,
Justin



Re: [vchkpw] PHP / Perl / C

2003-02-01 Thread Justin Heesemann
On Saturday 01 February 2003 02:36, Nelson D. Guerrero wrote:
 Has anyone on the list gotten the perl/php module and/or C API for
 vpopmail working properly?

php module works. at least for me :)

do you have any (more specific) questions ?

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org






Re: [vchkpw] 90% CPU in vchkpw

2002-10-29 Thread Justin Heesemann
On Tuesday 29 October 2002 21:22, Brad Dameron wrote:
 What does softlimit do?


it limits the ammount of memory the process may use.
in this case about 2MB ram.

Luis, which options did you use when compiling vpopmail?

  -Original Message-
  From: Luis Gustavo Facioni Barcellos [mailto:lbarcellos;emater.tche.br]
  Sent: Tuesday, October 29, 2002 11:58 AM
  To: [EMAIL PROTECTED]
  Subject: [vchkpw] 90% CPU in vchkpw
 
 
  Hi, all
 
  I have a qmail 1.0.3, daemontools 0.76, qmail-scanner 1.12 with mcafee,
  vpopmail 5.2.1 and sqwebmail 3.3.4 in a brand new Slackware 8.1 box.
 
  Its all running fine, but sometimes the server stops authenticating. The
  top shows a vchkpw process consuming more then 90% CPU and I get a
  *server busy* on client.
 
  my qmail-pop3/run script:
  #!/bin/sh
  env - PATH=/usr/local/qmail/bin:/usr/local/bin
  MAXCON=40
  exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -H -R -c $MAXCON 0 pop3 \
/usr/local/qmail/bin/qmail-popup mydomain.here.com \
/usr/local/vpopmail/bin/vchkpw /usr/local/qmail/bin/qmail-pop3d
  Maildir 21
 
  Someone could tell where do I start to fix it?
 
  TIA
  --
  Gustavo
  --
  * Duct tape is like the Force. It has a light side, a dark side, and it
  holds the universe together.
  --

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org





Re: [vchkpw] alias support via vpopmail in PHP

2002-10-16 Thread Justin Heesemann

 
  P.S: though I have valias support enabled and it seems to be working fine
  (can use command line valias to add re-director (as well as test it), php
  refuses to add support for it. Have re-built from clean tree sources for
  vpopmail as well as php, no luck.
 
  Though not a vpopmail problem, if anyone has any idea why this may be,
  I'd appreciate it some guidance.
 
  -mustafa.

the vpopmail extension (you might want to try mine, as it has some important 
fixes for alias domains) is checking for valias support by looking for the 
library call valias_select

you might want to try:   

strings ~vpopmail/lib/libvpopmail.a | grep valias_select

to check whether this function really is in your libvpopmail.a

oh.. and you can find my php vpopmail extension at
http://www.ionium.org/php/php_vpopmail-0.1.tar.gz

-- 
Best Regards,

Justin Heesemann




Re: [vchkpw] Vpopmail under devel any longer?

2002-10-16 Thread Justin Heesemann

On Wednesday 16 October 2002 22:02, Brad Dameron wrote:
 Sorry but the qmail-ext only works with the .qmail files. It doesn't work
 with the valias's in MySQL. That is what we have been posting about for a
 month now.

it still _is_ under development. however some of the main developers seem to 
be a little busy lately :)
as i'm interested in this too (for being able to use tmda properly with 
valias), i guess i'm going to have a look at this problem.





Re: [vchkpw] feature request

2002-10-10 Thread Justin Heesemann

On Thursday 10 October 2002 20:15, Paul Theodoropoulos wrote:
 probably not possible. but i was wondering if there's any way an additional
 'comment' field could be added to vpopmail. reasoning: we have one 'main'
 domain where customers who don't have their own domain can get a personal
 email address. we have several hundred of them. we'd like a way to
 associate the email address with an account name. if we use the 'real name'
 field, that will of course show up in the email header, and most folks
 don't want to be known as e.g. John Doe, acct #NK4357.  what would be
 nice is a non-published comment field, that would only show up in vqadmin
 or qmailadmin.

 thoughts?

i don't know.. buy what about the gecos field ?
does this exist for some reason? and if so.. couldn't it be used for just this 
purpose ?

/Justin Heesemann



Re: [vchkpw] new vpopmail php extension, here comes 0.1

2002-09-28 Thread Justin Heesemann

On Saturday 28 September 2002 06:27, you wrote:
 Just wondering if you've released your new Vpopmail PHP extension?  Well,
 that's a misnomer, since I haven't seen 0.1 yet either ;)

 -- Steve

well feel free to download and test it
http://www.ionium.org/php/php_vpopmail-0.1.tar.gz

one note:
if you're using php as apache module, make sure that the user your apache runs 
as, has permissions to access the libvpopmail.la, which usually means running 
apache as vpopmail.vchkpw

as you might probably not want your virtual hosting apache server to run as 
that user, you have to use one of the other strategies.

a) have one extra apache running as vpopmail.vchkpw (and bind it to localhost 
or another ip address than the main one) and forward requests for a special 
virtual domain, or even for some special scripts only to this apache

b) use php as cgi-bin

c) use php as shell script run by a cron job (this is the way i've been using 
it for some time).

The phpinfo() should tell your about the userids. Just look into the vpopmail 
section.

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




[vchkpw] new vpopmail php extension, here comes 0.1

2002-09-20 Thread Justin Heesemann

just for those who want to test it

http://www.ionium.org/php/php_vpopmail-0.1.tar.gz

unpack and read  vpopmail/php_vpopmail-0.1.txt

oh.. and just that disclaimer thing: if this breaks anything, it's because you 
like to use some untested alpha code.

however it did work on my machine (well.. i didn't test for everything) and 
should be pretty aliasdomain safe (which the old php extension definitivly 
was not).
This means, you can use 
vpopmail_something (user, aliasdomain, someother params);
and it does exactly the same as 
vpopmail_something (user, realdomain, someother params);

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




[vchkpw] vdeldomain deletes directory even when aliasdomain still exist

2002-09-19 Thread Justin Heesemann

hmm.. just wondering.

domain.com is the maindomain (with it's directory 
~vpopmail/domains/domain.com)
alias.com is the alias domain for domain.com (so it's directory is 
~vpopmail/domains/domain.com, too)

vdeldomain(alias.com) seems to work.
alias.com is removed from rcpthosts, virtualdomains and users/assign

vdeldomain(domain.com) deletes the domain from rcpthosts, virtualdomains, 
users/assign _and_ removes the directory ~vpopmail/domains/domain.com even if 
alias.com still points there.

either there should be a feature which stops and tells you, that there are 
still existing aliases, or it should rename rename the dir to alias.com (or a 
random other alias domain) and update the users/assign file accordingly.

I vote for the second one.

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




[vchkpw] new php module

2002-09-18 Thread Justin Heesemann

Hi..
since I'm writing a new vpopmail extension for php without the bugs with 
valiases and aliasdomains, I'm looking for people to test it, before posting 
it to the php guys.

Anyone interested ?
This version will be compatible to the existing one, so no changes in your php 
code are required.

-- 
Best Regards,
Justin Heesemann



Re: [vchkpw] new php module

2002-09-18 Thread Justin Heesemann

On Wednesday 18 September 2002 20:19, Federico Voges wrote:
 On Wed, 18 Sep 2002 19:44:50 +0200, Justin Heesemann wrote:
 Hi..
 since I'm writing a new vpopmail extension for php without the bugs with
 valiases and aliasdomains, I'm looking for people to test it, before
  posting it to the php guys.
 
 Anyone interested ?
 This version will be compatible to the existing one, so no changes in your
  php code are required.

 Here's one volunteer :)

 Do you have a working version??

well.. the current working version is only able to add or remove users and to 
change their passwords. however it seems _very_ easy adding new functions.. 
so expect a working one with all you should need by tomorrow.

this first version will probably break with everything older than vpopmail 5.2

-- 
Justin Heesemann



Re: [vchkpw] bandwidth monitoring

2002-09-13 Thread Justin Heesemann

On Friday 13 September 2002 10:12, Nick Twaddell wrote:
 So is there anyway to monitor traffic on customers email virtualhosts?
 So i can keep track of the bandwidth their domain is using through
 qmail?

The Problem is, that POP3 Bandwith isn't logged (with unpatched qmail)
So you either have to use a patch which does, or you can use the SMTP logs 
(which is of course less accurate. Based on the fact every mail gets, gets 
out somewhen again, you could count all mails to local domains twice.)

A patch for qmail-pop3d can be found at 
http://www.lamer.de/maex/creative/software/qmail/103-pop3log/
it adds logging capabilities for user logon/logoff and bytes transferred.

-- 
Best Regards
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org




Re: double bounce management

2001-10-29 Thread Justin Heesemann

 1) echo double-bounce  /var/qmail/control/doublebounceto
 2) /home/vpopmail/bin/vadduser [EMAIL PROTECTED] H8yT65cvP
 
 Do `man qmail-send` for more info.

 Well, actually, I wanted the double bounce to go to the DOMAIN that's
 bouncing...so, [EMAIL PROTECTED] would bounce to some account on
 domain1.com (like [EMAIL PROTECTED]) and [EMAIL PROTECTED]
 would bounce to some account on domain2.com (like
 [EMAIL PROTECTED]).  I don't suppose that's possible, though, eh?

Wow .. yeah.. that's something i would like to be able to do too.
There must be some way to do so.. maybe some kind of a patch ?
I always hated the fact that i was the one getting all the bounce spam, after
some customer sent a mass mailing..

/Justin



yaqsap problems with vchkpw

2001-10-27 Thread Justin Heesemann

Hi.
I want to run qmail with smtp auth, so i patched qmail with yaqsap (yet 
another qmail smtp auth patch).


i run qmail-smtp with

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 200 \
    /usr/local/bin/tcpserver -v -p -R -H -x /etc/tcp.smtp.cdb -c $MAXSMTPD \
        -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd \  
        mail.mydomain.com /home/vpopmail/bin/vchkpw /bin/true 21

so as you can see, i use the three arguments  

hostname checkprogram true

as yaqsap also patches the qmail-smtpd man page i'll post an extract of it 
too:

# man qmail-smtpd

NAME
   qmail-smtpd - receive mail via SMTP

SYNOPSIS
   qmail-smtpd [ hostname checkprogram subprogram ]

DESCRIPTION
.
   qmail-smtpd can accept LOGIN,  PLAIN,  and  CRAM-MD5  AUTH
   types.   It  invokes  checkprogram,  which  reads  on file
   descriptor 3 the username, a 0 byte, the password or chal­
   lenge  derived  from  hostname, another 0 byte, a CRAM-MD5
   response (if applicable to the AUTH type), and a  final  0
   byte.   checkprogram  invokes  subprogram  upon successful
   authentication, which should in turn return  0  to  qmail-
   smtpd,   effectively  setting  the  environment  variables
   RELAYCLIENT and TCPREMOTEINFO (any supplied value replaced
   with the authenticated username).  qmail-smtpd will reject
   the authentication attempt if it receives a nonzero return
   value from checkprogram or subprogram.


---

well.
when i try to use smtp auth from a client (in this case i tried outlook 
express with auth login) 
qmail tells me:

Out of memory (Needed 8164 bytes)
454 oops, problem with child and I can't auth (#4.3.0)

after the username and password are send.

someone in the qmail list has suggested to leave out the hostname argument, 
which indeed solves the problem, but it doesnt check for valid passwords 
then. (i guess it then uses /bin/true for password checking)

do you have an idea of what that out of memory message wants me to do ?
/home/vpopmail/bin/vchkpw  exists, is world executable, i even tried to 
setuid it, but nothing happens. when i run qmail-smtp as root, the same out 
of memory occurs, too.

i use /home/vpopmail/bin/vchkpw as checkprogram for qmail-popup

/usr/local/bin/tcpserver -l mail.mydomain.com -v -p -R -H 0 pop3 \
 /var/qmail/bin/qmail-popup mail.mydomain.com /home/vpopmail/bin/vchkpw \ 
 /var/qmail/bin/qmail-pop3d Maildir


And it works fine.

Best Regards,
Justin



Re: traffic accounting

2001-10-21 Thread Justin Heesemann

 I took a look at all packages various people suggested, and mrtg looks the
 best to me, because the others don't process the pop3 traffic. But is there
 a way to get total traffic figures for a month in bytes including smtp/pop3
 on a per domain basis ?

as i said:
no log to analyse, no statistic.

mrtg may be a nice thing, but it needs (at least i guess so) something to 
analyse. qmail logfiles for example. this works, so you can get smtp traffic 
statistics with mrtg.
BUT: there are no logfiles listing which mails a user retrieved via pop3.
something like:

@40003bc803273562214c RETR 10543 [EMAIL PROTECTED]

simply does not exist afaik. (10543 being the size of the mail)

/Justin



Re: vpopmail-5 versions?

2001-10-04 Thread Justin Heesemann


 sorry to bother you with this one, but I couldn't find a conclusive answer
 in the archives or on the website.

 Currently we use the latest vpopmail release, along with the latest
 qmailadmin release, as referenced to on
 http://www.inter7.com/freesoftware/index.html.

 What is the current status of vpopmail-5? There were indications that
 v5 is out, but it doesn't look like it on the website.

well, 

http://www.inter7.com/vpopmail/vpopmail-5.0.tar.gz

seems to be a valid link :)

it's not listed on the vpopmail page, but it exists.

-- 
Mit internetten Grüßen
---
Justin Heesemannionium Technologies
[EMAIL PROTECTED]www.ionium.org



Re: strange ip after authorisation

2001-10-01 Thread Justin Heesemann

Am Montag, 1. Oktober 2001 17:39 schrieben Sie:
 On Sat, 2001-09-29 at 13:35, Justin Heesemann wrote:

 It uses the REMOTEIP environment variable that is set by tcpserver.

 Ken Jones

well.. but how comes, tcpserver gets a 0.0.0.0 as remoteip ?
those users are simple dialup users...

Best Regards,
Justin



Re: virus by list member

2001-09-30 Thread Justin Heesemann

 hi list,

 yesterday i posted a question on this list.
 the only answer i got was sent by
 Hardik [[EMAIL PROTECTED]]
 and had a virus attatched.
 The filename is README.txt.pif

same for me..
i got an answer by the same guy..
got a file called
hamster.ZIP.scr

/Justin



strange ip after authorisation

2001-09-29 Thread Justin Heesemann

hi..
i was some people using my mailserver, that they can't send mail anymore.
as i have enabled authlogging in vpopmail i took a look into the lastauth 
table (yes, --enable-mysql) and was stunned that some people seem to have 
authed from  0.0.0.0
it says, e.g

userdomainremote_ip timestamp
postmaster  test.com  0.0.0.0   1001705400


on the other hand, i never had this problem, and other's didn't too.. (real 
ip listed in remote_ip)

so, does anybody has a clue why vpopmail doesn't get the ip right and 
sometimes does get it ?

(oh.. and this was 4.10.29 )

Best Regards,
Justin



virus - mail.jthai.net is open relay

2001-09-11 Thread Justin Heesemann

Hi..

the mailserver for jthai.net, which is mail.jthai.net seems to be open relay
for  me. so probably the guys from jthai.net are not responsible for sending
the virus mails.

-- snip --
# telnet 203.170.171.248 25

MAIL FROM:[EMAIL PROTECTED]
250 ok
RCPT TO:[EMAIL PROTECTED]
250 ok

-- snip end --
  
Best Regards,
Justin





Re[2]: attachment size does not tally

2001-06-06 Thread Justin Heesemann

 At a guess I would say it is because when you attach a file it is converted
 to base64 or mime which is 7 bit. So for every 8 bits you only get 7 bits of
 data. Therefore an attachment uses much more space than the original file.

I'd say so too.. Plus the added linebreak after every 72th
(character), and i guess could be some extra bytes (checksums...) too.

Regards,

Justin





4.10.12 : errors in vauth .c

2001-06-04 Thread Justin Heesemann

Hi..

  # ./configure  --enable-mysql=y --enable-roaming-users=y \
  -enable-valias=y --enable-incdir=/usr/local/mysql/include/mysql/ \
  --enable-qmail-ext=n --enable-auth-logging=y

vpopmail directory = /home/vpopmail
   uid = 10050
   gid = 10050
  ip alias = OFF --enable-ip-alias-domains=n (default)
address extentions = OFF --enable-qmail-ext=n
 roaming users = ON --enable-roaming-users=y
tcpserver file = /etc/tcp.smtp
open_smtp file = /etc/open-smtp
user quota = OFF --enable-hardquota=n default
   auth module = mysql --enable-mysql=y
 mysql replication = OFF --enable-mysql-replication=n default
table optimization = many domains --enable-large-site=n default
  system passwords = ON --enable-passwd=y default
  auth logging = OFF --enable-auth-logging=n default
mysql clear passwd = OFF --enable-clear-passwd=n default
 valias processing = ON --enable-valias=y
pop syslog = show only failure attempts
 --enable-logging=e default
default domain =  --enable-default-domain=
  auth inc = -I/usr/local/mysql/include/mysql/
  auth lib = -L/usr/lib/mysql -lmysqlclient -lz  


  
  # make

vauth.c: In function `vopen_smtp_relay':
vauth.c:725: `SqlBuf' undeclared (first use in this function)
vauth.c:725: (Each undeclared identifier is reported only once
vauth.c:725: for each function it appears in.)
vauth.c: In function `vupdate_rules':
vauth.c:735: `err' undeclared (first use in this function)
vauth.c:735: warning: `return' with a value, in function returning void
vauth.c:751: `SqlBuf' undeclared (first use in this function)
vauth.c: In function `vcreate_relay_table':
vauth.c:775: `err' undeclared (first use in this function)


hm.. anybody has the slightest idea of what might be wrong ?
  

Regards

Justin





valias: command processing ?

2001-06-04 Thread Justin Heesemann

Hi..

 after testing for several hours without success, i'd like to know, if
 anybody else is able to process commands with valiases.

 i added an alias with
 ./valias -i |/home/httpd/test.php [EMAIL PROTECTED]
 and it shows up correctly in the valias mysql table.
 when i send a mail to [EMAIL PROTECTED] the qmail current log says

 delivery 6202: success: 
open_update/run_command/vdelivermail:_valiases_processed/did_0+0+1/

 but it has not run that command.

 if i use the same line in a .qmail-test it works.

 and it's not depending on /home/httpd/test.php as it's not running
 any other commands too (i tried  qmail-autorespond which really
 should work.)

 any ideas ?

 regards

 Justin





Re: valias: command processing ?

2001-06-04 Thread Justin Heesemann

addition:

i'm using 4.10.14...
vdelivermail.c:

___
int run_command_alias(char *command)
{
 char *tmpstr;
 int i=0,j=0;
 int file_count;
 int pim[2];
 unsigned long pid;
 char **binargs;
 char **startbin;
 int status;

return(0);

__

err.. :) damn. i guess it's not supposed to run ANY commands then hm ?


Ken: can i remove that return(0); line safely ?? or is it so unstable,
that the return(0); line is there to prevent any damage ?

regards,

Justin





Re: convert to clear passwords ?

2001-06-04 Thread Justin Heesemann

 Hello. I am checking out the clear passwords function on vpopmail with mysql
  and I was wandering if there is a way to convert an existing domain to
 clear passwords - I guess, what I am actually asking, is there a way to get
 the original password from the crypt currently stored instead?

no.
why would anybody then store crypted passwords ?? if they could be
deciphered that easily ? use john for crac.. ehh.. deciphering..
and some really huge cluster thing..

Regards..

Justin





vpopmail extension for php when vpopmail uses mysql auth ?

2001-05-20 Thread Justin Heesemann

Hi..

  has anybody used the vpopmail extension for php yet ?

  i've difficulties using any function, as it seems that it can't
  connect to the mysql server..
  
  ?
  vpopmail_add_user (test, test.com, test);
  ?
  
could not connect to mysql server
could not create dir control table create table dir_control ( domain
varchar(255) not null, cur_users int, level_cur int, level_max int,
level_start0 int, level_start1 int, level_start2 int, level_end0 int,
level_end1 int, level_end2 int, level_mod0 int, level_mod1 int, level_mod2 int,
level_index0 int , level_index1 int, level_index2 int, the_dir varchar(255),
unique index (domain)  )
could not replace dir control table 2 replace into dir_control (
domain, cur_users, level_cur, level_max, level_start0, level_start1,
level_start2, level_end0, level_end1, level_end2, level_mod0,
level_mod1, level_mod2, level_index0, level_index1, level_index2,
the_dir ) values ( 'test.com', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '')


  

Regards

--
Justin Heesemann  ionium Technologies - Heesemann  Welter GbR
Email: [EMAIL PROTECTED]Web: http://www.ionium.org

Quote:
Mr. Vice President, in all due respect, it is I'm not sure 80 percent
of the people get the death tax. I know this:
100 percent will get it if I'm the president.
George W. Bush





vconvert : updating from 4.9.5 with cdb to 4.10.3 with mysql

2001-05-19 Thread Justin Heesemann

hi..

i have a weird problem:
whilst moving from 4.9.5 to 4.10.3 i also switched to mysql auth.
well, after executing vconvert -c -s, it seemed as if it did fine,
except for the passwords:

the first 2 chars of the password in the sql table of every domain i
convert are the same.

ghandi  domain.com   0CT1cQAicfFEw
postmaster  domain.com   0CJ3V6wm1riYA
torxdomain.com   0CJ..MZu/97jg

when i run vconvert -c -s  again, all passwords in the sql table
look different, but the first 2 chars are still the same.

ghandi  domain.com   kJ7pEAwPlrYRw
postmaster  domain.com   kJUzEwqVyWuww
torxdomain.com   kJ6ziHqRlaK3U


of course pop3 authentication failes.
however, if i run vpasswd and set a new password, everything is just
fine.. authentication works.

any ideas ?


regards,

Justin





Re[2]: vconvert : updating from 4.9.5 with cdb to 4.10.3 with mysql

2001-05-19 Thread Justin Heesemann

Hmm... i found the problem:

apparently vconvert takes the already encrypted password out of the
~vpopmail/domains/domain.com/vpasswd   file and encrypts it again,
when it stores that password into the sql table.

i can log into a pop3 account when i enter the encrypted des hash of
the original password.

this doesn't make sense at all.

vauth_adduser_size ()  always encrypts the pass
line 210: mkpasswd3(pass,Crypted, 100);
so i'd say a  vauth_adduser_size_noencrypt () function would make
sense, which then could be used by vconvert


regards,

Justin





  1   2   >