[PLUG] procmail filter for 'no such person'
Sandy Herring
sandy at herring.org
Sun Oct 20 02:09:16 UTC 2002
Bruce,
You mean "addressee unknown"? Like this?
## capture the address that caused delivery
:0
* ^X-Envelope-To: \/.*
{
ENVELOPE_TO="$MATCH"
}
# bounce email not to me
:0
* ! ENVELOPE_TO ?? ^brucek at kingkon.com$
{
# EX_NOUSER = 67 from sysexits.h
EXITCODE = 67
:0
/dev/null
}
This assumes, of course, that your MTA/MDA is configured to add the
X-Envelope-To: header so that you can reconcile Bcc's, etc.
hth,
Sandy
p.s. You may want to replace the /dev/null action with a delivery to a
spam folder until you're content it's working.
On Fri, 18 Oct 2002, Bruce Kingsland wrote:
> Howdy,
>
> Any body have a handy procmail recipe for folks that match the 'no
> such user' syndrome?
>
> I get alot of email from folks who can't type, and I'd like to have
> something that will send back to the sender an automated message,
> without manual intervention.
>
> Thanx,
> -bk
> --
> Bruce Kingsland
> Kingsland Konsulting
> brucek at kingkon.com
> 360-531-3730
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> D/2B8DA3D7 g/2884A18E 49C3 BBDE 6BC5 3F39 0C03 3BE4 FBC5 2C8D 2B8D A3D7
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Sandy Herring, RHCE o sandy at herring.org
Peck of Pickled Pisces __ o http://herring.org/
UNIX or Web authoring questions? |\/ o\ o http://herring.org/finger.html
->http://herring.org/techie.html |/\__/ http://herring.org/pub-key.asc
*sh, Perl, C, VBA, PICK Assembler, Data/Basic, PROC & profanity spoken here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20021019/9e553001/attachment.asc>
More information about the PLUG
mailing list