[vchkpw] Announcing ToasterAdmin, Net_Vpopmaild, Auth container

2008-04-13 Thread Bill Shupp

All,

I'd like to announce ToasterAdmin, a new vpopmail administration tool
which utilizes vpopmaild, allowing for remote administration of a
vpopmail system (over tcp sockets).  It is intended as an alternative
to running QmailAdmin and VqAdmin separately, and will eventually be
fully comprehensive.  Here are some of the highlights:

Design

* Written in OOP PHP 5 using an MVC Framework for easy code maintenance
* Uses the Smarty template engine for clear separation of logic from
display
* Uses several packages from PEAR to minimize local code requirements

Current Features

* Add/Remove Domains, Users, Forwards, and Auto-Responders
* Modify Default Domain Limits
* Search for Domains
* Modify user mail routing and vacation messages
* Add Alias Domains
* Manage IP Maps
* Internationalization support via gettext (translators needed!)

Planned Features

* Modify User Limits
* Modify System Default Limits (vlimits.default)
* EZMLM Support (must be supported by vpopmaild first)
* simcontrol support

URL:  http://trac.merchbox.com/trac/toasteradmin

ToasterAdmin is discussed on the [EMAIL PROTECTED] list.  Please
forward any questions there (I'm not an ongoing member of vchkpw@inter7.com 
).


While working on ToasterAdmin, I decided to put all of the base
vpopmaild code in the PEAR package Net_Vpopmaild (based on work from
Rick Widmer).  Net_Vpopmaild's URL is http://pear.php.net/Net_Vpopmaild.

Lastly, I added a Net_Vpopmaild auth container to PEAR's Auth
framework (NetVPOPMaild).  So if you need any PHP app to to
authenticate off of your vpopmail user base running vpopmaild, you
accomplish this very easily through PEAR Auth.  URL:  http://pear.php.net/Auth

Cheers,

Bill Shupp

!DSPAM:4801ba16120501585156081!



Re: [vchkpw] new(?) qmail-smtpd patch

2003-09-14 Thread Bill Shupp
On Sunday, September 14, 2003, at 01:24  PM, Charles Sprickman wrote:

While looking for info on how to get more logging out of qmail-smtpd 
(auth
failures),
vchkpw compiled with --enable-logging=v, will show success smtp logins, 
as well as failures with the attempted password.  You'll need the dev 
version, though.  Very useful.

Regards,

Bill Shupp




Re: [vchkpw] imap before smtp

2003-09-11 Thread Bill Shupp
On Thursday, September 11, 2003, at 10:53  AM, ted wrote:

I've got a LWQ-style qmail configuration, plus vpopmail 5.3.27 and 
courier-imap-2.1.1.20030902.  I have  roaming users enabled (as well 
as qmail-ext), and  POP3  before SMTP works perfectly (using  
qmail-pop3d).

IMAP also seems to work just fine, but it does not update open-smtp. 
My workaround of creating a separate POP account to POP in without 
retrieving msgs allows me to send via IMAP, but is obviously not an 
ideal solution. (I'm using Thunderbird .2).

I've installed courier-imap numerous times (with different releases up 
to 20030902), both with authdaemon enabled as well as disabled. In 
both cases, the results are the same (meaning that I can read mail but 
not relay).

Perhaps my understanding is wrong, but I was under the impression that 
since these are virtual domains I'm having trouble with (all my 
domains are virtual), the fact that I am able to read mail at all 
under IMAP would indicate that vchkpw is being called from 
courier-imap. Since qmail-pop3d invokes vchkpw and works, I'm puzzled. 
I'm afraid I don't know where to look log-wise.
Probably the same old problem of courier not detecting roaming users.. 
Try this:

cd (patth to courier)
(cd authlib ; make clean)
export CFLAGS=-DHAVE_OPEN_SMTP_RELAY
make
make install


Regards,

Bill




Re: [vchkpw] imap before smtp

2003-09-11 Thread Bill Shupp
On Thursday, September 11, 2003, at 01:14  PM, ted wrote:

Charles, Bill, Ken, thanks for the quick responses. Indeed Bill's 
suggestion doesn't do the trick for my configuration. Charles, I'd 
make your suggested change, but am concerned about Ken's further input 
on the topic. I don't suppose an older version of Courier-IMAP is the 
answer?
I'm curious.. if you have clients capable of IMAP, are they not capable 
of SMTP-AUTH?  IMO, this is a better solution than roaming users.

Regards,

Bill




Re: [vchkpw] How to completely remove a database

2003-09-11 Thread Bill Shupp
On Thursday, September 11, 2003, at 10:21  PM, Don Walters wrote:

I am trying to wipe out everything and start from scratch.  I tried 
using drop database vpopmail; and creating it again using the 
instructions to install vpopmail, but I'm unable to add the same 
domains back again.  It keeps saying the domain already exists.  If I 
try to use the command vdeldomain to remove it, it says the domain 
doesn't exist!

The reason I didn't use vdeldomain in the first place is because I had 
to reload everything all over again and I was installing over the top 
of a previous installation.  I think all I need to do is wipe the 
slate and start adding my domains back into a clean database.

How can I be assured that I'm wiping out everything and starting fresh?
In addition to removing the database/recreating it, remove the domain 
directory, and the entry from /var/qmail/users/assign and run 
/var/qmail/bin/qmail-newu to update the assign cdb file.

Regards,

Bill Shupp




[vchkpw] OT: vpopmail spamd user prefs

2003-09-10 Thread Bill Shupp
Hello,

Has anyone successfully gotten spamc/spamd to create user preference 
files for vpopmail users?

I.E. `~vpopmail/bin/vuserinfo -d`/.spamassasin/user_prefs

If so, could you send me your configuration info off-list?

Thanks,

Bill Shupp




Re: [vchkpw] OT: vpopmail spamd user prefs

2003-09-10 Thread Bill Shupp
On Wednesday, September 10, 2003, at 04:22  PM, Alex Martin wrote:

Please post this answer to the list!
I have been searching for this answer for two days now, and I was 
about to
post to this list. I think a lot of people would like to know this.
-Alex
Ok, here's where I'm at now:

I upgraded to spamassassin 2.55, and am starting spamd like so from 
daemontools:

#!/bin/sh
exec /usr/bin/spamd -c -D -F0 -L -u vpopmail -v
And spamc is called via maildrop with these options:

/usr/bin/spamc -f -u [EMAIL PROTECTED]

It's now working, but spamd seems to create 
~/.spamassassin/.spamassassin on the first creation attempt, and 
reports and error that it could not create the prefs file.  Upon second 
attempt, it creates it successfully.  Still trying to pinpoint where 
that's breaking, but other than that it works.

I'm using this in the context of WebUserPrefs, a PHP config tool for 
SpamAssassin, plus a new panel that allows for optional deletion of 
spam.  Once I get all this working smoothly, I'll post some docs on how 
it's working for me.  Looks pretty cool, tho.

Cheers,

Bill Shupp




Re: [vchkpw] vipmap - help

2003-09-10 Thread Bill Shupp
On Wednesday, September 10, 2003, at 06:17  PM, Urban - wrote:

Shd i not use vipmap at all since i only have One IP address?
Correct.  vipmap is useful when you want more then one domain to not 
require [EMAIL PROTECTED] to login.  But it eats up IP addresses, which 
kind of defeats one of the main advantages of virtual mail.

Regards,

Bill




Re: [vchkpw] vipmap - help

2003-09-10 Thread Bill Shupp
On Wednesday, September 10, 2003, at 06:30  PM, Urban - wrote:
Hi,

So since i can not use vipmap, is there any other solution that i can 
use so i dont have to login with [EMAIL PROTECTED]? I have one IP and 
3 domain names.
You can use --enable-default-domain to allow one domain to login 
without @domain.  But if you need more than one, you'll have to 
implement ip-alias-domains.  I haven't checked though to see if it's 
still restricted to vchkpw (pop) as Ken suggested.  I vaguely remember 
it getting moved to the vpopmail library to that all protocols could 
use it.  But that was a while ago.  You'll have to check that...

FWIW, it really doesn't take long for users to get used to using their 
full email address as their login name (in my experience).  And it's 
really in everyone's best interest not to waste IPs.  : )

Regards,

Bill




Re: [vchkpw] odd output

2003-03-13 Thread Bill Shupp
On Thursday, March 13, 2003, at 03:59  PM, Paul Theodoropoulos wrote:

vpopmail 5.3.18. check the uid/gid fields. in fact, uid/gid for 
everything is the correct 89/89.

thoughts?



uid:0
gid:63
Do you mean these?  They are not intended to match the system uid/gids. 
 Those are coded in /var/qmail/users/assign

Bill




Re: [vchkpw] SpamAssassin/vmodinfo changes

2003-03-08 Thread Bill Shupp
On Saturday, March 8, 2003, at 01:28  AM, Gabriel Ambuehl wrote:

Hi,

I just added my SpamAssassin changes to vpopmail-5.3.19 which is now
vpopmail-5.3.20.
Where's the patch to 5.3.19?  No need to increment the version number,
as I'll do that when coordinating with other patches that come in.
I couldn't verify Bill's problem of vdelivermail crashing when spamd
wasn't running on FreeBSD 4.7 myself but I'd like to hear from others.
Well, did you actually implement FALLBACK support?

Regards,

Bill Shupp




Re: [vchkpw] SpamAssassin/vmodinfo changes

2003-03-07 Thread Bill Shupp
On Friday, March 7, 2003, at 06:33  AM, Gabriel Ambuehl wrote:

Hello,
I've added support for SpamAssassin into vdelivermail (basically, it
will just add the SpamAssassin score of the mail if activated and
NEVER delete mail on the server).
Further, I added the -w switch to vmodinfo which has it display all
users in a domain, handy if you want to just know about them or feed
them to some scripts to do something with them (in my case, I wanted
the feature so I can set quotas for them all with xargs ;-).
Anyway, find the tarball at http://buz.ch/software.

I'd very like to hear comments and bug reports about SpamAssassin
integration (-w switch was simple enough ;-). From all I can tell,
there shouldn't be any licensing issues as the spamassassin client
stuff seems to be under the BSDL or alike license and thus can be
incorporated into GPL projects just fine.
Gabriel,

