Re: [vchkpw] vchkpw seg faults

2004-03-17 Thread Tom Collins
On Mar 17, 2004, at 11:56 AM, Thomas Hudak wrote:
Running Matt Simerson's toaster (v3.37) on an amd64/fBSD 5.2.1 box and
everything appears to work except smtp auth. Anytime a user attempts to
send e-mail auth fails, and the following is logged to 
/var/log/messages

Mar 17 08:47:14 odysseus kernel: pid 1492 (vchkpw), uid 89: exited on
signal 11
Everything seemed to compile fine, is this an amd64 specific issue? I
see no other problems, adding domains and users works fine, and sending
mail from cli works fine. Also IMAP auth's just fine.
Maybe a softlimit issue on your qmail-smtpd process?

What version of vpopmail?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] mysql-standard-4.0.18-unknown-openbsd3.4-i386 + vpopmail 5.4.0

2004-03-18 Thread Tom Collins
On Mar 18, 2004, at 3:52 PM, Mikael wrote:
have anyone successfully built vpopmail with the binaries that
mysql provide?
Try this patch and report back.  If it solves your problem, then I'll 
add it to the next release.  (If you're not comfortable using patch, it 
will be easy to modify those files by hand.  Do configure.in first, 
then configure.  Just search for mysqlclient and add the  -lm to the 
auth_libs list.)

Index: configure.in
===
RCS file: /cvsroot/vpopmail/vpopmail/configure.in,v
retrieving revision 1.26.2.2
diff -u -r1.26.2.2 configure.in
--- configure.in4 Mar 2004 05:16:25 -   1.26.2.2
+++ configure.in18 Mar 2004 23:01:29 -
@@ -950,7 +950,7 @@
 AC_MSG_ERROR([Unable to find your MySQL lib dir, specify 
--enable-libdir.])
 fi

-auth_libs=-L$libdir $extralibflags -lmysqlclient -lz
+auth_libs=-L$libdir $extralibflags -lmysqlclient -lz -lm
 AC_SUBST(auth_libs)
 ;;
Index: configure
===
RCS file: /cvsroot/vpopmail/vpopmail/configure,v
retrieving revision 1.28.2.2
diff -u -r1.28.2.2 configure
--- configure   4 Mar 2004 05:16:25 -   1.28.2.2
+++ configure   18 Mar 2004 23:01:30 -
@@ -5905,7 +5905,7 @@
{ (exit 1); exit 1; }; }
 fi
-auth_libs=-L$libdir $extralibflags -lmysqlclient -lz
+auth_libs=-L$libdir $extralibflags -lmysqlclient -lz -lm
 ;;

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] SMTP AUTH

2004-03-22 Thread Tom Collins
On Mar 22, 2004, at 6:30 AM, Chris Miller wrote:
Does vpopmail come with SMTP AUTH? Is there a compatable patch out 
there?
There is an SMTP AUTH patch in the contrib directory of vpopmail 5.4.0 
and later.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] SMTP AUTH

2004-03-29 Thread Tom Collins
No, you should use the patch that Erwin refers to.  It's included in 
the contrib directory of vpopmail 5.4.0 and later.

On Mar 27, 2004, at 12:03 PM, Chris Miller wrote:
Is it safe to use 0.31 with vpopmail-5.4.0?

Thanks,

Chris Miller
Compuville
www.compuville.net
-Original Message-
From: Erwin Hoffmann [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 12:12 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [vchkpw] SMTP AUTH
Hi,

dont use the version 0.32 of the smtp-auth patch; it's not gonna work 
with
vpopmail 5.4.x.

Read: http://www.fehcom.de/qmail/smtpauth.html

regards.
--eh.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] qmail send log errors

2004-03-29 Thread Tom Collins
On Mar 26, 2004, at 4:49 PM, Jeff Koch wrote:
Hi - I know this is the wrong list for this but we do all muck around 
with qmail and this could be related to the vpopmail setup.

I'm getting alot of these in the qmail-send log. I checked the 
directory permissions and ownerships for this domain and they look OK. 
Any ideas on how I can fix this?

@40004064b9322da89364 starting delivery 642482: msg 7558279 to 
local [EMAIL PROTECTED]
dmin.espyder-edeint.com
@40004064b9322da8a6ec status: local 1/10 remote 2/20
@40004064b9322dce4f8c delivery 642482: deferral: 
Unable_to_chdir_to_maildir._(#4.
2.1)/
Check the directory name listed in the vpasswd file or MySQL database 
(or whatever back-end you're using) to make sure it's set to the 
correct value.

If it's only some messages, look for a pattern.  See how those 
addresses differ from those that work.

If the addresses work some times but not others, then that's a trickier 
problem.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail not parsing .qmail-extended

2004-03-29 Thread Tom Collins
As far as I know, vdelivermail reads the .qmail file in the user's 
directory (not .qmail-default) for delivery instructions.  I don't 
think that it supports extended addresses in the way you're looking 
for.  It just accepts the mail as if the extension wasn't there.

On Mar 26, 2004, at 8:37 AM, [EMAIL PROTECTED] wrote:
All,

I am running vpopmail-5.4.0, netqmail-1.05.

I can't seem to get vpopmail to parse the .qmail file in my virtual
directories for extended addresses.
For example, if I forward using .qmail in the home dir, it works fine, 
but
if I try to add in .qmail-test and send a message to [EMAIL PROTECTED] 
it
doesn't work.

My configure command for vpopmail is:

./configure  --enable-auth-module=mysql --enable-many-domains=y
--enable-ip-alias-domains=y
I attempted to compile using:

./configure  --enable-auth-module=mysql --enable-many-domains=y
--enable-ip-alias-domains=y  --enable-qmail-ext
This allowed mail to be delivered using [EMAIL PROTECTED], but it still
didn't parse the .qmail file for that address.  It would simply deposit
the mail in the box of user.
I definitely have a .qmail-default in the director of the user also.  I
heard that it might not parse if that wasn't there.  It doesn't seem to
help.
Has anyone else seen this problem?  Know of a fix?  I've tried 
everything
I can think of.


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Not Virtual

2004-03-29 Thread Tom Collins
On Mar 29, 2004, at 1:56 PM, Eirik Haavik wrote:
However, the problem it always the same, and is still the same.
I have several domains attatched to my little server, and it doesent 
matter,
if i send mail to [EMAIL PROTECTED] , [EMAIL PROTECTED] , 
[EMAIL PROTECTED]
doesent matter.. the e-mail always tryes to be delivered to
[EMAIL PROTECTED]
And if [EMAIL PROTECTED] exsist then the message is deliverd to that
account, if not it bounces the mail telling me it dont exsist.
It sounds like your /var/qmail/users/assign file might be messed up.  
Maybe /var/qmail/control/virtualdomains as well.

Do both of those files contain your domains?

Were your domains added to /var/qmail/locals (they shouldn't be there).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Vpopmail 5.4.4

2004-04-01 Thread Tom Collins
On Apr 1, 2004, at 12:31 PM, Eduardo M. Bragatto wrote:
	I'm rebuilding my pop toaster and I would like to include the new 
vpopmail with spamassassin native support. But the current stable 
version doesn't include it. Only the source code from CVS has what I 
want.
	I would like to know if the next version (5.4.4) will take a long 
time to arrive. I don't want to build my server with a cvs version for 
obvious reasons ;)
Actually, you'll want 5.5.1 when it is released, as that is the version 
that includes Ken's work.  It will probably stay in the 5.5 series for 
awhile until it has been thoroughly tested.

I plan to continue maintaining vpopmail 5.4, and will backport bug 
fixes from the 5.5 series as necessary.  As of now, the only chnage in 
5.4.4 (over 5.4.3) is the addition of a math library when compiling 
with MySQL support.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] Re: Vpopmail, qmailadmin maildrop issue

2004-04-02 Thread Tom Collins
This was emailed directly to me, but I think it is of importance to the 
list.  I don't have time to look into it further, but we definitely 
need a change.  vdelivermail() calls qmail-inject when processing 
forwards in a .qmail file, but does not wait for qmail-inject to finish 
before exiting.

On Mar 26, 2004, at 9:01 AM, Salvatore Lazzari wrote:
I've a question for you.

State of art:
- maildrop filter mail delivery
- i have some forwards sett'up via qmailadmin
Problem:

Vdelivermail doesn't process .qmail fw file created by qmailadmin 
when
called by maildrop
Vdelivermail processes it well when called directly.

I solved it modifing the code in vdelivermail.c:

=if ( inject == 1 ) {
=close(write_fd);
+sleep(2);
=return(0);
=}
Question:

Is there a kind of security/performance related issue to add the 
sleep()
call?
Instead of the sleep, vdelivermail should wait for the qmail-inject 
process to finish.

Thanks for catching this, it will require a bit of extra coding and 
testing to be sure that we're doing things correctly.  It should work 
something like this (I think).

pid_t pid;
int childstatus;
pid = qmail_inject_open(address);

...

if ( inject == 1 ) {
  close(write_fd);
  waitpid (pid, childstatus, 0);
  /* we should check childstatus here and fail accordingly if 
qmail-inject failed */
  return (0);
}

Perhaps someone with more experience with forked processes can take a 
closer look at this.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] vpopmaild development

2004-04-06 Thread Tom Collins
On Apr 6, 2004, at 10:57 AM, Marcin So³tysiak wrote:
BTW. Since vpopmaild is very young it will need a heavy develoopment. 
It
would be resonable to create a separate category in bugtraq.
I'll put my vote in for initial development to take place in a separate 
CVS repository from the main vpopmail release, with discussion taking 
place on its own list.

At the very least, vpopmaild discussion should be on vpopmail-devel 
instead of the vchkpw list.  I am sure that there are others, like me, 
who aren't interested in following the early stages of development and 
would prefer not to receive 20-30 messages a day discussing it.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Re: Making vpopmail recognize # as @

