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 Marcus Williams
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.

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.

Marcus

--
Marcus Williams - http://www.onq2.com
Quintic Ltd, 39 Newnham Road, Cambridge, UK




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