Thanks for sharing your changes.  However, did you address the problems 
I pointed out with the last version of these changes?  Your email does 
dot indicate either way. 
(http://www.mail-archive.com/[EMAIL PROTECTED]/msg11282.html).  Also, 
can you provide a patch to the current development release, 5.3.19?

Regards,

Bill Shupp




Re: [vchkpw] 5.3.18 vpopbull -V

2003-03-07 Thread Bill Shupp
On Friday, March 7, 2003, at 07:10  AM, Rick Romero wrote:

A bit of a scare/nuisance,  if you use -V , the username gets printed
twice.
eg:
vpopbull -V -f filename domain.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
It looks like it's been sent twice.

-n -V only prints the domain once.

This patch adds some extra text just to show what's happening.
vpopbull-5-3-18.diff
Thanks, I'll look into it.

Regards,

Bill




Re: [vchkpw] new quota support question

2003-03-07 Thread Bill Shupp
On Friday, March 7, 2003, at 07:15  AM, Jesse Guardiani wrote:

So, Bill, why don't you think Ken might not sign off on this?
Because I can't read his mind.  I put together what I think is 
appropriate.  That doesn't mean he will agree.  Since he was the one to 
implement vadddomain -u to support system quotas, I don't know he needs 
non-system quotas.

Bill




Re: [vchkpw] vpopmail 5.3.19

2003-03-07 Thread Bill Shupp
On Friday, March 7, 2003, at 08:44  AM, Kari Suomela wrote:

Everyone's entitled to their opinion - as long they keep it to
themselves.
I posted the same question a long time ago. Can't recall the answer,
but somehow understood that it might be implemented in a subsequent
version.
I still think user expiry is one of the 'must-have' features.
Then by all means, submit a patch and I'll be happy to test it.

Regards,

Bill Shupp




Re: [vchkpw] vpopmail 5.3.19

2003-03-06 Thread Bill Shupp
On Thursday, March 6, 2003, at 08:11  AM, Kari Suomela wrote:

Wednesday March 05 2003 11:47, Bill Shupp wrote to All:

 BS I've posted a new devel version, 5.3.19.  Please help test

Still no user expiry feature?
What are you talking about?  It sounds like you're complaining about 
some feature you're expecting.  Did you contribute a patch that was 
missed?  Please elaborate.

There is vdeloldusers, but that is based on lack of authentication, 
rather than timed expiration.

Regards,

Bill Shupp




Re: [vchkpw] new quota support question

2003-03-06 Thread Bill Shupp
On Thursday, March 6, 2003, at 06:16  AM, Jesse Guardiani wrote:

Howdy list,

I'm just wondering a few things about the new domain wide quotas:

Are these quotas implemented in vdelivermail?

Or are they implemented with system quotas?

Will I still be able to use maildrop to filter my mail?
I addresses the above questions in README.quotas.  Please take the time 
to read it before posting to the list, that's why I took the time to 
write it.

When are the quotas recalculated? (If maildrop deletes a message,
will it throw the quotas off?)
It calculates based on maildirsize files, which greatly increases 
performance.  (Brian's original implementation used a du like function 
that delayed delivery by as much as several seconds).  So it does 
follow the Maildir++ standard, it's just a cumulative approach.

Regards,

Bill Shupp




Re: [vchkpw] new quota support question

2003-03-06 Thread Bill Shupp
On Thursday, March 6, 2003, at 10:05  AM, Jesse Guardiani wrote:

Thanks, Bill, but Brian was kind enough to answer most of my questions
directly. Last time I checked, mailing lists were a good place for open
discussion.
Of course they are.  But reading documentation can reduce unnecessary 
traffic, too.  Especially when the ChangeLog clearly indicates that new 
documentation is available on the changes you discovered in the 
ChangeLog.

Yes, and using maildrop will totally keep domain based quotas from 
working
properly. Looks like someone needs to patch the courier-imap and 
friends.
I'd be curious to see if Mr. Sam accepts such patches.  I personally 
think that this new non-system domain quota feature is unnecessary, 
when system quotas are available, easily implemented, and a better 
solution.  But enough people seemed to want it for some reason, and 
Brian did a very nice job of implementing it cleanly with his other 
vlimits functions, so I included it in my devel version.  Notice that 
Ken has not yet signed off on this, so there's no guarantee that it 
will make it in the official release, anyway.  So you might hold off on 
patching anything else, unless you (or anyone else) are prepared to 
maintain it.

Regards,

Bill Shupp




Re: [vchkpw] new quota support question

2003-03-06 Thread Bill Shupp
On Thursday, March 6, 2003, at 01:40  PM, Brian Kolaci wrote:

I guess I wasn't explicit enough.  I assumed people already
knew how the quota's are stored.  The user quota for vpopmail
is stored in the pw_shell attribute of the vqpasswd structure.
Where this information is stored (db, cdb, file) doesn't matter.
You use an API to get at it.  In courier, a different place is used.
The domain quota is now currently stored in the qmailadmin limits
information, which is now retrieved using the vget_limits() function.
Again, where it is actually stored doesn't matter.
The important thing to remember is that Sam's approach now is to set 
the quota with maildirmake -q.  The quota is stored ONLY in the 
maildirsize file itself.  It is the responsibility of any Maildir++ 
aware applications to honor the quota established in that file.

I only used pw_shell for backwards compatibility with the old vpopmail 
quotas.

Regards,

Bill Shupp




[vchkpw] vpopmail 5.3.19

2003-03-05 Thread Bill Shupp
Ken, All:

I've posted a new devel version, 5.3.19.  Please help test

ChangeLog:
http://shupp.org/patches/vpopmail-ChangeLog
Download:
http://shupp.org/patches/vpopmail-5.3.19.tar.gz
Regards,

Bill Shupp




Re: [vchkpw] 5.3.18 / bandwidth limits

2003-02-23 Thread Bill Shupp
 Hopefully 5.3.18 won't be frozen until line 1258 in vdelivermail.c is
 'trimmed' :)

 It just something that shouldn't be in the final, and, IMHO, is easier
 to trim now than later.

Yikes.  Sorry about that.  Looks like some leftover late night creative
debugging.  : )  I'll remove it.

Bill





Re: [vchkpw] 5.3.18

2003-02-21 Thread Bill Shupp
On Friday, February 21, 2003, at 10:26  AM, Jesse Guardiani wrote:

Bill,

Maybe this would be a good time to ask this question (I've
asked it once before, but never got an answer):
How does the development/production releas process work here?

When does inter7 release a new production version?

Is there back porting involved? Or does inter7 one day say,
hey, I think we should release a new production release!
Just like most OSS packages.  When it's ready.  Ken makes the call, I 
just organize development releases.  Backporting is only done if there 
is a major bug found, but the dev release isn't ready for production 
yet.  I did this with the vgetent problems in 5.2, for example.  That's 
the only time I'm aware of it, though.

Regards,

Bill Shupp




Re: [vchkpw] vpopmail and SpamAssassin

2003-02-20 Thread Bill Shupp
On Sunday, February 2, 2003, at 05:26  AM, Gabriel Ambuehl wrote:


Hello,
I just finished hacking SpamAssassin support into vdelivermail.

Basically, you need to have the spamd Daemon of the spamassassin
package running on port 783 (standard port for it) thru which all
messages smaller than 300k are filtered which means they get the
SpamAssassin score (and nothing else!) added to their headers like:

X-SpamAssassin-Score: 8.6/5.0

By default, the filtering is turned off so people who don't want
to use it won't note much difference. For the others, if spamd isn't
running, all messages will get delivered unchanged.

To enable the functionality, pass --enable-spamassassing=y to
configure.

There's one remaining bug: the size parameter of Maildir++ won't get
updated accordingly, I suppose this could be solved by stat()ing the
file at the end and then renaming it, thoughts?

Anyway, you can get the tarball at http://www.buz.ch/software


Gabriel,

I have done some testing on this patch.  There were a few minor 
problems that were easily fixed (configure.in typos), but I noticed 
that there is no FALLBACK support.  So when I take down spamd, 
vdelivermail crashes.  I don't have time to add that, but if you can, 
I'll retest the patch for integration.

Also, does this patch allow for user defined preferences?

Regards,

Bill Shupp




Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?

2003-02-20 Thread Bill Shupp
On Wednesday, February 19, 2003, at 08:33  PM, Andrew Kohlsmith wrote:


Anyone?  There must be some developmental work going on with it or it
wouldn't have been in the tarball.  I am willing to help work on it 
but I
need some help getting over this initial hurdle (cleanly).

Nice, responsive list.  :-/

Attached is a patch to 5.3.16 which will get vpgsql to actually work 
(seems to
work right for auth and relay, have NOT extensively tested it yet) -- 
I have
not included the configure script changes since they were really nasty 
and
I'm sure there is a better way.

ATM the database, user and password are all hardcoded, and I did not 
change
the existing ability to create the database if it doesn't already 
exist.
That seems like a really nasty thing to allow -- basically you are 
granting
the vpopmail database user full access to the vpopmail table where it 
would
seem more prudent to only allow inserts, updates and deletes. (not
create/drop).  Anyway.

Another nasty is that the database notification daemon will spit its 
info out
to the network (i.e. anyone accessing vchkpw) -- I will include a fix 
for
that soon as well as some general cleanups and any other bus I find.

I hope to do some more extensive testing, including clear passwords 
and open
relay in the next few days.  Adding domains/users and authenticating
definately is working though, and the tables seem to be updating 
correctly
for relay and lastauth.

Andrew,

Are you sure this diff is against 5.3.16?  It does not apply to my 
copy, or the one on Inter7's devel page (which should be the same).

Thanks,

Bill Shupp




Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?

2003-02-20 Thread Bill Shupp
On Thursday, February 20, 2003, at 11:15  AM, Andrew Kohlsmith wrote:


Are you sure this diff is against 5.3.16?  It does not apply to my
copy, or the one on Inter7's devel page (which should be the same).


bah... I looked at the diff and saw ^Ms at the end of all the lines so 
I
stripped them out.  Attached is a fixed version that *does* apply.

Regards,
Andrew

Looks great.  I've added it to 5.3.17, which I'll post later today.

Thanks!

Bill Shupp





[vchkpw] 5.3.17

2003-02-20 Thread Bill Shupp
Ken, All:

I've posted 5.3.17:

ChangeLog:
http://shupp.org/patches/vpopmail-ChangeLog

Download:
http://shupp.org/patches/vpopmail-5.3.17.tar.gz

Regards,

Bill Shupp





[vchkpw] 5.3.18

2003-02-20 Thread Bill Shupp
Ken, All:

Sorry to do a second release in one day, but I had missed Brian's new 
virtual domain quota code for 5.3.17.  Anyway, I've tested it, and it 
looks good from here.  Please help test:

Download:
http://shupp.org/patches/vpopmail-5.3.18.tar.gz

ChangeLog:
http://shupp.org/patches/vpopmail-ChangeLog

Cheers,

Bill Shupp




Re: [vchkpw] vpopmail 5.3.16 oddities

2003-02-15 Thread Bill Shupp
On Thursday, February 13, 2003, at 04:22  AM, Jim wrote:


I've been using vpopmail 5.3.9 for a while, with [seemingly] no 
problems.  I
upgraded to vpopmail 5.3.16, and noticed some new behavior.

i have my server hosting a non-registered domain -- jimtest.com.  i 
have two
users on this domain; [EMAIL PROTECTED] and [EMAIL PROTECTED]  I also 
have a
.qmail-default and a .qmail-jim which contains:

| /usr/local/bin/spamc | /home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/jimtest.com/jim
[EMAIL PROTECTED]

this lets me send mail to [EMAIL PROTECTED], [EMAIL PROTECTED], et al.  it 
is
all piped through spamc and is all delivered correctly.


