At 05:59 AM 2/20/2009, Charles Marcus wrote:
internet > postfix > spamassassin > postfix > delivery

The vacation auto-response (reply) doesn't get generated until AFTER the
inbound message is delivered. Up to the 'delivery' point above, the
message is the SAME message, and should have the same messageID and
headers (with additional x-spam header(s) after it passes through
spamassassin). So, the x-spam headers SHOULD still be present in the
message when it hits the deliver agent, thus vacation.pl should NOT send
an auto-response.

Let's try a different approach. Let's say a user, spamt...@example.com, sends mail to a user test...@example.com, which includes the GTUBE sting (guaranteed to make it flag as spam). test...@example.com has vacation turned on. test...@example.com received the following mail, with headers:

Return-Path: <spamt...@example.com>
Delivered-To: test222+s...@example.com
Received: from localhost (example.com [127.0.0.1])
     by example.com (Postfix) with ESMTP id BE51CEFD0B
     for <test222+s...@example.com>; Fri, 20 Feb 2009 10:21:15 -0500 (EST)
X-Virus-Scanned: amavisd-new at itmstitle.com
X-Spam-Flag: YES
X-Spam-Score: 1000.366
X-Spam-Level: ****************************************************************
X-Spam-Status: Yes, score=1000.366 tagged_above=-999 required=4.3
     tests=[ALL_TRUSTED=-1.44, GTUBE=1000, SUBJ_ALL_CAPS=1.806]
Received: from example.com ([127.0.0.1])
     by localhost (example.com [127.0.0.1]) (amavisd-new, port 10024)
     with ESMTP id 8K6Gqx7TxL5z; Fri, 20 Feb 2009 10:21:15 -0500 (EST)
Received: from example.com (example.com [127.0.0.1])
     by example.com (Postfix) with ESMTP id 7914FEFCFC
     for <test...@example.com>; Fri, 20 Feb 2009 10:21:15 -0500 (EST)
Received: from 216.27.12.114
     (SquirrelMail authenticated user spamt...@example.com)
     by example.com with HTTP;
     Fri, 20 Feb 2009 10:21:15 -0500 (EST)
Message-ID: <250ceda0860d9492b70a55c807d3a3c6.squir...@example.com>
Date: Fri, 20 Feb 2009 10:21:15 -0500 (EST)
Subject: ***SPAM*** SPAM TEST OF RECIPIEINT
From: spamt...@example.com
To: test...@example.com
User-Agent: SquirrelMail/1.4.17
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal


It includes all the X-Spam headers appropriately. spamt...@example.com receives the following headers from the autoreply indicating that test222 is on vacation:

Return-Path: <test...@example.com>
Delivered-To: spamt...@example.com
Received: from localhost (example.com [127.0.0.1])
     by example.com (Postfix) with ESMTP id E7AF1EFD09
     for <spamt...@example.com>; Fri, 20 Feb 2009 10:19:17 -0500 (EST)
X-Virus-Scanned: amavisd-new at itmstitle.com
X-Spam-Flag: NO
X-Spam-Score: -1.44
X-Spam-Level:
X-Spam-Status: No, score=-1.44 tagged_above=-999 required=4.3
     tests=[ALL_TRUSTED=-1.44]
Received: from example.com ([127.0.0.1])
     by localhost (example.com [127.0.0.1]) (amavisd-new, port 10024)
     with ESMTP id c8Kzz9s50AKS for <spamt...@example.com>;
     Fri, 20 Feb 2009 10:19:17 -0500 (EST)
Received: from example.com (example.com [127.0.0.1])
     by example.com (Postfix) with SMTP id 925B4EFCFC
     for <spamt...@example.com>; Fri, 20 Feb 2009 10:19:17 -0500 (EST)
Subject: Out of Office
Date: Fri, 20 Feb 2009 10:19:17 -0500
X-Loop: Postfix Admin Virtual Vacation
Mime-Version: 1.0
Precedence: junk
Content-Type: text/plain; charset=UTF-8
To: spamt...@example.com
Content-Transfer-Encoding: base64
From: test...@example.com
Message-Id: <20090220151917.925b4ef...@example.com>


That should at least show all the headers.

Now back to my recipient_delimiter question. Can I configure postfix so that it doesn't filter mail through vacation (as defined in master.cf)

smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
vacation unix - n n - - pipe flags=DRhu user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient}
amavisd-new unix  -     -        n        -     2        smtp
        -o smtp_data_done_timeout=1200s
        -o disable_dns_lookups=yes
127.0.0.1:10025  inet   n  -     n        -     -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
dovecot unix    -       n       n       -       -      pipe
flags=DR user=vuser:vuser argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${us...@${nexthop} -n -m ${extension}





Reply via email to