Re: [vchkpw] Re: strange behaviour in local delivery

2004-03-04 Thread Jan Reilink
Maurice Snellen wrote:

On Thursday, February 26, 2004 at 11:46 Jan Reilink wrote:
[local delivery, catch-all, forwards]
Is this a known issue, is there a solution?
The problem is that you are setting the catchall for example.com to a
postmaster address.
As you are probably aware, upon creating a domain with vadddomain,
there is one e-mail account which is always created and cannot be
deleted with qmailadmin: postmaster.
What you need to be aware of, is that the catch-all only works for
e-mail sent to addresses within a domain that are _NOT_ already
defined as forwards or regular accounts. Thus, your setup will always
fail as the postmaster account is always there.
Yes, but what about:
:/var/vpopmail/domains/example.com# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
:/var/vpopmail/domains/anotherexample.com# cat .qmail-postmaster
[EMAIL PROTECTED]
?

Email sent directly to [EMAIL PROTECTED] is nicely forwarded 
to [EMAIL PROTECTED], but email sent to [EMAIL PROTECTED] (which is caught 
by the catch-all [EMAIL PROTECTED]) is delivered locally to 
this Maildir.

In our system, postmaster@ is a normal emailaddress which can be used by 
the customer.

You could remedy this by setting the catch-all address of example.com
to an non-existant address in example2.com, such as
[EMAIL PROTECTED]
True, I already knew about this solution but it doesn't fit in our 
system, because it involves manually adding and editing dot-qmail files 
(trust me, you don't want to do this for +20.000 virtual domains :-)

Someone on the qmail mailinglist answerd:
http://marc.theaimsgroup.com/?l=qmailm=107824934618016w=2
q
Update vpopmail to ver. 5.2.2 and it will magically work, I
ran into this last weekend.
/q
I'll test with vpopmail ver 5.2.2. when this server goes live on March 
13, unfortunaly I can't test it sooner.

Anyway, thanks for your answer.

--
Met vriendelijke groet / Best regards,
Jan Reilink, VEVIDA Nederland BV
Postbus 329, 9700 AH GRONINGEN, +31(0)50 - 5492234



Re: [vchkpw] Re: strange behaviour in local delivery

2004-03-04 Thread Jan Reilink
Maurice Snellen wrote:

On Thursday, March 04, 2004 at 12:20 Jan Reilink wrote:

Yes, but what about:
:/var/vpopmail/domains/example.com# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]

:/var/vpopmail/domains/anotherexample.com# cat .qmail-postmaster
[EMAIL PROTECTED]
As long as /var/vpopmail/domains/anotherexample.com/postmaster exists,
this will not work as it has preference over the .qmail-postmaster
file.
Thanks, this clarifies a lot.

--
Met vriendelijke groet / Best regards,
Jan Reilink, VEVIDA Nederland BV
Postbus 329, 9700 AH GRONINGEN, +31(0)50 - 5492234



[vchkpw] strange behaviour in local delivery

2004-02-26 Thread Jan Reilink
Hi list,

I hope this is the correct list, I have no idea whether this is a qmail 
or vpopmail issue. Please direct me to the right list, if I'm wrong here.

On our mailserver, qmail 1.03 / vpopmail 5.2.1, we host multiple virtual 
domains and some customers would like to forward their email- and/or 
catch-all address to a different domain, but if we host that domain too, 
the email gets delivered locally (say, it's placed into the directory on 
 file system level instead of going to the queue) and the dot-qmail 
files aren't read/used.

Example:
User example.com sets his catch-all address to [EMAIL PROTECTED], 
so all email (except [EMAIL PROTECTED]) is forwarded to 
[EMAIL PROTECTED] Example2.com has a .qmail-postmaster file which 
forwards all email for [EMAIL PROTECTED] to [EMAIL PROTECTED]
What we are experiencing:
	* All email directly send to [EMAIL PROTECTED] is
	  forwarded to [EMAIL PROTECTED]
	* All email send to [EMAIL PROTECTED] will be caught by the
	  catch-all and is send to [EMAIL PROTECTED], but
	  then it is *not* forwarded to [EMAIL PROTECTED]

/var/vpopmail/domains/example.com# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
/var/vpopmail/domains/example2.com# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
Is this a known issue, is there a solution? If you need more information 
about the setup, versions, etc, just let me know.
On a small note: This mailserver will be replaced with a new cluster, 
installed with qmail-1.03 / vpopmail 5.2.2.

--
Met vriendelijke groet / Best regards,
Jan Reilink, VEVIDA Nederland BV
Postbus 329, 9700 AH GRONINGEN, +31(0)50 - 5492234



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

2003-10-09 Thread Jan Reilink
Justin Heesemann wrote:

[/var/vpopmail/domains/[0-9]/ dir, limit?]
 well, i have this from the source (bigdir.c).
 it looks like the maximum of users/domains per directory is 100 (it's
 defined in vauth.h : MAX_USERS_PER_LEVEL 100)
[...]
 so, i assume, in your case, you have at least 173 different system users
 with an average of almost 100 domains per user.

We have only one system user for vpopmail: vpopmail (group: vchkpw) and all 
domains are added with 'vadddomain domain.com'.

vauth.h:
#define MAX_DIR_LEVELS3
#define MAX_USERS_PER_LEVEL 100
#define MAX_DIR_NAME  300
typedef struct {
int level_cur;
int level_max;
int level_start[MAX_DIR_LEVELS];
int level_end[MAX_DIR_LEVELS];
int level_mod[MAX_DIR_LEVELS];
int level_index[MAX_DIR_LEVELS]; /* current spot in dir list */
long unsigned cur_users;
char the_dir[MAX_DIR_NAME];
} vdir_type;
#define MAX_DIR_LIST 62

config.h:
#define VPOPUSER vpopmail
#define VPOPGROUP vchkpw
#define VPOPMAILDIR /var/vpopmail
#define DOMAINS_DIR domains
/* Version number of package */
#define VERSION 5.2.1
--
Met vriendelijke groet / Best regards,
Jan Reilink
VEVIDA Nederland BV




Re: [vchkpw] vpopmail : forwarding a catch-all to an external address

2003-03-14 Thread Jan Reilink
Hello Jonas,

Jonas Pasche wrote:
Hi Jan,


I've asked this same question before, but I haven't received an 
answer/solution yet.
The following problem occurs when a catch-all should be forwarded to an 
external address : The email is only delivered locally to the catch-all 
account.


Where does it actually get delivered, as there isn't a i-am-a-test
account in reality?

There is no i-am-a-test account. The email gets delivered to the 
catch-all account (postmaster), which is correct.
But when postmaster receives the email, it should be forwarded to the 
named emailaddresses, and this doesn't happen.

See also these headers:
Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 15637 invoked by uid 0); 13 Mar 2003 15:18:39 -
Received: from post-21.mail.nl.demon.net (194.159.73.20)
  by net3-nl-mail-03.ad.vevida.net with SMTP; 13 Mar 2003 15:18:39 -