now, the wierd part is when i send mail to [EMAIL PROTECTED], the 
message is
piped through spamc and delivered to the spam mailbox..  i've verified 
that
i have no .qmail-spam or .qmail inside the spam Maildir.

This is exactly how it _should_ behave.  Your .qmail-default is setup 
so that all _unmatching_ addresses will be put in the jim Maildir.  
But you have a real account for spam, so vdelivermail sees that and 
puts it in the spam Maildir.  Where did you expect mail for spam to 
be delivered?

Regards,

Bill Shupp




Re: [vchkpw] vdelivermail problem?

2003-02-11 Thread Bill Shupp
On Monday, February 10, 2003, at 08:50  AM, Dzuy Nguyen wrote:

Juraj Hantak wrote:

Hi all,
I have a problem with vdelivermail it is not correctly proceeding
.qmail- files.
Imagine situation you have a domain called test.com. Do you want to
forward the whole domain everything@test.com into address
[EMAIL PROTECTED] and the address should be proceed acording its .qmail
file. {local deliverded and forwarded to external address}
do you have in
.qmail-default
| path to vdelivermail vdelivermail '' [EMAIL PROTECTED]
and there is a file called
.qmail-john
[EMAIL PROTECTED]
path to domain/test.com/john/Maildir/
there is a mailbox [EMAIL PROTECTED]
And the behaviour is now:
when you send mail directly to [EMAIL PROTECTED] its correctly proceed and
is local delivered and a copy is forwarded to external address.
But when you send mail to [EMAIL PROTECTED] its only localy delivered it is
not forwarded to external mail address.
Can somebody help me with this problem, I have tested the stable
 5.2.1  version and developement  5.3.14


The correct thing to do is put the external email address in the 
vdelivermail line, like so:

| /home/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]

.qmal files in the domain directory are for qmail-local processing, NOT 
vdelivermail.  This is why the setup you described fails.  vdelivermail 
checks for a vpasswd entry for john since test.com is the local domain. 
 It does NOT look at .qmail files in the domain's directory, just 
.qmail files in the user's directory.

 Best regards
 Juraj Hantak


There is a bug in vdelivermail since 5.2 which I identified and 
reported.  I'm
surprised it didn't make it to 5.3 development releases.  Basically, 
forward and
keeps a copy works fine, but forward alone does not.  Please check the 
archive
for details of the problem.

I assume you are referring to this message:

http://www.mail-archive.com/vchkpw@inter7.com/msg11007.html

See the argument above.  The same logic applies, and it's not a bug.

Regards,

Bill Shupp





Re: [vchkpw] some bug vopmail/qmailadmin with plaintext enabled

2003-02-11 Thread Bill Shupp
On Monday, February 10, 2003, at 10:58  AM, Jonas Pasche wrote:


Hi,


if we use vpopmail with plaintext passwords enabled and some user
changes his password to string which contains ':' symbol - qmailadmin
doesn't list users after that account.


Yes, you're right. That's the problem with every single text database
that uses a colon to separate fields. qmailadmin simply sees that line
as a line that doesn't have the right number of fields. (The same
problem occurs with vpopmail installations that don't have clear text
passwords enabled at all.)

Dear Inter7 developers: What about quoting a colon as \:? Yes, that
would need coordinated changes both in vpopmail and qmailadmin, but the
current behaviour is confusing.


I'll look into correcting this in 5.3.17, which is almost done.

Regards,

Bill Shupp





Re: [vchkpw] vmoduser core dumps when using whole domain

2003-02-11 Thread Bill Shupp
On Monday, February 10, 2003, at 01:49  PM, Taylor Dondich wrote:


I was using vpopmail 5.2 awhile ago and everything worked fine; 
however, after upgrading to 5.3.9, vmoduser now core dumps when you 
specify an entire domain to modify instead of just a specific e-mail 
address.

Any ideas?

I cannot reproduce this.  Can you provide more information?  
Specfically:

configure options
if using cdb, a sample of the vpasswd file to see if that is broken

Regards,

Bill Shupp




Re: [vchkpw] vpopbull

2003-02-11 Thread Bill Shupp
On Monday, February 10, 2003, at 02:58  PM, Jesse Guardiani wrote:


Greetings list,

I noticed that the vpopbull program (current production release 
version)
doesn't toss an error if you give it bad parameters. Is this fixed in 
the
vpopmail development version?

I can't reproduce this.  Please give an example, or be more specific.

Regards,

Bill Shupp





Re: [vchkpw] vdelivermail problem?

2003-02-11 Thread Bill Shupp
On Tuesday, February 11, 2003, at 08:07  AM, Dzuy Nguyen wrote:


Bill, the message above was unrelated to this problem.  I was looking 
for
ways to make alias user to get the spam checking.  I didn't say it was 
a bug.
BTW, I still have not found a suitable solution for 
qmail/vpopmail/spamassassin
to play nice with each other.

A patch to vdelivermail was sent to the list last week.  I hope to test 
it today and integrate it into 5.3.17 if all goes well.

The bug I was refering to was mentioned in a thread months ago.  It 
involves
.qmail file in the user's directory.  If it's fixed, then I apologized.

The only other mention I found in the archives was you referring to a 
bug that was *fixed* in 5.3.x... can you post the URL to the specific 
problem?

Regards,

Bill




Re: [vchkpw] vpopbull

2003-02-11 Thread Bill Shupp
On Tuesday, February 11, 2003, at 08:31  AM, Jesse Guardiani wrote:


you're right, I should have been more specific. Sorry. Here's a 
reproduction:

[11:25]jesse@cvsup:[/usr/local/vpopmail/bin]# ./vpopbull 
../bulletins/imail-migration.txt mailtest.wingnet.net
[11:26]jesse@cvsup:[/usr/local/vpopmail/bin]#


vpopbull thinks my path: ../bulletins/imail-migration.txt is a 
domain name,
or so I assume. In this case, I forgot the -f option.

Shouldn't vpopbull do some checking before it blindly accepts domain 
names?

Yes.


Also, shouldn't vpopbull error out when someone feeds it an empty 
message?

Yes.


These two bugs make me very paranoid when I'm sending out bulletins. 
I'm
never sure they actually sent properly until I check a mailbox on the
domain I was targeting.

And rightfully so.  I'll have a look today.

Regards,

Bill Shupp





Re: [vchkpw] disk quota per domain

2003-01-29 Thread Bill Shupp
On Wednesday, January 29, 2003, at 06:31  AM, Brian Kolaci wrote:



I too had put in code to calculate real quota
based on recursively doing stat's.  This seems to
chew up *alot* of resources.  I have over a thousand
domains and its hasn't been an issue to have a username per
domain.  In fact, it works well and better than
when the quota code was in vdelivermail.  I've since
stopped adding my own patch.

I'm seeing that the quota code in there now doesn't
seem to return the correct information.  For several users,
vuserinfo seems to return 100% full all the time (when they
used 1.25 Meg out of 100 Meg).

I'd like to move the get_du() code from the qmailadmin
code to the vpopmail library.  Bill/Ken, is this OK?
This is a platform independent routine that gets the
disk usage for a directory tree.  This can be called
either on the user's directory or the domain's directory
to get the corresponding values.  We can then build
a switch in vdelivermail to use this for the domain
limits.  I'm not sure how to get the maildir quotas
working for per-domain, but in my case I'm seeing that
they haven't been too reliable.  I have customers complaining
that sometimes mail is bouncing when they're only using 1Mb of space.


The important thing is to adhere to this document:

http://inter7.com/courierimap/README.maildirquota.html

It is very specific about the procedure of measuring quota usage.  When 
I implemented maildir++ in vdelivermail and qmail-pop3d/qmail-local, I 
just adapted Sam's code from maildrop.

Regards,

Bill




[vchkpw] 5.3.16

2003-01-27 Thread Bill Shupp
Ken, all:

I've added Brian Kolaci's vopen_smtp_relay patch to 5.3.16.  You can 
get it from http://shupp.org.

Regards,

Bill Shupp




[vchkpw] 5.3.15

2003-01-26 Thread Bill Shupp
Ken, all:

I've put together vpopmail 5.3.15 with a few minor fixes for 
vdeloldusers and vlimits (from Brian):

ChangeLog:
http://shupp.org/patches/vpopmail-ChangeLog

Download:
http://shupp.org/patches/vpopmail-5.3.15.tar.gz

Cheers,

Bill Shupp




Re: [vchkpw] 5.3.15

2003-01-26 Thread Bill Shupp
On Sunday, January 26, 2003, at 12:41  PM, Remo Mattei wrote:


Hi bill here is an error:

vmysql.h:2: parse error before `program'
vmysql.h:2: warning: type defaults to `int' in declaration of 
`software'
vmysql.h:2: warning: data definition has no type or storage class
vmysql.h:2: parse error before `can'
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory
`/usr/local/src/vpopmail-5.3.14/vpopmail-5.3.15'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/vpopmail-5.3.14/vpopmail-5.3.15'
make: *** [all-recursive-am] Error 2
Let me know

I cannot reproduce this, and see no problems in vmysql.h.  Did you 
delete something at the top of the file?  The text it's complaining 
about are the comments at the top of the file, so it is not recognizing 
the text as a comment.

Bill




Re: [vchkpw] NewBie question

2003-01-26 Thread Bill Shupp
On Sunday, January 26, 2003, at 08:37  PM, Winanjaya wrote:


I have just subscribed to this list .. sorry, may be this is very 
stupid
question .. but I need it .. where can I find the archive of this 
list? ..
because I have to find something there

This is easily found on the vpopmail website.

Bill





Re: [vchkpw] vlimits patch

2003-01-24 Thread Bill Shupp
On Thursday, January 23, 2003, at 10:52  AM, Brian Kolaci wrote:



Hi Ken/Bill,

It appears that the last patch I sent through didn't
get applied.  This one contains the several extra
fields as requested.


Your patch applied clean to 5.3.14, but compilation failed with these 
errors:

gcc -I. -Icdb  -g -O2 -Wall -c vlimits.c
vlimits.c:25: conflicting types for `vget_limits'
vlimits.h:53: previous declaration of `vget_limits'
vlimits.c:194: conflicting types for `vset_limits'
vlimits.h:54: previous declaration of `vset_limits'
vlimits.c: In function `vset_limits':
vlimits.c:215: structure has no member named `disablepop'
vlimits.c:217: structure has no member named `disableimap'
vlimits.c:219: structure has no member named `disabledialup'
vlimits.c:221: structure has no member named `disablepasswordchanging'
vlimits.c:223: structure has no member named `disablewebmail'
vlimits.c:225: structure has no member named `disablerelay'
vlimits.c:227: structure has no member named `disablesmtp'
vlimits.c:233: warning: long int format, int arg (arg 3)
vlimits.c: At top level:
vlimits.c:246: conflicting types for `vdel_limits'
vlimits.h:55: previous declaration of `vdel_limits'
make[2]: *** [vlimits.o] Error 1
make[2]: Leaving directory `/var/src/vpopmail-5.3.15'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/src/vpopmail-5.3.15'
make: *** [all-recursive-am] Error 2


