Re: [vchkpw] Strange problems with adding a new domain

2003-03-18 Thread Tom Collins
Are you using [EMAIL PROTECTED] (or hondaman%fast-us.org) as the 
POP/IMAP username (and not just hondaman)?

On Tuesday, March 18, 2003, at 10:13  AM, hondaman wrote:

I was using my email client to check to see if mail had arrived.

In ~vpopmail/domains/fast-us.org/hondaman/Maildir/new appears to be all
the test emails I have sent, but cannot retrieve.
Yes, I am using qmail-pop3d, and vchkpw

Hondaman
--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Strange problems with adding a new domain

2003-03-18 Thread Tom Collins
On Tuesday, March 18, 2003, at 11:17  AM, hondaman wrote:
I was using simply hondaman as the username.  I just switched to
[EMAIL PROTECTED] and I was able to retrieve my mail. However, a
couple questions still remain:
Why, when it was just hondaman as username for the domain 
fast-us.org,
was I getting a duplicate email for every incoming email sent to my
original account, hardcs.com?
hondaman is either an actual account on the machine (in /etc/passwd), 
or your POP/IMAP server is setup to use a particular virtual domain as 
the default for logins that don't specify a domain.

When using vpopmail to do virtual domains, you need to include the 
domain name in the username you use to pick up mail from the server.  
That's the only way the POP/IMAP server can know what domain the user 
belongs to.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Strange problems with adding a new domain

2003-03-18 Thread Tom Collins
On Tuesday, March 18, 2003, at 01:17  PM, hondaman wrote:
I know when I set up qmail the first time a long time ago, I used 
vipmap
to map the ip to the domain.  Could I do that again, with a new ip for
the new domain?
If you have multiple IP addresses for that machine, then you should be 
able to use vipmap to map different domains to each IP.  My server only 
has one IP, so I haven't had an opportunity to use vipmap.

--
Tom Collins
[EMAIL PROTECTED]



[vchkpw] Re: [qmailadmin] Quotas

2003-03-17 Thread Tom Collins
On Monday, March 17, 2003, at 01:22 PM, Brian Kolaci wrote to the 
qmailadmin list:
vmoduser needs to be updated to write a properly formatted
data to the field.  Currently, it just writes the information
verbatim from the command line.
Note: I was unable to find any versions of vpopmail newer than 5.3.16.  
Where can I get 5.3.19?  I also saw mention of a 5.3.21 in another 
email...

Anyway, here's a patch for vmoduser to properly format the quota.  It 
understands the following formats for the -q option, and will convert 
all sizes to #S format:

10M (10,485,760 bytes)
500K (512,000 bytes)
10.5M (11,010,048 bytes)
100 (1,000,000 bytes)
NOQUOTA (no quota)
100S,1000C (1,000,000 bytes or 1000 messages)
100C (100 messages)
Note that I'm not sure whether 100C is a valid quota.  I know that 
qmailadmin can't handle it.

--- vpopmail-5.3.16/vmoduser.c  Fri May 17 21:16:28 2002
+++ vpopmail-5.3.16-tc/vmoduser.c   Mon Mar 17 14:31:24 2003
@@ -153,6 +153,8 @@
  int errflag;
  extern char *optarg;
  extern int optind;
+ double q;
+ int i;
 memset(User, 0, MAX_BUFF);
 memset(Email, 0, MAX_BUFF);
@@ -188,7 +190,24 @@
 break;
 case 'q':
 QuotaFlag = 1;
+   /* properly handle the following formats:
+* 1M, 1024K, 1048576 (set 1 MB quota)
+* NOQUOTA (no quota)
+* 1048576S,1000C (1 MB size, 1000 message limit)
+*/
 strncpy( Quota, optarg, MAX_BUFF-1);
+   i = strlen (Quota);
+   q = atof(Quota);
+   if ((Quota[i-1] == 'M') || (Quota[i-1] == 'm')) {
+   sprintf (Quota, %.0fS, q * 1024 * 1024);
+   } else if ((Quota[i-1] == 'K') || (Quota[i-1] == 'k')) {
+   sprintf (Quota, %.0fS, q * 1024);
+   } else if ((Quota[i-1] == 'S') || (Quota[i-1] == 's') ||
+   (Quota[i-1] == 'C') || (Quota[i-1] == 'c')) {
+   /* don't make any changes */
+   } else if (q  0) {
+   sprintf (Quota, %.0fS, q);
+   } /* else don't make any changes */
 break;
 case 'd':
 GidFlag |= NO_PASSWD_CHNG;
--
Tom Collins
[EMAIL PROTECTED]



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

2003-03-27 Thread Tom Collins
On Thursday, March 27, 2003, at 10:22  AM, Paul Theodoropoulos wrote:
rather than trumping up your argument with etiquette fascism, how 
about pointing out a relevant RFC that backs up your [baseless] 
opinion that a mailserver must accept messages from a site without 
reverse DNS?

ever heard of RFC 2505? apparently not.
I hadn't read RFC2505 http://zvon.org/tmRFC/RFC2505/Output/index.html 
until now, but I took the time to do so.

It has some good advice, but I didn't see any mention of refusing mail 
from hosts without reverse DNS.  It does talk about refusing mail based 
on the FQDN that reverse DNS resolves to (section 2.5), but I think 
it's a stretch to extend that to IP addresses that don't have reverse 
DNS.

I agree with others that the first post should have gone to Inter7 
(perhaps [EMAIL PROTECTED]) and not this list.

If someone wants to add spam filters to their personal mail server that 
deny mail from hosts without reverse DNS, that's fine with me.  If they 
think it's a good idea and tell others about it, I think it's a good 
idea for others to provide constructive feedback on why they disagree.

If it's true that spammers don't have reverse DNS on their IP 
addresses, I wouldn't mind seeing the MTA adding a header like 
X-Possible-Spam: Host 209.218.8.2 does not have reverse DNS. and even 
X-Possible-Spam: Host 209.218.8.2 resolves to spam.com which does not 
resolve to 209.218.8.2.  Then an email client could filter on that 
header or SpamAssassin could add a few points to the message's spam 
score.

--
Tom Collins
[EMAIL PROTECTED]



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

2003-03-28 Thread Tom Collins
On Friday, March 28, 2003, at 01:53  AM, Lucas Valdeón wrote:
Is correct to send mail from a reverse dns in the same domain, but 
different
hostname that MX entry ?
Yes, that would be fine.  Mail doesn't have to come from servers that 
accept messages.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] SMTP Authentication

2003-03-28 Thread Tom Collins
On Friday, March 28, 2003, at 07:21  AM, Rob G wrote:
How would I go about enabling SMTP authentication with VPOPMAIL to have my users authenticate with the server via SMTP instead of the POP before SMTP.  I have found that this is the easiest way for my customer's instead of expaining how/why the have to check their mail before sending mail.

There are various patches for Qmail to support SMTP AUTH.

Here's one that Bill Shupp recommends in his toaster document: http://members.elysium.pl/brush/qmail-smtpd-auth/>

(See http://www.shupp.org/toaster/> for more info on Bill's excellent document on setting up a new qmail-based server with all the bells and whistles.)

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Multiple mail delivery

2003-04-01 Thread Tom Collins
On Tuesday, April 1, 2003, at 10:58  AM, Kenneth Ling wrote:
I have other question to ask..base on the [EMAIL PROTECTED]
if I send a mail BCC to [EMAIL PROTECTED]
and it will auto send to [EMAIL PROTECTED] maildir..
my question is.. from that email on [EMAIL PROTECTED], how do I know 
that email is
actually to [EMAIL PROTECTED]
Look for a Delivered-To: header.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] phantom vpopmail alias domain

2003-06-05 Thread Tom Collins
On Thursday, June 5, 2003, at 07:04  PM, Kurt Bigler wrote:
Does vpopmail maintain the domain list somewhere else?  I'm aware that
vpopmail is just a layer on top of qmail, and I admit that I don't know
enough about qmail to really understand the underpinnings, so 
apologies.
/var/qmail/users/assign has the mapping of alias domain to real 
domain/directory.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Error in smtp log

2003-05-31 Thread Tom Collins
On Friday, May 30, 2003, at 07:38  PM, Keng Heng wrote:
I got this error in my mail server smtp log for all the incoming mails, how to resolve this:
 
@40003ed815531c3a4ba4 new msg 143948
@40003ed815531c3a6ae4 info msg 143948: bytes 1344 from [EMAIL PROTECTED]om> qp 841 uid 503
@40003ed815531c3a8254 starting delivery 3: msg 143948 to local [EMAIL PROTECTED]om
@40003ed815531c3a9dac status: local 1/100 remote 0/120
@40003ed815531cb1cd64 delivery 3: success: DSorry,_I_couldn't_find_any_host_named_--._(#5.1.2)/

Is domain.com in /var/qmail/users/assign?

What does ~vpopmail/domains/domain.com/.qmail-default look like?

How about ~vpopmail/domains/domain.com/.qmail-abc?

or ~vpopmail/domains/domain.com/abc/.qmail?

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Unable_to_switch_to_/home/vpopmail/domains -

2003-05-31 Thread Tom Collins
On Thursday, May 29, 2003, at 07:31  AM, DARCY,MATTHEW  
(HP-UnitedKingdom,ex2) wrote:
Every time I create a domain using vqadmin  I get a permissions  
problem (look at problem.com)

and before you ask yes when I built vqadmin I set the user and group  
flags to vpopmail:vckpw and it reported groups 89:89 so it had the  
right user details - I had no idea why it is doing this.
I'm not sure about vqadmin, but I know that qmailadmin needs to have  
the suid and sgid bits set.

Try running `chmod ug+s vqadmin` and giving it another try.

@40003ed617fc28c74714 delivery 877: deferral:  
Unable_to_switch_to_/home/vpopmail/domains/ 
parsonsmotorsport.co.uk:_access_denied._(#4.3.0)/
How do you start qmail-smtpd?  You need to have it start with the user  
and group id of vpopmail.  If you're using a setup like  
/service/qmail-smtpd/run, then your run script should look something  
like this:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`/usr/bin/head -1 /var/qmail/control/me`
export DENYMAIL=DNSCHECK
export QMAILQUEUE='/var/qmail/bin/qmail-spamc'
export PATH=/var/qmail/bin:$PATH
/usr/bin/spamd -a -c -d -u qmailq
exec /usr/local/bin/softlimit -m 600 \
/usr/local/bin/tcpserver -H -R -l $LOCAL \
-x /home/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD \
-u $QMAILDUID -g $NOFILESGID 0 smtp \
/var/qmail/bin/qmail-smtpd $LOCAL \
/home/vpopmail/bin/vchkpw /bin/true 21
Don't copy mine exactly, but take a look at the QMAILDUID and  
NOFILESGID lines at the top, and the -u and -g options to tcpserver.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Unable_to_switch_to_/home/vpopmail/domains -

2003-05-31 Thread Tom Collins
We're all on the list, so no need to cc everyone...

On Thursday, May 29, 2003, at 09:46  AM, DARCY,MATTHEW  
(HP-UnitedKingdom,ex2) wrote:
Looks like I spoke to soon, this change appears to have made no  
difference,

I still get the error

@40003ed639b71f3f5de4 delivery 1: deferral:
Unable_to_switch_to_/home/vpopmail/domains/ 
parsonsmotorsport.co.uk:_access_d
enied._(#4.3.0)/
@40003ed639b71f407b0c status: local 0/10 remote 0/20
Did you run qmail-newu after fixing the users/assign file?  If that  
doesn't work, maybe you should try restarting the qmail-smtpd process.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Qmail looking into wrong Maildir

2003-06-04 Thread Tom Collins
On Sunday, June 1, 2003, at 01:22  PM, John Morrow wrote:
When I send a receive mail Qmail puts the mail in /home/morrow/Mairdir instead of

/home/vpopmail/domains/clanmorrow.com/morrow/Maildir.  I have worked on this problem for

Remove clanmorrow.com from /var/qmail/control/locals.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] SpamAssassin/vmodinfo changes

2003-06-05 Thread Tom Collins
I have a sizable patch from Jeff Hedlund scheduled for the 
qmailadmin-1.0.21 release that adds very flexible, per-user 
spamassassin support.

I'll (hopefully) announce the release later today, along with 
information on how it works.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] problem iwth vconvert to sql