Received: from [212.238.190.175] (helo=vevida.nl)
by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1)
id 18tUaI-000Lz3-00
for [EMAIL PROTECTED]; Thu, 13 Mar 2003 15:25:30 +
Message-ID: [EMAIL PROTECTED]
Date: Thu, 13 Mar 2003 16:25:30 +0100
From: Jan Reilink [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) 
Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  [EMAIL PROTECTED]
Subject: Test
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

[EMAIL PROTECTED]:/var/vpopmail/domains/groenen.nl# ls -la
total 352
drwx--5 vpopmail vchkpw   4096 Feb 27 21:53 ./
drwx--  13630 vpopmail vchkpw 331776 Mar 13 14:02 ../
-rw---1 vpopmail vchkpw 58 Jul 23  2002 .qmail-default
-rw---1 vpopmail vchkpw 71 Feb 27 21:53 .qmail-postmaster
drwx--3 vpopmail vchkpw   4096 Aug  4  2002 kantoor/
drwx--3 vpopmail vchkpw   4096 Dec  4  2001 postmaster/
drwx--3 vpopmail vchkpw   4096 Jul 25  2002 vakantie/


There are two files missing: vpasswd and vpasswd.cdb. Probably this is
the reason for a strange behaviour of vdelivermail (which should be use
better error-catching, if this is really the case).
vpasswd is in:
[EMAIL PROTECTED]:/var/vpopmail/bin# ls -la vpasswd
-rwx--x--x1 vpopmail vchkpw 133677 Feb  6 01:09 vpasswd*
There is no vpasswd.cdb file on our server, we use mySQL for authentication.