I'm currently working on
qmailadmin to use the API.  Shall I also update
vdelivermail to enforce the per-domain quotas?


This is not a feature I'm terribly interested in, since vpopmail 
already supports domain quotas through system quotas.  But if you want 
to submit a patch, go for it.

Regards,

Bill Shupp




Re: [vchkpw] 5.3.14 make errors

2003-01-16 Thread Bill Shupp
On Thursday, January 16, 2003, at 06:57  AM, SoftHaus Webmaster wrote:


Hi,

When I try to compile Version 5.3.14 with mySQL support I get the 
following
make errors:
...
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c bigdir.c
gcc -I. -I/usr/include/mysql  -g -O2 -Wall -c vauth.c
vauth.c: In function `vget_limits':
vauth.c:1455: structure has no member named `disablepop'
vauth.c:1456: structure has no member named `disableimap'
vauth.c:1457: structure has no member named `disabledialup'
vauth.c:1458: structure has no member named `disablepasswordchanging'
vauth.c:1459: structure has no member named `disablewebmail'
vauth.c:1460: structure has no member named `disablerelay'
vauth.c: In function `vset_limits':
vauth.c:1504: structure has no member named `disablepop'
vauth.c:1505: structure has no member named `disableimap'
vauth.c:1506: structure has no member named `disabledialup'
vauth.c:1507: structure has no member named `disablepasswordchanging'
vauth.c:1508: structure has no member named `disablewebmail'
vauth.c:1509: structure has no member named `disablerelay'
...

My configure lines are these:
./configure --enable-roaming-users=y \
--enable-clear-passwd=y \
--enable-valias=y \
--enable-mysql=y \
--enable-mysql-limits=y \
--enable-vpopuser=vpopmail \
--enable-relay-clear-minutes=15

works without errors!

It all worked fine till version 5.3.11!
Can anyone tell me if this is a bug in this dev version or a wrong 
config at
my system.

Don't use --enable-mysql-limits=y.  It's not finalized yet...

Regards,

Bill Shupp





Re: [vchkpw] Authdaemond--mysql?

2003-01-16 Thread Bill Shupp
On Thursday, January 16, 2003, at 08:38  AM, [EMAIL PROTECTED] 
wrote:

Hmmm. OK. Then I'm wondering what I'm doing wrong as authdaemond seems 
to
stop working after a time. I've setup the rc file so that the daemon
only loads the authvchkpw module at start time.

When first started, all users can athenticate normally, but after an 
hour
or so, it seems to start randomly failing on known good uname/pw 
combos.
Only stopping and starting the daemon fixes this; using the restart
command has no effect.

I'm seeing this problem on two different boxes with identical installs
running RedHat 6.2 and RedHat 7.3. I'm considering doing a third build 
on
a Solaris box to see if the problem show up there as well.

Can anyone suggest what could cause such a problem and what a fix might
be?

Stopping and restarting the authdaemon once an hour seems like a kluge 
at
best, particularly for a busy server...

A simple search of the archives will show this has been covered a 
zillion times on this list.  This week even.

Bill




Re: [vchkpw] .quotawarn.msg To: field

2003-01-15 Thread Bill Shupp
On Tuesday, January 14, 2003, at 11:11  PM, Michael Bellears wrote:


Quota Warnings are working fine, apart from the To: field not 
containing
the users correct address:

.quotawarn.msg example has
To: Valued Customer:;

Exactly.  It's an *example*.


Just wondering what I could change this to in order to have the users
correct address inserted when the warining is sent?


Change it to something different, or delete it.  There is no 
auto-parsing of this line based on the Delivered-To header.

Regards,

Bill Shupp




Re: [vchkpw] vpopmail 5.3.13

2003-01-14 Thread Bill Shupp
On Tuesday, January 14, 2003, at 11:08  AM, Paul Theodoropoulos wrote:


At 05:53 PM 01-13-2003, Bill Shupp wrote:


From the ChangeLog:



 - lots of cleanup.. removed all mysql specific code


i'm curious what exactly that means. at the most basic level, it 
almost sounds like mysql support has been removed, though i strongly 
doubt that. can you clarify?

Sure.  The vpopmail programs, for the most part, use the vpopmail 
library to do things.  The library will contain the specific 
authorization module code... like mysql, cdb, etc... but for some 
reason, vdeloldusers didn't use the available function in the vpopmail 
libarary (vget_lastauth(),  which might not have been available when 
vdeloldusers was written).  Anyway, I just made vdeloldusers modular by 
using the vget_lastauth() function, rather coding it for mysql only.  
This was, any authorization module can benefit from vdeloldusers.  I 
have only tested cdb and mysql, though.

Regards,

Bill Shupp




Re: [vchkpw] roaming user for imap

2003-01-14 Thread Bill Shupp
On Tuesday, January 14, 2003, at 03:25  PM, Andrew Kohlsmith wrote:


That's a good point -- In my particular case authdaemon is not 
updating the
tcp.smtp.cdb file at all though.

authdaemon does NOT pass the IP to vpopmail.  That's why you can't use 
it if you want roaming IMAP users.

Bill




Re: [vchkpw] Postgres support?

2003-01-14 Thread Bill Shupp
On Tuesday, January 14, 2003, at 04:29  PM, Charles J. Boening wrote:


I had done some finishing work with the code that Nels wrote and am
currently running vpopmail 5.3.4 in a production environment with a 
little
over 1000 users.  It works very well with no hangups that I have 
noticed.

I submitted the code to the vpopmail developers back around May or 
April of
2002.  Since then there has been little interest from the vpopmail 
community
for postgresql support and the vpopmail development team.

From the looks of it, postgresql support will not be making it into 
vpopmail
unless someone makes patches for every release.

I still have the code and would like to see it integrated into 
vpopmail.  I
don't know much about autoconf and haven't had the time to learn or 
I'd do
that part myself.  I think that's about all that needs to be done.  
Once
autoconf knows about postgresql, the make file should be generated 
properly
and we'd have postgresql support.

Feel free to contact me off list if you'd like to discuss this further.

Please send it directory to me, and I can integrate it.

Regards,

Bill





[vchkpw] vpopmail 5.3.13

2003-01-13 Thread Bill Shupp
Ken, All:

I have posted my vpopmail 5.3.13:

Download:
http://shupp.org/patches/vpopmail-5.3.13.tar.gz


From the ChangeLog:

   - major changes to vdeloldusers
  - Works with any module that supports auth-logging 
(mysql, cdb)
  - lots of cleanup.. removed all mysql specific code
  - deprecated -r switch, replaced it with -V (verbose)
  - users are NOT deleted by default.. a new -D argument is
required to actually delete users
  - brought back the -d option to specify only one domain

The changes are only to vdeloldusers, but they were significant enough 
that I just went ahead and updated the version number.  Please help 
test.  I can find no problems on cdb or mysql.

Regards,

Bill Shupp




Re: [vchkpw] problems with rbls?

2003-01-06 Thread Bill Shupp

On Monday, January 6, 2003, at 03:42  PM, Brendan McAlpine wrote:


Does anyone know if any of the following rbls are slow or 
non-functional?

Starting at about 2PM EST, my smtp concurrency shot through the roof, 
which is usually a sign that one of the rbls i am using isn't working 
properly.  anyone know of any problems with the following rbls:

korea.services.net
relays.ordb.org
relays.osirusoft.com
sbl.spamhaus.org
spews.relays.osirusoft.com

If nothing is wrong, any reason why my smtp concurrency would shoot up 
to its maximum?  I am watching the smtp log roll by and it doesn't 
seem to be an attack from any one address..

I got paged at 3 am because sbl.spamhaus.org was not responding, 
causing the smtp to stall.  The frustrating part is that the -t option 
(timeout) for rblsmtpd doesn't appear to work.  Anyone taken a stab at 
fixing this?  I'd prefer that rblsmtpd default to allow the connection 
if the rbl cannot be reached in x seconds.

Regards,

Bill Shupp




Re: [vchkpw] problems with rbls?

2003-01-06 Thread Bill Shupp
On Monday, January 6, 2003, at 07:51  PM, Paul Theodoropoulos wrote:




I got paged at 3 am because sbl.spamhaus.org was not responding, 
causing the smtp to stall.  The frustrating part is that the -t 
option (timeout) for rblsmtpd doesn't appear to work.  Anyone taken a 
stab at fixing this?  I'd prefer that rblsmtpd default to allow the 
connection if the rbl cannot be reached in x seconds.

the -t option has to go at the _end_ of the declarations, rather than 
at the beginning where most options go. not sure why. but works for  me:

-rorbs.dorkslayers.com -rrelays.ordb.org -rrelays.visi.com -t15

will end the conversation at precisely fifteen seconds if it's not 
complete by then.

Excellent, thanks for the tip.  I'll try that.

Regards,

Bill Shupp





Re: [vchkpw] Wrong delivered-to header addition

2003-01-01 Thread Bill Shupp
On Wednesday, January 1, 2003, at 06:06  PM, Dubois Cedric wrote:


Hello,

I'm running vpopmail 5.2.1.

I've noticed that messages received by users from which the domain was
created in a subdirectory of the 'domains' directory (eg domains/0) are
getting an incorrect Delivered-To: header added to it. Instead of the
domain, the subdirectory name is appended.

Eg for domains/0/mydom.com/user the header would be:
Delivered-To: user@0 instead of Delivered-To: [EMAIL PROTECTED]

I guess this is a small bug. I didn't find anything about this in the
archives/discussion boards.


Fixed in the dev version.

Bill





Re: [vchkpw] Segmentation Fault

2002-12-22 Thread Bill Shupp
On Sunday, December 22, 2002, at 10:36  AM, Steve Sobka wrote:


Hello all,

My Setup:

RedHat 7.3+Vpopmail
5.3.11-(MySql)+qmail-1.03+qmailadmin-1.0.6+qmail-scanner-1.15+vqadmin- 
2.3.4+
SpamAssassin-2.43

I have a somewhat strange problem that just started occurring.  As of  
a few
days ago my vpopmail started giving me segmentation faults whenever I  
try to
use 'vadddomain'.  I have added two programs to the system  
(Spamassassin and
qmail-scanner), but I don't think either of these programs would cause  
the
Segmentation Fault when trying to add a domain.
I was thinking of recompiling qmail now, but I am not sure this would  
help?
I am wondering if I have some sort of corruption somewhere?  I've  
included
my settings at the end of this message.  BTW, I can  
add/delete/modify/delete
current users and domains.  I can also add new users to domains with no
problems.  It's just adding a new domain that segfaults.

The segmentation fault happens as follows:

Check the contents of /var/qmail/users/assign.  It's likely that the  
problem is there.

Regards,

Bill Shupp




Re: [vchkpw] imap authentication fails SOMETIMES with authvchkpw (vpopmail)

2002-12-17 Thread Bill Shupp
On Tuesday, December 17, 2002, at 03:59  PM, Alex Martin wrote:


Hello,