2003-06-05 Thread Tom Collins
Please apply the following patch to vconvert:

diff -u vpopmail-5.3.20/vconvert.c vpopmail-5.3.20-tc/vconvert.c
--- vpopmail-5.3.20/vconvert.c  2003-03-24 13:54:37.0 -0700
+++ vpopmail-5.3.20-tc/vconvert.c   2003-06-04 14:32:54.0 
-0700
@@ -312,8 +312,8 @@
 void usage()
 {
fprintf(stdout, vconvert: usage\n);
-   fprintf(stdout,  The first option sets which format to convert 
FROM);
-   fprintf(stdout,  the second option sets which format to 
convert TO);
+   fprintf(stdout,  The first option sets which format to convert 
FROM,\n);
+   fprintf(stdout,  the second option sets which format to 
convert TO.\n);
fprintf(stdout,  -e = etc format\n);
fprintf(stdout,  -c = cdb format\n);
fprintf(stdout,  -m = sql format\n);

On Wednesday, June 4, 2003, at 12:41  PM, Ken Jones wrote:
I'm not writing any new code.

I'm only applying code changes that people send me.

Ken

On Wednesday 04 June 2003 2:16 pm, Rick Macdougall wrote:
Hi,

Would you not want -c -m ?  I do not see -s as an option anywhere.

Oh, Ken, as long as you are patching today, maybe you could add a line
feed to the help message so the -e = etc format starts on a new line 
:)

Regards,

Rick

Eduardo Garcia wrote:
Hello people.

i  was a new installation of qmail+vpopmail+mysql in a new server, 
the
instalation that's ok.

but, i need migrate my accounts email to my new server, the old qmail
have authentiation with cdb files, and i need migrate to auth with 
mysql.

i try use de vconvert utility, i read de README.msysql, but the
instruccion.
#vconvert -c -s

don't work and display the next message.

[EMAIL PROTECTED] ti0.net]# vconvert -c -s
vconvert: invalid option -- s
vconvert: usage
The first option sets which format to convert FROM the second option
sets which format to convert TO -e = etc format
-c = cdb format
-m = sql format
-S = set sqwebmail passwords
-v = version
-d = debug info
[EMAIL PROTECTED] ti0.net]#
some idea.

plase help me, i have 20 domains.

sorry but my english it's very bad, i don't speak.

thanks.

enzo
Eduardo Garcia.




--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Working towards vpopmail 5.4 stable

2003-06-05 Thread Tom Collins
On Wednesday, June 4, 2003, at 03:48  PM, Raboo wrote:
rename domains.
If I use vdeldomain on a alias will it remove the domain or just the 
alias
domain. If it deletes the domain you should add a feature to remove 
aliases
It just removes the alias.

Renaming a domain in vpopmail is a little more difficult -- you'd have 
to update all the Maildir references in the .qmail files, and make sure 
you update all of the mailing list files.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Strange problem?

2003-05-14 Thread Tom Collins
On Wednesday, May 14, 2003, at 07:59  AM, Nick Harring wrote:
Is there a way around this limitation by modifying permissions on the affected files in /var/qmail/control and /var/qmail/users? The setup I run doesn't allow root access to the vpopmail/domains directory, and so I'd like to be able to add domains as vpopmail rather than remounting my NFS vpopmail/domains directory each time I need to add/remove a domain.

Try this -- no guarantees that it will work.

Make the following files group writable and change the group to vchkpw:

/var/qmail/control/virtualdomains
/var/qmail/control/virtualdomains.lock
/var/qmail/control/morercpthosts
/var/qmail/control/morercpthosts.cdb
/var/qmail/control/morercpthosts.lock
/var/qmail/control/rcpthosts
/var/qmail/control/rcpthosts.lock
/var/qmail/users/assign
/var/qmail/users/assign.lock
/var/qmail/users/cdb

I think that covers all of the files that could be modified by the vpopmail programs.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] hmmm, question

2003-06-11 Thread Tom Collins
On Monday, June 9, 2003, at 01:11  PM, Paul Theodoropoulos wrote:
we've had a request from a customer to be able to forward only the 
subject line (or minimal headers) from incoming messages to the 
customer's wireless device, the reason of course being that if they 
receive a large attachment it chews up a lot of their bandwidth 
allotment.

i've been pondering this for a bit, and can't quite come up with a 
solution. i keep thinking something like forwarding the message to 
another account they create, and that one having an autoresponder on 
it, but that's not quite right.
This is something I was doing about 8 years ago on a sendmail system 
(and JT probably remembers it as well).  In your case, just have a copy 
of the email go to another account, and set up a .qmail file for that 
account that pipes the message through a program or script of some 
sort.  In our case, we were using Perl for its text munging 
capabilities.

The Perl program would go through the headers and decide on whether the 
mail should even be forwarded to the alpha-pager (e.g., ignore mailing 
lists, etc.).  If it was worthy of forwarding, another part of the 
script would modify the message to get as much information across as 
possible.  It used F: S: B: to show the From, Subject and Body.  From 
would use just the name on the account, and munge it to an abbreviation 
for common senders, subject and body would go through more modifiers 
that did things like replace with  with w/ and from  with f/.  
Some of the users would even 
StripWhitespaceFromTheMessageAndInlineCapitalizeEverything to get more 
in each message.

It was quite effective, and shouldn't be too hard to implement with 
qmailadmin.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] how can i do that

2003-06-12 Thread Tom Collins
On Thursday, June 12, 2003, at 08:00  AM, Ahmad Masood Shah wrote:
If someone are sending an email to user  that have 100% full quota. 
qmail
will reply message like shown below..

[EMAIL PROTECTED]:
address: /home/vpopmail/domains/fibre.net.pk/3/abdo/Maildir/
quota: 5242880S
Message rejected. Not enough storage space in user's mailbox to accept
message.
I want to hide address:/home and quota information from this 
autogenerated
message. Can someone let me know what file I will have to edit for 
this..
Here's a patch to vdelivermail that takes care of the problem -- be 
careful, the user_over_maildirquota line might wrap.  I think someone 
else mentioned it on the list (stating that it was probably debug code 
someone accidentally left in), but I don't know if anyone posted a 
patch (it's a simple one).  Ken, please add this to the next vpopmail 
release (when can we expect that new release?).

diff -u vpopmail-5.3.20/vdelivermail.c vpopmail-5.3.20-tc/vdelivermail.c
--- vpopmail-5.3.20/vdelivermail.c  2003-04-18 07:40:25.0 
-0700
+++ vpopmail-5.3.20-tc/vdelivermail.c   2003-06-12 10:37:18.0 
-0700
@@ -460,8 +460,6 @@
 /* If the user is over thier quota, return it back
  * to the sender.
  */
-   printf(address: %s\n, address);
-   printf(quota: %s\n, quota);
 if 
(user_over_maildirquota(address,format_maildirquota(quota))==1) {

 /* check for over quota message in domain */

--
Tom Collins
[EMAIL PROTECTED]



[vchkpw] Fwd: template .qmail file

2003-06-13 Thread Tom Collins
Begin forwarded message:
From: Ryan Summers [EMAIL PROTECTED]>
Date: Fri Jun 13, 2003  2:15:24  PM America/Phoenix
To: [EMAIL PROTECTED]
Subject: [qmailadmin] template .qmail file



Perhaps this is a strange request, but here goes...

It would be nice to have a template .qmail file that gets coppied into the vpopmail user's directory when creating a new user.  This would work sort of like how useradd takes /etc/skel and copies those files into the new user's home dir.

Reason for this?

I want to be able to use the .qmail file to call a script that filters spam (using the spamassassin spamc/spamd) 

Perhaps there's a better way to do this using qmail (filtering at the queue level perhaps)?  Any suggestions are more than welcome.

Anyways, the .qmail file will work for now.  I was able to hack the user.c addusernow() function so that it copies a .qmail file into the new user's directory.  If anybody is interested in how I did this let me know... its a pretty ugly hack though.

Ryan / Plastic Portal


MM Recordings http://www.mmrecordings.com

This request is probably more appropriate for vpopmail development.

Could one of the vpopmail developers consider submitting a patch to make_user_dir that would copy a default .qmail file (perhaps from ~vpopmail/etc?) into the new user's directory?

You could insert the code here:

if ( chdir(username) != 0 ) {
chdir(tmpbuf); free(tmpbuf); free(tmpdir);
printf( make_user_dir: error 2\n);
return(NULL);
}
/* insert code to copy default .qmail file */
if (mkdir(Maildir,VPOPMAIL_DIR_MODE) == -1){
chdir(tmpbuf); free(tmpbuf); free(tmpdir);
printf(make_user_dir: error 3\n);
return(NULL);
}

Thoughts?

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Fwd: template .qmail file

2003-06-13 Thread Tom Collins
On Friday, June 13, 2003, at 04:33  PM, Ron Guerin wrote:
It would be nice to have a template .qmail file that gets coppied into
the vpopmail user's directory when creating a new user.  This would
work sort of like how useradd takes /etc/skel and copies those files
into the new user's home dir.
This is a job for a BASH script around vadduser, not a patch.
That would work, but then you'd have different behavior when adding 
users from the command line (vadduser) and from qmailadmin (which uses 
the vpopmail libraries).  I was hoping for consistent behavior, perhaps 
even with other programs that might link into vpopmail.

A modification that used a skeleton directory could also be useful for 
those who want to have extra Maildirs automatically created (say for 
SPAM) on user creation.  A shell script wrapper does the trick on the 
command line, but not for qmailadmin.

--
Tom Collins
[EMAIL PROTECTED]



[vchkpw] Re: web based prefs for spamassassin

2003-06-14 Thread Tom Collins
This overlaps with qmailadmin, so I'm cc'ing that list as well.

On Saturday, June 14, 2003, at 09:37  AM, Trey Nolen wrote:
There is a very nice looking package on Freshmeat 
(http://www.freshmeat.net)
today that allows users to make changes to their Spamassassin 
preferences
via the web. Has anyone tried using it with Vpopmail?
Here's the page on Freshmeat: 
http://freshmeat.net/projects/webuserprefs/?topic_id=29

Be sure to take a look at http://spamassassin.org/dist/sql/README.  
SpamAssassin can read user prefs from a MySQL table.  Here's another 
PHP interface for users to update there prefs as well 
http://spamassassin.org/devel/php-sa-mysql-0.5.tar.gz.

If you configure SpamAssassin to use a MySQL table, and update users 
qmail files to call spamc with the -u [EMAIL PROTECTED], you could 
possibly get some tight integration between SA, vpopmail and qmailadmin.

I'm not sure how you'd set up spamc to store the message in the user's 
directory though, if you were to add it to the .qmail file.  Perhaps 
someone could write a modified spamc, or a wrapper for it, that would 
make sure the output of spamc was placed in the Maildir and then return 
the proper exit code for qmail-local.  I'm currently using qmail-spamc 
as a replacement for qmail-queue to scan all incoming messages before 
they're delivered, but it can't handle per-user prefs.

See http://spamassassin.org/dist/qmail/README.qmail-spamc for info on 
qmail-spamc.  If you're using qmail-scanner just for the SpamAssassin 
scanning, then you should look into switching to qmail-spamc instead.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Migrating Domains to new Vpopmail Server

2003-06-17 Thread Tom Collins
On Tuesday, June 17, 2003, at 08:00  AM, David Bronson wrote:
My question is this: There is now qmail locals file. As I change MX
records, I would like the old server to forward mail to the new one. 
How
can I change the vpopmail locals database and not change the rcpthosts?

I guess I could vdeldomain and add back the domain to rcpthosts, is 
that
the best way?
I did this recently on a server using CDB, and here are the general 
steps that I did, in order.

stop qmail on old
add domain.com to new (use any password, next step will fix it)
copy ~vpopmail/domains/domain.com from old to new (I used rsync, ssh 
would work as well)
change MX record on DNS server to point to new
remove domain.com from old
add domain.com back to rcpthosts on old
make sure old has new MX record for domain.com
start qmail on old

Keep in mind that this worked for me because server old was also the 
DNS server for all of the domains, so I was sure it would have the 
correct MX record for each domain as I moved it.

If you don't have that luxury, I think you can use smtproutes on the 
old server to force it to relay the mail to the new server.

I was able to automate a lot of the process using scripts and ssh 
between the two hosts (I set them up as trusted hosts so I wouldn't 
have to constantly enter my password).

Don't forget to move the alias domains as well!  They don't appear in 
~vpopmail/domains -- you'll have to look in /var/qmail/users/assign to 
find them.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] VPOPMAIL 5.3 release

2003-06-17 Thread Tom Collins
On Monday, June 16, 2003, at 02:13  PM, Benjamin Tomhave wrote:
A 5.4 stable release was just discussed at the beginning of this 
month.  I
don't know where you get March from, either, as 5.3.20 devel was 
released
4/10/2003 according to the Inter7 devel web site.  I've been running 
5.3.20
for several weeks on a cluster with good success, so it is likely quite
deployable and probably not too far off from the 5.4 stable release.
Ken Jones collected vpopmail patches about two weeks ago, but hasn't 
released 5.3.21 yet.  I'd wait to check the ChangeLog of 5.3.21 to see 
whether any of the patches fix known bugs, or are just for new features.

We are pushing for a stable release of both vpopmail and qmailadmin 
soon.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Corrupted Delivered-To header?

2003-06-25 Thread Tom Collins
On Wednesday, June 25, 2003, at 06:41  PM, Doug Clements wrote:
Greetings,
   We're getting a report of a bogus Delivered-To header from one of 
our customers. Apparently, Exchange relies on this in some way.

You can see it here.. The real domain is linear-systems.com, but the 
delivered-to header doesn't complete the domain in the first part of 
the line and it ends up being systems.com. Has anyone seen this 
before, and know of a fix?

Received: from exchange-pop3-connector.com (LSPROXY [192.168.0.2]) by
lsproxy.linkline.com with SMTP (Microsoft Exchange Internet Mail 
Service
Version 5.5.2653.13)
 id 205XX740; Wed, 18 Jun 2003 15:13:04 -0700
Received: (qmail 94044 invoked by uid 1009); 18 Jun 2003 22:11:20 
-
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 94025 invoked by uid 0); 18 Jun 2003 22:11:20 -
This is a bug in vdelivermail.c, in the section of code after the 
following comment:

/* use the DTLINE variable, but skip past the dash in
 * [EMAIL PROTECTED]
 */
Basically, it assumes the first dash separates the domain name from the 
email address.  The solution might be to find the '@' in DTLINE, 
determine the length of the domain name (@ to trailing NULL) and skip 
that many bytes from the beginning of the address.

Maybe it's better to use other environment variables (USER, HOST, 
LOCAL, RECIPIENT?) to build the delivered-to header.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Spam Protection with vpopmail and qmail