I'd suggest deleting and recreating the three users, or restoring
vpasswd[.cdb] from a recent backup.

I'll delete -just got approval from the customer- the account 
(vdeldomain) to recreate it (vadddomain) and see what happens then.

Thanks :).

--
Met vriendelijke groet / Best regards,
Jan Reilink



Re: [vchkpw] vpopmail : forwarding a catch-all to an external address

2003-03-14 Thread Jan Reilink
Jan Reilink wrote:
 
Jonas Pasche wrote:
[...]
I'd suggest deleting and recreating the three users, or restoring
vpasswd[.cdb] from a recent backup.
I'll delete -just got approval from the customer- the account 
(vdeldomain) to recreate it (vadddomain) and see what happens then.


That was a no go... :(

I've completely removed the account and recreated everything as it was:

[EMAIL PROTECTED]:/var/vpopmail/domains/groenen.nl# ls -la
total 352
drwx--5 vpopmail vchkpw   4096 Mar 14 09:35 ./
drwx--  13637 vpopmail vchkpw 331776 Mar 14 09:33 ../
-rw---1 vpopmail vchkpw 58 Mar 14 09:35 .qmail-default
-rw---1 vpopmail vchkpw 71 Mar 14 09:35 .qmail-postmaster
drwx--3 vpopmail vchkpw   4096 Mar 14 09:35 kantoor/
drwx--3 vpopmail vchkpw   4096 Mar 14 09:33 postmaster/
drwx--3 vpopmail vchkpw   4096 Mar 14 09:34 vakantie/
[EMAIL PROTECTED]:/var/vpopmail/domains/groenen.nl# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
[EMAIL PROTECTED]:/var/vpopmail/domains/groenen.nl# cat .qmail-postmaster
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
I sent an email to [EMAIL PROTECTED] and it was only 
dropped in /var/vpopmail/domains/groenen.nl/postmaster/Maildir/new

Headers:

Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 15703 invoked by uid 0); 14 Mar 2003 08:45:30 -
Received: from post-20.mail.nl.demon.net (194.159.73.1)
  by net3-nl-mail-03.ad.vevida.net with SMTP; 14 Mar 2003 08:45:30 -
Received: from [212.238.190.175] (helo=vevida.nl)
by post-20.mail.nl.demon.net with esmtp (Exim 3.36 #1)
id 18tkvP-000Gzn-00
for [EMAIL PROTECTED]; Fri, 14 Mar 2003 08:52:23 +
Message-ID: [EMAIL PROTECTED]
Date: Fri, 14 Mar 2003 09:52:25 +0100
From: Hostmaster VEVIDA Services BV [EMAIL PROTECTED]
Organization: VEVIDA Services BV
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) 
Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  [EMAIL PROTECTED]
Subject: [Fwd: VEVIDA Test]
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Logfile:

Mar 14 09:45:30 net3-nl-mail-03 qmail: 1047631530.341288 new msg 2065800
Mar 14 09:45:30 net3-nl-mail-03 qmail: 1047631530.341358 info msg 
2065800: bytes 2239 from [EMAIL PROTECTED] qp 15703 uid 0
Mar 14 09:45:30 net3-nl-mail-03 qmail: 1047631530.351306 starting 
delivery 1134124: msg 2065800 to local [EMAIL PROTECTED]
nl
Mar 14 09:45:30 net3-nl-mail-03 qmail: 1047631530.351404 status: local 
1/10 remote 6/20
Mar 14 09:45:30 net3-nl-mail-03 qmail: 1047631530.362926 delivery 
1134124: success: did_0+0+1/
Mar 14 09:45:30 net3-nl-mail-03 qmail: 1047631530.363386 status: local 
0/10 remote 6/20
Mar 14 09:45:30 net3-nl-mail-03 qmail: 1047631530.363465 end msg 2065800