I followed these instructions:
http://hibrida.interaksi.web.id/man/qmail/step-dnata.html

to set everything up, then used the following for courier-imap 
installation.

http://www.inter7.com/courierimap/INSTALL.html#install

Everything works great. sqwebmail, POP3, smtp, IMAP even.

_Except:_ randomly when using an IMAP client, the
server authentication fails.

It seems that when I restart the authdaemon, it cures the problem, 
though
temporarily.

Don't use authdaemon.

Bill Shupp





Re: [vchkpw] Auth failing on HP-UX

2002-12-16 Thread Bill Shupp
On Monday, December 16, 2002, at 01:08  AM, Howard Miller wrote:


Hi,

I'm having some problems with vpopmail. I have a working Qmail 
installation,
and have just installed vpopmail on a HP-UX (11) server. I have 
installed the
pop3 service exactly as per the installation instructions using 
ucsp-tcp.

I have done a number of installations before on Linux and it has 
always worked
first time.

However, I am now installing on HP-UX and am having problems. I tried 
to test
pop3 using telnet localhost 110. I get the correct prompts but I 
always get
an ERR Authorisation Failed, and I'm sure my user/pass combination is
correct.

I'm really stuck, what is the best way to debug this, or does anybody 
have a
bright idea??

Try compiling with --enable-logging=v and then check your mail logs.

Bill





Re: [vchkpw] More ip alias woes

2002-12-15 Thread Bill Shupp
On Saturday, December 14, 2002, at 09:50  PM, Andre Fortin wrote:


Hi,

I'm using vpopmail with MySQL backend, and courier-imap for 
SquirrelMail
webmail.  I am trying to use vipmap to authenticate different domains 
via
IP, and have applied Bill's patch for getting aroun IPv6, but when I 
log in
to a vipmap'd domain(other than the one in --enable-default-domain) it
returns the following:

---

Unknown error: Fatal error: Maildir: No such file or directory

Read data:

---


The default domain was a cdb domain before, so i made sure to move the
vpasswd files out of the way to make sure it wasnt just grabbing the 
correct
directory from the files rather than the MySQL database..

If I log in with the complete email address, it works; It only causes 
this
problem when I try to connect to the vipmap'd domain without using the
complete email address.  I am not much of a coder, but I'm assuming the
problem is that the authvchkpw module is looking at the 
user@default-domain
instead of looking at user@ip-aliased-domain for the users directory.. 
Not
finding the user in the default domain, it will not have a proper 
directory
to find its Maildir/ and exits with this error.  When logged into via 
the
complete email address, Courier of course does not use the default 
domain
and authenticates properly.. Am I right? Is there already a solution 
for
this issue? Let me know if any more information is needed.. Thanks,

You mention that SquirrelMail does not work.  What if you telnet to 143 
and test login that way?  My guess is that squirrelmail is not passing 
the correct IP to courier-imap.  One possible workaround would be to 
have squirrelmail look at the HTTP_HOST header and append the domain to 
the login.  I used to do this for my customers.  I there's even a 
plugin now.

Regards,

Bill Shupp




Re: [vchkpw] IP-based virtual hosting

2002-12-15 Thread Bill Shupp
On Saturday, December 14, 2002, at 10:27  PM, Moshe Jacobson wrote:


Does vpopmail support virtual hosting by IP address? I would a user to
be able to connect to a particular IP address associated with their
domain, so they will not have to send a full user@domain string as
their username, but rather simply user, and vpopmail will be able to
infer the domain from the IP address.


Yes.  Compile with ip-alias domains support.  ./configure --help to 
find the correct compile option.  I belive this is covered in the 
INSTALL file as well.

Regards,

Bill Shupp




Re: [vchkpw] Encrypted Password

2002-12-11 Thread Bill Shupp
On Wednesday, December 11, 2002, at 09:19  AM, Ryan Adorable wrote:


Hi,

I'm doing qmail+vpopmail+mysql here.

My problem is, how could I make vpopmail to check pw_passwd field,
instead of pw_clear_passwd for password lookup?


Don't use APOP or CRAM-MD5.  You can also disable clear passwords at 
compile time.  This will permanently disable APOP and CRAM-MD5.

Regards,

Bill Shupp




Re: [vchkpw] courier-imap STILL stops authenticating after awhile

2002-12-07 Thread Bill Shupp
On Monday, November 25, 2002, at 05:46  PM, Taylor Dondich wrote:


Well, I attempted to correct the issue; however, courier-imap still 
tends to muck up authentication after awhile (about an hour or so).  
Is there any way to have courier-imap give a bit more verbose error 
messaging.  All I see is LOGIN FAILED.  I don't know whhy.  Also, 
people keep saying that there's supposed to be a 
/usr/local/libexec/courier-imap/authlib/authvchkpw file or something, 
I don't have that, but authentication works for AWHILE.  Then it takes 
a dump.

Anyone have any suggestions?  :(

Compile courier-imap with:

--without-authdaemon --with-authvchkpw

In my experience, authdaemon has been the culprit.

Regards,

Bill





Re: [vchkpw] domain maildir quotas

2002-12-07 Thread Bill Shupp
On Thursday, November 21, 2002, at 05:43  PM, Brian Kolaci wrote:



Hi,

Bill, if your there, you'd probably know this one off
the top of your head...

Is there a maildir function to gather the current usage
for a whole domain?  I know its easy for disk based usage,
but what about maildir quotas?  If not, I'll put one together
to go to the domain directory and loop over all the subdirectories
with Maildirs in them and sum them up.


Sorry for the delay in responding.  There is no function for this as of 
yet.  I've always been an advocate of system quotas for domains (via 
vadddomain -u) and Maildir++ quotas for Maildirs.  Most of the quota 
code (originally written by Sam) is in maildirquota.c.

Regards,

Bill




Re: [vchkpw] using spamassassin....

2002-11-13 Thread Bill Shupp
On Wednesday, November 13, 2002, at 11:22  AM, Brendan McAlpine wrote:


I forgot to mention that I am running FreeBSD 4.3.


Just check out the spamassasin and qmail-scanner docs.  They are both 
detailed and good.

Regards,

Bill Shupp




Re: [vchkpw] quotas

2002-11-12 Thread Bill Shupp
On Tuesday, November 12, 2002, at 09:08  AM, Marco wrote:


I'm sure you are all tired of hearing about quotas and how they won't 
decrease once file has been deleted.
 
I understand there are some issues with quota support in 
qmail+vpopmail.  I just joined this mailing list, so if this was 
answered recently, I apologize.  I think I am a little confused 
because vpopmail claims to support maildir quotas for qmail-pop3d, 
however there seem to be issues with it.
 
The Problem:
 
The problem seems well documented, the solution however doesn't. 
 
Email is sent, the maildirsize file grows, it approaches the quota 
size (90%) and emails the quotawarn.msg.  However when the emails are 
removed, the maildirsize file is the same.
 
The Patch:
 