2003-06-27 Thread Tom Collins
On Thursday, June 26, 2003, at 01:23  PM, Jeff Garvas wrote:
I highly suggest installing qmail-scanner and reading the howto for 
using
spam assassin with it.
I don't like the overhead of qmail-scanner, so I'm just using 
qmail-spamc as a replacement for qmail-queue.  Take a look at the qmail 
directory of SpamAssassin for the source to qmail-spamc and 
instructions on how to use it.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Strange Behaviour

2003-06-27 Thread Tom Collins
On Friday, June 27, 2003, at 11:36  AM, Sérgio Manuel Rosa wrote:
After that I replaced /var/qmail/bin/qmail-local with vqmaillocal, and 
I bellieved that everything was running smothly but It was'nt. I 
started to see a lot, really a lot of bounced mail, take a look at 
this bounced message
I've never replaced qmail-local with vqmaillocal on my servers.  Is 
this standard procedure?  If not, perhaps you should stick with 
qmail-local.

After reading README.vqmaillocal and looking at the date on 
vqmaillocal.c, I'd say that it's currently an incomplete replacement 
for qmail-local.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Compile error - version 5.2.1

2003-06-27 Thread Tom Collins
On Friday, June 27, 2003, at 07:59  PM, Vinod Kurup wrote:
I get the following error when I try to compile on Debian GNU/Linux 
i686.

root:/usr/local/src/vpopmail-5.2.1# make
...
gcc -I. -Icdb  -g -O2 -Wall -c vconvert.c
In file included from vconvert.c:35:
vmysql.h:53:22: missing terminating  character
vmysql.h:60:35: missing terminating  character
make[2]: *** [vconvert.o] Error 1
Looks like vmysql.h is missing a backslash on line 54 and 58. I see 
that this is still present in 5.3.20
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12238.html

Vinod
Ken, please apply this patch to 5.3.20.  When can we expect the release 
of 5.3.21?  You've got a lot of patches in there, and it would be great 
if people could start testing them.  The last stable release, 5.2.1, 
was made over a year ago.  We've got a lot of improvements in the 5.3 
series and we're not far from having a stable release.

diff -u vpopmail-5.3.20/vmysql.h vpopmail-5.3.20-tc/vmysql.h
--- vpopmail-5.3.20/vmysql.h2003-03-18 17:27:18.0 -0700
+++ vpopmail-5.3.20-tc/vmysql.h 2003-06-27 22:35:09.0 -0700
@@ -48,11 +48,11 @@
 primary key (pw_name, pw_domain ) 
 #else
 #define TABLE_LAYOUT pw_name char(32) not null, \
-pw_domain char(64) not null,
+pw_domain char(64) not null, \
 pw_passwd char(40), \
 pw_uid int, pw_gid int, \
 pw_gecos char(48), \
-pw_dir char(160),
+pw_dir char(160), \
 pw_shell char(20), \
 primary key (pw_name, pw_domain ) 
 #endif
--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Vpopmail (5.2.1 and 5.3.20) won't compile on debian sarge ?!

2003-06-29 Thread Tom Collins
On Sunday, June 29, 2003, at 01:32  AM, Florian Schiessl wrote:
diff -u vpopmail-5.3.20/vmysql.h vpopmail-5.3.20-tc/vmysql.h
--- vpopmail-5.3.20/vmysql.h2003-03-18 17:27:18.0 -0700
+++ vpopmail-5.3.20-tc/vmysql.h 2003-06-27 22:35:09.0 -0700
@@ -48,11 +48,11 @@
  primary key (pw_name, pw_domain ) 
  #else
  #define TABLE_LAYOUT pw_name char(32) not null, \
-pw_domain char(64) not null,
+pw_domain char(64) not null, \
  pw_passwd char(40), \
  pw_uid int, pw_gid int, \
  pw_gecos char(48), \
-pw_dir char(160),
+pw_dir char(160), \
  pw_shell char(20), \
  primary key (pw_name, pw_domain ) 
  #endif
Could you please tell me, how to apply this?? I don't know anything
about this... :-(
It's a simple change, and you don't really need to use 'patch' to apply 
it.

Open vmysql.h in an editor (vi, pico, emacs, etc.), go to line 48 and 
look for the pw_domain and pw_dir lines.  Add the missing \ to 
the end of those two lines.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Re: Ezmlm Upgrade

2003-06-29 Thread Tom Collins
On Sunday, June 29, 2003, at 08:08  AM, Peter Palmreuther wrote:
- read the man pages
- execute
  ezmlm-sub -N $ML_DIR address_01 [address_02 ... address_XX]
Or, save the list of addresses to a file and do

ezmlm-sub -N $ML_DIR  /tmp/addrlist.txt

--
Tom Collins
[EMAIL PROTECTED]



[vchkpw] Weird messages coming from telepac.pt user

2003-06-29 Thread Tom Collins
A few messages have come through to list subscribers recently that 
didn't have proper headers.  One of them claimed to be from Chad 
Morland, but using the address [EMAIL PROTECTED] (which is an 
invalid address).

It looks like the machine at adsl-b3-72-36.telepac.pt (213.13.72.36) is 
infected with an email virus/worm that is reposting messages to 
subscribers of the list directly.  Some of them are just simple 
re-posts (like the Queue not delivered message from Julio Espada 
Olivares that was originally sent May 12, 2003).  But the resend from 
Chad Morland included a virus attachment.

Keep an eye out for the messages, they'll include a received header 
like the following, and won't have proper mail list headers.

Received: from NetClube05 ([213.13.72.36]) by fep01-svc.mail.telepac.pt
  (InterMail vM.5.01.04.13 201-253-122-122-113-20020313) with 
SMTP
  id 
[EMAIL PROTECTED];
  Sun, 29 Jun 2003 19:26:57 +0100

And, if you're the subscriber to [EMAIL PROTECTED] that happens to have 
213.13.72.36 as your IP address -- scan your system with an up-to-date 
virus checker!

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Mailing List

2003-07-01 Thread Tom Collins
On Tuesday, July 1, 2003, at 05:16  PM, Dallas Wright wrote:
i.e I receive email sent to [EMAIL PROTECTED] but not [EMAIL PROTECTED], and user@ belongs to the admins@ list.

Is [EMAIL PROTECTED] a moderated list?  Is posting to the list limited to subscribers?  Do other subscribers to that list get the messages?

If it's moderated, set a moderator and that address will get the message before it goes out to the list.  Depending on your list options, you may have set up the list in a way where the messages you send are ignored.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Fallback MTA and vpopmail

2003-07-03 Thread Tom Collins
On Thursday, July 3, 2003, at 03:29  AM, Jasper Metselaar wrote:
How should I setup the domain so that my server becomes a fallback and
that it delivers the e-mail to the primary mailserver when it is 
available
again (in case the primary mailserver is off-line)?
Thanks for any suggestions!
vdeldomain domain-owner.com
echo domain-owner.com  /var/qmail/control/rcpthosts
The first line removes the domain from your server.  The second line 
says that you'll accept the mail.  Since it's not in virtualdomains, 
qmail will relay it instead of keeping it.  Make sure that's a double 
angle-bracket () in the last line so it appends the domain to 
rcpthosts and doesn't replace rcpthosts with that line.

If DNS is set up correctly, your server will accept mail for 
domain-owner.com and try to send it on to the real server.

As mentioned by others, if DNS is wrong you can add an entry to 
smtproutes to route the mail to the correct server.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Mailing list problem

2003-07-03 Thread Tom Collins
On Thursday, July 3, 2003, at 09:24  AM, Dallas Wright wrote:
The list was created using qmailadmin set not to archive, no other options

You could subscribe another account (hotmail/yahoo) and see if it gets the message.  Do you have a spam filter on [EMAIL PROTECTED] where you wouldn't see the message get delivered?

You could turn on archive, and see if it stores an archive of the message.

ls ~vpopmail/domains/varse.net/admins/archive/0/

What are your options as far as moderation goes, or who can send to the list?

If you upgrade to vpopmail 5.3.20 and qmailadmin 1.0.23, you'll see clearer list options (especially regarding who can post to the list) when modifying the list.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Mailing list problem

2003-07-04 Thread Tom Collins
On Thursday, July 3, 2003, at 03:16  PM, Tom Collins wrote:
After a quick look at the qmailadmin source though, I see that it's  
completely broken for non-idx installations of ezmlm.
I've posted a patch to SourceForge of qmailadmin so it will work with  
standard (non-idx) versions of ezmlm.  It should work for 1.0.20 to  
1.0.23.

http://sourceforge.net/tracker/ 
index.php?func=detailaid=765760group_id=6691atid=306691

If you can't find it from that URL, go to  
http://sourceforge.net/projects/qmailadmin/ and click on the patches  
tracker.

--
Tom Collins
[EMAIL PROTECTED]



[vchkpw] List user may have W32/Bugbear@MM worm

2003-07-05 Thread Tom Collins
According to another list user, the weird messages we've seen (with 
incomplete headers) were probably sent from a machine infected with 
W32/[EMAIL PROTECTED]