There is no evidence in my logs that something else happend with this 
email, this is all there is to find about this email.
Why is there no line that the email was delivered to [EMAIL PROTECTED]

As far as I can see, all the file/directory permissions are correct, 
linebreaks are present where they're needed (in the dot-qmail files).

[EMAIL PROTECTED]:/var/vpopmail/include# cat vpopmail_config.h
/* Name of package */
#define PACKAGE vpopmail
/* Version number of package */
#define VERSION 5.2.1
Could it be a bug in vpopmail or am I missing something completely?

--
Met vriendelijke groet / Best regards,
Jan Reilink



Re: [vchkpw] vpopmail : forwarding a catch-all to an external address

2003-03-14 Thread Jan Reilink
Marcus Williams wrote:
On Friday, March 14, 2003, at 09:18, you wrote:

[EMAIL PROTECTED]:/var/vpopmail/domains/groenen.nl# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]


This is probably where you're going wrong (unintentionally) - I
suspect vdelivermail looks up the catchall address in its list of
known users for the current domain, and if it finds one delivers
directly to that users maildir.
Yes, I thought about this too :)
According to the vdelivermail manpage, you have two options:
- A (local) directory to deliver the email to
- An emailaddress to deliver the email to
But I also thought that, when using an emailaddress, it would be 
forwarded instead of dropped of locally.

You can easily fix this by making the catchall address an address
that doesnt exist in your vpopmail domain such as [EMAIL PROTECTED]
and then set up .qmail-catchall to do what you want.

Thanks, this worked :)

[EMAIL PROTECTED]:/var/vpopmail/domains/groenen.nl# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
[EMAIL PROTECTED]:/var/vpopmail/domains/groenen.nl# cat .qmail-catchall
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Logfile:

Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.628239 new msg 2066220
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.628344 info msg 
2066220: bytes 1476 from [EMAIL PROTECTED] qp 23828 uid 0
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.634028 starting 
delivery 1140664: msg 2066220 to local [EMAIL PROTECTED]
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.634131 status: local 
1/10 remote 1/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.652649 new msg 2066252
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.652733 info msg 
2066252: bytes 1580 from [EMAIL PROTECTED] qp 23835 uid 89
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.658032 starting 
delivery 1140665: msg 2066252 to local [EMAIL PROTECTED]
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.658055 status: local 
2/10 remote 1/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.658073 delivery 
1140664: success: did_0+0+1/
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.658275 status: local 
1/10 remote 1/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.658293 end msg 2066220
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.666711 new msg 2066220
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.666814 info msg 
2066220: bytes 1695 from [EMAIL PROTECTED] qp 23837 uid 89
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.674891 starting 
delivery 1140666: msg 2066220 to local [EMAIL PROTECTED]
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.674940 status: local 
2/10 remote 1/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.674957 starting 
delivery 1140667: msg 2066220 to remote [EMAIL PROTECTED]
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.674972 status: local 
2/10 remote 2/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.674991 delivery 
1140665: success: did_0+4+0/qp_23837/
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.675123 status: local 
1/10 remote 2/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.675142 starting 
delivery 1140668: msg 2066220 to local [EMAIL PROTECTED]
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.675160 status: local 
2/10 remote 2/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.675177 starting 
delivery 1140669: msg 2066220 to remote [EMAIL PROTECTED]
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.675192 status: local 
2/10 remote 3/20
Mar 14 11:12:48 net3-nl-mail-03 qmail: 1047636768.675207 end msg 2066252

*makes documentation*
Thanks again :)
--
Met vriendelijke groet / Best regards,
Jan Reilink



[vchkpw] Forwards / Catchall

2003-02-25 Thread Jan Reilink
Hello list,

On the qmail mailinglist they told me to ask here :)

One side note, this is a copy/paste from my email to the qmail 
mailinglist. I have already removed the named files from our server, 
this was only a test case. I do have several users with these problems.

