procmail
[Top] [All Lists]

FROM_MAILER Problems I think

1999-03-12 12:14:01
I have an autoresponder set up to respond to "send <filename>" requests
in the Subject: line. However, before the autoresponder (autoresp.rc)
recipe takes over, I have a startup recipe (startup.rc) to pass my
administrative mail to separate folders...

#
# Pass special admin mail to my ACCMAIL folder
# Subject:      ACCMAIL: xxxxx(_at_)xxxxx(_dot_)COM joined the list
# Subject:      ACCMAIL: xxxxx(_at_)xxxxx(_dot_)COM left the list
# Need to setup a file to accumulate and count adds/deletes
# This recipe must come before the next two to prevent me seeing it
#
:0:
* ! ^Subject:.*ACCMAIL: approval required
* ^Subject:.*ACCMAIL:
| $FORMAIL -A"X-Sorted: ACCMAIL" >>$ACCMAIL

#
# Pass approved to my APPROVED (OKs) folder
# Subject:      Re: ACCMAIL: approval required (B27FD8B2)
# This recipe must come before the next one to prevent me seeing it
# Eventually send to dev/null
#
:0:
* ^Subject:.*Re: ACCMAIL: approval required
| $FORMAIL -A"X-Sorted: APPROVED" >>$APPROVED

# Pass bounced mail and mail from admin accounts directly to mailbox
# Skips UUCP users asking for accmail.ua - NEED TO FIX
# Skips some users with a Mailer-Daemon in their address - NEED TO FIX
#
:0:
* (^FROM_MAILER|\
   ^From.*[^0-9A-Za-z]abuse@|\
   ^From.*[^0-9a-zA-Z]spam@)
| $FORMAIL -A"X-Sorted: Admin" >>$DEFAULT

# If it is in Reply to something, probably OK, so pass it thru
# This actually works very well, most spammers don't use a Re:
# Only have received one on 07Feb97
:0:
* ^Subject:.*Re:
$DEFAULT

Here are the messages that passed through to my Admin mail folder and
that didn't get later processing by my autoresponder.
I presume this one was sent to my Admin folder because of the
Mailer-Daemon in the return path...

Return-Path: <Mailer-Daemon(_at_)kaau(_dot_)edu(_dot_)sa>
Received: from relay.kacst.edu.sa (ns1.kacst.edu.sa [198.77.88.3])
        by mail.netcom.com (8.8.5-r-beta/8.8.5/(NETCOM v1.02)) with ESMTP id
CAA03768
        for <gboyd(_at_)NETCOM(_dot_)COM>; Mon, 8 Feb 1999 02:06:04 -0800 (PST)
Received: from ns1.kaau.edu.sa 
(IDENT:root(_at_)ns1(_dot_)kaau(_dot_)edu(_dot_)sa
[198.77.102.44])
        by relay.kacst.edu.sa (8.9.1/8.9.1) with ESMTP id MAA25002
        for <gboyd(_at_)NETCOM(_dot_)COM>; Mon, 8 Feb 1999 12:54:14 -0300 (GMT)
Received: from kaau.edu.sa (mailhub [128.40.4.43]) by ns1.kaau.edu.sa
(8.8.7/8.7.3) with SMTP id KAA18621 for <gboyd(_at_)NETCOM(_dot_)COM>; Mon, 8 
Feb
1999 10:01:33 -0300
Received: from SAKAAU03.KAAU.EDU.SA by kaau.edu.sa (SMI-8.6/SMI-SVR4)
        id NAA05273; Mon, 8 Feb 1999 13:09:34 +0300
Message-Id: <199902081009(_dot_)NAA05273(_at_)kaau(_dot_)edu(_dot_)sa>
Received: from KAAU.EDU.SA by SAKAAU03.KAAU.EDU.SA (IBM VM SMTP V2R3)
   with BSMTP id 8152; Mon, 08 Feb 99 13:05:17 G+3
Received: from KAAU.EDU.SA (NJE origin ZCS3930(_at_)SAKAAU03) by KAAU.EDU.SA
(LMail V1.2a/1.8a) with BSMTP id 1391; Mon, 8 Feb 1999 13:05:17 +0300
Date:         Mon, 08 Feb 99 13:05:04 G+3
From: ZCS3930(_at_)kaau(_dot_)edu(_dot_)sa
Subject:      send accmail.faq
To: gboyd(_at_)NETCOM(_dot_)COM
X-Sorted: Admin
X-UIDL: 8901219d62c917d82dc59fff6f5efe9c
 
Another type that slips through are UUCP addresses in the Soviet Union

Return-Path: <ksma(_dot_)kharkov(_dot_)ua!uucp(_at_)ksma(_dot_)kharkov(_dot_)ua>
Received: from dune.kharkiv.net (dune.kharkiv.net [194.44.156.50])
        by mail.netcom.com (8.8.5-r-beta/8.8.5/(NETCOM v1.02)) with ESMTP id
FAA21894
        for <gboyd(_at_)netcom(_dot_)com>; Fri, 5 Feb 1999 05:09:00 -0800 (PST)