You can scan and clean your system with Network Associate's Stinger 
application http://vil.nai.com/vil/stinger/.

The infected person is at 213.13.72.80, and is in the .pt tld.  If you 
think you might be that infected user, please run Stinger.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] What should the permisions be of $vpopmail and below

2003-07-07 Thread Tom Collins
On Monday, July 7, 2003, at 12:54  AM, [EMAIL PROTECTED] wrote:
whats inside domains/$domainname I am interested in the .qmail file
permissions.
Owned by vpopmail.vchkpw, file permissions are 0600, directories are 
0700.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Re: forward not working under vpopmail

2003-07-07 Thread Tom Collins
On Monday, July 7, 2003, at 10:20  AM, Bill Sappington wrote:
KEEP ROOT THE HELL OUT OF EVERYTHING!

Root is a special user, you should only log in as root under the most 
extreme circumstances.  Create a user name for yourself, assign the 
rights you need to administer your system to yourself, and leave root 
out if it.
In the case of a virtual domain managed with vpopmail, [EMAIL PROTECTED] 
doesn't have any special capabilities.  There shouldn't be any problem 
with setting it up and using it as an email account.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] vppopmail 5.3 stable?

2003-07-09 Thread Tom Collins
On Wednesday, July 9, 2003, at 09:22  AM, [EMAIL PROTECTED] wrote:
Sverre, we use 5.3.21 officially over here, so I wouldnt
worry about using that version.  As far as when it will
be marked 'stable' officially, I cant say for certian.
And when will 5.3.21 be available to the public?  Ken said he would 
release it last Friday, but it doesn't show up on 
http://www.inter7.com/develop.html.

Once vpopmail has been declared stable (or at least more stable than 
5.2.1), we'll be able to release qmailadmin as stable.

--
Tom Collins
[EMAIL PROTECTED]
Visit sniffter.com for info on the Sniffter hand-held Network Tester



Re: [vchkpw] Vpopmail + Courier-imap as non-root

2003-07-11 Thread Tom Collins
On Friday, July 11, 2003, at 12:25  AM, Joshua Pruitt wrote:
According to the FAQ:

3. compile courier-imap with --without-authdaemon --with-authvchkpw
So I do all of this by the book. Now, courier-imap doesn't work if I 
add the -user=vpopmail -group=vchkpw directives to imapd.rc (as in a 
vpopmail user can't authenticate).

According to /var/log/messages:

Jul 11 00:53:33 hoss authdaemon: authdaemon: s_connect() failed: 
Permission denied

Are you sure you compiled *without* authdaemon?  You shouldn't get an 
authdaemon error if you're only using authvchkpw.

Who manages the vpopmail FAQ?  Can we add a line that says don't 
compile courier with authdaemon as line 1?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] vpopmail and courier-imap

2003-07-11 Thread Tom Collins
On Friday, July 11, 2003, at 12:35  AM, Sadik Galimuna wrote:
Check permissions on /home/vpopmail/lib/libvpopmail.a
 
I changed them to
chmod 644 /home/vpopmail/lib/libvpopmail.a
and
chmod 755 /home/vpopmail/lib
That's a bad idea, especially if you're using MySQL.  With 
libvpopmail.a world-readable, anyone can find out the username and 
password to MySQL.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] vpopmail 5.3.20

2003-06-26 Thread Tom Collins
On Thursday, June 26, 2003, at 09:30  PM, Michael Bowe wrote:
I would recommend that you install qmailadmin
http://www.inter7.com/qmailadmin.html
qmailadmin makes these sorts of tasks very simple
The latest development release of qmailadmin is on SourceForge.

http://sourceforge.net/projects/qmailadmin/

--
Tom Collins
[EMAIL PROTECTED]



Re: Re[2]: [vchkpw] vpopmail 5.3.20

2003-06-26 Thread Tom Collins
On Thursday, June 26, 2003, at 10:02  PM, Eugene Chua wrote:
When I try to create a forwarding email address, say for example:

[EMAIL PROTECTED]
--[EMAIL PROTECTED]
For the first email I was able to create the forwarding rule but when
I try to create another forwarding address for [EMAIL PROTECTED] to
forward emails to --[EMAIL PROTECTED], i receive the message Name
already used info.
Modify [EMAIL PROTECTED] and add [EMAIL PROTECTED] to it.

In QmailAdmin 1.0.21, aliases were removed and replaced by forwards.  
In the past, an alias just referred to a local forward (same domain).

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] vppopmail 5.3 stable?

2003-07-13 Thread Tom Collins
On Sunday, July 13, 2003, at 01:19  PM, Rick Macdougall wrote:
2 - You may have to re-compile anything that works with libvpopmail - 
qmailadmin and courier-imap are two I can think of.
And qmail-smtpd if you have the chkuser patch.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Auth mod

2003-07-14 Thread Tom Collins
On Monday, July 14, 2003, at 01:09  PM, Kevin Beyers wrote:
1.  Users login as User,  not [EMAIL PROTECTED]
2.  Several   users login as numbers like  23433   = 
[EMAIL PROTECTED]
3.  Several users logins are very long like john_smith_foobar_com  
 = [EMAIL PROTECTED]
Take a look at vchkpw.  That's the portion of vpopmail that 
authenticates a user, and (I think) returns the path to the maildir.

It might be possible to add an extra table to the database of special 
username to full email lookups (like 23433 - [EMAIL PROTECTED] and 
john_smith_foobar_com - [EMAIL PROTECTED]).  You could modify 
vchkpw to check that database and then use the actual email address for 
subsequent lookups.

If you use SquirrelMail or SqWebMail, it might not work (since the web 
mail program would have the wrong email address).

You might even be able to do something wacky like store the special 
username in the GECOS (Real Name field in QmailAdmin) field of the 
user record.  That would allow for easy management via qmailadmin.

Users would also be able to switch over to the proper 
username/password for their address, allowing you to support the old 
and new login methods.

Another method, that would be a real pain, would be to create a default 
domain with all of the special usernames, then create all of the real 
domains and make aliases to the special accounts.  E.g., 
[EMAIL PROTECTED] becomes a forward to 
[EMAIL PROTECTED]

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Delete messages receiveds by a user.

2003-07-14 Thread Tom Collins
On Monday, July 14, 2003, at 02:18  PM, Jaime Chereau wrote:
I have a .qmail-user with | /var/vpopmail//bin/vdelivermail ''
/dev/null
Is this right or i have another option???
Just put a # in the .qmail-user file.  vdelivermail can't handle 
comments (the # line) in .qmail files, but qmail-local should process 
a .qmail-user file before vdelivermail even gets involved.

Another way that works for both qmail-local and vdelivermail is

|/bin/true

or

/dev/null

Note that you can bounce messages as well with a .qmail-user file like 
this:

|/var/qmail/bin/bouncesaying 'Invalid account'

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] Re: [qmailadmin] Finally Posted - New Look, Feel, and Navigation for Qmailadmin

2003-07-14 Thread Tom Collins
On Monday, July 14, 2003, at 05:56  PM, Justin Couto wrote:
I hope this helps some of you and we really hope it gets adopted as the new qmailadmin interface. Please give us feedback in the mailing list and if you would like to see these changes in future releases of qmail admin please show your support.

Justin,

I like where you're going with parts of this interface, but I noticed that you have many buttons rendered as graphics with text inside.  Unfortunately, this breaks QmailAdmin's multi-language support.

Would it be possible to modify the templates to use straight text instead?  That way we could move the text into the language files and allow for translations into all supported languages.

I had considered an interface where there was a thin menu bar across the top of each screen with something like this:

Main Menu | [+] Email Accounts | [+] Forwards | [+] Mail Robots | [+] Mailing Lists | Log Out

The [+] would be linked to add, the main text would be linked to the list page for each account type.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] possible smtp-auth bug (qmail)

2003-07-15 Thread Tom Collins
On Tuesday, July 15, 2003, at 04:55  AM, Bård Tommy Nilsen wrote:
Sorry for starting the discussion.
If I set up an script that generates mail from one adress in the 
rcpthost to
Another adress in rcpthost I can fill every mailbox on the server ...

I thought that smtp auth should prevent that anyone could send messages
through the
Server without being authenticated ... But I you do it this way you can
RELAY without
Being smtp authenticated
By definition, mail for domains in your rcpthosts file (and 
morercpthosts.cdb) isn't relayed.

An open relay is a server that will accept mail for any domain, and 
then forward it on.

If your server didn't accept mail for domains in the rcpthosts file, it 
would be impossible for anyone to send you email.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] Re: Fw: [qmailadmin] aliases to bitbucket

2003-07-15 Thread Tom Collins
On Tuesday, July 15, 2003, at 10:02  AM, Jeremy Kister wrote:
On Tuesday, July 15, 2003 12:07 PM, Tom Collins wrote:
Please note!  vdelivermail should NEVER be used in .qmail-user files 
--
it should only appear in the .qmail-default file.
I'm not arguing here, just expressing my ignorance...  Why?

I currently use things like
|/usr/local/bin/spamc | /home/vpopmail/bin/vdelivermail ''
/home/vpopmail/domains/example.com/username
in my .qmail-user files, when i do not want spamc to be invoked for 
each
user in the domain
Based on my understanding, vdelivermail has a somewhat deceptive name.

Many people (myself included) thought it would just accept the mail and 
do whatever you requested as the last parameter (bounce-no-mailbox, 
deleted, directory for delivery, etc.).

In reality, vdelivermail uses environment variables set by qmail-local 
to try to find the appropriate user and deliver the mail to them.  It 
only delivers to the last parameter if it can't find a match.

So, as we learned with the 1.0.19 release of qmailadmin, setting up a 
user fred with a .qmail file containing vdelivermail would result in an 
infinite loop of vdelivermail calling itself.  Here's how:

qmail-local looks for .qmail-fred in the domain's directory.  Since 
.qmail-fred doesn't exist, qmail-local delivers the message to 
.qmail-default which contains vdelivermail.

vdelivermail looks for a user fred in the domain's directory.  Having 
found fred, it checks for a .qmail file before just dropping the 
message in fred's Maildir.  Having found a .qmail file, it processes 
it.  The first line of the .qmail file starts with |, indicating 
program delivery, so vdelivermail sends the message to the program 
(which is vdelivermail).

On the second call, vdelivermail once again looks for a user fred in 
the domain's directory.  Having found fred, it checks for a .qmail 
file...  And we're stuck in a loop.

Instead of using vdelivermail, you may need to use maildrop (Jeff 
Hedlund can provide details on that one) to process the email and drop 
it in the user's Maildir.

It might be helpful to add another program (vstoremail?) to the 
vpopmail distribution that would accept a message in STDIN and save it 
to the Maildir specified as the first parameter.  Then it would be 
possible to have entries in your .qmail file like

|/usr/local/bin/spamc | /home/vpopmail/bin/vstoremail 
/home/vpopmail/domains/example.com/fred/Maildir/

vstoremail would take care of file locking/naming/etc. and exit with 
the proper error code.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Tom Collins
What does /var/qmail/users/assign look like?  Could both domains be 
mapped to the same home directory?

Is mail for mx2.ebox.at stored in ~vpopmail/domains/mx2.ebox.at?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Incorrect Servername in Mail Header

2003-07-18 Thread Tom Collins
On Thursday, July 17, 2003, at 08:38  AM, Widmer Hannes wrote:
Does somebody has a Idea from where this entry comes ?...
I really want to change this, but I don't know where.

