surf22
08-17-2005, 12:51 PM
Our goal is to send of copy of certain messages based on the subject to a certain email address. After searching the knowledge base I came up with this which we are using as a simple filter:
forward (email address removed for privacy reasons) sh -c '822field subject | grep -qiFf "/big/dom/xbakercommunications/badsubj.txt"'
Which seems to works fine from a filtering/redirect point of view but occasionally senders to the original address (not using that subject) get the following error:
-----Original Message-----
From: MAILER-DAEMON@lola.futurequest.net
[mailto:MAILER-DAEMON@lola.futurequest.net]
Sent: Wednesday, August 17, 2005 11:30 AM
Subject: failure notice
Hi. This is the qmail-send program at lola.futurequest.net.
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.
<sh@lola.futurequest.net>:
Sorry, no mailbox here by that name. (#5.1.1)
<-c@lola.futurequest.net>:
Sorry, no mailbox here by that name. (#5.1.1)
<822field subject | grep -qiFf
"/big/dom/xbakercommunications/badsubj.txt"@lola.futurequest.net>:
Sorry, no mailbox here by that name. (#5.1.1)
--- Below this line is a copy of the message.
Return-Path: <(email address removed for privacy reasons)>
Received: (qmail 688 invoked by uid 47202); 17 Aug 2005 16:29:50 -0000
Delivered-To: (email address removed for privacy reasons)
Received: (fqmail 8799 invoked from network); 17 Aug 2005 16:29:50 -0000
Received: from mx06.futurequest.net (mx06.futurequest.net [69.5.6.177])
by pt03.futurequest.net ([69.5.6.179])
with FQDP via TCP; 17 Aug 2005 16:29:50 -0000
Received: (qmail 12268 invoked from network); 17 Aug 2005 16:29:50 -0000
Received: from lola.futurequest.net (lola.futurequest.net [69.5.12.2])
by mx06.futurequest.net ([69.5.6.177])
with SMTP via TCP; 17 Aug 2005 16:29:50 -0000
Received: (qmail 1110 invoked from network); 17 Aug 2005 16:29:50 -0000
Received: from bakercommunications.com (bakercommunications.com
[69.5.12.104])
by lola.futurequest.net ([69.5.12.2]); 17 Aug 2005 16:29:50 -0000
Received: from goldsg3h5la5zz ([69.22.3.12])
by bakercommunications.com ([69.5.12.104])
with ESMTP via TCP; 17 Aug 2005 16:29:50 -0000
(email address removed for privacy reasons)Date: Wed, 17 Aug 2005 11:29:48 -0500
Message-ID: <00b301c5a348$e30beeb0$6501a8c0@goldsg3h5la5zz>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_00B4_01C5A31E.FA35E6B0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
This is a multi-part message in MIME format.
------=_NextPart_000_00B4_01C5A31E.FA35E6B0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Am wondering why this is and how to fix it?
forward (email address removed for privacy reasons) sh -c '822field subject | grep -qiFf "/big/dom/xbakercommunications/badsubj.txt"'
Which seems to works fine from a filtering/redirect point of view but occasionally senders to the original address (not using that subject) get the following error:
-----Original Message-----
From: MAILER-DAEMON@lola.futurequest.net
[mailto:MAILER-DAEMON@lola.futurequest.net]
Sent: Wednesday, August 17, 2005 11:30 AM
Subject: failure notice
Hi. This is the qmail-send program at lola.futurequest.net.
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.
<sh@lola.futurequest.net>:
Sorry, no mailbox here by that name. (#5.1.1)
<-c@lola.futurequest.net>:
Sorry, no mailbox here by that name. (#5.1.1)
<822field subject | grep -qiFf
"/big/dom/xbakercommunications/badsubj.txt"@lola.futurequest.net>:
Sorry, no mailbox here by that name. (#5.1.1)
--- Below this line is a copy of the message.
Return-Path: <(email address removed for privacy reasons)>
Received: (qmail 688 invoked by uid 47202); 17 Aug 2005 16:29:50 -0000
Delivered-To: (email address removed for privacy reasons)
Received: (fqmail 8799 invoked from network); 17 Aug 2005 16:29:50 -0000
Received: from mx06.futurequest.net (mx06.futurequest.net [69.5.6.177])
by pt03.futurequest.net ([69.5.6.179])
with FQDP via TCP; 17 Aug 2005 16:29:50 -0000
Received: (qmail 12268 invoked from network); 17 Aug 2005 16:29:50 -0000
Received: from lola.futurequest.net (lola.futurequest.net [69.5.12.2])
by mx06.futurequest.net ([69.5.6.177])
with SMTP via TCP; 17 Aug 2005 16:29:50 -0000
Received: (qmail 1110 invoked from network); 17 Aug 2005 16:29:50 -0000
Received: from bakercommunications.com (bakercommunications.com
[69.5.12.104])
by lola.futurequest.net ([69.5.12.2]); 17 Aug 2005 16:29:50 -0000
Received: from goldsg3h5la5zz ([69.22.3.12])
by bakercommunications.com ([69.5.12.104])
with ESMTP via TCP; 17 Aug 2005 16:29:50 -0000
(email address removed for privacy reasons)Date: Wed, 17 Aug 2005 11:29:48 -0500
Message-ID: <00b301c5a348$e30beeb0$6501a8c0@goldsg3h5la5zz>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_00B4_01C5A31E.FA35E6B0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
This is a multi-part message in MIME format.
------=_NextPart_000_00B4_01C5A31E.FA35E6B0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Am wondering why this is and how to fix it?