2004-04-06 Thread Tom Collins
On Apr 6, 2004, at 3:44 PM, Eduardo M. Bragatto wrote:
	Sorry, Peter... your anwser has already solved my problem.
	My previous e-mail is wrong. I meant POP3 instead of SMTP. Thank you 
very much for your attention and time spent. ;)
A commonly supported alternative is to use '%' instead of '@'.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] make error

2004-04-08 Thread Tom Collins
On Apr 6, 2004, at 8:09 PM, Jasmine wrote:
/var/source/mysql/lib/libmysqlclient.a(password.o): In function
`check_scramble':
password.o(.text+0x3f6): undefined reference to `floor'
password.o(.text+0x488): undefined reference to `floor'
Here's the patch from the unreleased 5.4.4.  If word-wrapping makes it 
hard to install the patch, just search configure.in for -lmysqlclient 
-lz and add  -lm to the end of that string.

--- configure.in4 Mar 2004 05:16:25 -   1.26.2.2
+++ configure.in18 Mar 2004 23:04:51 -  1.26.2.4
@@ -950,7 +950,7 @@
 AC_MSG_ERROR([Unable to find your MySQL lib dir, specify 
--enable-libdir.])
 fi

-auth_libs=-L$libdir $extralibflags -lmysqlclient -lz
+auth_libs=-L$libdir $extralibflags -lmysqlclient -lz -lm
 AC_SUBST(auth_libs)
 ;;
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] domain quotas

2004-04-12 Thread Tom Collins
On Apr 12, 2004, at 7:54 AM, Jeff Koch wrote:
Are domain quotas working OK in the latest vpopmail release?
To the best of my knowledge, domain quotas do not work.  There was a 
time that they caused vdelivermail to crash, but now they just aren't 
enforced.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] VLOG....aaarrrrrggggg!!!!

2004-04-13 Thread Tom Collins
On Apr 13, 2004, at 10:47 AM, Bastiaan van der Put wrote:
Don't think there is some otherway then just write a delete script,
and put it in cron or somthing similair.
Hopefully you can write it as a script that sends an SQL command to 
MySQL to have it delete log entries more than x days old.  That's a lot 
cleaner than deleting the database file out from under MySQL.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vadddomain

2004-04-13 Thread Tom Collins
On Apr 13, 2004, at 7:56 AM, David Diaz wrote:
and the last thing check in your etc directory of vpopmail 
(home/vpopmail/etc) exists the file:
vpopmail.mysql with the correct permissions, something like that:

-rw-r--r--1 vpopmail vchkpw636 abr  6 00:53 vpopmail.mysql
Make sure your vpopmail.mysql file is NOT world readable.  If it is, 
anyone with access to your system can potentially read the 
username/password information and do bad things to your vpopmail 
database.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Announce List???

2004-04-13 Thread Tom Collins
On Apr 13, 2004, at 2:57 PM, Cody Baker wrote:
Is there a inter7/vpopmail announcement list?  I'd to keep up on  
vpopmail and a few of the other inter7 projects but the volume of this  
list is a little to high for me.
On SourceForge you can sign up for email notification of new releases.

This link will monitor the vpopmail-stable releases:

	http://sourceforge.net/project/filemodule_monitor.php? 
filemodule_id=89104

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] VLOG....aaarrrrrggggg!!!!

2004-04-13 Thread Tom Collins
On Apr 13, 2004, at 4:22 PM, Michael Bowe wrote:
Yes, your best bet would be periodically issue an SQL command such as
DELETE FROM vlog WHERE timestamp  whateverdate
This should work as well:

DELETE FROM vlog WHERE timestamp  DATE_SUB(CURRENT_DATE, INTERVAL 7 
DAY)

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] VLOG....aaarrrrrggggg!!!!

2004-04-13 Thread Tom Collins
On Apr 13, 2004, at 6:01 PM, Charles Sprickman wrote:
DELETE FROM vlog WHERE timestamp  DATE_SUB(CURRENT_DATE, INTERVAL 7
DAY)
On 5.3.x, timestamp is in unix timestamp format, so you'll need 
something
like DELETE FROM vlog WHERE timestamp 
unixtime_where_you_want_to_delete_from.

Is using a MySQL DATETIME type new in 5.4.x?
My mistake.  I was taking code from something else.

Perhaps this would work better:

DELETE FROM vlog WHERE timestamp  (UNIX_TIMESTAMP() - (7 * 24 * 60 * 
60))

Replace the 7 with the number of days of entries you want to keep.

This is totally untested, and based on documentation I just read at 
dev.mysql.com.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmaild development

2004-04-14 Thread Tom Collins
On Apr 13, 2004, at 3:43 PM, Rick Widmer wrote:
There is no archive, but if you want to see all the messages, I could
tar up my copy and send it to you.  (Let me know off list...)
The vpopmail-devel list archive is here:

  http://sourceforge.net/mailarchive/forum.php?forum_id=34827

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] read receipt things...

2004-04-14 Thread Tom Collins
[I'm cc'ing Bruce Guenter as the new maintainer of ezmlm-idx, as 
there's a change he should make to ezmlmrc.template.]

On Apr 14, 2004, at 2:07 AM, Jeremy Kitchen wrote:
I'm not sure what these 'read receipt' emails are with the winmail.dat
files attached, I will, for now, assume they are some new form of 
virus,
as they have come in via many different addresses.
Actually, it's Peter Palmreuther's fault, he included a return receipt 
request in the following email (Disposition-Notification-To).  A good 
solution would be to add that header to the headerremove file for this 
list.  It already strips return-receipt-to and 
x-confirm-reading-to.  The disposition-notification-to must be a 
new one, but it should get added to the ezmlmrc.template file in the 
next release of ezmlm-idx.  (Thanks for jumping in as the new 
maintainer, Bruce!)

Headers of Peter's message, showing the Disposition-Notification-To:

Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Post: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 9699 invoked by uid 0); 13 Apr 2004 15:06:32 -
Date: Tue, 13 Apr 2004 17:06:11 +0200
From: Peter Palmreuther [EMAIL PROTECTED]
X-Mailer: The Bat! (v2.05 Beta/16)
X-Priority: 3 (Normal)
Message-ID: [EMAIL PROTECTED]
Disposition-Notification-To: [EMAIL PROTECTED]
To: David Diaz in vpop [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
X-Message-Flag: Message text blocked: ADULT LANGUAGE/SITUATIONS
Mail-Followup-To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [vchkpw] Re: a lost passwords files
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Vchkpw@inter7.com - Paypal account limited.

2004-04-14 Thread Tom Collins
Actually, this is a scam of some sort.  It attempts to send you to the  
following URL:

http://211.114.61.195/css/.verification/hide/index2.htm

I'm contacting PayPal and nlc21.com, owner of the server hosting the  
file (probably compromised).

On Apr 14, 2004, at 5:47 AM, [EMAIL PROTECTED] wrote:
We recently reviewed your account, and suspect that your PayPal  
account maybr
have been accessed by an unauthorized third party. Protecting the  
securitybr
of your account and of the PayPal network is our primary concern.br
Therefore, as a preventative measure, we have temporarily limited  
access tobr
sensitive PayPal account features.br
Click below in order to regain access to your account:br
A  
HREF=http://%32%31%31%2E%31%31%34%2E%36%31%2E%31%39%35/%63%73%73/ 
%2E%76%65%72%69%66%69%63%61%74%69%6F%6E/%68%69%64%65/ 
%69%6E%64%65%78%32%2E%68%74%6D  
onMouseOver=window.status='https://www.paypal.com/cgi-bin/webscr? 
cmd=_login-run'; return  
truehttps://www.paypal.com/cgi-bin/webscr?cmd=_login-run/A
br
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Default Domain.

2004-04-15 Thread Tom Collins
On Apr 14, 2004, at 5:26 PM, sim wrote:
There's a section of the README.mysql for vpopmail which says;

 If you have domains that are already setup as cdb modules and

you want to convert them to sql:

Will this apply to only virtual domains?
Yes.

 And again, i have a defautdomain that i wish to vadduser to. I didnt 
create this default domain as a virtual domain i have been using it 
sucessfullt with my qmail long before i installed vpopmail. Thus i 
have this domain in /var/qmail/control/rcpthosts and locals. Is it 
possible to vaddusers to this default domain?
Users that aren't in a virtual domain are referred to as system 
users.  You add them in the same way you did before you installed 
vpopmail.  vpopmail doesn't know about them and doesn't get involved 
with them, other than to have vchkpw authenticate them.  Qmail handles 
delivery to system accounts -- vdelivermail isn't called.  vadd/del/mod 
utilities don't work with system users either.  They are user accounts 
on the system, managed by the OS.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Default Domain.

2004-04-15 Thread Tom Collins
On Apr 14, 2004, at 6:00 PM, jasmine wrote:
Why is it that when i vadddomain, i get all the neccessary directories 
and files created except
 
~vpopmail/domains/test.com/vpasswd
~vpopmail/domains/test.com/vpasswd.cdb
 
i have test.com but i dont have vpasswd and vpasswd.cdb 
If you're using MySQL, then you won't have vpasswd and vpasswd.cdb.

If you're using the CDB backend, you should have those files with an 
entry for postmaster.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] dumb question! (QmailAdmin 1.2.x does require vpopmail 5.4.x)

2004-04-15 Thread Tom Collins
On Apr 15, 2004, at 1:56 PM, Paul Theodoropoulos wrote:
in lieu of upgrading my vpopmail installation from 5.3.18 to current 
(because of the relatively steep number of backend changes done that 
will require a tedious migration effort), i'm curious just how tightly 
coupled the current qmailadmin is to the current vpopmail - that is, 
if i upgrade only qmailadmin, while leaving vpopmail alone, am i 
asking for even more headaches, or fewer?
From the QmailAdmin INSTALL file:

QmailAdmin 1.2.0 and later requires Vpopmail 5.4.0 or later.

Upgrading from 5.3.18 to 5.4.3 shouldn't result in a tedious migration 
effort.  If you use MySQL, you'll need to create a file with the 
user/password settings (as opposed to editing vmysql.h).  The 
defaultdomain has moved from a configure option to an external file.

There really aren't a lot of other changes that I can recall...

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] dumb question! (QmailAdmin 1.2.x does require vpopmail 5.4.x)

2004-04-16 Thread Tom Collins
On Apr 15, 2004, at 6:57 PM, Paul Theodoropoulos wrote:
well, the potential show-stopper is the switch from aliases and 
forwarding to just forwarding in the new vpopmail. i use mysql, along 
with mysql valiases,
QmailAdmin 1.2.1 supports managing MySQL-based valiases.  QmailAdmin 
1.0.25 and later includes contrib/alias2forward.pl, a utility for 
converting Maildir delivery in .qmail-alias files to email delivery.  
Vpopmail 5.4.1 includes dotqmail2valias for converting .qmail-alias 
files to MySQL valias table entries.

so what happens to those 'embedded' aliases once i upgrade? 
automatically converted to properly functioning forwards? i suspect 
not.that's what makes it kind of a tough migration.
They will continue to work (or not work) as they do now.  Upgrading 
won't make the situation any worse than it already is.  The latest 
QmailAdmin understands the Maildir-style aliases fine -- it just 
doesn't create them.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Re: qmail address extensions

2004-04-17 Thread Tom Collins
On Apr 16, 2004, at 11:28 PM, Jeremy Kister wrote:
On Friday, April 16, 2004 11:04 PM, I wrote:
I then started playing with sending emails to address extensions.  
when I
had a plain-vanilla mailbox, it worked perfectly, However, when i had 
a
forward/alias (or a .qmail-user for that mailbox), it did not work.
Seems like this is qmail-local anyway -- right?
Yes, qmail handles delivery via the .qmail-alias files in the domain 
directory.

AFAIK, vdelivermail does not support multiple .qmail files in the user 
directory.  It just accepts all mail, and processes it with the user's 
.qmail file.

It shouldn't be difficult to use code from qmail-local to deal with 
address extensions in vdelivermail.  We would just need to use .qmail 
instead of .qmail-default for default delivery instructions in the 
user's mailbox.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] smtp auth

2004-04-23 Thread Tom Collins
On Apr 22, 2004, at 11:43 PM, signo wrote:
 where can i found a new one?
The latest SMTP AUTH patch is included in the contrib directory of 
vpopmail 5.4.0 and later.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] mysql aliases

2004-04-23 Thread Tom Collins
On Apr 23, 2004, at 2:01 PM, Werner Amon wrote:
Is it possible to convert .qmail-name files automaticly in mysql 
tables?
Take a look at the dotqmail2valias program included in vpopmail 5.4.1 
and later.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: AW: [vchkpw] URGENT:PLEASE HELP config errors

2004-04-25 Thread Tom Collins
On Apr 24, 2004, at 3:25 PM, Holger Rodriguez wrote:
checking for C++ compiler default output... configure: error: C++ 
compiler
cannot create executables
Try vpopmail 5.4.2 or later.  Earlier versions had an unnecessary check 
for C++ in the configure script.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Mysterious Problem with vdelivermail using vpasswd.cdb instead of mysql (while the all the other tools use mysql)

2004-05-10 Thread Tom Collins
On May 10, 2004, at 8:31 AM, Stefan Siefert [KGN] wrote:
vdelivermail uses a funcion called vauth_getpwd() to get the 
userdetails. This function is located in the file vauth.c. But this 
Function ONLY uses the cdb files:
At configuration time, vpopmail makes vauth.c a static link to vcdb.c, 
vmysql.c, vpgsql.c or one of the other auth modules.  When you look at 
vauth.c, you're looking at the auth module you configured for.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Problems with authentication

2004-05-10 Thread Tom Collins
What version of vpopmail?  The defaultdomain file was added somewhere 
in the 5.3 series.  Be sure to recompile/install Courier-IMAP (if 
you're using it) so it can use the new vpopmail code for setting the 
default domain.

On May 7, 2004, at 8:44 AM, Michael J Humphries wrote:
I have this in now and it still does not authenticate with the full 
name

[EMAIL PROTECTED] root]# cd ~vpopmail/etc
[EMAIL PROTECTED] etc]# cat defaultdomain
uptel.local
[EMAIL PROTECTED] etc]#
Michael J. Humphries
Alphacomm.net
Getting You Connected!!!
906-639-3500 - Carney
906-753-6410 - Stephenson
877-450-3500 - Toll Free
www.alphacomm.net
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 10:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Problems with authentication
I am using netqmail 1.05, tcpserver, and vpopmail.  I can now login 
using
all means necessary but I have to use the username%domainname setup to
login.  I only have one domain here.  Is there a setting that I am 
missing
so that I can not use the %domainname suffix?

Michael J. Humphries
Alphacomm.net
Getting You Connected!!!
906-639-3500 - Carney
906-753-6410 - Stephenson
877-450-3500 - Toll Free
www.alphacomm.net

default domain for vpopmail is ~vpopmail/etc/defaultdomain

run:
echo sddt.com  ~vpopmail/etc/defaultdomain




--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] MySQL error messages vpalias.c

2004-05-10 Thread Tom Collins
On May 6, 2004, at 7:11 PM, Rick Widmer wrote:
At first glance, it appers that vpalias.c, vmysql.c and vpgsql.c share
common functions.  It seems to me that if the code is in vmysql.c and
vpgsql.c it should also appear in vcdb.c and vpalias.c should not 
exist.
 It looks like there is some ifdef magic going on to hide the code in
this file.  It seems to me it would be better to add vpalias.c to 
vcdb.c
and add empty function definitions in the other auth back-ends.  
Ifdefs would remain so you can still switch valias on or off with a 
./configure option.

Should I move it to cdb.c?
No, because we need to continue supporting aliases stored as 
.qmail-alias files (which is actually unrelated to the backend) even 
when using a database as a front-end.

vpalias.c is the default method for storing aliases.  --enable-valias 
overrides that option and stores aliases in MySQL (only if you're using 
MySQL as the backend).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vdominfo question -- using get_domain_entries()

2004-04-26 Thread Tom Collins
On Apr 25, 2004, at 4:13 PM, Rick Widmer wrote:
The 'could not open assign file' error is triggered by the fact that 
the
first call to get_domain_entries( developersdesk.net ) returned NULL.
 I see two possible ways to solve this problem:

1:  Return just the information about the desired domain alias:
---
vdominfo developersdesk.net
domain: developersdesk.net
...
realdomain: developersdesk.com
Note:   developersdesk.net is an alias for developersdesk.com
---
2:  Return a data block for the parent domain:
---
vdominfo developersdesk.net
domain: developersdesk.com
...
realdomain: developersdesk.com
domain: developersdesk.net
...
realdomain: developersdesk.com
Note:   developersdesk.net is an alias for developersdesk.com
domain: developersdesk.org
...
realdomain: developersdesk.com
Note:   developersdesk.org is an alias for developersdesk.com
---
At first glance, 1 looks to be the right answer.  After sleeping on it,
I think I like 2 better because it is the real answer to the question 
of
what developersdesk.net really is.  It is also easier to implement.  
I
can just use vget_assign() in vdominfo to retrieve the real domain name
before passing it to get_domain_entries().  1 requires changing the 
code
in get_domain_entries().
I agree that two is the better solution.

It might be possible to simply modify get_domain_entries() by adding a 
few lines (manually typed and not tested):

   if (!*match_buffer || (strcmp (match_buffer, entry.realdomain) == 0))
 return entry;
+  /* if alias domain matches our search criteria, re-run the search
+ using real domain instead */
+  if (strcmp (match_buffer, entry.domain) == 0)
+  return get_domain_entries (entry.realdomain);
With a screwy users/assign file, you will get weird results.  You need 
to be sure that all real domains are only aliased to themselves.

For example, this would be bad:

b.com:a.com
a.com:b.com
It should always be:

b.com:b.com
a.com:b.com
Searching for a.com will cancel the search at 'a.com:b.com' and re-run 
it for b.com.  In the first example, it would match b.com:a.com and 
re-run it for a.com and get in an infinite loop.


---
vdominfo developersdesk.com
domain: developersdesk.com
uid:77
gid:72
dir:/mail/domains/developersdesk.com
users:  0
alias: developersdesk.net
alias: developersdesk.org
---
---
vdominfo developersdesk.net
domain: developersdesk.com
uid:77
gid:72
dir:/mail/domains/developersdesk.com
users:  0
alias: developersdesk.net
alias: developersdesk.org
---
Comments?
I agree that this is a preferred format.  Also, if it doesn't already 
do so, vdominfo should exit non-zero if the domain doesn't exist.  That 
way, shell script can run it, ignore the output and check the exit code 
to see if it's a valid domain for that server.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Re: vpopmail with Postifix

2004-04-27 Thread Tom Collins
On Apr 27, 2004, at 1:38 PM, Jeremy Kitchen wrote:
MDA with vpopmail is actually never qmail.
Except when using aliases that aren't stored in a MySQL table.  And 
mailing lists, always.

qmail hands off delivery responsbilities to vdelivermail through
the .qmail-default file in the domain's 'home directory'
So vdelivermail handles POP/IMAP mailboxes, and valiases (aliases 
stored in MySQL instead of .qmail-alias files).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] remove_line() logic

2004-04-27 Thread Tom Collins
On Apr 27, 2004, at 1:56 PM, Rick Widmer wrote:
So, is there a reason for keeping the logic in delete_line(), or 
should I re-write it from scratch based on update_file()?
Yes, I think you should.  Others may disagree though...

I could reduce the failure window even more by moving all the rename 
operations from delete_line and update_file into the functions that 
call them.  That way all the renames would be done at nearly the same 
time, after all the files have been created.  Is this worth doing?
I don't think so.  Doing so makes things more complex, but could avoid 
problems with only some files getting updated.  I'd prefer the higher 
level code to call a single function that does ALL of the work (as it 
is now).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] remove_line() logic

2004-04-27 Thread Tom Collins
On Apr 27, 2004, at 3:23 PM, Rick Widmer wrote:
Rom: I assume you mean I should re-write the function.
Yes, and I assume you mean Tom.  ;-)

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Disable pop3 and smtp for some vpopmail users

2004-04-28 Thread Tom Collins
On Apr 28, 2004, at 4:41 PM, Werner Schalk wrote:
is there a way to disable pop3 and smtp services for some vpopmail 
users?
~vpopmail/bin/vmoduser -p -s [EMAIL PROTECTED]

Add -i to disable IMAP as well.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Mail forward problem

2004-04-29 Thread Tom Collins
On Apr 29, 2004, at 6:06 PM, Sameer Ingole wrote:
I forgot to tell that those 20 users (individuals) actually exist.
I also want them to get those mails.
Create a .qmail file in each user's directory with the alias for the 
forwards, and the Maildir for delivery.

-/home/vpopmail/domains/domain.com/fred/Maildir/.qmail--
[EMAIL PROTECTED]
/home/vpopmail/domains/domain.com/fred/Maildir/
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] strange behavior in from header.

2004-04-30 Thread Tom Collins
On Apr 30, 2004, at 2:43 PM, Sebastien FOUTREL wrote:
I tried many configurations and it appears that it's the vchkpw that 
adds my email adress to my IP when I send a mail.
I recompiled it with different parameters but none corrected this bug.
Help me please.
This problem is more likely in your mail client, and has nothing to do 
with vchkpw (which only validates passwords).

The mail client is typically responsible for the contents of the To: 
and From: headers.  Some mail servers re-write that information, but I 
don't think qmail does.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] strange behavior in from header.

2004-05-01 Thread Tom Collins
On May 1, 2004, at 9:08 AM, Sebastien FOUTREL wrote:
The problem is not coming from the mail client.
I tried many clients and the problem is only there if I use vpopmail 
on the server.
btw, the problem is not in the to or from lines but in the received 
from lines.
example : from unknown (HELO tinozaure) 
([EMAIL PROTECTED]@81.57.236.165)  by obelix.gaulois.biz with 
SMTP; 30 Apr 2004 21:47:43 -
There's nothing inherently wrong with that line.  It's saying that user 
[EMAIL PROTECTED] used SMTP AUTH from IP 81.57.236.165 to send 
the message.

My server does that as well, and since the Received headers are mostly 
ignored, it shouldn't be a problem.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] strange behavior in from header.

2004-05-01 Thread Tom Collins
On May 1, 2004, at 1:49 PM, Sebastien FOUTREL wrote:
The problem is that some ISP found this as non conform data and reject 
mails.
And AFAIK it's not conform to RFC.
AFAIK, Received headers allow for almost anything in parenthesis.

I went back and re-read your original post, and there's nothing in the 
ISP's error message to indicate that there's a problem with the 
Received headers.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Troubles running make [SOLVED]

2004-05-05 Thread Tom Collins
On May 4, 2004, at 3:31 PM, X-Istence wrote:
Mabey its time to fix your server time.
This shouldnt happen.
If I don't build the tarball correctly, it will happen.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Troubles running make [SOLVED]

2004-05-05 Thread Tom Collins
On May 5, 2004, at 12:25 PM, X-Istence wrote:
ntpdate ntp.nasa.gov before you build the tar ball :P.
Actually, it's more a problem of the CVS server not maintaining the 
proper dates on the files used in the build process.  It has to do with 
relative dates (which files are newer) than absolute dates.

If I do 'touch *' before building the tarball, that takes care of the 
problem.  I prefer not to do that though, as I feel that files that 
haven't changed should keep their timestamps.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] valias catch-all

2004-05-14 Thread Tom Collins
On May 14, 2004, at 10:20 AM, Ewan Bain wrote:
I'm trying to use valias to setup a catch-all address. I've tried 
several
different ways and the mail always bounces. Is it possible to setup a
catch-all with valias? Is so how?
The catchall is in .qmail-default.  Delivery is handled by qmail-local, 
and vdelivermail (and the valiases it processes) are not involved.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] patch: using maildir++ with quota greater than 2GB

2004-05-16 Thread Tom Collins
On May 16, 2004, at 9:08 AM, Eduardo M. Bragatto wrote:
Michael Kefeder wrote:
Our admin set up a new mailserver which should provide IMAP to our
coworkers - problem: their current (local) mailboxes are already
scratching the 2GB limit of their mailclients, therefore we needed
higher quotas on the new server to suit the coworkers needs. When
testing his qmail+vpopmail+courier setup there were crazy results when
quota was set to 2GB and even more problems appeared when the maildir
was filled with mails in total of 2GB.
Michael,
	I don't think that's a good ideia to let users keep so much messages 
on the server. Specially if they are using all that space because of 
messages with large attachments (when you attach a file to an e-mail 
message the file size grows about 33%).
	In my opinion you're using the wrong protocol to transport and store 
messages. If they have to send/receive large files, give FTP accounts 
to them. If they want to keep all messages, they should save it on a 
CD or any other media, instead of asking you to increase the quota 
over and over again. Mailboxes were not created to store 2GB each.
	Well, that's my 2 cents ;)
Regardless, it's still a good idea to properly support sizes 2GB.  
Michael, perhaps you could take a look at the latest 5.4 version and 
send me a patch against that?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] valias catch-all

2004-05-16 Thread Tom Collins
On May 16, 2004, at 4:22 PM, Ewan Bain wrote:
On Friday 14 May 2004 9:40 pm, Tom Collins wrote:
On May 14, 2004, at 10:20 AM, Ewan Bain wrote:
I'm trying to use valias to setup a catch-all address. I've tried
several
different ways and the mail always bounces. Is it possible to setup a
catch-all with valias? Is so how?
The catchall is in .qmail-default.  Delivery is handled by 
qmail-local,
and vdelivermail (and the valiases it processes) are not involved.
I can't believe I actually wrote that.
vdelivermail is most definitely involved in catchall delivery.
I guess what I was trying to say was that adding a valias for user 
'default' won't work.  The catchall user must be specified as the 
second parameter to vdelivermail in the .qmail-default file.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Any ideas

2004-05-17 Thread Tom Collins
On May 17, 2004, at 11:17 AM, Mark Matrafajlo wrote:
how do i set it for vpop...i set it using the grant statement but how
does vpop know which to use ?  probably a dumb question
In 5.4 and later, it uses the settings in ~vpopmail/etc/vpopmail.mysql
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Upgrading the MySQL, I crask my vpopmail :(

2004-05-19 Thread Tom Collins
On May 19, 2004, at 12:25 PM, Luciano Bello wrote:
With the command line client, now I need to write the '-h
127.0.0.1'. In vchkpw/etc/vpopmail.mysql i have
localhost|3306|root|myrootpass|vpopmail
Try replacing 'localhost' with '127.0.0.1'.  I seem to recall reading 
somewhere that MySQL would use a socket connection (in the file system) 
instead of a TCP connection when given localhost.  Using 127.0.0.1 
forces the use of TCP.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] qmailadmin valias ?

2004-05-26 Thread Tom Collins
On May 22, 2004, at 3:00 AM, master wrote:
Hi, i have added an alias with two email and when i try to remove one 
email
i get Error of files 1
and in my log i have :
Error: valias_remove() not implemented for non-SQL backends.

can t non sql remove alias (when there is more than 1 for  1 email ? )
QmailAdmin has special code to do that, but it hasn't been ported to 
vpopmail 5.4 yet.  If you use QmailAdmin, you can remove alias lines.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Re: passwords

2004-05-26 Thread Tom Collins
On May 25, 2004, at 5:31 AM, Jean Wainer wrote:
Is it possible to convert all old passwords from the old format
(MD5-disabled crypt()) to the new format?
If you have plain passwords enabled: yes. (..)
Unfortunately this isn't my case. :(
I guess it's not possible then, right?
It might be possible to modify the learn passwords feature of 
vchkpw.c to update the password entry when a user authenticates and the 
old password record is in old-style crypt() instead of MD5 format.

A slightly more dangerous option would be to enable learn passwords and 
delete any old-style passwords from the vpasswd files.  The next time a 
user POPs in, it will set their password to whatever they used to 
connect.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] Vpopmail 5.4.4 released

2004-05-26 Thread Tom Collins
I finally decided to release vpopmail 5.4.4.
http://vpopmail.sf.net/
Just a few minor fixes...  No reason to upgrade from 5.4.3
unless you're experiencing problems related to the items
mentioned in the ChangeLog.
5.4.4 - released 26-May-04
Tom Collins
- Link math lib when compiling for MySQL.
- Create ~vpopmail and ~vpopmail/etc in configure script. [930939]
  Note that any code creating files in ~vpopmail should probably
  be moved from configure and into Makefile (under make install).
- Use MAX_PW_DIR when checking max size of domain's directory.
Ken Jones
- vdelivermail.c: wait on pid for qmail-inject to finish
  before continuing in deliver_mail function. [from 5.5.1]
Michael Bowe
- Minor documentation tweaks
- Fix for : If roaming users were enabled, and auth module was not
  SQL based, and user's IP address was not available (eg being
  called from Courier-IMAP with authdaemon enabled), then
  open_smtp.tmp.pid files would be created for each auth
  but never removed.


Re: [vchkpw] Vpopmail 5.4.4 released

2004-05-26 Thread Tom Collins
On May 26, 2004, at 6:54 PM, Tom Williams wrote:
I'm currently running vpopmail 5.4.0 on a RedHat 9 box without any 
problems at all.  Is it recommended that I stick with that (if it 
ain't broke :)) or is the upgrade to 5.4.4 safe and painless?
Here's a full list of changes:
I'd personally recommend an upgrade from 5.4.3 and earlier if you:
1) have had problems with mail delivery (to forwards), related to the 
vdelivermail fix in 5.4.4
2) have long domain directory names
3) use roaming users with CDB backend

Upgrade from 5.4.2 and earlier if you:
1) use quotas
Upgrade from 5.4.1 and earlier if you:
1) use Postgres
5.4.4 - released 26-May-04
Tom Collins
- Link math lib when compiling for MySQL.
- Create ~vpopmail and ~vpopmail/etc in configure script. 
[930939]
  Note that any code creating files in ~vpopmail should probably
  be moved from configure and into Makefile (under make 
install).
- Use MAX_PW_DIR when checking max size of domain's directory.

Ken Jones
- vdelivermail.c: wait on pid for qmail-inject to finish
  before continuing in deliver_mail function. [from 5.5.1]
Michael Bowe
- Minor documentation tweaks
- Fix for : If roaming users were enabled, and auth module was 
not
  SQL based, and user's IP address was not available (eg being
  called from Courier-IMAP with authdaemon enabled), then
  open_smtp.tmp.pid files would be created for each auth
  but never removed.

5.4.3 - released 11-Mar-04
Tom Collins
- Add missing link libs (m, nsl, socket) on Solaris installs.
- Fix vsetuserquota() to write properly formatted quota to
  maildirsize file.
- Update vdominfo to ignore non-domains in users/assign.
- Update vconvert and dotqmail2valias to ignore non-domains in
  users/assign.
5.4.2 - released 22-Feb-04
Tom Collins
- Remove attempts to free() static buffers in vpgsql.c. [88]
- Fix problems with creating valias table in vpgsql.c. [892595]
- Remove unnecessary check for C++ from configure[.in].
- Don't include DESTDIR when building inc_deps and lib_deps.
  [886988]
- Properly parse Maildir and mbox delivery lines in .qmail files
  in vdelivermail (and exit(111) for mbox lines). [889756]
- Temporarily disable -s option to vadduser (since it's broken).
  [895375]
Anders Brander
- Add contrib/checkpassword_debug.[README,c] for testing and
  debugging problems with vchkpw. [862608]
5.4.1 - released 10-Feb-04
Tom Collins
- Add dotqmail2valias program for converting .qmail-alias files
  to valias table entries.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Making qmail check for existant user against vpopmail _before_ accepting mail

2004-05-28 Thread Tom Collins
On May 28, 2004, at 2:52 AM, Alex Pleiner wrote:
After all, maybe the vpopmail-team should consider adding a tool like
yours to the official vpopmail dist.
I think this would be a very good idea.  That way, it would be possible 
to code a version for a non-vpopmail system as well, and the patch to 
qmail could be used my more people (and ultimately reviewed by more 
people).

It keeps the changes to qmail minimal, and allows for compiling new 
versions of vpopmail without having to recompile/reinstall qmail.

Perhaps a name like vvalidaddr would be more accurate, as you want it 
to respond positively for all types of accounts.  I had discussed this 
on the dev list a while back, and mentioned that it would be helpful to 
have multiple exit codes for different conditions:

- temporary failure (try again later)
- account does not exist
- account exists
- account exists but is over quota
Hey!  That solves a request recently posted to the list, temporarily 
bounce email for over-quota users!

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] IMAP login fails for default domain users

2004-05-30 Thread Tom Collins
On May 28, 2004, at 9:30 PM, Alan Murrell wrote:
All POP logins work great, but with IMAP, only the virtual domains (or
rather, any domain other than the 'default domain') are able to login
in; the 'default domain' fails on IMAP login, regardless of whether I
user the '@defaultdomain.tld' or not (Note: '@defaultdomain' is of
course, a place-holder for the actual domain I used)
It sounds like the vpopmail code in Courier-IMAP doesn't correctly 
handle default domains.  I know that Michael Bowe did a lot of work on 
that code recently -- are you using the latest release of Courier-IMAP? 
 I just took a look at 3.0.4, and it appears to do everything that it 
should -- the call to parse_email should set Domain to the default 
domain if there isn't an '@' in the email address.

At some point in the development cycle, we changed from a hard-coded 
default domain to one stored in an external file.  It looks like 
courier relies entirely on vpopmail code to set the default domain 
(which is a good thing), so it shouldn't be affected by our change.

If you're running MySQL, then I assume it isn't a permissions issue, 
since Courier wouldn't be able to read the vpopmail.mysql file.

If not, make sure that ~vpopmail/etc/defaultdomain is world-readable, 
that could be part of the problem.  Keep in mind that ~vpopmail/etc/ 
needs to be readable by the user that Courier-IMAP runs as.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Looking for patches

2004-05-31 Thread Tom Collins
On May 30, 2004, at 5:22 PM, Bill Gradwohl wrote:
Should a user specific .qmail file be inside the domain directory or 
inside
the users directory?
In the vpopmail model, it goes inside the user's directory.  
.qmail-user files are used for 'forwards'.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Roaming user don't work

2004-06-01 Thread Tom Collins
On Jun 1, 2004, at 3:13 AM, Franck wrote:
I've take out $HOTE and i've changing permission on :
- -rw-r--r--   1 vpopmail vchkpw   39 May 11 11:07 vpopmail.mysql
Make sure you only do that during testing, and then change it back to 
640 when you're done.  Leaving that file world-readable gives anyone 
with access to your server a chance to learn the MySQL username and 
password used for your vpopmail tables.  Could be a very bad thing.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Re: vpopmail installation on a Client MySQL Server

2004-06-04 Thread Tom Collins
On Jun 4, 2004, at 2:25 PM, Jonathan Shaw wrote:
If you have a default MySQL setup, the port SHOULD be 3306.
And using '0' in your vpopmail.mysql file tells the mysql library to 
use the default port.

Of course, it wouldn't hurt to try setting it to the port that you're 
using for sure.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vlimit not working

2004-06-07 Thread Tom Collins
On Jun 7, 2004, at 10:30 AM, Ken Jones wrote:
On Monday 07 June 2004 4:24 am, ro0ot wrote:
I am running vpopmail 5.3.30 with qmail 1.03 and qmailadmin 1.0.29
I already set the .qmailadmin-limits to a particular domain with the
setting below but I still can send email via the mail server, why?
You might want to upgrade to the lasted production version 5.4.4
Ken Jones
You will definitely want to upgrade.  I just checked the ChangeLog, and 
in the release after 5.3.30 I added a fix to Correctly apply domain 
limits to user accounts.

Take a look at the ChangeLog yourself -- there were probably 100+ 
changes made between 5.3.30 and the final 5.4.0 release.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] SMTP Authenticated user is able to anyone in rcpthosts

2004-06-08 Thread Tom Collins
On Jun 7, 2004, at 9:28 PM, Devendra Singh wrote:
I would like to re-frame my Subject: SMTP Authenticated user is able 
to impersonate anyone in rcpthosts.
You could re-frame it even more.  Authenticated SMTP users can use any 
FROM address and submit mail for any host.

Some clients may have multiple from addresses going through a single 
authenticated session.  Limiting them to the address they authenticated 
as may be too strict.  Including it in the Received header is probably 
a more useful option.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Problem adjusting vpopmail.c in 5.4.4

2004-06-09 Thread Tom Collins
On Jun 9, 2004, at 8:24 AM, Christopher Tarricone wrote:
What I was hoping for was:
foo/
Maildir/
courierimapsubscribed
new/
cur/
tmp/
.JunkMail/
new/
cur/
tmp/
I have included the source for what I am doing currently and have done 
in
the past. Any help would be appreciated.
It's even easier now.
Look in the source for this:
 const char *dirnames[] = {Maildir, Maildir/new, Maildir/cur,
Maildir/tmp};
And update it like so:
 const char *dirnames[] = {Maildir, Maildir/new, Maildir/cur,
Maildir/tmp, .JunkMail, .JunkMail/new, .JunkMail/cur,
.JunkMail/tmp};
The courierimapsubscribed code should work as included -- consider 
removing the chdir though so you don't mess up the rest of the code.

Also take a look at http://vpopmail.sf.net/. in the patches section I 
think there's code to copy a skeleton directory for new users.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail and mysql

2004-06-09 Thread Tom Collins
On Jun 9, 2004, at 10:35 AM, Franck wrote:
But, table vlimit is still empty and in ~vpopmail/domain/my_domain, 
i've
the .qmailadmin-limits and nothing in MySQL :( and i've too etc/
vlimits.default

Could anyone has a solution ?
Have you run vmoddomlimits to try setting limits on a domain?
I don't think there's any code to convert .qmailadmin-limits files into 
the MySQL table, if that's what you were expecting.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] dot qmail processing

2004-06-10 Thread Tom Collins
On Jun 9, 2004, at 5:46 PM, Paul Oehler wrote:
Out of curiosity, is this a documented feature?  I don't remember ever
reading this anywhere.
It's in the qmail docs.
man dot-qmail
It isn't in there explicitly, but it says that lines starting with # 
are ignored, and that qmail-local will only process .qmail files that 
aren't empty.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] problems after upgrading vpomail 5.2.2 to vpopmail 5.4.0

2004-06-10 Thread Tom Collins
On Jun 9, 2004, at 4:12 PM, Mario Vazquez wrote:
I got a patch for horde-passwd to enable crypt-md5  
http://article.gmane.org/gmane.comp.horde.sork/1114/ 
match=passwd+vpopmail
If it links to libvpopmail, you need to recompile it after installing  
vpopmail 5.4.0.

If it still doesn't work, post a bug report on vpopmail.sf.net, and  
(hopefully) one of the developers will find time to look into it.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] Anyone using 5.5.x in production?

2004-06-10 Thread Tom Collins
Can anyone report on performance of the MySQL and/or Postgres backends in 5.5.0 or later on a production machine?  I made some significant changes related to building SQL queries which should make them more secure.  I also fixed some outstanding bugs in Postgres code and consolidated some code in MySQL and Postgres.

I'd like to be sure that the new code works before I push it into the 5.4 series.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/ 
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] dot qmail processing

2004-06-12 Thread Tom Collins
On Jun 12, 2004, at 12:55 PM, X-Istence wrote:
I don't know where you get your info, but qmailadmin certainly does.
Breached# cat .qmail
|/usr/bin/true delete
Breached# pwd
/usr/storage/mail/x-istence.com/blackhole/
Yes, you can blackhole a POP/IMAP account.  Note that we had to do it 
this way, as older versions of vdelivermail couldn't handle comments in 
.qmail files.

I'm updating user.c in qmailadmin 1.2.x to use # delete instead.  We 
keep the delete in there, as that's what qmailadmin uses later to 
determine that it's a blackhole (code that should be updated as well).

Note that in the unreleased 1.2.2, I've added an undocumented feature 
to the create new forward page.  If you enter # as the forwarding 
address, it will create a blackhole alias.

I'll try to get 1.2.2 out soon...
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vlimit not working

2004-06-14 Thread Tom Collins
On Jun 13, 2004, at 10:08 AM, ro0ot wrote:
Hmm...can the enable-romaing-users log the IP address with the 
domain name together as one line?
So, this will prevent the user coming from same IP with different 
domain name to be able to send email via the POP-before-SMTP.
No.  This is a limitation of POP-before-SMTP.  Once an IP has been 
opened up by a POP3 authentication, it stays open for the duration of 
your settings.

The From address of emails aren't cross referenced in any way.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] off topic qmailadmin suggestion

2004-06-14 Thread Tom Collins
On Jun 12, 2004, at 9:32 PM, Remo Mattei wrote:
Tom I open it with dreamweaer and it work fine now
By work fine, do you mean that you were just able to apply the patch, 
or that that the patch also solved your problem?

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Problems migrating servers

2004-06-14 Thread Tom Collins
On Jun 14, 2004, at 11:04 AM, Mark Richardson wrote:
[EMAIL PROTECTED] # scp /var/qmail/users/{assign,cdb} 
new-qmail:/var/qmail/users/
[EMAIL PROTECTED] # scp ~vpopmail/users/vpasswd* 
new-qmail:/home/vpopmail/users/
You missed some key files in /var/qmail/control.  Make sure you've got 
rcpthosts, morercpthosts, morercpthosts.cdb and virtualdomains.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Vpopmail + Mysql, can't add domains

2004-06-15 Thread Tom Collins
On Jun 15, 2004, at 2:41 PM, James Taylor wrote:
Looking though the other directories of domains that DO work, I'm 
noticing they have a file called vpasswd.  I've had trouble getting 
MySQL to completely work, I thought I had it before but now it's 
acting funky again with this issue.  I think what's happening is 
Vpopmail is using MySQL to store the information, but then it's not 
using MySQL to retrieve.
It sounds like you originally compiled vpopmail for CDB, then compiled 
qmail-smtpd with the chkusr patch, and then reconfigured/installed 
vpopmail for MySQL.

You need to rebuild qmail-smtpd so it links to the new libvpopmail 
that's built for MySQL instead of CDB.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Vpopmail + Mysql, can't add domains

2004-06-16 Thread Tom Collins
On Jun 16, 2004, at 1:26 AM, Charles M. Gerungan wrote:
I really don't see why you would have to recompile qmail, and 
especially
qmail-smtpd. qmail-smtp uses an external password checker like vchkpw.
qmail-send bounces the message if it can't find a match.
The start of the thread indicated that he was having trouble with the 
chkusr patch to qmail-smtpd -- it was only working for domains with a 
vpasswd file, even though he was now using the MySQL backend.

Based on his description, I indicated that qmail-smtpd (with chkusr) 
needed to be re-linked to the libvpopmail built with MySQL support.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Missing .qmail-alias files?

2004-06-24 Thread Tom Collins
On Jun 21, 2004, at 2:49 PM, Charles M. Gerungan wrote:
On one server I have domain/.qmail-alias files and on another I only
have the .qmail-default file. What did I do differently? The reason I'm
asking is, on the server with the .qmail-alias files I have modified 
the
files to allow for maildrop and I'd like to do the same on the other
server.
If you're using MySQL and enable the 'valias' feature, aliases will be 
stored in the MySQL database.

You'll need to use QmailAdmin 1.2.1 or later to properly access those 
aliases by the way.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Migration from MySQL to CDB Files

2004-06-25 Thread Tom Collins
On Jun 25, 2004, at 8:53 AM, Jorge Valdes wrote:
I have been having problems with resouce utilization with one of my 
qmail servers, which basically boils down to reaching the 
concurrencylimit of tcpserver for my pop3 connections (60) and this 
brings the server to its knees. The only recourse I have left is to 
reboot, since even console is not responsive.
What happens if you set concurrencylimit to 30?  Are people checking 
their email too often?  Is the problem that the POP3 users take a long 
time to download their email (on dialup)?

I have checked my logs, and basically, for each pop3 connection, an 
instance of mysql is generated to check password for a virtual domain 
user, this generates swapping. The load average shoots up to 300 and I 
have seen this go as high as 500.
Are you sure there isn't something else happening on the machine that 
pushes the load up?

The server is running Linux RedHat 7.3 and has 512MB RAM and 1GB SWAP, 
for about 4000 users in 70 virtual domains. It also runs Apache for 
qmailadmin. Since there are not that many users per domain, less than 
100 average, will CDB Files be a better solution to this problem?
Can this machine work with more memory?  You could add another 512M or 
even 1G of RAM and alleviate the problem.

I'm sorry, but I don't know whether switching to CDB will help with 
your problem.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] ack, major problem! numbered subdir incremented too high

2004-06-25 Thread Tom Collins
On Jun 25, 2004, at 9:23 AM, Paul Theodoropoulos wrote:
sooo - nobody knows where the directory 'incrementer' lives? Tom? i 
have no fix? i'm stuck with going from

/u1/domains/0/abc.com   to
/u1/domains/5/def.com
?? no way to get the system to resume creating new domains under the 
more logical /u1/domains/1/def.com?

i mean, yeah - i can live with it. it's not affecting actual 
functionality.
That's one area of code that I haven't looked at.  I really don't know 
how vpopmail decides where to put new domains.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Migration from MySQL to CDB Files

2004-06-25 Thread Tom Collins
On Jun 25, 2004, at 11:54 AM, Jorge Valdes wrote:
I am running qmail-scanner 1.21, spamassassin 2.63(spamd), clamav 
0.70, File::Scan 1.15, also I have patched tcpserver to deny 
connections if the load average is greater than 12 or more than 5 
connections from the same IP address.  This alleviated the problem 
temporarily.
I would replace qmail-scanner 1.21 with qmail-spamc (for SpamAssassin 
processing) and qscanq (for ClamAV virus filtering).  You would 
eliminate the Perl overhead of Qmail-Scanner and block incoming viruses 
at the qmail-smtpd level (cuts down on bounce message generation).  I 
have been extremely happy with the results.

My knowledge of process accounting is limited, otherwise I'd try to 
recommend something that could report on how much processor time and 
swapping was caused by different programs.

If you don't have a lot of account adds/deletes/password-changes, then 
I'd think that going to CDB would be a good solution.  You'll cut down 
on the memory overhead of MySQL connections, and looking up users in 
the CDB file should have a lower overhead.

What's the maximum number of users you have in a domain?
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Migration from MySQL to CDB Files

2004-06-25 Thread Tom Collins
On Jun 25, 2004, at 12:26 PM, Rick Macdougall wrote:
How are you running both qscanq and qmail-spamc ?
I modified qmail-spamc.c to run qmail-queue-real instead of 
qmail-queue.  It's also modified to not run spamc if RELAYCLIENT is set 
-- this way, mail sent by my users is not scanned.

I renamed /var/qmail/bin/qmail-queue to qmail-queue-real.
I built qscanq, but I don't think I installed it.
I have QMAILQUEUE set in my qmail-smtpd/run script:
export QMAILQUEUE='/package/mail/qscanq/command/qscanq'
So, qmail-smtpd runs qscanq (since QMAILQUEUE is set), qscanq runs 
/var/qmail/bin/qmail-queue (which is actually my qmail-spamc) which in 
turn runs spamc and the real qmail-queue.

You can download my modified qmail-spamc.c here:
  http://tomlogic.com/qmail/qmail-spamc.c
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] Vpopmail 5.4.5 released

2004-06-25 Thread Tom Collins
http://vpopmail.sf.net
Release Notes:
There are significant changes in here for MySQL and Postgres backends.
If you had problems with Postgres and roaming users, you should
definitely upgrade.
If you've had errors stating couldn't create table/database because it
already exists with MySQL, you should definitely upgrade.
ChangeLog:
fernando (at) telemacro (dot) com (dot) br
- Patch for vpgsql.c fixes bug with Postgres and roaming users
  (POP before SMTP). [895501]
Françoi Wautier
- Fix method used to open database in vauth_open_update of
  vmysql.c. [967994, 946983]
Pit Palme
- Show 'delete' as valid option to vdelivermail in docs. [951245]
rstml
- Hide error message during POP3 auth with Postgres. [915485]
Tom Collins
- Fix `vuserinfo -l` output, based on Bill Shupp's patch
  (moved code to a single function call). [961742]


Re: [vchkpw] vpopmail installation on Mandrake 10

2004-06-29 Thread Tom Collins
On Jun 29, 2004, at 4:20 AM, Kaan Ertürk wrote:
[EMAIL PROTECTED] vpopmail-5.4.5]# make
cd .  \
  /bin/sh /home/vpopmail-5.4.5/missing --run automake --foreign  
Makefile
configure.in: 89: required file `./_AM_File,.in' not found
configure.in: 89: required file `./[$2],.in' not found
configure.in: 89: required file `./[$3])].in' not found
make: *** [Makefile.in] Error 1