Received: from 212.90.198.7
(SquirrelMail authenticated user [EMAIL PROTECTED])
by ! webmail.hardintaste.ch !! with HTTP;
Thu, 17 Jul 2003 17:28:10 +0200 (CEST)
Message-ID:
[EMAIL PROTECTED] 
!
!!!
Those look like headers inserted by SquirrelMail, it's unrelated to  
vpopmail.

Look at the SquirrelMail config and ask on the SquirrelMail mailing  
list.  I would assume that it would use the HTTP_HOST environment  
variable, which it pulls from the URL you use to connect.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] vpopmail 5.3.21 released

2003-07-18 Thread Tom Collins
http://www.inter7.com/develop.html
http://sourceforge.net/projects/vpopmail/
This release is mainly a collection of bug fixes.  We're moving toward 
a 5.4 stable release of vpopmail, so please test this release 
thoroughly (if possible).  If you know of any outstanding bugs in 
5.3.20 that weren't fixed in this release, or find any new bugs in 
5.3.21, please post them to the list, or to the Bug Tracker on 
SourceForge.

I already have one bugfix (from Moshe Jacobson) in my pre-release copy 
of 5.3.22 that corrects a problem with the maildir_to_email() function 
when dealing with hashed domain directories.

CHANGELOG:

Ole Gjerde
- Check return code from vdeliver_mail in valias code and exit
  appropriately on errors.  Previously, mail could be lost.
Cory Wright (and others)
- Fix missing \ in multi-line #define in vmysql.h.
Maurice Snellen
- When logging POP3 logins, now includes system accounts.
Emris
- Ignore comments when processing .qmail files.
Moshe Jacobson
- Allow colons in cleartext passwords (vqpasswd() in vpopmail.c).
Jonas Thomsen
- Ignore final '.' in users/assign when running 'vconvert -c -m'.
Michael Bowe
- Remove debug printfs from vdelivermail on overquota bounces.
Jeff Hedlund
- Ignore comments when processing .qmail files.
- Process .qmail file when delivering to local (Maildir) catchall.
- vdelivermail now properly sets [EMAIL PROTECTED] and sets Deliver-To
  header on local deliveries.
Tom Collins
- Fix usage formatting on vconvert.
- Support for MB/KB quota formats in vmoduser.



Re: [vchkpw] [mrsam@courier-mta.com: [sqwebmail] Re: Sqwebmail Authorization 2]

2003-07-18 Thread Tom Collins
On Friday, July 18, 2003, at 03:55  PM, Doug Clements wrote:
It looks like there's 2 main problems he's detailing. The first he 
details looks pretty darn obviously a bug. Can anyone comment on why 
this buffer isn't cleared, and why it hasn't been fixed?
If someone can give me better guidance, I will go in and fix the 
problem on the vpopmail side.

What functions does authdaemon make use of in libvpopmail?

libvpopmail may need a major overhaul and review for memory leaks, 
especially if it's like QmailAdmin.  Since QmailAdmin runs as a CGI, no 
one has been very careful about freeing allocated memory when it's done 
being used.  I'm not sure if similar coding practices are present in 
vpopmail.

I'm not sure how to address the library problem. I've come across it, 
and anyone who halfway knows what they're doing should know how to get 
around it, but we all (sqwebmail and vpopmail lists) still get people 
who have problems with it. This sounds fixable by the patch I just saw 
that keeps the authentication information in a seperate file. Are 
there any objections to doint this and relaxing the restrictions on 
the lib directory  (at least make it executable) and the actual 
library file (make it readable)? The hard-coded login information was 
the only valid reason I remember for having the lib permissions like 
that. Anyone?
I liked that patch, and I want to integrate it into an upcoming release 
(with review from others of course).  I agree that the MySQL 
information should live in a non-world-readable file owned by vpopmail, 
perhaps stored in ~vpopmail/etc instead of /var/qmail/control.

Does anyone see a reason it should be hardcoded into the lib?

I've never seen this problem really anaylzed and properly investigated 
on the vpopmail side.

I really would like sqwebmail and vpopmail to work well together, it 
would be quite a shame to lose the interoperability over some bugs 
that should really be fixed regardless.
I'm not intimately familiar with sqwebmail, but I'll commit to fixing 
whatever is broken in vpopmail.  Should I just examine authvchkpw.c to 
see how it interfaces to vpopmail, and work on the parts of vpopmail 
that it touches?  Otherwise, it will probably be necessary to review 
each function in vpopmail to make sure it could be called repeatedly, 
work properly, and not leak memory.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Change Password Script

2003-07-19 Thread Tom Collins
On Saturday, July 19, 2003, at 08:47  AM, David Choo wrote:
I'm currently running vpopmail 5.2.1 with qmailadmin. Many of my
customers are changing their password via qmailadmin, but I've gathered
feedback that they would prefer to be able to change password without
login in.
Something like that for forms.

==
Email Address
Old Password
New Password
Confirm New Password.
==
I think this is an excellent idea, and I would be willing to work on 
adding it to qmailadmin.  You'd just have to call qmailadmin with a 
special URL, and it would pop up with a very simple page for changing 
password.

It's in my todo list for the 1.1 development series of qmailadmin.  
Once we release a stable version based on the current 1.0.25, I'll look 
into doing it.

If someone wants to design the page, perhaps in the same style as the 
current qmailadmin pages, that would make my work easier.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] PHP Register Site for a new vpopmail account

2003-07-21 Thread Tom Collins
On Monday, July 21, 2003, at 02:31  AM, Widmer Hannes wrote:
I have a small question. I'm fully not a programmer, but
I have with a friend a Website on witch we now want to
provide email services. The problem now is, that I'm not
the programmer an my friend can programm, but don't know
what is to do. I had set up qmail based on y mysql Table.
Take a look at vqregister:

  http://www.inter7.com/vqregister.html

vQregister is a CGI which allows new email users to signup on your 
system. It is extremely configurable, and has many methods of operation.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] aliasdomain

2003-07-21 Thread Tom Collins
On Monday, July 21, 2003, at 01:56  PM, Mago Gozner wrote:
Hello, I have aquestion, how many domains can I point to another using ./valiasdomain
 
I have 4 domains and want to point to the same. ej; domain1.com domain2.com domain3.com domain4.com point to masterdomain.com

That should be fine.  There shouldn't be any limits.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] create user with pre-defined gid

2003-07-22 Thread Tom Collins
On Tuesday, July 22, 2003, at 08:04  PM, Martin Chung wrote:
I am not using *nix adduser or useradd but using vpopmail's vadduser. 
As the
gid can control vpopmail user's imap access, webmail access, etc. I 
want to
created user with no imap or webmail access by default.
You can't do it with vadduser, but you can use vmoduser after creating 
the account to set the flags.  It's not very efficient, but should fit 
your needs.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] troubles with vpopbull: users disappeared

2003-07-23 Thread Tom Collins
On Wednesday, July 23, 2003, at 08:26  AM, John Simpson wrote:
it seems to me that the newer versions of vpopmail should 
automatically add
this extra : to the end of lines which are missing it, if there was a 
file
format change from one version to another.
The current 5.3 series does that, and I'm back-porting some of the 
bugfixes from 5.3 for a 5.2.2 release.  So far, 5.2.2 includes this 
patch, and the missing-backslash fix to mysql.h.  If anyone else knows 
of outstanding problems with 5.2 (that were hopefully fixed in 5.3), 
please let me know.

Here's the patch:

--- vpopmail.c  Fri May 17 23:25:49 2002
+++ ../vpopmail-5.3.22/vpopmail.c   Sun Jul 20 09:07:51 2003
@@ -1408,13 +1404,7 @@
 if (fgets(line,sizeof(line),pw) == NULL) return NULL;
 for (i=0; line[i] != 0; i++) if (line[i] == ':') j++;
-
-#ifdef CLEAR_PASS
-/* Must count the clear password field */
-if ( j != 7) return NULL;
-#else
-if ( j != 6) return NULL;
-#endif
+if (j  6) return NULL;
 tmpstr = line;
 pwent.pw_name   = line;
@@ -1435,23 +1425,22 @@
 *tmpstr = 0; ++tmpstr;
 pwent.pw_gid = atoi(tmpstr1);
-
 pwent.pw_gecos  = tmpstr;
 while (*tmpstr!=0  *tmpstr!=':') ++tmpstr;
 *tmpstr = 0; ++tmpstr;
 pwent.pw_dir= tmpstr;
 while (*tmpstr!=0  *tmpstr!=':') ++tmpstr;
-*tmpstr = 0; ++tmpstr;
+if (*tmpstr) { *tmpstr = 0; ++tmpstr; }
 pwent.pw_shell  = tmpstr;
 while (*tmpstr!=0  *tmpstr!=':'  *tmpstr!='\n') ++tmpstr;
-*tmpstr = 0; ++tmpstr;
+if (*tmpstr) { *tmpstr = 0; ++tmpstr; }
 #ifdef CLEAR_PASS
 pwent.pw_clear_passwd  = tmpstr;
-while (*tmpstr!=0  *tmpstr!=':'  *tmpstr!='\n') ++tmpstr;
-*tmpstr = 0; ++tmpstr;
+while (*tmpstr!=0  *tmpstr!='\n') ++tmpstr;
+if (*tmpstr) { *tmpstr = 0; ++tmpstr; }
 #endif
 return pwent;




[vchkpw] Is vpopmail crap?

2003-07-23 Thread Tom Collins
On Wednesday, July 23, 2003, at 07:46  AM, Russell Nelson wrote:
I have no idea how to make this work with vpopmail.  I don't use
vpopmail, nor do I recommend that anybody else use it.  I've read the 
code
for vpopmail, and although it's written to industry standards, it's 
crap.
Total and unmitigated crap.  Fixed-length buffers
everywhere, #ifdef every time you turn around, null-terminated strings
instead of counted strings, it's crap; crap, crap, crap.  I understand
that not everybody can afford a custom-crafted solution from Crynwr
Software, but sometimes you only get what you pay for in the open
source world.
I can't really disagree with him.  I've done a lot of work on the 
qmailadmin source recently, and I'm getting into the vpopmail source 
now.

It is poorly written code.  There are opportunities for buffer 
overflows in many places.  Code is duplicated where it should be 
replaced with functions.  Some of the code is very inefficient.  There 
are a lot of static, fixed-length buffers that could be replaced by 
dynamically-allocated buffers of the proper size.  It uses global 
variables.  It isn't well documented.

But, it works.  It works surprisingly well and I think it's a great way 
to do virtual domains with qmail.

I see this as an opportunity for improvement.  One of my goals of 
contributing to the vpopmail/qmailadmin projects is to clean the up.  
Make them more efficient and more secure.  I'm hoping that by doing so, 
others will take an interest and be encouraged to contribute patches 
that fix large sections of code, instead of just adding ugly band-aids 
on already ugly code.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Accepting mail for localhost, when using virtual domains

2003-07-23 Thread Tom Collins
On Wednesday, July 23, 2003, at 09:34  PM, Rudi Ahlers wrote:
My default local domain is set to tradeleads.co.za, but the machine my 
virtual domain runs on is knocky.tradeleads.co.za. How do I accept 
local emails? i.e, email sent to root / local system users? Email 
generated from crontab / at / logs / etc?
Create files in /var/qmail/alias:

echo [EMAIL PROTECTED]  /var/qmail/alias/.qmail-root
echo [EMAIL PROTECTED]  /var/qmail/alias/.qmail-postmaster
I also recommend the following to blackhole doublebounce notices (99.9% 
of which are from spammers forging email):

echo doublebounce  /var/qmail/control/doublebounceto
echo #  /var/qmail/alias/.qmail-doublebounce
--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] error:domain already exsits

