qmail + vpopmail 5.3.12 + qmailadmin 1.0.6

With the following pop accounts already set up:
    [EMAIL PROTECTED]
    [EMAIL PROTECTED]

I used QmailAdmin to create the following aliases in the domain
breathsense.com:

    kurt => kurt, test
    test => test

Since QmailAdmin does not permit creating a pop account with the same name
as an existing alias, I'm not sure whether doing the reverse like this is
well-advised, even though QmailAdmin permits it.  Any opinions?  Perhaps a
newer version of vpopmail or QmailAdmin even prevents this.

In any case I've found this very useful for testing some filtering in the
test account, by providing it a stream of real mail from the kurt account
(via the kurt => test alias).  The "test" alias provides the .qmail-test
file in which I can hack in the mail filtering scheme that I am testing.

In the course of doing this I discovered a problem caused by qmail's
loop-prevention rule.  Quoting from the qmail-local man page:

> If exactly the same Delivered-To: [EMAIL PROTECTED] already appears in the 
> header,
> qmail-local bounces the message, to prevent mail forwarding loops.

The problem is that if I resend a message from [EMAIL PROTECTED] to the
same account (an occasionally useful thing to do) it bounces due to the
looping rule:

> Hi. This is the qmail-send program at vps.breathsense.com.
> I'm afraid I wasn't able to deliver your message to the following addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> 
> <[EMAIL PROTECTED]>:
> This message is looping: it already has my Delivered-To line. (#5.4.6)
> 
> --- Below this line is a copy of the message.
> 
> Return-Path: <[EMAIL PROTECTED]>
> Received: (qmail 23011 invoked from network); 31 Mar 2005 07:41:30 -0000
> Received: from unknown (HELO ?192.168.1.67?) (24.5.192.77)
>   by vps.breathsense.com with SMTP; 31 Mar 2005 07:41:30 -0000
> Return-Path: <[EMAIL PROTECTED]>
> Delivered-To: [EMAIL PROTECTED]
> Received: (qmail 94328 invoked from network); 30 Mar 2005 23:30:44 -0000
> Received: from unknown (HELO cnmat.berkeley.edu) (128.32.122.12)
>   by vps.breathsense.com with SMTP; 30 Mar 2005 23:30:44 -0000

On the other hand I can do the same thing all day using the
[EMAIL PROTECTED] account, as the double-stacked "Delivered-To:
[EMAIL PROTECTED]" here confirms:

> Return-Path: <[EMAIL PROTECTED]>
> Delivered-To: [EMAIL PROTECTED]
> Received: (qmail 23869 invoked from network); 31 Mar 2005 07:52:10 -0000
> Received: from unknown (HELO ?192.168.1.67?) (24.5.192.77)
>   by vps.breathsense.com with SMTP; 31 Mar 2005 07:52:10 -0000
> Return-Path: <[EMAIL PROTECTED]>
> Delivered-To: [EMAIL PROTECTED]
> Received: (qmail 23818 invoked from network); 31 Mar 2005 07:51:25 -0000
> Received: from unknown (HELO ?192.168.1.67?) (24.5.192.77)
>   by vps.breathsense.com with SMTP; 31 Mar 2005 07:51:25 -0000

This suggests that the looping rule in the man page is described
incompletely.  It seems obvious that the difference between the behavior for
kurt and for kkb has to do with the alias structure I created.  I assume it
depends in some specific way on how the message hits what kind of dot-qmail
files.

Does anyone understand this?

The reason I care so much is that I am creating a spam filter that is
end-user-trainable via pop access, and the training interface depends on
being able to resend-to-self.  Meanwhile enabling the filter for account
blah will probably depend on having a .qmail-blah file in order to run the
filter, and I want to know now if I am in big trouble here because blah
resend to blah will be rejected due to the looping rule.

Thanks for any help.

-Kurt Bigler

Reply via email to