Just now, I noticed that a catch-all which forwards to another address
doesn't work, and I'm unable to figure out why.
# cat .qmail-default
| /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]
# cat .qmail-test-jan
[EMAIL PROTECTED]
De dot-qmail files are not world/group readable, which is fine according
to the qmail-inject manpage:
-rw---1 vpopmail vchkpw 55 Feb 24 13:35 .qmail-default
-rw-r--r--1 root root   20 Feb 24 13:34 .qmail-test-jan
Email send to [EMAIL PROTECTED] gets forwarded to [EMAIL PROTECTED],
which is correct. Email send to [EMAIL PROTECTED] is
delivered only to [EMAIL PROTECTED]
==
Begin headers of a test email to the catchall
==
Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 23575 invoked by uid 0); 24 Feb 2003 12:36:29 -
Received: from post-21.mail.nl.demon.net (194.159.73.20)
   by net3-nl-mail-03.ad.vevida.net with SMTP; 24 Feb 2003 12:36:29 -
Received: from [212.238.190.175] (helo=vevida.nl)
 by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1)
 id 18nHwB-qk-00
 for [EMAIL PROTECTED]; Mon, 24 Feb 2003
12:42:27 +
Message-ID: [EMAIL PROTECTED]
Date: Mon, 24 Feb 2003 13:42:36 +0100
From: Jan Reilink [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1)
Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To:  [EMAIL PROTECTED]
Subject: test 2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
==
End headers of a test email to the catchall
==
==
Begin headers of a test email to test-jan
==
 From [EMAIL PROTECTED]  Mon Feb 24 13:41:01 2003
Return-Path: [EMAIL PROTECTED]
Received: from net3-nl-mail-03.ad.vevida.net
(net3-nl-mail-03.ad.vevida.net [213.244.179.76])
 by havana.dsinet.org (Postfix) with SMTP id 9DCBE46CAB
 for [EMAIL PROTECTED]; Mon, 24 Feb 2003 13:40:56 +0100 (CET)
Received: (qmail 18742 invoked by uid 89); 24 Feb 2003 12:34:47 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 18740 invoked by uid 0); 24 Feb 2003 12:34:47 -
Received: from post-21.mail.nl.demon.net (194.159.73.20)
   by net3-nl-mail-03.ad.vevida.net with SMTP; 24 Feb 2003 12:34:47 -
Received: from [212.238.190.175] (helo=vevida.nl)
 by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1)
 id 18nHuY-RG-00
 for [EMAIL PROTECTED]; Mon, 24 Feb 2003 12:40:46 +
Message-ID: [EMAIL PROTECTED]
Date: Mon, 24 Feb 2003 13:40:55 +0100
From: Jan Reilink [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1)
Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: Test
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
==
End headers of a test email to test-jan
==
Thanks in advance for any help.

--
Met vriendelijke groet / Best regards,
Jan Reilink



[vchkpw] differences mysql user-table in vpopmail versions 4.9.10 and 5.2.1?

2002-11-01 Thread Jan Reilink
[Let's hope this is the correct mailinglist, I'm new here]

Unable to find an answer on the Net, I'm trying here. Is there a 
difference in the mysql user-table between the vpopmail versions 4.9.10 
and 5.2.1?

We are trying to install a new mailserver running qmail and vpopmail and 
doing so we tried to copy the database 1 on 1 to the new server. After 
we did this and tried to telnet to localhost:110 we got a table 
structure error[1].

We have approx. 10,000 virtual domains with a possible 100,000 users (10 
POP accounts per domain), so you can understand our problem :)
Did anyone else encounter this problem? If yes, how did you/he/she solve 
this?
I noticed there is a 17 pages Changelog between these versions, so it 
wouldn't suprise me if there has changed something in the databse :)

The domain dsinet.be (my test domain :) is already running on the new 
mailserver, telnetting to it gives me this:
	telnet pop.dsinet.be 110
	user mynamedsinet.be
	+OK
	pass my_pass
	vmysql: sql error[3]: Unknown column 'pw_clear_passwd' in
	'field list'
	-ERR authorization failed
	Connection closed by foreign host.

Thanks in advance for any pointers/urls/help.

--
Best regards,

Jan reilink
VEVIDA Services