2003-07-24 Thread Tom Collins
On Thursday, July 24, 2003, at 06:47  AM, Jens Jahr wrote:
this is a known bug in vpopmail.c which doesnot check if deletetion 
has been
finished. I posted a patch for that half a year ago, but it has been 
refused !
I've added your patch to 5.3.22 which will be released later today.  
Thanks for addressing this problem, which affects more than just LDAP 
installs.  I had been wondering about how vpopmail added/deleted 
domains, since we see this type of error report (can't add because it 
exists, can't delete because it doesn't exist) often on the list.

If others have patches that have not been accepted to the vpopmail 
source, please send them to me or post them to the Patch Tracker on 
SourceForge http://sourceforge.net/projects/vpopmail/.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] create group of users

2003-07-24 Thread Tom Collins
On Thursday, July 24, 2003, at 07:22  AM, sss wrote:
(real sender email is in Return-Path, but users see only from)
What can i fix it?
You can't.  The From header is set by the sender's email program, and 
the Return-Path is typically set from the SMTP envelope of the message. 
 If the From isn't correct, then it's the fault of the sender.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] 1 domain on 3 different location problem

2003-07-24 Thread Tom Collins
On Thursday, July 24, 2003, at 03:56  AM, Peter Mikeska wrote:
|-d1.company.com (smith, 
neo)
---internetcompany.com(main)---
|-d2.company.com (trinity)

Main Server has primary mailboxes for neo, trinity, smith. and it has 
setup
to forward these adreses to [EMAIL PROTECTED], [EMAIL PROTECTED] 

but how setup server d1.company.com to send mail between
[EMAIL PROTECTED] and [EMAIL PROTECTED] without message traveling
to main server and back. i need save traffic ;((
I try vaddaliasdomain to setup alias for d1.company.com but it works
only on local users, if i send mail from d1.company.com to regular
user on main server, it wont work.
It isn't going to be fun, but it would probably go like this.

Set up virtual domain company.com on main, d1 and d2.  Set up aliases 
to company.com called d1.company.com (on d1) and d2.company.com (on d2).

On main, have the following files:

.qmail-smith forward to [EMAIL PROTECTED]
.qmail-neo forward to [EMAIL PROTECTED]
.qmail-trinity forward to [EMAIL PROTECTED]
On d1, have mailboxes for smith and neo, and .qmail-trinity as a 
forward to [EMAIL PROTECTED]
On d2, have a mailbox for trinity and have .qmail-smith and .qmail-neo 
as forwards to [EMAIL PROTECTED] and [EMAIL PROTECTED]

When you add a new account, you'll have to create the POP/IMAP mailbox 
on d1 or d2, and then add an alias on the other dx machine plus the 
main machine to forward mail to the appropriate dx.

Nothing automated about it unless you code up some shell scripts and 
use ssh to run programs remotely on d1 and d2.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] error:domain already exsits

2003-07-24 Thread Tom Collins
On Thursday, July 24, 2003, at 12:28  PM, Charles Sprickman wrote:
Just checking, is the SF stuff in full effect at this point for 
qmailadmin
and vpopmail?  Should all patches, bugs, etc. be posted there?  Will 
that
make it easier for you and the other developers to track things?
Yes, we are making full use of SourceForge for both projects.  It will 
be helpful to have you post Bug Reports, Feature Requests and Patches 
there for our review.

I also recommend logging in if at all possible.  That way, if we 
followup on your tracker item, SF will automatically email you with the 
followup.

SF automatically emails me copies of every new item posted to both 
projects.  There's no need to assign an entry to me -- leaving it as 
nobody is best, because then we'll know that no one has claimed it yet. 
 Eventually, I hope to assign bug reports and feature requests to 
different developers to spread the load.

I guess now is as good an opportunity as any to announce that I will be 
on vacation from July 25 through August 1.  I will be releasing 
QmailAdmin 1.0.25 and Vpopmail 5.3.22 before the end of the day, and 
following up on any bugs found when I return.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Compile error. Any ideas

2003-07-25 Thread Tom Collins
On Friday, July 25, 2003, at 12:22  AM, Hani Mouneimne wrote:
gcc -I. -Icdb -g -O2 -Wall -c vdelivermail.c
In file included from vdelivermail.c:32:
config.h:33: warning: `/*' within comment
vdelivermail.c: In function `date_header':
vdelivermail.c:1322: `timezone' redeclared as different kind of symbol
/usr/include/time.h:144: previous declaration of `timezone'
The time.h problem is fixed in 5.3.23, but I don't have enough 
information to help with config.h.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] vpopmail 5.3.23 released

2003-07-25 Thread Tom Collins
I'm leaving for the airport in 5 minutes, but here's the 5.3.23 release:

5.3.23

Tom Collins
- Removed timezone declaration to correct compile problem on
  FreeBSD.
5.3.22

Moshe Jacobson
- Fix maildir_to_email() to work with hashed domain directories.
Matt Berardi
- Add 2 second timeout on MySQL connections.
Jens Jahr
- Check for failure when calling auth module.
- Fix vadddomain/vdeldomain when the auth module call fails.
- Fix vsetuserquota to include status messages.
Tom Collins
- Add Date header to over quota warning message.
- Fix possible buffer overflows when setting envbuf[1-4] in
  vchkpw.c. (bug spotted by Michael Bowe)
- Remove error messages from vmysql.c that could interfere with
  POP or SMTP AUTH client sessions.
- Switched from using --enable-default-domain to storing default
  domain in ~vpopmail/etc/defaultdomain.  This should provide
  flexibility when compiling packages for distribution.



Re: [vchkpw] vpopmail 5.3.23 released

2003-07-26 Thread Tom Collins
On Friday, July 25, 2003, at 05:28  AM, Hani Mouneimne wrote:
vdelivermail.c: In function `date_header':
vdelivermail.c:1333: invalid operands to binary /
vdelivermail.c:1321: warning: `tz' might be used uninitialized in this
function
Please send a copy of /usr/local/time.h so I can see how timezone is 
defined.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Backup Emailserver?

2003-07-26 Thread Tom Collins
On Friday, July 25, 2003, at 07:22  AM, Bill Sappington wrote:
I am pretty sure that even if you have two physical servers thats how 
you would set it up.  As to how to get one server to recieve 
_everything_, unconditionaly, and then every know and then look to see 
if your primary server was alive, then forward everything it had 
received to your primary server and ONLY your primary server is a 
mystery to me.
If DNS is set up correctly, you can put the domain in rcpthosts (but 
NOT in virtualdomains or locals) on the secondary server, and it will 
hold on to it until it can deliver the mail to the primary server.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Upgraded from old version to newest - Some domains have problems

2003-07-26 Thread Tom Collins
On Friday, July 25, 2003, at 03:49  PM, jeff thomas wrote:
There are over 100 domains on the server. Over half
seem to be working just fine. A handful are not.
If this is a problem with 5.3.22 or 5.3.23, please try 5.3.21.  There 
were changes in the 5.3.22/23 release that have not been fully tested.

If this works, please let me know so we can look into the cause of the 
problem.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Merging maildrop and mailbot into vdelivermail

2003-07-29 Thread Tom Collins
On Tuesday, July 29, 2003, at 03:20  AM, Gerald Villemure wrote:
Hmmm interesting... vdelivermail could stop trying to use .qmail files
altogether and simply rely totaly on SQL.
This is the idea behind valiases.  valias support is high on the todo 
list for qmailadmin.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Merging maildrop and mailbot into vdelivermail

2003-08-03 Thread Tom Collins
On Tuesday, July 29, 2003, at 12:37  PM, Jesse Guardiani wrote:
Will valiases support program delivery lines and such? If not, will 
valias
support work in a mixed environment alongside .qmail files?
I haven't fully explored valiases yet, but my understanding is that 
they are a replacement for the .qmail-user files used for 
aliases/forwards.  Instead of storing the information in a file, it's 
stored in a database table.

We haven't decided yet whether QmailAdmin will be compiled to use both 
valias and .qmail-user files simultaneously.  When switching over to 
valias support, we might require the admin to run a tool to move all 
aliases into the table.  Or, we could read from both the valias table 
and .qmail-user files to display settings, and save new and updated 
forwards to the table (deleting the .qmail-user file once successful).

We do know that valias support in QmailAdmin will wait until we have a 
stable version to release, which should be soon.  We're focusing almost 
entirely on bugfixes at this point.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] valias + mysql

2003-08-04 Thread Tom Collins
On Sunday, August 3, 2003, at 03:15  PM, Shane Chrisp wrote:
but if
you try to deliver
to a directory in the form of /home/vpopmail/domains/domain.com/user/ 
I get
a
Aack,_child_crashed._(#4.3.0).
I haven't done anything with valiases, but wouldn't you need to include 
Maildir in the path?  Try 
/home/vpopmail/domains/domain.com/user/Maildir/.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] smtproutes/vpopmail question

2003-08-04 Thread Tom Collins
On Monday, August 4, 2003, at 08:09  AM, dGenus Mailing List wrote:
So what I've done is remove domain.net from mail3.domain.com and 
install it on mail.domain.com.  On mail3, I put the following line in 
smtproutes

domain.net:mail.domain.com

But the problem is now I'm getting the dreaded... this host is not in 
my rcpthosts
In addition to adding the entry to smtproutes, I think you also need to 
add it to rcpthosts (or morercpthosts).

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] Patches to vpopmail 5.3.23

2003-08-04 Thread Tom Collins
I am working on the 5.3.24 release now that I'm back from vacation.  I wanted to post two patches though, that correct two big problems in 5.3.23.

The first is related to the timezone variable I used in vdelivermail.  I've removed it and just use GMT time now.  timezone-patch.txt fixed that problem.



timezone-patch.txt
Description: application/applefile
diff -u vpopmail-5.3.23/vdelivermail.c vpopmail-5.3.24/vdelivermail.c
--- vpopmail-5.3.23/vdelivermail.c  Fri Jul 25 04:49:27 2003
+++ vpopmail-5.3.24/vdelivermail.c  Sun Aug  3 08:02:14 2003
@@ -1318,7 +1318,6 @@
 {
   time_t now;
   struct tm *tm;
-  unsigned int tz;
 
   static char *montab[12] = {
   Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec
@@ -1328,19 +1327,14 @@
   };
   static char dh[39];
 
-  /* set timezone variable (seconds west of GMT) */
-  tzset();
-  tz = (unsigned int) abs(timezone / 60);
-
   /* look up current time and fill tm structure */
   time(now);
-  tm = localtime(now);
+  tm = gmtime(now);
 
   snprintf (dh, sizeof(dh),
-Date: %s, %02u %s %u %02u:%02u:%02u %s%02u%02u\n,
+Date: %s, %02u %s %u %02u:%02u:%02u +\n,
 wday[tm-tm_wday], tm-tm_mday, montab[tm-tm_mon], tm-tm_year + 1900,
-tm-tm_hour, tm-tm_min, tm-tm_sec, timezone  0 ? - : +,
-tz / 60, tz % 60 * 100 / 60);
+tm-tm_hour, tm-tm_min, tm-tm_sec);
 
   return dh;
 }


The second was segfaults in vadddomain and vdeldomain (and probably other code).  patch-vget_assign.txt  corrects the bug I introduced to vget_assign() in vpopmail.c

--- vpopmail-5.3.23/vpopmail.c  Thu Jul 24 07:35:10 2003
+++ vpopmail-5.3.24/vpopmail.c  Mon Aug  4 07:47:01 2003
@@ -1892,8 +1892,14 @@
   }
 
   /* this is a new lookup, free memory from last lookup if necc. */
-  if ( in_domain != NULL ) free(in_domain);
-  if ( in_dir != NULL ) free(in_dir);
+  if ( in_domain != NULL ) {
+free(in_domain);
+in_domain = NULL;
+  }
+  if ( in_dir != NULL ) {
+free(in_dir);
+in_dir = NULL;
+  }
 
   in_domain_size = 156;
   in_domain = malloc(in_domain_size);
@@ -1941,17 +1947,15 @@
 in_dir = malloc(in_dir_size);
 strncpy( in_dir, ptr, in_dir_size);
 
