RE Majordomo & Procmail

Richard Bates <[email protected]> Mon, 5 Nov 2007 12:09:23 -0500
Newsgroups gmane.mail.majordomo.general
Message-ID <[email protected]>
I have been running a mailserver with a list attached to it for years  
now.
Recently I received a call from one of my subscribers stating that  
his emails are intermittantly not being delivered.

 From investigation here is what is happening.
the mail comes in
	MajorDomo hands the message to Procmail
	Procmail checks for duplicate message Id
		Runs Spam Assassin to get the Spam Headers
		Checks the headers for spam
		if spam puts the message in a spam file for that date (So the  
message can be found if not really a spam)
		If NOT spam
		  Makes a copy and uses the "wrapper archive2.pl -f /usr/local/ 
majordomo/lists/cac.archive/cac -D -a" command
		  to make the archive of the message
		then it delivers it with the "/usr/local/majordomo/wrapper resend - 
l cac -f cac   cac-outgoing,nobody" command

the message appears in the good email file.
but doesn't get delivered to the individuals in the list.
It also only happens for this user.
I'm stumped.
Below is the specs of the machine, majordomo, procmail and the email  
in question.

Thank you for any insight you can provide.

I am running FreeBSD 4.10

with
	majordomo-1.94.5_2  A mailing list manager
	procmail-3.22_4     A local mail delivery agent
	postfix-2.0.19,1    A secure alternative to widely-used Sendmail
	SpamAssassin version 3.2.3   running on Perl version 5.8.2




############## CAC Majordomo Config File
admin_passwd        =   kjhkjh
administrivia       =   yes
advertise           <<  END
END
announcements       =   yes
approve_passwd      =   kjhkjh
archive_dir         =   /var/mail/MailManagers/ListArchives
comments            <<  END
END

date_info           =   yes
date_intro          =   yes
debug               =   no
description         =
digest_archive      =
digest_issue        =   1
digest_maxdays      =
digest_maxlines     =
digest_name         =   cac
digest_rm_footer    =
digest_rm_fronter   =
digest_volume       =   1
digest_work_dir     =
get_access          =   list
index_access        =   closed
info_access         =   closed
intro_access        =   closed
maxlength           =   10485770
message_footer      <<  END
END

message_fronter     <<  END
END

message_headers     <<  END
END

moderate            =   no
moderator           =
mungedomain         =   no
noadvertise         <<  END
END

precedence          =
purge_received      =   no
reply_to            =
resend_host         =
restrict_post       =
sender              =
strip               =   yes
subject_prefix      =
subscribe_policy    =   closed
taboo_body          <<  END
END

taboo_headers       <<  END
END

unsubscribe_policy  =   open
welcome             =   yes
which_access        =   open
who_access          =   MyUsersOnly

############################### the aliases for CAC
# ===  cac maillist
owner-cac:           alarms
owner-cac-outgoing:  owner-cac
owner-cac-request:   owner-cac
cac-approval:        owner-cac
cac-owner:           owner-cac
cac:                 "|/usr/local/bin/procmail -f- /usr/local/ 
majordomo/lists/cac.recipe"
cac-outgoing:        :include:/usr/local/majordomo/lists/cac
cac-request:         "|/usr/local/majordomo/wrapper request-answer cac"
##############################  THE CAC Procmail Recepie
 > more cac.recipe
LOCKFILE=`date "+%Y%m%d%H%M%s"`
:0 Wh: /usr/local/etc/msgcashes/cac.$LOCKFILE.lock
|formail -D 8192 /usr/local/etc/msgcashes/cac.msgid.cache

:0fw: /usr/local/etc/msgcashes/cac.$LOCKFILE.lock
| spamc -u spamd -d 10.0.6.102 -H

## Status check
:0:
* ^X-Spam-Status: Yes
/usr/local/majordomo/lists/cac.archive/SPAM.`date "+%Y%m%d"`

:0 c
|/usr/local/majordomo/wrapper archive2.pl -f /usr/local/majordomo/ 
lists/cac.archive/cac -D -a

:0
| /usr/local/majordomo/wrapper resend -l cac -f cac   cac- 
outgoing,nobody


==================== Message Source
Return-Path: <[email protected]>
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on  
spamd1.myDomain.com
X-Spam-Level:
X-Spam-Status: No, score=-0.4 required=3.5 tests=BAYES_00,HTML_MESSAGE,
	TVD_SPACE_RATIO autolearn=no version=3.2.3
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from HisDomain.com (HisDomain.com [64.34.126.3])
	by mail.myDomain.com (Postfix) with ESMTP
	id EAAFF883CB; Mon,  5 Nov 2007 10:43:11 -0500 (EST)
Received: from vlad01 [10.0.1.107] by HisDomain.com with ESMTP
   (SMTPD-9.22) id AA10039C; Mon, 05 Nov 2007 10:43:12 -0500
From: "Vlad Pisaryuk" <[email protected]>
To: <[email protected]>
Cc: "'Richard Bates'" <[email protected]>
Subject: help
Date: Mon, 5 Nov 2007 10:43:11 -0500
Message-ID: <030701c81fc2$924ee6a0$b6ecb3e0$@com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0308_01C81F98.A978DEA0"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcgfwpIOnu9FPBP0SGuFzNLkwGT/KQ==
Content-language: en-us

This is a multipart message in MIME format.

------=_NextPart_000_0308_01C81F98.A978DEA0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Testing.2



Best Regards,


Vlad Pisaryuk

[email protected]



------=_NextPart_000_0308_01C81F98.A978DEA0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
   <o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>Testing&#8230;2<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'><o:p>&nbsp;</o:p></ 
span><=
/p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>Best
Regards,<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>&nbsp;<o:p></o:p></ 
span><=
/p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'>Vlad
Pisaryuk<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.5pt;font-family:Consolas'><a
href=3D"mailto:[email protected]">[email protected]</ 
a><o:p></o:p></spa=
n></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

------=_NextPart_000_0308_01C81F98.A978DEA0--