I don't smoke, but I did use the patch.  I used `patch -p0 
maildir-quota.patch` .  I'm assuming it worked, there were no errors.  
I'm not too familiar with the patch command, but after some research, 
I think I found the right syntax to use. 

There is no patch called maildir-quota.patch that is supported by 
vpopmail.  I don't think you have it patched correctly.

The only included in the stable release is 
qmail-pop3d-maildirquota.patch.gz, and is located in the contrib 
directory.  There is a newer version, that is available with the 
development versions of vpopmail, and it's filename is 
qmail-maildir++.patch.  I recommend this one.  Both are available on my 
site, www.shupp.org.  Re-patch qmail with one of these, and that should 
solve your problems.  i.e.:

cd qmail-1.03
lynx --source http://www.shupp.org/patches/qmail-maildir++.patch | 
patch -p0
make
qmailctl stop
make setup check
qmailctl start

Regards,

Bill Shupp



Re: [vchkpw] finding include directory

2002-11-11 Thread Bill Shupp
On Monday, November 11, 2002, at 07:49  PM, tripnkid wrote:


hello,
    i absolutely cannot find my include directory (for mysql). is it 
possible that i have a working installation of mysql without the 
requisite include files? i'm running mandrake 8.2 by the way. if 
someone could tell me how i can locate my include directory that would 
be very greatly appreciated.


Make sure you have mysql-devel installed.

Bill





Re: [vchkpw] quotas and imap

2002-11-08 Thread Bill Shupp
On Thursday, November 7, 2002, at 10:27  PM, Vladimir Kabanov wrote:


yes, it works,
but you should add word QUOTA to imap capability list


This is correct.  As a PHP example, you might check out my SquirrelMail
plugin that does the same thing:

http://squirrelmail.org/plugin_view.php?id=59

It's really simple, but might be helpful in getting started writing
something similar for IMP.

Regards,

Bill Shupp





Re: [vchkpw] quotas and imap

2002-11-08 Thread Bill Shupp
On Friday, November 8, 2002, at 01:56  PM, Iain wrote:


Hi,

On Sat, 9 Nov 2002 04:25, Bill Shupp wrote:

On Thursday, November 7, 2002, at 10:27  PM, Vladimir Kabanov wrote:

yes, it works,
but you should add word QUOTA to imap capability list




I'm not sure what you mean by this.


The QUOTA extension in courier-imap is considered experimental.  
Therefore, it's not listed as a capability in the capability string be 
default in the imapd config file.  You need to manually add it.  See 
the FAQ in my SM plugin.

This is correct.  As a PHP example, you might check out my 
SquirrelMail
plugin that does the same thing:

http://squirrelmail.org/plugin_view.php?id=59

Great thanks for that. Is there are a reason you didn't use the 
imap_getquota
function in PHP?

SquirrelMail doesn't use the c-client library from the UW-IMAP server, 
it uses its own IMAP functions.

Also do you have to use GETQUOTAROOT or would GETQUOTA work
too.


Check out the rfc here: ftp://ftp.rfc-editor.org/in-notes/rfc2087.txt

You can use either, but GETQUOTAROOT accounts for multiple roots.

Bill





Re: [vchkpw] quotas and imap

2002-11-08 Thread Bill Shupp
On Friday, November 8, 2002, at 02:55  PM, Vladimir Kabanov wrote:


Bill, that functionality already implemented in IMP, and it works for 
me, at
least
so everything even more simple :)

Really?  Why are we having this discussion then?  I don't use IMP 
anymore.  : |

Bill




Re: [vchkpw] very very very strange problem

2002-11-07 Thread Bill Shupp
On Wednesday, November 6, 2002, at 09:08  PM, tech wrote:


i m going to be really crazy...

i installed courier-imap version 1.5.3, 1.6 and the latest snapshot,
i also installed sqwebmail 3.3.7, 3.4 and the latest snapshot,
each time authentification for those users (some postmasters) failed.

in my mysql.log, we can see that vchkpw accept those users because
it update the timestamp in the lastauth table...
so what s wrong?


As was pointed out recently, preauthvchkpw.c (courier-imap, sqwebmail) 
updates the lastauth table *before* authentication happens.  I'm 
working on a fix for that.  So this is not evidence that vpopmail has 
authenticated the user.

Regards,

Bill




Re: [vchkpw] deleting an alias domain

2002-11-07 Thread Bill Shupp
On Wednesday, November 6, 2002, at 10:03  PM, Kurt Bigler wrote:


It is unclear to me from the documentation how to delete an alias 
domain.

I was afraid to just remove the symbolic link from the domains 
directory,
thinking this might leave something not cleaned-up somewhere.

But I was also afraid to run vdeldomain on an alias domain, thinking it
might follow the symlink and delete the original domain.

So what is the right way to delete an alias domain using vpopmail?

vdeldomain is the right way to remove it.  However, aliased domains 
have changed recently.  I just tested with vpopmail 5.3.11, and I was 
able to delete an alias domain safely.  But if I were you, I'd backup 
the domain first in case your version of vpopmail has a problem.

Regards,

Bill Shupp




Re: [vchkpw] Wrapping Services

2002-11-07 Thread Bill Shupp
On Thursday, November 7, 2002, at 03:14  AM, Alessandro A. wrote:


Hello,
I've installed Courier-IMAP+vpopmail 5.3.9+Qmail 1.03 in my email 
server and
it's working fine.
There is a method for wrapping POP3 and IMAP services? I would limit
access only for some machines and/or networks.

tcpserver can do this by ip/network using tcprules.  See 
http://cr.yp.to/ucspi-tcp.html for details.  But for IMAP, you'll want 
to man couriertcpd for similar functionality.  I've never tried it with 
courier, so I don't know how much support there is for it.

Regards,

Bill




Re: [vchkpw] User vpopmail cant login through sqwebmail

2002-11-07 Thread Bill Shupp
On Thursday, November 7, 2002, at 04:46  PM, Afif wrote:


Dear all,

I  ave  problem  about vpopmail user authentication, way every user in
vpopmail  can't login through sqwebmail, but throught pop3 mail client
its can use normally,
do I make some mistake? would you please give soulution for this case?
I've been reinstall sqwebmail but the problem still exist
highly appreciate for yr help


You should probably check with the sqwebmail list if vchkpw is working 
normally.  But clearly sqwebmail is not setup correctly.  Try compiling 
--without-authdaemon --with-authvchkpw

Regards,

Bill Shupp




Re: [vchkpw] User vpopmail cant login through sqwebmail

2002-11-07 Thread Bill Shupp
On Thursday, November 7, 2002, at 04:52  PM, Kurt Bigler wrote:


on 11/7/02 4:46 PM, Afif [EMAIL PROTECTED] wrote:


Dear all,

I  ave  problem  about vpopmail user authentication, way every user in
vpopmail  can't login through sqwebmail, but throught pop3 mail client
its can use normally,
do I make some mistake? would you please give soulution for this case?
I've been reinstall sqwebmail but the problem still exist
highly appreciate for yr help


What mail client are you using?  Have you tried several?


The problem is with sqwebmail, not a POP MUA.


I have noticed that OutlookExpress for Macintosh (all versions for the 
last
several years) will fail on pop several times (maybe 3 times, maybe 20
times) when a newly created pop account is used for the first time.  
By just
clicking Send and Receive quickly a dozen or so times it eventually 
works.
Once it works once it works forever.

I don't know what it is about OutlookExpress, how it can behave 
differently
for new accounts that have not previously been used.  Would be 
interested if
anyone else has solved this problem.  I am new to this list - maybe the
issue has been brought up before.

Sounds like you are using POP before SMTP (roaming users).  I believe 
Outlook tries to send before receiving (hence the send/receive button 
title).  If you haven't authenticated via pop, then you can't relay and 
outbound mail will get the 553 sorry, that domain isn't in my list of 
allowed rcpthosts (#5.7.1) error.  But the second attempt should 
succeed.

Two solutions:

1. See if you can configure Outlook to pop first
2. Use SMTP-AUTH rather than roaming users.  It's a better solution, 
and almost all modern MTAs support it now.  And vpopmail 5.3.8+ 
supports CRAM-MD5, so Eudora should work too.

Regards,

Bill Shupp




[vchkpw] autorespond on OS X

2002-11-06 Thread Bill Shupp
Brad, all:

I just found that when compiling autorespond on OS X (jaguar, gcc 3.1), 
you have to include fcntl.h *before* dirent.h.  Otherwise, you get this:

bash-2.05a# make
gcc -Wall -o autorespond autorespond.c
/usr/include/sys/dirent.h:73: undefined type, found `u_int32_t'
/usr/include/sys/dirent.h:74: undefined type, found `u_int16_t'
/usr/include/sys/dirent.h:75: undefined type, found `u_int8_t'
/usr/include/sys/dirent.h:76: undefined type, found `u_int8_t'
cpp-precomp: warning: errors during smart preprocessing, retrying in 
basic mode
In file included from /usr/include/dirent.h:64,
 from autorespond.c:72:
/usr/include/sys/dirent.h:73: parse error before u_int32_t
/usr/include/sys/dirent.h:75: parse error before d_type
/usr/include/sys/dirent.h:76: parse error before d_namlen
/usr/include/sys/dirent.h:83: parse error before '}' token
autorespond.c: In function `main':
autorespond.c:675: dereferencing pointer to incomplete type
autorespond.c:677: dereferencing pointer to incomplete type
autorespond.c:683: dereferencing pointer to incomplete type
autorespond.c:685: dereferencing pointer to incomplete type
make: *** [all] Error 1

Also, there is no group wheel, so chgrp root 
/usr/local/bin/autorespond fails.

Regards,

Bill Shupp




Re: [vchkpw] qmail + vpopmail backup queue

2002-11-06 Thread Bill Shupp
On Wednesday, November 6, 2002, at 01:45  PM, Nate D. wrote:


A client of mine had their mailserver go down this week, and has asked 
me if
we can have ours act as a backup mailserver.

I've got a pretty standard LWQ qmail setup with vpopmail.

I have the client's mailserver's MX as 10, and my server as 20.

I did some research, and found that all I should have to do is add the 
domain
to the rcpthosts or morercpthosts, but make sure that it isn't added to
locals or virtualdomains. I also found out about the smtproutes file, 
but
seems that this file is only necessary if you need to force the server 
NOT to
use the MX records.

Here's my questions:

1. If I add the domain to morercpthosts, do I need to restart qmail or 
do
anything with vpopmail?

No, just run /var/qmail/bin/qmail-newmrh to update the cdb file.


The reasons I ask are because I saw a morercpthosts.cdb and 
morerspthosts.lock
that I honestly don't remember seeing when I setup the server. Also, I 
added
the domain in question to morercpthosts and watched the e-mail enter 
the
queue and stay in there until I restarted qmail.

2. The smtproutes file doesn't exist in /var/qmail/control. Do I need 
it? If
so, would I just add the file and qmail would know what to do with it?

Yes, you'll need to add an entry to smtproutes like so:

domain:host

Where domain is the domain you are acting as a backup mail server for, 
and host is the hostname of the server should receive the mail.

Regards,

Bill Shupp




Re: [vchkpw] very very very strange problem

2002-11-05 Thread Bill Shupp
On Tuesday, November 5, 2002, at 03:07  PM, tech wrote:


hi all,

i have a very very very strange problem with vchkpw...

first i installed

qmail+vpopmail+mysql+qmailadmin+sqwebmail

some of our customers could not log to the webmail (sqwebmail)
with their postmaster account, i don t know why,
so i replaced sqwebmail by courier-imap and squirrelmail

qmail+vpopmail+mysql+qmailadmin+courier-imap+squirrelmail

again some of our customers can not log to the webmail (squirrelmail),
in fact courier-imap (/var/log/syslog)...

we use 6 differents scripts in order to create new accounts.
i just found that the problem seems to be the system quota,
the 3 first scripts don t work (50Mo-100Mo-150Mo),
the 3 last scripts work (200Mo-250Mo-300Mo)...


What's an Mo?  What happens if you create a new domain, and add a user 
using vadduser, not your scripts?  Also, make sure you compiled 
courier-imap --without-authdaemon.

Bill




Re: [vchkpw] Vqadmin disable domain..

2002-11-05 Thread Bill Shupp
On Tuesday, November 5, 2002, at 03:11  PM, Michael Bellears wrote:


I'm currently running:

vqadmin 	2.3.4
vpopmail 	5.3.9
qmailadmin	1.0.6

And have just attempted to 'disable' an active domain from vqadmin:

Disable pop access
Disable imap access
Disable dialup access
Disable change password
Disable web access
Disable email relay

Which works for mail delivery/pop and imap access - But the user can 
still
access qmailadmin?

This really should be on the vqadmin list...  but

I don't believe there is a mechanism for disabling qmailadmin, except 
for using qmailadmin-limits to set maxpopaccounts, maxaliases, 
maxforwards, and maxmailinglists all to 0.  Then the postmaster could 
log in, but not do anything but delete existing accounts.

Regards,

Bill Shupp




Re: [vchkpw] Upgrading an old vpopmail install

2002-11-04 Thread Bill Shupp
On Monday, November 4, 2002, at 09:58  AM, Darek wrote:


Hey guys,

I want to go from vpopmail-4.9.8 to probably 5.2.1, or maybe the 
unstable branch.

This is a live system and I am a bit weary about everything working 
without as much as 5 minutes of downtime. The only difference that I 
could see between a new version and the old is the placement of 
tcp.smtp(.cdb) files. But that is pretty trivial. Everything else was 
the same.

Are there any serious differences that qmail, qmailadmin, 
courier-imap, etc would care about? I know that there's been a lot of 
development going on, but from a functional and practical point of 
view, would qmail use vpopmail in the same exact way?

There are a couple of issues:

1. 5.0+ defaults to clear passwords being on, which alters the number 
of fields in the vqpasswd structure (vpasswd file, table definitions, 
etc).  There were some problems with backwards compatibility early on, 
but 5.2.1 should be fine.  If you want to be extra cautious, use 
--enable-clear-passwd=n.

2. Courier-imap will need to be upgraded.  Or, you can grab the latest 
preauchvchkpw.c and recompile your existing version.

Regards,

Bill




Re: [vchkpw] vconvert

2002-11-04 Thread Bill Shupp
On Monday, November 4, 2002, at 11:38  AM, Stephen Spicer wrote:


 
Has anyone had a problem with the vconvert utility.
 
When trying to convert entry's from my /etc/passwd file to
a MySql database only two of the entry's get parsed, all other
are ignored. Now errors are reported.
 
Their are over 1000 entry's in the passwd file, excluding the system
accounts.
 
I am doing a: vconvert -e -m   Possible that I'm using it incorrectly ?


I didn't think vconvert supported /etc/passwd users, just going from 
cdb to sql, etc.  I'd have to look at the source, though.

Bill




Re: [vchkpw] IMAP + vipmap

2002-11-02 Thread Bill Shupp
On Friday, November 1, 2002, at 05:54  AM, Andre Fortin wrote:


I'm still having a hard time with this..