-free(tmpstr);
 free(tmpbuf);
-fclose(fs);
-return(in_dir);
   } else {
 free(in_domain);
+in_domain = NULL;
 in_domain_size = 0;
   }
   fclose(fs);
   free(tmpstr);
-  return(NULL);
+  return(in_dir);
 }
 
 int vget_real_domain(char *domain, int len )


--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester

Re: [vchkpw] vchkpw bug

2003-08-04 Thread Tom Collins
On Monday, August 4, 2003, at 10:05  AM, Evren Yurtesen wrote:
I noticed something weird, call it a bug of spooky feature =) its on 
you
Now the thing is that I can send email although vchkpw says that the
password fails, but yet when I enter the password wrong I am not able 
to
send email, and again it works when I enter right password. Always the
same error =) I had loglevel=e in configure options, now when I 
changed it
to y the error disappeared and vchkpw works nicely.
What version of vpopmail?

And to summarize, the bug is that password fail is logged, even when 
successful?  And this only happens with loglevel=e, and not loglevel=y. 
 Correct?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Mailbox suddenly started bouncing

2003-08-04 Thread Tom Collins
On Monday, August 4, 2003, at 05:12  PM, Ajai Khattri wrote:
All of a sudden, all email to this mailbox has started bouncing.
The .qmail-default file for that domain is missing.

Re-create it with qmailadmin by setting a bounce option for the domain, 
or by doing this (all on one line, as user vpopmail, or just fix the 
ownership after you do it):

echo |/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox  
/home/vpopmail/domains/bitblit.net/.qmail-default

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] vpopmail-5.3.23

2003-08-04 Thread Tom Collins
On Monday, August 4, 2003, at 07:41  PM, Brah Mon wrote:
Is there another way to go about trying this new 5.3.23?
the devel page linked from the front page only shows 5.3.20 as being latest.
 
Would anyone perhaps have a URL to find it at?

As Ken mentioned, http://sourceforge.net/projects/vpopmail/ will always have the latest releases.

That said, the 5.3.23 release has various problems, and I suggest that you wait until we release 5.3.24 (very soon now) which corrects those bugs.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


[vchkpw] Vpopmail 5.3.24 released

2003-08-07 Thread Tom Collins
http://sourceforge.net/projects/vpopmail/

Release Notes:

This release corrects various errors in the 5.3.22 and 5.3.23
releases.  It should now compile properly on FreeBSD, and it
shouldn't segfault when trying to add or remove a domain.
Charles Boening supplied some needed updates to the pgsql
code, and we have a few other maintenance fixes as well.
Changelog:

Tom Collins
- Removed all references to timezone to be POSIX compliant.  Now
  uses gmtime() with + for date header.
- Fixed bug in my updated vget_assign that caused segfaults
  in many cases (including running vadddomain and vdeldomain).
Michael Bowe
- Update vget_assign calls with NULL directory pointer to use
  0 for buffer size.
- Add missing backslashes (\) to vpgsql.h (see 5.3.21 vmysql.h).
- Check for NULL return when calling vauth_getpw() in vldap.c.
Charles Boening
- Update configure.in to work for pgsql compiles.
- Add --enable-pgsql-logging configure option.
- Add vauth_crypt() to vpgsql.c.
Yann St. Arnaud
- Remove #ifdef FOOB from vchkpw.c to re-enable
  ENABLE_LEARN_PASSWORDS feature.
Jens Jahr
- Support for clear text passwords when using LDAP.
Oden Eriksson
- Remove unnecessary errno declaration in cdb/cdb_seek.c.
Evren Yurtesen
- Added contrib/sendmail2vpopmail.pl for converting from sendmail
  aliases and virtusertable entries to vpopmail domains.



Re: [vchkpw] 5.3.24 and Delivered-To header

2003-08-08 Thread Tom Collins
On Thursday, August 7, 2003, at 06:01  PM, Charles Sprickman wrote:
It looks like the Delivered-To problem has returned:

Delivered-To: [EMAIL PROTECTED]

I wasn't seeing this under 5.3.21...
I assume this is with a catchall...  Here's a patch to address that 
problem.  I'm also considering going through all of the code that 
writes a Delivered-To header, and changing it to use this routine.  
vdelivermail uses multiple methods of building that header, and I'm not 
sure if all cases work properly.

--- vpopmail-5.3.24/vdelivermail.c  Sun Aug  3 08:02:14 2003
+++ vpopmail-5.3.25/vdelivermail.c  Fri Aug  8 13:24:31 2003
@@ -567,27 +566,44 @@
 /* must be an email address */
 } else {
   char *dtline;
-  char *tstr;
+  char *atpos;
+  int dtlen;
 
-qmail_inject_open(address);
-write_fd = fdm;
-inject = 1;
+  qmail_inject_open(address);
+  write_fd = fdm;
+  inject = 1;
 
-/* use the DTLINE variable, but skip past the dash in 
- * [EMAIL PROTECTED] 
- */
+  /* use the DTLINE variable, but skip past the dash in 
+   * [EMAIL PROTECTED] 
+   */
 
-if ( (dtline = getenv(DTLINE)) != NULL ) {
-while (*dtline!=0  *dtline!=':' ) ++dtline;
-while (*dtline!=0  *dtline!='-' ) ++dtline;
-if ( *dtline != 0 ) ++dtline;
-for(tstr=dtline;*tstr!=0;++tstr) if (*tstr=='\n') *tstr=0;
-} else {
-if (*address=='') ++address;
-dtline = address;
-}
-snprintf(DeliveredTo, sizeof(DeliveredTo), 
-%sDelivered-To: %s\n, getenv(RPLINE), dtline);
+  if ( (dtline = getenv(DTLINE)) != NULL ) {
+dtlen = strlen(dtline);
+/* make sure dtline is at least as long as Delivered-To:  */
+if (dtlen  15) {
+  dtline = NULL;
+} else {
+  dtline += 14;  /* skip Delivered-To:  */
+  dtlen -= 14;
+  atpos = strchr (dtline, '@');
+  /* ex: dtline = [EMAIL PROTECTED]
+   * dtlen = 25, atpos = dtline+14
+   * add 25 - 14 - 1 = 10 bytes to dtline,
+   * now points to [EMAIL PROTECTED].
+   */
+  if (atpos != NULL) {
+dtline += (dtlen - (atpos - dtline) - 1);
+  }
+}
+  }
+  if (dtline == NULL) {
+if (*address=='') ++address;  /* will this case ever happen? */
+snprintf(DeliveredTo, sizeof(DeliveredTo), 
+  %sDelivered-To: %s\n, getenv(RPLINE), address);
+  } else {
+snprintf(DeliveredTo, sizeof(DeliveredTo), 
+  %sDelivered-To: %s, getenv(RPLINE), dtline);
+  }
 }
 
 #ifdef MAKE_SEEKABLE


Note that this patch also addresses a problem the old method had with 
domain names containing -.

I'll be placing the patch on SourceForge, and adding it to the next 
vpopmail release.  Please provide feedback -- it's done well with 
limited testing on my development box.

It works by skipping the 14-character Delivered-To:  part of the 
header as qmail sets it.  It converts the trailing newline to a

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] qmailadmin

2003-08-10 Thread Tom Collins
On Saturday, August 9, 2003, at 08:23  PM, John Johnson wrote:
 I have noticed in the last devel version of qmailadmin that it will remove
the program delivery lines for tmda if I set it up because of some changes
to the code. Is there a configure option I can use to disable this?

Not yet, but it's high on our to do list.  Unfortunately, the code that reads and writes a user's .qmail file is in need of a major overhaul.

Also note that qmailadmin has it's own list.  Send email to [EMAIL PROTECTED]

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2003-08-11 Thread Tom Collins
On Monday, August 11, 2003, at 11:11  AM, Mike Robin Haller wrote:
i have this problem and i hope someone can help me fast, because after
an update to 5.3.23, i cannot add any domains.
vadddomain always crashed with an segmentation fault. i debugged it
and the segfaults were caused by two free(in_domain) and another
free(..). i commented them out and recompiled, so i could create the
necc. domain directories.
Delete the domain, download and install the latest vpopmail (5.3.24) 
and re-add it before trying anything else.

http://sourceforge.net/projects/vpopmail/

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Urgent - vchkpw/vpopmail authenticate even with wrong pw?

2003-08-14 Thread Tom Collins
On Wednesday, August 13, 2003, at 11:30  AM, jeff thomas wrote:
What the hell ... I just compiled 5.3.24 WITHOUT
learn-passwords. Installed it. Restarted all mail
services. I can STILL log into any account with any
password.
Someone here must be able to shed some light on this
for me??  Please?
What do your MySQL tables look like?  What does a typical user entry 
look like?

Is this an issue of the old tables having encrypted passwords without 
cleartext equivalents?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] vpopmail documentation initiative

2003-08-14 Thread Tom Collins
On Wednesday, August 13, 2003, at 12:08  PM, Ron Guerin wrote:
Wouldn't it be nice if we could get together and produce comprehensive
vpopmail documentation?  Wouldn't it be even nicer if we could
distribute that documentation with vpopmail?
We can!  And I'd like to start the ball rolling by asking everyone on
the list if they've got some documentation they've written stashed on
their system that they'd like to contribute to the project.
Once we know what we have to start with, we can figure out what to do
next.
I've enabled the DocManager feature of our SourceForge project, and Ron 
is the editor.  If you have vpopmail-related documentation to 
contribute, please submit it here:

http://sourceforge.net/docman/?group_id=85937

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] vpopmail 5.2.2 beta available

2003-08-14 Thread Tom Collins
Michael Bowe has taken the time to back-port many of the bugfixes from 
the 5.3 series to 5.2.1.  We have a tentative release of 5.2.2 
available on the SourceForge site (as vpopmail-beta) for those who want 
to test it out.

http://sourceforge.net/projects/vpopmail/

Release Notes:

This is a beta release of 5.2.2.  It has not been thoroughly
tested, so it isn't quite stable yet.  It includes backports of
many bugfixes from the 5.3 series, and will ultimately replace
5.2.1.
After some people have tested it on non-production machines,
we will reclassify it as stable.
Change Log:

5.2.2   Michael Bowe [EMAIL PROTECTED]
 - Back ported these fixes from 5.3.23 and earlier for an interim
   stable release :
   vmysql.h
 - fix missing backslashes [5.3.21]
 - fix for logging being too verbose [5.3.14]
   vcdb.c
 - vset_lastauth() - fix for unchecked return of vauth_getpw()
   [5.3.17]
   vldap.c
 - vset_lastauth() - fix for unchecked return of vauth_getpw()
   [5.3.24]
   vchkpw.c
 - fix buffer overflows USER/HOME [5.3.22]
 - fix exit codes for NO_POP [5.3.7]
 - fix mysql logging being too verbose [5.3.14]
   vpopmail.c
 - replace parse_email() to fix courier/sqwebmail authdaemon
   problems [v5.3.5]
 - vgetent() - support for old vpaddwd files without cleartext
   field [5.3.20]
 - vset_default_domain() - support courier's IPv6 TCPLOCALIP
   [5.3.12]
   vdelivermail.c
 - main() - add support for autoresoponder's error 99 and 100
   [5.3.9]
 - process_valias() - catch error on return from deliver_mail()
   [5.3.21]
 - deliver_mail() - Process progs before maildirs [5.3.10],
   Add support for comments [5.3.21]
 - check_forward_deliver() - add support for comments [5.3.21]
 - usernotfound() - replace with newer version to handle
   catchalls etc [5.3.21]
 - maildirtoemail() - fix to handle hashed userdirs [v5.3.22]
   vpopbull.c
 - replace with newest version [5.3.17]
   vconvert.c
 - replace with newest versions [5.3.23]
   cdb_seek.c
 - remove extern int errno [5.3.24]
 - replace qmail-pop3d-maildirquota.patch with qmail-maildir++.patch

 - update ChangeLog




