[vchkpw] Vpopmail 5.4.8 released

2004-11-11 Thread Tom Collins
http://vpopmail.sf.net/
Released 12-Nov-2004.
This release consists of minor bug changes to the stable version
of vpopmail.  The most invasive change is related to valiases with
MySQL and PostgreSQL.  The new code should fix problems
related to Maildir valias entries causing problems in vdelivermail.
There's no need to upgrade unless you're affected by a change
listed in the ChangeLog below.
This release was pushed out so Tom can do a beta release of
updated vdelivermail code in the next few weeks.
ChangeLog:
Rick Widmer
- vadddomain: Check for existing domain before prompting for
  password.
- vdeldomain: Fix uninitialized variable warning.
Tom Collins
- Fix problems with valias code in vmysql.c and vpgsql.c.  Storing
  aliases in Postgres should work now, and it should fix problems
  with processing Maildir valias entries in vdelivermail. [985011,
  1024706, 1033801]
- Fix bug in vmoddomlimits that wiped out the Domain Quota
  when editing default limits.
- Change columns in Postgres valias table to varchar from char.
  See README.pgsql for instructions on fixing existing tables.
- vmoduser: update maildirsize instead of just deleting it when
  modifying quota.
- vchkpw: classify POP/IMAP connections from select IPs (defaults
  to 127.0.0.1) as webmail and check NO_WEBMAIL user flag instead
  of NO_POP and NO_IMAP.
- Update qmail-smtpd-auth patch in contrib to latest (0.5.6).
- Update README.quotas with note about domain quotas not working.
- vpopmail.c: remove unused sys/varargs.h include.
- vdominfo: fix broken -a option.
- vdominfo: better display of real name for alias domains. [981335]
- vpopmail.c: Improved maildir_to_email() function. [953439]
Gentoo Port
- Integrate vuserinfo patch to fix the -a option and to display
  the comment/gecos field (used for "real name").


[vchkpw] Message pasted on top of message.

2004-11-11 Thread X-Istence
Hello,
I would like to excuse myself for cross posting, but i thought it would 
be important enough, as it pertains to both devel and the normal 
mailling list.

I have a .qmail file like this one:
/* Yes, i did change my email address. For obvious reasons. I get 
enough spam allready */
[EMAIL PROTECTED]:/usr/local/vpopmail/domains/osnn.net/xistence] # cat .qmail
&xistence [at] x-istence.com
/usr/local/vpopmail/domains/osnn.net/xistence/Maildir/

That is what qmailadmin created when i told it to forward it to another 
email account, and save a local copy.

Well, the forwarding works perfectly, but the mail stored in the 
Maildir looks like this:

Return-Path: 
Delivered-To: xistence [at] osnn.net
Received: (qmail 47604 invoked by uid 0); 11 Nov 2004 21:26:48 -
Received: from unknown (HELO mail.spammers-paradise.com) (67.19.228.228)
  by slate.osnn.net with SMTP; 11 Nov 2004 21:26:48 -
Received: (qmail 52586 invoked by uid 0); 11 Nov 2004 21:14:19 -
Received: from unknown (HELO Breached.X-Istence.com) (67.84.194.214)
  by sedated.spammers-paradise.com with SMTP; 11 Nov 2004 21:14:19 -
Received: (qmail 74339 invoked by uid 0); 11 Nov 2004 21:16:45 -
Received: from unknown (HELO ?10.10.10.100?) (10.10.10.99)
  by Breached.X-Istence.com with SMTP; 11 Nov 2004 21:16:45 -
Mime-Version: 1.0 (Apple Message framework v619)
Content-Transfer-Encoding: 7bit
Message-Id: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: [EMAIL PROTECTED]
From: X-Istence 
Subject: Can someone say mail loop?
Date: Thu, 11 Nov 2004 16:16:50 -0500
X-Mailer: Apple Mail (2.619)
Hello
Test.
Received: (qmail 47604 invoked by uid 0); 11 Nov 2004 21:26:48 -
Received: from unknown (HELO mail.spammers-paradise.com) (67.19.228.228)
  by slate.osnn.net with SMTP; 11 Nov 2004 21:26:48 -
Received: (qmail 52586 invoked by uid 0); 11 Nov 2004 21:14:19 -
Received: from unknown (HELO Breached.X-Istence.com) (67.84.194.214)
  by sedated.spammers-paradise.com with SMTP; 11 Nov 2004 21:14:19 -