Received: from ksma.UUCP (uucp(_at_)localhost)
        by dune.kharkiv.net (8.8.8-MVC/8.8.8/dune) with UUCP id PAA23926
        for gboyd(_at_)netcom(_dot_)com; Fri, 5 Feb 1999 15:08:03 +0200 (EET)
        (envelope-from 
ksma(_dot_)kharkov(_dot_)ua!uucp(_at_)ksma(_dot_)kharkov(_dot_)ua)
Received: by ksma.kharkov.ua (UUPC/@ v7.00, 07Jan97)
          id AA04603; Thu, 28 Jan 1999 08:03:50 GMT (EET)
To: gboyd(_at_)netcom(_dot_)com
Message-Id: <AFc9zSwS4E(_at_)ksma(_dot_)kharkov(_dot_)ua>
Organization: ksma
From: "Kharkov" <anep(_at_)ksma(_dot_)kharkov(_dot_)ua>
Date: Thu, 28 Jan 1999 08:03:50 +0300 (MSK)
X-Mailer: dMail [Demos Mail for DOS v2.04d]
Subject: send accmail.ua
MIME-Version: 1.0
Lines: 1
Content-Type: text/plain; charset=us-ascii
X-Sorted: Admin
X-UIDL: 353fab72a71a84772760cc001255b31a

And here is another Soviet Union type that get through. Is it because
of the "root"?

Return-Path: <root(_at_)bstu(_dot_)unibel(_dot_)by>
Received: from ns.unibel.by ([195.50.5.50])
        by mail6.netcom.com (8.8.5-r-beta/8.8.5/(NETCOM v1.02)) with ESMTP id
GAA08050
        for <gboyd(_at_)netcom(_dot_)com>; Mon, 8 Feb 1999 06:59:42 -0800 (PST)
Received: from ns (brest.frame.belpak.by [192.168.1.1]) by ns.unibel.by
with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.1960.3)
        id 1HKWDNFY; Mon, 8 Feb 1999 17:05:35 +0200
Message-ID: <073b01be5374$7abf1f10$0101a8c0(_at_)ns(_dot_)unibel(_dot_)by>
From: "Belarussian State Technological Universitet" 
<root(_at_)bstu(_dot_)unibel(_dot_)by>
To: <gboyd(_at_)netcom(_dot_)com>
Subject: send index
Date: Mon, 8 Feb 1999 17:05:35 +0200
MIME-Version: 1.0
Content-Type: text/plain;
        charset="koi8-r"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
X-Sorted: Admin
X-UIDL: 2aedf6ec7c576439b61535963f41da92

And another Russian UUCP that gets through

Return-Path:
<<@dvlg.elektra.ru,@kvoges.UUCP.uucp:Gorenkov(_at_)kvoges(_dot_)dvlg(_dot_)elektra(_dot_)ru>>
Received: from svt (DVLG-NC-LL.Elektra.RU [193.125.127.66])
        by mail.netcom.com (8.8.5-r-beta/8.8.5/(NETCOM v1.02)) with SMTP id
CAA15580
        for <gboyd(_at_)netcom(_dot_)com>; Thu, 11 Feb 1999 02:43:06 -0800 (PST)
Received: from dvlg.elektra.ru ([172.23.64.1]) by svt
(8.6.12/8.6.12-beta) with SMTP id NAA08765 for <gboyd(_at_)netcom(_dot_)com>; 
Thu,
11 Feb 1999 13:44:02 +0300
Received: from kvoges.UUCP by dvlg.elektra.ru with UUCP id AA02686
  (5.65c8  for gboyd(_at_)netcom(_dot_)com); Thu, 11 Feb 1999 13:42:50 GMT
Message-Id: <199902111342(_dot_)AA02686(_at_)dvlg(_dot_)elektra(_dot_)ru>
Received: by kvoges.dvlg.elektra.ru (UUPC/@ v5.09gamma, 14Mar93);
          Fri, 11 Feb 2000 14:39:46 +0400
Date: Fri, 11 Feb 2000 14:39:45 
From: "Gorenkov" <root(_at_)kvoges(_dot_)dvlg(_dot_)elektra(_dot_)ru>
Organization: VoGES
To: gboyd(_at_)netcom(_dot_)com
Return-Receipt-To: root(_at_)kvoges(_dot_)dvlg(_dot_)elektra(_dot_)ru
X-Mailer: MAIL2 ( Ver. 2.11.3 from TECHNO )
X-Protocol: UUCP
Subject: send accmail.ru
Lines: 1
X-Sorted: Admin
X-UIDL: d36e3d18c95776b34a81d7143f5e07bd

Is their someway I can change the recipes such that the FROM_MAILER
doesn't pickup on UUCP addresses? How do I let the Saudi Arabian
addresses through (I have some 30 or more users at this site and more
at other sites) without letting all Mailer-Daemon messages through?

I gather the UUCP addresses and "root" are being picked up because If
the regular expression contains `^FROM_MAILER' it will be
substituted by `(^(((Resent-)?(From|Sender)|X-Envelope-From):
|>?From )([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma(st(er)?|n)|office)
|(send)?Mail(er)?|daemon|mmdf|n?uucp|r(esponse|oot)
[snip] -------------------------------------->

I sure would hate to rewrite the FROM_MAILER syntax...


--
Gerry Boyd -- gboyd(_at_)netcom(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>