Re: [vchkpw] Vpopmail and openbsd

2003-08-14 Thread Tom Collins
On Sunday, August 10, 2003, at 04:19  PM, Brad wrote:
I am trying to install vpomail on openbsd 3.3. I have installed many 
times
on various flavours of linux with no issue.
That problem was fixed in 5.3.24.

http://sourceforge.net/projects/vpopmail/

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Authentication failed..

2003-08-14 Thread Tom Collins
On Wednesday, August 6, 2003, at 01:38  PM, Doug Clements wrote:
Yet again, the problem is with vpopmail.

Solution: Fix vpopmail.
This was fixed around release 5.3.5 (according to Michael Bowe's 
research), and vpopmail 5.3.20 and later should work fine with 
authdaemon.  If it doesn't, then we need more information as to when it 
fails.

Michael is working on a 5.2.2 release that backports major bugfixes 
from the 5.3 series.  We hope to have a 5.4 release (i.e., a stable 5.3 
release) of vpopmail ready by the end of August.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] .qmail

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 06:52  AM, Flavio Caetano wrote:
if I create a .qmail file under /home/vpopmail/domains/teste.com/teste 
that
cointains [EMAIL PROTECTED] this redir doesn't work
What does /home/vpopmail/domains/teste.com/.qmail-default look like?

Is [EMAIL PROTECTED] a real user account, with a password?

The way delivery works, qmail-local finds 
domains/teste.com/.qmail-teste and handles delivery.  Without 
.qmail-teste, it goes to .qmail-default which should contain 
vdelivermail.  vdelivermail checks for a user account, and if one 
exists, delivers the email to it (processing its .qmail file if 
necessary).

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] postgres

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 04:15  PM, VeNoMouS wrote:
erm 5.3.24?? the latest dev is 5.3.23, and when you --enable-postgres=y, vauth.c symlinks to voracle.c not vpgsql.c

The latest is 5.3.24 and includes a patch to fix that.

http://sourceforge.net/projects/vpopmail/

Hopefully Ken will update the Inter7 site soon to avoid future confusion related to new releases.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] vadddomain issues

2003-08-14 Thread Tom Collins
On Wednesday, August 13, 2003, at 03:19  PM, David Gibbons wrote:
[EMAIL PROTECTED] [/var/qmail/vpop/bin] # ./vadddomain 
frenchclasses.com
Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/domains/domain directory

I've no idea where to trouble shoot this.. google is comming up empty 
of solutions/reasons.. i've triede reinstalling anyone have any 
ideas? i can provide more information obvious but i don't know else 
would be helpful
What version of vpopmail?  What were your configuration options?

What is the home directory of the vpopmail user on your server?  (grep 
vpopmail /etc/passwd)

vadddomain, on a default install, will try to create the domain as

~vpopmail/domains/frenchclasses.com

It appears that the home directory entry in /etc/passwd is incorrect.  
It hsould probably be something like /home/vpopmail or, in your case, 
/var/qmail/vpop.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] New list, vpopmail-devel

2003-08-14 Thread Tom Collins
By request, I've created vpopmail-devel on SourceForge as a companion list to qmailadmin-devel.  Those of you interested in vpopmail in addition to qmailadmin should probably sign up.  Michael Bowe has been reviewing the source, and we have some work to do.

http://lists.sourceforge.net/mailman/listinfo/vpopmail-devel

The list we be focused on the ongoing development of vpopmail, including discussions on how to implement new features, discussions of bugs, and talk of optimizing or rewriting portions of the source.  It is NOT for questions regarding installation/configuration of vpopmail.  Please continue to use [EMAIL PROTECTED] for those questions.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester

Re: [vchkpw] postgres

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 02:00  PM, VeNoMouS wrote:
has any one actally been able to get vpopmail to work with postgresql yet?

Charles Boening contributed a few postgresql patches for the 5.3.24 release, and I'm assuming that at the very least he has been able to use it.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] Incredibly destructive chmod's in vpopmail's Makefile.am

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 10:36  AM, Adam Hooper wrote:
The Makefile.am would be a lot simpler and less system-intrusive if it 
used the 'install' command instead of mkinstalldirs/cp/chown/chmod.

Would it be more helpful if I wrote up a patch for this? I have hardly 
any time for the next 3 weeks, but figured this issue ought to be 
brought to people's attention as soon as possible.
I would gladly accept such a patch.  This is on the todo list for 
vpopmail, and I'd love to cross it out.

Being able to install vpopmail to /usr/local would be a great 
improvement.  Having it make so many changes to directory ownership and 
permissions is a bad thing.

If you do not have the time, then I'll try to take a look at the 
install command and change Makefile.am to use it instead of the current 
mess of code.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Sorry,_no_mailbox_here_by_that_name

2003-08-14 Thread Tom Collins
On Monday, August 11, 2003, at 01:45  PM, Mike Robin Haller wrote:
main:/var/qmail/control # cat defaultdomain
localhost
main:/var/qmail/control # cat plusdomain
localhost
main:/var/qmail/control # cat me
localhost
main:/var/qmail/control # cat helohost
localhost
That's probably not a good idea.

defaultdomain and plusdomain can go back to being 
haller-systemservice.net without impacting mail delivery, me and 
helohost should be the fully qualified name of the server (like 
fred.haller-systemservice.net) -- something that will resolve to the 
server's IP address, but not what you use in virtual domain email 
addressing.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] what are qmail address extensions?

2003-08-20 Thread Tom Collins
On Wednesday, August 20, 2003, at 10:30  AM, Benjamin Tomhave wrote:
Or is this something completely different?
My understanding is that with address extensions enabled, mail sent to 
[EMAIL PROTECTED] would be delivered to [EMAIL PROTECTED]

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] Re: [qmailadmin] Vpopmail + qmail + courier + imp - IMAP login problem

2003-08-21 Thread Tom Collins
On Wednesday, August 20, 2003, at 11:27  PM, Uljashin Sergey wrote:
I had a similar problem using courier-imap  vpopmail. Try recompiling
courier-imap with '--without-authdaemon' option specified.
The incompatibility with authdaemon should have been fixed around 
5.3.8.  If you compile and install vpopmail 5.3.20, then recompile 
courier, you should not see this happen.

If you do, we'd love to hear about it.  Michael Bowe and I both 
reviewed the code in recent versions and couldn't get it to fail in the 
way described in the original post.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] 5.3.23 vadduser segfaults

2003-08-21 Thread Tom Collins
On Thursday, August 21, 2003, at 01:48  PM, Paul L. Allen wrote:
Any ideas (better still, fixes) would be appreciated.
Please use 5.3.24 from SourceForge 
http://sourceforge.net/projects/vpopmail/.

Ken, please update http://inter7.com/develop.html to point to 
SourceForge for qmailadmin and vpopmail downloads.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] 5.3.23 vadduser segfaults

2003-08-21 Thread Tom Collins
On Thursday, August 21, 2003, at 04:01  PM, Tom Predmore wrote:
	Wouldn't 5.2.2 be better to use rather then 5.3.24?
I'm personally still using 5.3.20 on my production machine (I haven't 
gotten around to upgrading it to 5.3.24 and recompiling courier, 
qmailadmin and qmail-smtp-chkuser).

Has anyone out there upgraded to 5.2.2 from 5.2.1?  I classified it as 
beta on the SourceForge site because we haven't tested it very 
thoroughly.  It is primarily made up of bugfixes ported from the 5.3 
series, but we could have introduced some new problems.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Unable to pop mails

2003-08-24 Thread Tom Collins
On Sunday, August 24, 2003, at 05:16  AM, Tanmaya Anand wrote:
All the domains i have configured are wroking fine via sqwebmail. but i am unable to use it via any email client
like Outlook Express.

Make sure you configure the email client to use the full email address as the username:

POP/IMAP user: [EMAIL PROTECTED]
POP/IMAP server: mail.domain.com

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester


Re: [vchkpw] vpopmail and learn passwords

2003-08-26 Thread Tom Collins
On Tuesday, August 26, 2003, at 08:59  AM, Ken Jones wrote:
It does not work with the cdb module.
Here is what I tested
vpopmail 5.3.21 configured for cdb
1) vadddomain test.com test
vadduser -n [EMAIL PROTECTED]

(adds user test with no password)

Then try logging it and check the ~vpopmail/domains/test.com/vpasswd 
file for the password.

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



[vchkpw] vpopmail 5.3.25 and 5.3.26 released

2003-08-27 Thread Tom Collins
http://sourceforge.net/projects/vpopmail/

Michael Bowe has done some incredible work with cleaning up the 
vpopmail source.  He's added comments and tried to eliminate possible 
buffer overflows throughout most of the codebase.

The 5.3.26 release should be feature-identical to the 5.3.25 release, 
but includes all of Michael's changes.  If you have a problem with 
5.3.26, please test 5.3.25 first to see if the problem was already 
present, or was introduced in Michael's massive update.

Numbers in square brackets refer to the SourceForge Tracker item 
related to the change.

5.3.25 - released 26-Aug-03

More bug fixes, with the following important new features:

1) MySQL settings are now stored in ~vpopmail/etc/vpopmail.mysql
instead of vmysql.h.  Read README.mysql for details.
2) The install process should allow you to install to /usr/local
without totally trashing your other programs.
ChangeLog:

Tom Collins
- Fix code in vdelivermail.c that builds Delivered-To header on
  catchall emails.  (strips domain- from [EMAIL PROTECTED])
  [785604]
- Convert vpgsql.c from DOS to Unix format (strip \r). [785680]
- Modified Makefile.am to allow installs to /usr/local instead
  of /home/vpopmail (uses install, doesn't chmod/chown). [787551]
- Polished vpopmail-5.2-vmysql.patch ported by Oden. [791405]
- If configured to use MySQL, Makefile.am creates a sample
  vpopmail.mysql if one doesn't exist and makes it read/write for
  vpopmail.vchkpw only.
- Added tracker item numbers to ChangeLog for all closed trackers.
- Updated INSTALL and FAQ with links to SourceForge.
Oden Eriksson
- Ported vpopmail-5.2-vmysql.patch to 5.3.24. [778502, 791405]
- Added sparse documentation how to use it.
Justin Heesemann
- Fix vdominfo to show correct domain for alias domains when
  displaying all domains. [785241]
- Add vmoddomlimits program to modify domain limits.  Works
  for both vlimits and .qmailadmin-limits methods.
- Add V_OVERRIDE user flag for users who aren't affected by
  domain limits (.qmailadmin-limits or vlimits).
- Update authentication modules to apply domain limits to users.
  (Currently disabled pending solution to SF BUG 795688.)
Evren Yurtesen
- Add cleartext support to vconvert (when converting MySQL to
  cdb). [785690]
Michael Bowe
- More cleanup in vget_assign() calls. [785735]
- Allow vget_assign() to return real domain when passed alias.
  [785682]
- Fix error messages in vmysql.c. [792959]
---

5.3.26 - released 26-Aug-03

ChangeLog:

Michael Bowe
- Recoding work with the main focus of :
* Ensuring strings are null terminated
* Checking the return value of important function calls
* Eliminating buffer overflow opportunities
* Adding comprehensive comments to source files
  Files that have been reviewed so far :
clearopensmtp.c, vaddaliasdomain.c, vadddomain.c, vadduser.c,
valias.c, vconvert.c, vdeldomain.c, vdeloldusers.c,
vdeluser.c, vdominfo.c, vipmap.c, vkill.c, vlimits.c,
vmkpasswd.c, vmoddomlimits.c, vmoduser.c, vpasswd.c,
vpopbull.c, vpopmail.c, vsetuserquota.c, vuserinfo.c
  Files that still require a review :
vactivedir.c, vcdb.c, vchkpw.c, vdelivermail.c,
vldap.c, vmysql.c, vpalias.c, vpgsql.c, vqmaillocal.c,
vsybase.c
--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



  1   2   3   4   5   6   7   8   9   10   >