Received: (qmail 74339 invoked by uid 0); 11 Nov 2004 21:16:45 -
Received: from unknown (HELO ?10.10.10.100?) (10.10.10.99)
  by Breached.X-Istence.com with SMTP; 11 Nov 2004 21:16:45 -
Mime-Version: 1.0 (Apple Message framework v619)
Content-Transfer-Encoding: 7bit
Message-Id: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: [EMAIL PROTECTED]
From: X-Istence 
Subject: Can someone say mail loop?
Date: Thu, 11 Nov 2004 16:16:50 -0500
X-Mailer: Apple Mail (2.619)
X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on slate.osnn.net
X-Spam-Level: *
X-Spam-Status: No, hits=1.6 required=5.0 tests=AWL autolearn=ham 
version=2.64

Hello
Test.
I have no clue where the error lies, and what i need to do to fix it, 
or if qmailadmin needs to be fixed, but it is causing quite a bit of 
problem. A client has his email set up like this as well, and he checks 
both accounts, unlike me who just did not notice the double message 
pasting stuff until pointed towards it. Where would i need to start 
looking for the error?

X-Istence


RE: [vchkpw] Qmail queue

2004-11-11 Thread Clayton Weise
Another way to do that is to simply touch the file with a date that makes it
older than your queue lifetime (set in /var/qmail/control/queuelifetime).  I
prefer this method since I don't need to stop qmail-send (which is difficult
on a box that typically has 20-30k messages in queue).  When qmail goes to
deliver the message it will notice it's too old and dump it.

-Clayton

-Original Message-
From: Bill Gradwohl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 03, 2004 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Qmail queue


Andrew Averin wrote:

>Hi all,
>How could I clean qmail queue manually
>  
>
Here's a script I use. I call it nukequeueitem. It shuts down send, 
waits for that to happen, and then nukes the specified items and 
restarts send.

Call it like this:
./nukequeueitem 123456 2342454 123123
where the numbers after it are the numbers of the queue items you want 
to nuke.

#!/bin/bash

[ $# -eq 0 ] && exit 1

svc -d /service/qmail-send
echo 'Working ...'
sleep 2s

while ! svstat /service/qmail-send | grep ': down'; do
   echo Still up.
   sleep 2s
done

for x in $@; do
   echo nuking $x
   find /var/qmail/queue -name ${x} -exec rm {} ';'
done

echo

svc -u /service/qmail-send
sleep 3s
svstat /service/*

-- 
Bill Gradwohl
[EMAIL PROTECTED]
http://www.ycc.com
spamSTOMPER Protected email




Re: [vchkpw] Load LDAP parameters from file

2004-11-11 Thread Jeremy Kitchen
On Thursday 11 November 2004 12:39 am, Tom Collins wrote:
> Alessandro Sappia submitted a patch to SourceForge for the LDAP backend
> that loads its settings from a file instead of having them hard-coded
> into the binary (much like the vpopmail.mysql file for the MySQL
> backend).
>
> Can someone who uses LDAP check it out and let me know if we should add
> it to the next distribution?  Thanks.

looks pretty sane, however I think the doc part should be changed:

+   # Create the configuration file that vpopmail will use
+   # to setup the connection to the mysql database
+   #
+   # This example will tell vpopmail :
+   #   * Log into the server running on localhost
+   #   * Use the default ldap port (339)
+   #   * Bind as the DN 'cn=vpopmailuser,o=vpopmail'
+   #   * Bind with the password vpoppasswd
+   #   * Use the search base 'o=vpopmail'
+   #
+
+   echo "localhost|389|cn=vpopmailuser, o=vpopmail|vpoppasswd|o=vpopmail" > 
~vpopmail/etc/vpopmail.ldap
+   chown vpopmail.vchkpw ~vpopmail/etc/vpopmail.ldap
+   chmod 640 ~vpopmail/etc/vpopmail.ldap

(note that this is all line wrapped in my email so it is not usable.)

I will also post this on the sourceforge page.

Now that I look at that a little, I think we should change all instances of 
VLDAP_USER to VLDAP_BINDDN and VLDAP_PASSWORD to VLDAP_BINDPASSWD to avoid 
confusing those defines with information retrieved from ldap.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgpVzzxm4xOF9.pgp
Description: PGP signature