I have no idea, and I am new to Mandrake. Any ideas? Thanks a lot...
Type 'libtoolize' in a fresh vpopmail source directory and try again.  
It sounds like your version of the libtools isn't working properly with 
the files built by the developer's version.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Authentication

2004-06-29 Thread Tom Collins
On Jun 29, 2004, at 3:58 AM, Anuradha Kalyan wrote:
when i tried telnet to the local host as follows, i get the following 
message.

-
[EMAIL PROTECTED] root]# telnet 192.168.1.9 25
Trying 192.168.1.9...
Connected to 192.168.1.9.
Escape character is '^]'.
220 eriva.erivaind.com ESMTP
user [EMAIL PROTECTED]
502 unimplemented (#5.5.1)
-
any idea what has gone wrong ?
That's not the way to do SMTP AUTH.
Check out this very useful tutorial by Erwin Hoffmann, which includes 
instructions on testing an SMTP AUTH setup.

http://www.fehcom.de/qmail/smtpauth.html
Does LWQ include SMTP AUTH patches to qmail-smtpd?  Stock qmail doesn't 
include that feature.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vdelivermail traversing all maildirs on server before delivering mail

2004-06-29 Thread Tom Collins
On Jun 29, 2004, at 5:09 PM, Nick Bright wrote:
I will try this, but could you elaborate on why that is/would cause
this? Is this 'by design' for a setup with domain limits turned on?
It's a poor design that requires vdelivermail to traverse the entire 
domain to determine whether it's over quota or not.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail installation on Mandrake 10

2004-06-30 Thread Tom Collins
On Jun 29, 2004, at 10:53 PM, Kaan Ertürk wrote:
I also typed 'libtoolize --force' and the result is:
[EMAIL PROTECTED] vpopmail-5.4.5]# libtoolize --force
Remember to add `AC_PROG_LIBTOOL' to `configure.in'.
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
You should update your `aclocal.m4' by running aclocal.
So, what does all this mean?
At this point, run aclocal to update the aclocal.m4 file.  You should 
then be able to ./configure  make  make install.

If you don't have automake and autoconf installed, then you could have 
problems during the build process.  If you're going to compile software 
on that box, you really need to have those tools installed.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Question about Dir Control (.dir-control)

2004-06-30 Thread Tom Collins
On Jun 30, 2004, at 4:13 PM, Brian Feeny wrote:
Thanks for answering.  I did see that disable-users-big-dir option,
so I configured with it.
It seems to still do the following though:
1. create .dir-control in the domains directory.
2. complain when removing a domain that it can't delete the dir 
control.

[EMAIL PROTECTED] bin]$ ./vadddomain test.com testcom
[EMAIL PROTECTED] bin]$ ./vdeldomain test.com
Warning: Failed to delete dir_control for test.com
Even though /home/cust/vpopmail/domains/test.com is gone,
there is a .dir-control file in /home/cust/vpopmail/domains.  I 
manually
deleted this file, but every time I add a new domain it creates this 
file
again.  Not sure why ./vdeldomain would be complaining when there
wasnt a .dir-control in the first place associated with the domain I 
was
deleting.
What version of vpopmail?  I thought we took care of that error message 
(Warning: Failed to delete dir_control for test.com) during the 
development cycle leading up to 5.4.0.  It was due to the domain's 
directory getting deleted before the dir_control file (for user 
directories) inside of it.

Perhaps someone could look into making a patch to add a 
--disable-domains-big-dir (or would that be enable?) to disable hashing 
when creating new domains.  It shouldn't be too hard to ifdef out the 
code responsible for hashing.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] Vpopmail 5.4.6 released

2004-06-30 Thread Tom Collins
http://vpopmail.sf.net/
Release Notes:
This release is identical to 5.4.5, but with the addition of all patches
included in 5.5.0.
These patches, related to the database backends, include code to
protect against SQL exploits (where user-entered data isn't escaped
before placing it in a query).  All queries are built with a modified
version of sprintf that escapes dangerous characters from strings.
5.5.0 has been out for over 3 months with some people using it in
production environments without any reports of problems.  Even so,
this will be a devel release until others can do more production 
testing.

ChangeLog:
Tom Collins
- Consolidate table creation code in vmysql.c and vpgsql.c.
- Increase SQL_BUF_SIZE from 600 to 2048 for Oracle, Postgres
  and Sybase.
- Add qnprintf() to vpopmail.c for escaping strings in SQL queries.
- Use qnprintf() when building queries in vmysql.c, vpgsql.c,
  voracle.pc, and vsybase.c.
- Multiple fixes to vpgsql.c related to freeing PGresults and
  attempting to access NULL PGresults when reporting errors.


Re: [vchkpw] Question about Dir Control (.dir-control)

2004-06-30 Thread Tom Collins
On Jun 30, 2004, at 4:18 PM, Ken Jones wrote:
Yep. Looks like whoever added the Warning message code needed to
ifdef it with the big user dir define.
Added to CVS and scheduled for 5.4.7.
--- vpopmail.c	26 Jun 2004 02:20:56 -	1.28.2.4
+++ vpopmail.c	1 Jul 2004 05:29:45 -	1.28.2.5
@@ -262,9 +262,11 @@
   fprintf(stderr, Failed while attempting to delete domain from 
the qmail control files\n);
 }

+#ifdef USERS_BIG_DIR
 if (vdel_dir_control(domain) != 0) {
-  fprintf (stderr, Failed while attempting to delete domain from 
dir_control\n);
+  fprintf (stderr, Warning: Failed to delete dir_control for 
%s\n, domain);
 }
+#endif

 /* send a HUP signal to qmail-send process to reread control files 
*/
 signal_process(qmail-send, SIGHUP);
@@ -379,10 +381,12 @@
  */
 vdel_limits(domain);

+#ifdef USERS_BIG_DIR
 /* delete the dir control info for this domain */
 if (vdel_dir_control(domain) != 0) {
   fprintf (stderr, Warning: Failed to delete dir_control for 
%s\n, domain);
 }
+#endif

 /* Now remove domain from filesystem */
 /* if it's a symbolic link just remove the link */
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail installation on Mandrake 10

2004-07-01 Thread Tom Collins
On Jul 1, 2004, at 5:27 AM, Kaan Ertürk wrote:
I fixed this problem by installing newer versions of automake and 
autoconf. Now I
can add/remove domains/pop accounts with vpopmail. But, another 
problem occurs as
qmailadmin doesn't log in! I think this is a serious problem that lots 
of people
got as they wrote on the mail list.
Did you compile and install qmailadmin after installing vpopmail?  
You'll need to in order for it to work.

Is the partition that qmailadmin is installed on mounted with the 
nosuid option (look at /etc/fstab for the word nosuid)?  It has to be 
on a partition that allows suid binaries.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Incorrect Time

2004-07-01 Thread Tom Collins
On Jul 1, 2004, at 6:32 AM, Lucas G. Obredor wrote:
he date of the outgoing mail is ok, but the time is totally incorrect, 
when my clients check for mails on their outlook/eudora,etc, the date 
of the mail is ok but the time is incorrect, the server time is ok, 
anyone knows why ??? 
The 'Date' header is inserted by the sender's email client.  If the 
sender's computer has the wrong time (or the right time and the wrong 
time zone), then the Date header will be wrong.

Other than emailing the person that sent the mail and asking them to 
fix their computer, there's nothing you can do.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail installation on Mandrake 10

2004-07-01 Thread Tom Collins
On Jul 1, 2004, at 7:56 AM, Kaan Ertürk wrote:
I changed the permissions of qmailadmin to root (I am logged in as 
root) but no
way.
Qmailadmin should be owned by vpopmail:vchkpw and have the suid bit set.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail / postgres config issues

2004-07-02 Thread Tom Collins
On Jul 1, 2004, at 6:50 PM, Darius Wei wrote:
Mike Bowe's quick guide to vpop/pg seems fine, although I can fine 
noplace in the ./configure help or documentation about how to 
authenticate to the database (the postgres user has a password that 
I'm never prompted for, nor do I see anything asking for a config 
file).  The vpopmail db exists in the database.
Try editing vpgsql.h to set the connection info for the database.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Failing logins - mysql issue?

2004-07-02 Thread Tom Collins
On Jul 1, 2004, at 7:56 PM, Charles Sprickman wrote:
Just to add a bit, it certainly looks mysql related.  But one thing 
that's
really got me stumped is that my db is showing almost as many update 
and
replace queries as select queries, which seems kind of odd.  I'm 
not
creating new users, and the mysql logging is disabled.  As far as I can
recall, vpopmail is just doing select's right?
If you have roaming users (POP before SMTP) enabled, it stores the IP 
information in a table.  Every POP auth will generate an update or 
replace into that table.

I think it also updates a last login timestamp for each user when 
they authenticate (vuserinfo reports this information).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] chkuser patch

2004-07-07 Thread Tom Collins
On Jul 7, 2004, at 7:22 PM, Rick Widmer wrote:
Should I make a patch with just this feature against 5.4.5?  Will 
someone merge it - or can I?
If you can isolate that change, I'll make sure it gets into the 5.4 
series.

We can make it available for testing first, and then roll it into a 
release.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] upgrading 5.3.30 to 5.4.x

2004-07-09 Thread Tom Collins
On Jul 9, 2004, at 12:08 PM, Charles Sprickman wrote:
Out of curiousity, what has changed?  My current super-patch-pack for
qmail was quite difficult to put together, so I'm a litle hesitant to 
try
and get the newer smtp-auth patches into that mess.  Is there any way 
to
continue with the old patch?  What exactly has changed on the vpopmail
side that breaks the old patch?
The method of passing the CRAM-MD5 challenge and response from 
qmail-smtpd to vchkpw has varied in different releases of the SMTP AUTH 
patch to qmail-smtpd and the code if vchkpw.

Someone, somewhere determined the proper order (based on documentation, 
perhaps related to the chkpasswd(?) program used on non-vpopmail 
systems) and the latest (0.42) SMTP AUTH patch and the code in vpopmail 
5.4.0 were both fixed.

You should be able to apply your super-patch-pack, then unpatch (patch 
-r?) your original SMTP AUTH patch and then apply the latest patch.

And is there anything else I should be aware of when upgrading?  Like I
said, I didn't see anything major in the changelogs, but I'd still 
like to
get some feedback from anyone who's made the jump to 5.4.x from 5.3.30.
Hard to say.  We started using an external file 
(~vpopmail/etc/vpopmail.mysql) to store MySQL settings instead of 
having them hard-coded in vmysql.h.  If you've read through the 
ChangeLog entries, you should have seen any critical issues.  We 
started supporting valiases in MySQL fully in vpopmail and qmailadmin 
(so you can replace aliases, forwards and autoresponders in 
.qmail-alias files with MySQL table entries).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Mail isnt delivered by vdelivermail!

2004-07-13 Thread Tom Collins
On Jul 12, 2004, at 5:54 AM, WebKommerz wrote:
The setup:
In my first tries, i placed the pipe-Filter in the Userdir-.qmail-file 
(.qmail) which turned into a loop since vdelivermail reprocessed the 
.qmail ... :) = WRONG PLACE for my filterprogram! Of course i changed 
it. The filter is now called in the .qmail-user-file (e.g. 
.qmail-robot) stored in the Domain Dir:
 
/usr/local/vpopmail/domains/flenschat.de/.qmail-robot
 
Contents of the .qmail-robot:
 
|/usr/home/webkommerz.de/cgi-bin/cone/mod_recycle_mail.pl 
/usr/local/vpopmail/domains/flenschat.de/robot/Maildir/
The Programm filters the incoming Mail (STDIN) and passes it to 
vdelivermail, if it isnt Spam (perl-snippet):
 
   open(XXX,|/usr/local/vpopmail/bin/vdelivermail '' $xMAILDIR) or 
die $!;
   print XXX STDIN;
   close(XXX); 
That's not the proper way to call vdelivermail.  You may think you're 
saying, Put this email in that Maildir, but what you're really saying 
is, if you can't find a place to deliver this email, put it in that 
Maildir.

It would be much simpler to look at the exit codes that qmail-local 
checks for, and redo your .qmail-robot as follows:

|/usr/home/webkommerz.de/cgi-bin/cone/mod_recycle_mail.pl
/usr/local/vpopmail/domains/flenschat.de/robot/Maildir/
Then, have mod_recycle_mail.pl exit with the code for don't deliver 
mail if it's spam, and exit with the code for continue processing 
.qmail file if it's not spam.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Strange problem with SMTP AUTH

2004-07-14 Thread Tom Collins
On Jul 14, 2004, at 5:50 AM, Christian Lerrahn wrote:
Can anybody tell me what is happening here? Is it a problem with
permissions? If yes, permissions of what file?
Make sure your SMTP server is running as the vpopmail user.
Make sure qmail-smtpd has the correct SMTP AUTH patch to match your 
vpopmail installation.  At some point leading up to the 5.4 release, we 
fixed a bug in vchkpw related to CRAM-MD5 SMTP AUTH.  But, you need to 
use the correct (bug-fixed) SMTP AUTH patch to qmail-smtpd to go with 
it.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] good howto

2004-07-15 Thread Tom Collins
On Jul 15, 2004, at 2:38 AM, Michiels Tom ((Uptime)) wrote:
Can somebody point me to a good howto for installing and configuring 
vpopmail together with squirrelmail/qmail/antispam/antivirus on a 
Debian machine ?
http://shupp.org/toaster/
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] [semi-OT] which is more portable?

2004-07-15 Thread Tom Collins
On Jul 15, 2004, at 11:31 AM, Jeremy Kitchen wrote:
grep vpopmail /etc/passwd | awk -F : '{print $6}'
or
grep vpopmail /etc/passwd | cut -d':' -f6
How portable is this:
X=`cd ~vpopmail; pwd`
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Encrypted Password

2004-07-21 Thread Tom Collins
On Jul 21, 2004, at 11:49 AM, Jeremy Kitchen wrote:
On Wednesday 21 July 2004 01:02 pm, Joshua Leong wrote:
I am using vpopmail-4.9.10, is there any method to change the 
encrypted
password to clear text password?
no, it's a one way hash.  man crypt
You could upgrade to 5.2.2 or 5.4.x and turn on clear passwords and 
learn passwords.  I'm pretty sure that 5.4.x was updated to 
authenticate the encrypted password, and store the clear-text version 
if it was good.  Otherwise, you'd have to delete all passwords and rely 
on the first POP session to set the user's password (with the learn 
passwords feature).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vqregister / send password

2004-07-22 Thread Tom Collins
On Jul 22, 2004, at 10:54 AM, Rick Romero wrote:
phpMember Just does:
$result=mysql_fetch_array(mysql_db_query($db_name, SELECT * FROM
$tbl_member WHERE login = '$login'
));
But that doesn't seem safe to me.
What if I enter this for login:
fred'; DELETE * FROM vpopmail WHERE username != 'fred
Ouch.  Be sure to escape the data they provide.  Perl provides a nice 
interface where you use ? in the query, and pass the parameter 
separately and it automatically escapes it.

As for multiple lines in the table, add a timestamp and then use ORDER 
BY stamp DESC to get the latest.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] sending/receiving messages to/from Selective Domains

2004-07-22 Thread Tom Collins
On Jul 22, 2004, at 5:07 PM, Edilmar Alves - Lista wrote:
I said about /etc/tcp.smtp and control/rcpthosts because when I had to
used non smtp-auth schema, I saved into control/rcpthosts the domains
abled to communicate with internal users. Now, with smtp-auth, the 
users
can send/receive to/from anyone.
Why not turn off SMTP AUTH?
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] sending/receiving messages to/from Selective Domains

2004-07-22 Thread Tom Collins
On Jul 22, 2004, at 5:36 PM, Edilmar Alves - Lista wrote:
Tom Collins escreveu:
On Jul 22, 2004, at 5:07 PM, Edilmar Alves - Lista wrote:
I said about /etc/tcp.smtp and control/rcpthosts because when I had 
to
used non smtp-auth schema, I saved into control/rcpthosts the domains
abled to communicate with internal users. Now, with smtp-auth, the 
users
can send/receive to/from anyone.
Why not turn off SMTP AUTH?
Because I have users that connect from other internet providers in 
many cities,
and I don't want to allow open relay or maintain the /etc/tcp.smtp. 
Sometimes,
there are users using dial-up connections, and to maintain 
/etc/tcp.smtp is hard.
I guess I don't understand your original email.
It sounded like you were saying:  I only want to accept mail for 
domains in rcpthosts.

If that's the case, turn of relaying entirely.  You would only have to 
worry about external users sending email to other external users 
(@x.com sends to @y.com).

I can't think of an easy way to tell qmail:
1) Accept mail for local users [but only from a limited list of 
external domains?].
2) Accept mail for this limited list of external domains if a user 
authenticates with SMTP AUTH.

Do I understand correctly that that is what you're trying to do?
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] vpopmail pop3 unable to scan $HOME/Maildir

2004-07-28 Thread Tom Collins
On Jul 28, 2004, at 7:49 PM, Andras Kende wrote:
I found a deserted email account with over 70.000 messages (few months 
of spam)
 in my vpopmail 5.4.3 mail server on FreeBSD

If I try to pop3 these (Outlook, Outlook Express, Mozilla Thudnerbird)
The problem is its responding like : 
Mail Sever  responded: unable to scan $HOME/Maildir
Pop3 workaround is to not to have more than 1500 messages in the 
Maildir

Same problem happened after a week vacation, had to keep moving 
messages in and out of the maildir.
This would be your pop3 server, not vpopmail.  For pop3 pickup, 
vpopmail is only responsible for authenticating the user.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] Bounce Mails Problem [solved]

2004-08-04 Thread Tom Collins
On Aug 3, 2004, at 11:54 PM, knom wrote:
So..
After all..
I found the problem..
I changed the qmail-queue program for the use with spamassassin to a 
bash script calling spamc and afterwards the original queue.
I saw the method at 
http://sylvestre.ledru.info/howto/howto_qmail_spamassassin.php
 
How do you guys start spamassassin ?
via qmail-scanner.. or are there any other ways ?
Take a look at qmail-spamc from the SpamAssassin distribution.  You 
might want to check out my modified version:

http://tomlogic.com/qmail/qmail-spamc.c
Here are my notes on what's different:
/* modified version of qmail-spamc.c from SpamAssassin 2.60
 * changes made by Tom Collins [EMAIL PROTECTED] - version 2004-06-25
 *
 * Uses hard-coded paths to avoid problems with incorrect PATH 
environment.
 * Doesn't scan mail if RELAYCLIENT is set (indicates local, trusted 
user).
 * Adds more error reporting to aid in diagnosing configuration 
problems.
 * Allows for alternate path for qmail-queue (useful when using in
 *   conjunction with qscanq for ClamAV virus scanning).
 */

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


<    1   2   3   4   5   6   7   8   9   10   >