courier imap has been recompiled, and so has vpopmail.  I need to be 
able to
use vipmap'd domains with both POP3 and IMAP.  The POP3 sessions work 
fine;
The problem is the imap sessions still use the --enable-default-domain
domain instead of the one specified using vipmap
and --enable-ip-alias-domains .. I've tried using Bill Shupp's patch 
but it
didnt change anything.. Perhaps I'm missing something that was implied 
but
not said?

The only problem was the IP format, and it's in the host_in_locals() 
function in the vpopmail library.  My patch fixes it, as tested by Rick 
and myself.  One thing you might try, for testing, is to use MySQL auth 
and turn on logging in MySQL.  This way, you can see the query going to 
the database.  That's how I was able to see what IP was being used in 
the query of the ip_alias_map table, like so:

96 Query   select domain from ip_alias_map where ip_addr = 
127.0.0.1

That should tell you exactly what's happening, and help you figure out 
the problem.

Regards,

Bill Shupp




Re: [vchkpw] IMAP + vipmap

2002-10-31 Thread Bill Shupp
On Thursday, October 31, 2002, at 07:27  AM, Andre Fortin wrote:


Hi,

I have --enable-ip-alias-domains=y, and vipmap for a domain working 
fine via
pop3 using vchkpw.  I have courier-imapd running, and authvchkpw is 
being
used.  Should authvchkpw understand IP alias maps?

I've noticed this question has been asked before, but I don't see an 
answer
in the archives.. anyone have any more information?

I posted a patch to vpopmail.c last week.  Should be in the archives 
somewhere.

Bill




Re: [vchkpw] IMAP + vipmap

2002-10-31 Thread Bill Shupp
On Thursday, October 31, 2002, at 07:51  AM, Andre Fortin wrote:


Heya..

I'm using 5.2.1 still..  I used the code I got from Rick on the list 
and put
it into vpopmail.c .. The section in question now looks like this:

#ifdef IP_ALIAS_DOMAINS
tmpstr = getenv(TCPLOCALIP);

  /* courier-imap uses IPv6 */
  if ( tmpstr != NULL   tmpstr[0] == ':') {
tmpstr +=2;
while(*tmpstr!=':') ++tmpstr;
++tmpstr;
  }


memset(host,0,156);
if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
if ( strlen(host)  0 ) {
strncpy( domain, host, 156 );
}
return;
}
#endif


Does this look ok? I re-compiled/make install'd vpopmail, but the 
vipmaps
still dont seem to be working.. Maybe I'm missing something obvious.. 
Let me
know if you see any problems with the way i put the code in, thanks :)

You need to recompile courier imap.  Please keep posts on the list.

Regards,

Bill Shupp





Re: [vchkpw] Need Help for Vpopmail-5.3.11

2002-10-27 Thread Bill Shupp
 Hi There!

   I want to install Inter7's Vpopmail-5.3.11 software for virtual
 hosting. question that i want to ask that do i need to patch qmail with
 Bill Shupp's (Large Qmai Patch) qmail-toaster-0.4.2.patch, coz on the
 web site it's been recomended for vpopmail-5.3.6. So what
 about vpopmail-5.3.11.

 Waiting for ur Warm  Quick Reply

Well, this really is a question for my toaster list, not this list.  But
they should work fine together, although I have not tested them.  5.3.6 is
the minimum that that patch should be used with.

Regards,

Bill Shupp






Re: [vchkpw] IP-based vhosting

2002-10-27 Thread Bill Shupp
 Courier-imap (as of today, latest version) is the pop server. I am using
 Ximian Evolution as my client.

You need to use vipmap -a to add a map for vpopmail.  It used to be
reverse dns based, but a while back switched to an internal map.

Also, couriertcpd sets the IP in IPv6 format, so you'll need a patch to
vpopmail.c's host_in_locals that I posted to this list last week that
converts it back to IPv4.  Or, you could try disabling IPv6 in
courier-imap, but I don't know for sure that that will work.

Regards,

Bill Shupp






Re: [vchkpw] IP Domains and Courier IMAP

2002-10-24 Thread Bill Shupp
On Thursday, October 24, 2002, at 01:54  PM, Rick Macdougall wrote:


Hi All,

Does anyone have IP Domains (ie just user instead of userdomain) and
courier-imap working together with any version of vpopmail and 
courier-imap?
I think from my testing that it's just plain broken, but I'd like to 
hear if
any does have it working.

Oh, forgot to mention, using couriertcpd to launch imapdlogin, not 
using
tcpserver.  tcpserver works but it doesn't drop from root to the 
localuser.

I don't see any ip alias domains support in 
http://www.inter7.com/vpopmail/preauthvchkpw.c.  That's probably why it 
doesn't work.  ; )  You could add it pretty easily... just use vchkpw.c 
as an example.

Bill




Re: [vchkpw] IP Domains and Courier IMAP

2002-10-24 Thread Bill Shupp
On Thursday, October 24, 2002, at 03:27  PM, Rick Macdougall wrote:


Hi Bill,

Original response below, but one question... Why does it work when 
using
tcpserver  (but I'll still take a look a preauthvchkpw.c)

ie
tcpserver -R -t 2 -g 89 -u 89 0 110 
/usr/lib/courier-imap/sbin/pop3login \
/usr/lib/courier-imap/libexec/authlib/authvchkpw
/usr/lib/courier-imap/bin/pop3d Maildir

Thanks for the response.  It feels so good when I stop banging my head.

Not much of a C programmer anymore, but I'll whip out my old books and 
see
what I can do in the next couple of hours.

Thanks again for the response, that helps greatly.

Regards,

Rick

Well, I spoke too quickly.  I'm looking at it now, and it looks like 
that occurs in vauth_getpw(), so it should work.  (note to self:  check 
answer BEFORE hitting send).  I'm going to run some tests, but my hunch 
is that it may be related to getting the IP from couriertcpd.  I'll 
post my findings shortlly.

Regards,

Bill Shupp




Re: [vchkpw] IP Domains and Courier IMAP

2002-10-24 Thread Bill Shupp
On Thursday, October 24, 2002, at 03:27  PM, Rick Macdougall wrote:


Hi Bill,

Original response below, but one question... Why does it work when 
using
tcpserver  (but I'll still take a look a preauthvchkpw.c)

ie
tcpserver -R -t 2 -g 89 -u 89 0 110 
/usr/lib/courier-imap/sbin/pop3login \
/usr/lib/courier-imap/libexec/authlib/authvchkpw
/usr/lib/courier-imap/bin/pop3d Maildir

Thanks for the response.  It feels so good when I stop banging my head.

Not much of a C programmer anymore, but I'll whip out my old books and 
see
what I can do in the next couple of hours.

Thanks again for the response, that helps greatly.

Regards,

Rick

Are you using authdaemon?  I know for sure that this will not work.  If 
so, try again without it (--without-authdaemon).  I'm rebuilding 
courier-imap to run some tests, and see if there's a problem with the 
IP formatting (IPV6) of TCPLOCALIP that couriertcpd sets (as suggested 
offlist by Vladimir Kabanov).

Regards,

Bill




Re: [vchkpw] IP Domains and Courier IMAP

2002-10-24 Thread Bill Shupp
On Thursday, October 24, 2002, at 05:31  PM, Bill Shupp wrote:


On Thursday, October 24, 2002, at 03:27  PM, Rick Macdougall wrote:


Hi Bill,

Original response below, but one question... Why does it work when 
using
tcpserver  (but I'll still take a look a preauthvchkpw.c)

ie
tcpserver -R -t 2 -g 89 -u 89 0 110 
/usr/lib/courier-imap/sbin/pop3login \
/usr/lib/courier-imap/libexec/authlib/authvchkpw
/usr/lib/courier-imap/bin/pop3d Maildir

Thanks for the response.  It feels so good when I stop banging my 
head.

Not much of a C programmer anymore, but I'll whip out my old books 
and see
what I can do in the next couple of hours.

Thanks again for the response, that helps greatly.

Regards,

Rick

Are you using authdaemon?  I know for sure that this will not work.  
If so, try again without it (--without-authdaemon).  I'm rebuilding 
courier-imap to run some tests, and see if there's a problem with the 
IP formatting (IPV6) of TCPLOCALIP that couriertcpd sets (as suggested 
offlist by Vladimir Kabanov).

Ok, Vladimir was right, TCPLOCALIP is in IPv6 from couriertcpd.  So, I 
just converted it in host_in_locals(), and now authvchkpw works.  
However, authdaemon still will NOT work, since TCPLOCALIP does not get 
passed to authvchkpw.  The patch below applies to 5.3.11 (available at 
http://shupp.org only right now), but you may be able to apply it to 
your version with little effort.  Let me know if this works for you.

Regards,

Bill Shupp

--- ../vpopmail-5.3.11/vpopmail.c   Wed Oct 23 13:01:40 2002
+++ vpopmail.c  Thu Oct 24 17:38:40 2002
 -1668,6 +1668,14 

 #ifdef IP_ALIAS_DOMAINS
   tmpstr = getenv(TCPLOCALIP);
+
+  /* courier-imap uses IPv6 */
+  if ( tmpstr != NULL   tmpstr[0] == ':') {
+tmpstr +=2;
+while(*tmpstr!=':') ++tmpstr;
+++tmpstr;
+  }
+
   memset(host,0,156);
   if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
 if ( strlen(host)  0 ) {




Re: [vchkpw] courier + roaming users = how can it possibly work

2002-10-24 Thread Bill Shupp
On Thursday, October 24, 2002, at 04:30  PM, Nathan Neulinger wrote:


As near as I can tell from the courier auth*vchkpw.c code, it only
triggers either the vset_lastauth or the open_smtp_relay() routines
BEFORE authentication.

What good is that?

Two problems -
	1. The way it calls vset_lastauth in the pre* code means that you can
have a denial of service race since it explicity sets the remote_ip
field to imap. If it already had a useful value in it, it's lost. As
above - this is done before checking the password, so any putz that
tries to fake a login can dork the contents of the table.

Plus - it never updates the lastauth with a real ip, so that table is
essentially useless when used with courier.

	2. The open_smtp_relay() call is also done prior to login, so it's not
actually protecting anything.

Seems like the current code implements Last time someone TRIED to log
in from this IP, as opposed to last successful auth from this ip.

Anyone have a patch to courier to fix this completely useless/broken
behavior?


Yup, you're right.  This is pretty stupid.  I'm surprised no one 
noticed before.

I have a couple of ideas for fixing it:

1. move the open_smtp_relay() and vset_lastauth() stuff to a new 
vchkpw_post() function that is called AFTER authentication is verified. 
 The downside is that this will be a second lookup in the vchkpw auth 
module (the authinfo struct doesn't have a method to store the vpopmail 
gid field), which would double auth traffic for anyone that uses these 
functions.

2. Modify auth_vchkpw_pre() to include the password provided.  But I 
don't fully understand all the components of Sam's auth module 
structure, so I'm not sure of any ramifications of doing this.  This is 
probably the simplest method, though.

Thoughts?

Regarding the logging of service in the lastauth table, probably the 
cleanest thing would be to update the vset_lastauth() function to 
include both service and IP.  In the short term, though, you could 
always replace servcice with getenv(TCPREMOTEIP).

Regards,

Bill Shupp




Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 12:55  AM, tonix (Antonio Nati) 
wrote:


As usual, I don't see anything related to disablesmtp.

Is this feature going to be merged in the main stream, or do I have to 
continue with my private copies?

Yes, it will be merged.  It's just been overlooked.  I'll add it to 
5.3.10.

Anyway, two notes:

1) I feel that would be much better another layout, like:
domain  CHAR(64) PRIMARY KEY,
option  CHAR(64) PRIMARY KEY,
value   CHAR(64) NOT NULL

that would permit to add other options more easily.


Yes, but the downside is that the value field is way too big for items 
that just need to be 0 or 1.  I don't know how much of an impact this 
will have, though.

Brian: Any thoughts on this?  Some of your code would have to be 
rewritten to do this.

2) I'ld like to have other options in qmailadmin-limits, that could 
permit to deny some functions to 'admin' users that are not 
'postmaster':
ex. deny_list_create
deny_list_modify
deny_list_users_modify
deny_list_moderators_modify
deny_account_create
deny_alias_create

Yes, this would be great.  Do you have any code that implements this?

Regards,

Bill Shupp





Re: [vchkpw] vdelivermail fails when alias line starting with | and containing /Maildir/

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 05:28  AM, Anders Brander wrote:


Hi,

I think i've encountered a bug, vdelivermail seems to process the line:
|/do/deliver/to /home/vpopmail/domains/example.com/test1/Maildir/
wrongly. It deals with it like it's a /Maildir/-line, which is wrong.
It seems like vdelivermail checks for /Maildir/ anywhere in the line,
before it checks for a | at the start of the line. I've made a quick 
fix
to vdelivermail.c.

http://fmail.dk/stuff/vdeliver-command.diff

Please test and comment.

Looks good, I've added this.

Regards,

Bill Shupp





Re: [vchkpw] return code 100 and vdelivermail

2002-10-23 Thread Bill Shupp

On Wednesday, October 23, 2002, at 06:35  AM, Anders Brander wrote:


Hi,

Is there any reason that vdelivermail doesn't catch return code 100 
when
running |-commands?

Please see vdelivermail.c line 764-770. It deals with 100 as it were 
111.
Is this right?

For the curious: 
http://fmail.dk/stuff/vdeliver-command-return-100.diff :)

Got it, thanks for the diff.

Regards,

Bill Shupp





Re: [vchkpw] vpopmail development

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 12:51  PM, Matthias Trevarthan wrote:


Granted, vpopmail does a great job as is...

I'd just hate to see this project die for lack of renovation someday.

What's the licensing like? Could I modify the source and create another
project? (Not that I want to... trust me. I've got plenty of better 
things to
do.)

GPL.  This is easily found on at on the vpopmail website, and in the 
source code.

Bill




Re: [vchkpw] patch for vpopmail 5.3.8 for .qmailadmin-limits

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 01:17  PM, tonix (Antonio Nati) 
wrote:

At 23/10/02 23/10/02 -0700, Bill Shupp wrote:

On Wednesday, October 23, 2002, at 12:55  AM, tonix (Antonio Nati) 
wrote:

2) I'ld like to have other options in qmailadmin-limits, that could 
permit to deny some functions to 'admin' users that are not 
'postmaster':
ex. deny_list_create
deny_list_modify
deny_list_users_modify
deny_list_moderators_modify
deny_account_create
deny_alias_create

Yes, this would be great.  Do you have any code that implements this?


No Bill, I'm just willing to do it. If it looks interesting, I'll 
raise its priority among my jobs.

It could be interesting to know what to deny, in all's opinion.

Ideally, I want  to have all the same functionality in qmailadmin that 
EZWEB has.  Some thought needs to go into that, as well as the limits 
you are suggesting.  I won't have time to work on that right now, as 
I'm still trying to integrate other things.

Regards,

Bill Shupp




[vchkpw] 5.3.10 devel

2002-10-23 Thread Bill Shupp
Ken, all:

I've posted 5.3.10 devel on my site:

Download:
http://shupp.org/patches/vpopmail-5.3.10.tar.gz

Changes:

5.3.10
10/23/02   Bill Shupp hostmaster at shupp dot org
   - Added limits table layout to vmysql.h
   - Changed valias_line to be type blob to compensate for 
large
 mailing list commands.  Increased FILE_LINE_SIZE to 1024 in
 vcalias for the same reason.  vcalias now escapes FileLine 
input.
 Thanks to Brad Dameron for pointing this out.
   - Added disable_smtp support to the new vlimits functions
   - Fixed configure.in so that --enable-mysql-limits is now 
reported
 after running configure
   - Moved format_maildirquota() to the vpopmail library.  
Updated
 vlimits.c to use format_maildirquota() for default_quota.
   - format_maildirquota() now uses 1024 and and 1048576 when
 converting KB and MB instead of 1000 and 100, 
respectively.

10/23/02   Anders Brander anders at brander dot dk
   - vdelivermail: Check for | *before* /Maildir/ in .qmail 
processing
   - vdelivermail: Add missing case for error code 100


Please help test, and report any problems to the list.

Regards,

Bill Shupp




[vchkpw] 5.3.11 devel available

2002-10-23 Thread Bill Shupp
I found a problem with the 5.3.10 release, and also received another 
fix for vdelivermail.  So I have put up 5.3.11 on my site:

ChangeLog:
http://shupp.org/patches/vpopmail-ChangeLog

Download:
http://shupp.org/patches/vpopmail-5.3.11.tar.gz

Cheers,

Bill Shupp




Re: [vchkpw] Vpopmail and mysql limits

2002-10-23 Thread Bill Shupp
On Wednesday, October 23, 2002, at 03:28  PM, John Johnson wrote:


 ok to use mysql-limits is there a convert program to convert the 
limits
I have
Or do I have to start over with them and reset them.. I guess I will
also have
To recompile vqadmin and qmailadmin for this as well?

Qmailadmin and vqadmin do not support the new vlimits functions yet.  
vqadmin has its own code to modify the limits file only (not sql).  
Brian, the author of this patch, does have his own patches for 
qmailadmin I think.  So you really can't do anything with them until 
you have code to use them.  Not sure if Brian is planning to publish 
his qmailadmin patch...

Regards,

Bill




Re: [vchkpw] Vpopmail Quota Warning

2002-10-22 Thread Bill Shupp
On Tuesday, October 22, 2002, at 09:26  PM, [EMAIL PROTECTED] wrote:


Actually, could I ask a simple question?  What is the syntax for the
'--enable-defaultquota=' flag when configuring vpopmail?  To set a 
quota
of 500Mb, is it '--enable-defaultquota=500M'?  I guess I just don't 
know
if the 'M' is necessary and the help on configure isn't explicitly
clear.

Check out README.quotas.  That talks about quota syntax.  All of those 
should be fine.

Regards,

Bill Shupp




Re: [vchkpw] Vpopmail Quota Warning

2002-10-21 Thread Bill Shupp
On Monday, October 21, 2002, at 07:54  PM, Martin Chung wrote:


Hi,
 
I am using vpopmail 5.2.1 and I did not modify the quota warning 
percentage (default is 90%). When the quota reach or above 90%, a 
warning email will be sent to that user and I found that there is a 
file called quotawarn created in the Maildir directory. However, 
even I pop all emails out, that file will not be removed and no more 
quota warning email will be sent if that user reach warning level 
again.
Do I need to make a cron job remove this file?

The quota warnings are not delivered more than once every 24 hours.  
That's probably why your tests appear to fail.  There is not currently 
any quotawarn cleanup code, however.  So, if a user goes over quota, 
they get warned.  But if they remove their messages and get under 
quota, then go over quota again in less than 24 hours, they will not 
get warned the second time.  They will get upon after the first message 
that comes in after the initial 24 hour period.

Regards,

Bill Shupp




[vchkpw] valias-wildcard fix

2002-10-19 Thread Bill Shupp
I think I have a fix for valias wildcard processing (i.e.  
listname-default) in vdelivermail.  Can people that use valias help 
test?

http://shupp.org/patches/wildcard.diff

This patch was done against vpopmail 5.3.8, but might work on earlier 
versions.

NOTE:  This does NOT add wildcard support to the ext feature.  Please 
test with --enable-ext=n.

Cheers,

Bill Shupp




Re: [vchkpw] Vpopmail under devel any longer?

2002-10-18 Thread Bill Shupp
On Wednesday, October 16, 2002, at 01:02  PM, 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.


The problem is that vdelivermail doesn't support wildcards.  This
affects both the valias feature and qmail-ext feature.  So, for
example, if you have a valias entry for list (.qmail-list),
vdelivermail will not process a message to list-subscribe because it
doesn't check for the wildcard list-default (.qmail-list-default).  I'm
working on adding this, but it may be a few days before I get it done.
This should hopefully solve the problem.

Regards,

Bill Shupp





Re: [vchkpw] Vpopmail directories

2002-10-16 Thread Bill Shupp

On Wednesday, October 16, 2002, at 01:48  PM, Daniel Demacek wrote:

 Hello,

 why do I have /home/vpopmail/domains/domain.com/0 through 5 
 directories?

This happens when you reach about 100 domains.  There is a new 
configure switch to turn this off if you want.  You'll need 5.3.6 or 
later, I think.

 I'm developing web email client that read emails directly from disk, 
 and
 I'm having problems on how to determine where the user dir actually
 resides.

You should use the vpopmail API 
(http://inter7.com/vpopmail/vpopmail.html) to get the user directory.  
That will be the best method for your app.

 Also when directly deleting(rm) emails from ./Maildir/cur does
 .current_size file need to be updated or just deletion is enough.

This was deprecated in 5.2.  You should write your application to 
adhere to the Maildir++ spec, located here:

http://inter7.com/courierimap/README.maildirquota.html

Regards,

Bill Shupp





Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp

2002-09-12 Thread Bill Shupp

On Thursday, September 12, 2002, at 05:17  PM, Luc wrote:

  Hi Bill :)

 run clearopensmtp.

  Done, it doesn't generate any file...

 This may not work.  It needs to be in cdb format.

  How to generate this file then?

You may need to have something in tcp.smtp for it to take.  Try this:

echo '127.:allow,RELAYCLIENT='  ^vpopmail/etc/tcp.smtp

Then run clearopensmtp.

Bill




Re: [vchkpw] tcprules: fatal: unable to create /etc/tcp.smtptmp

2002-09-12 Thread Bill Shupp

On Thursday, September 12, 2002, at 05:55  PM, Rick Macdougall wrote:

 Hi,

 Kinda just jumping in here, but couldn't he create the cdb file with
 tcprules ?

Yup.

cd ~vpopmail/etc/
cat open-smtp tcp.smtp | tcprules tcp.smtp.cdb tcp.smtp.tmp

Bill




  1   2   3   4   5   >