On Wed, 2006-02-01 at 09:58 -0600, Michael Sullivan wrote:
> I have an annoying problem.  I have three computers on my network.
> Every night I get emerge -uD world cron reports and backup reports as
> well as a few others.  These reports (and other things cron sends me)
> are delivered successfully...and unsuccessfully.  I get them just fine,
> but I also get mailer errors for the same emails that go through
> successfully.  Here's an example of the one error message:
> 
>                               From: 
> Mail Delivery Subsystem
> <MAILER-DAEMON>
>                                 To: 
> [EMAIL PROTECTED]
>                            Subject: 
> Returned mail: see transcript for
> details
>                               Date: 
> Wed, 1 Feb 2006 00:16:43 -0600
> 
> 
> The original message was received at Wed, 1 Feb 2006 00:00:23 -0600
> from camille.espersunited.com [192.168.1.3]
> 
>    ----- The following addresses had permanent fatal errors -----
> michael
>     (reason: 243)
>     (expanded from: root)
> 
>    ----- Transcript of session follows -----
> procmail: Error while writing to "/var/log/procmail"
> procmail: [14282] Wed Feb  1 00:00:27 2006
> procmail: Match on "< 256000"
> procmail: Executing "/usr/bin/spamassassin,-P"
> 554 5.3.0 unknown mailer error 243
> 
> 
> 
> 
> 
> 
> 
> mail delivery
> report attachment
> 
> Reporting-MTA: dns; bullet.espersunited.com
> Received-From-MTA: DNS; camille.espersunited.com
> Arrival-Date: Wed, 1 Feb 2006 00:00:23 -0600
> 
> Final-Recipient: RFC822; [EMAIL PROTECTED]
> X-Actual-Recipient: RFC822; [EMAIL PROTECTED]
> Action: failed
> Status: 5.0.0
> Diagnostic-Code: X-Unix; 243
> Last-Attempt-Date: Wed, 1 Feb 2006 00:16:25 -0600
> 
> 
> I use procmail to filter mail marked as spam (by spamassassin) into a
> particular folder under ~/mail on my server box.  Here's
> my /etc/mail/sendmail.mc file:
> 
> bullet ~ # cat /etc/mail/sendmail.mc
> divert(-1)
> divert(0)dnl
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> VERSIONID(`$Id: sendmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp
> $')dnl
> OSTYPE(linux)dnl
> DOMAIN(generic)dnl
> 
> #define(`confTO_IDENT',`0s')dnl
> 
> 
> FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
> FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
> FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
> 
> MASQUERADE_AS(`espersunited.com')dnl
> MASQUERADE_DOMAIN(`espersunited.com')dnl
> FEATURE(`masquerade_entire_domain')dnl
> 
> FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
> 
> #Begin spamass-milter config
> 
> dnl INPUT_MAIL_FILTER(`spamassassin',
> `S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
> dnl define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name},
> {if_name}, {if_addr}')dnl
> 
> #End spamass-milter config
> 
> MAILER(local)dnl
> MAILER(smtp)dnl
> MAILER(pop)dnl
> 
> 
> My /etc/procmailrc file:
> 
> bullet portage # cat /etc/procmailrc
> # Use mbox-style mailbox in /var/spool/mail
> DEFAULT=/var/spool/mail/$LOGNAME
> 
> 
> My ~/.procmailrc file:
> 
> bullet portage # cat /home/michael/.procmailrc
> :0:
> 
> * ^X-Spam-Status: Yes
> 
> /home/michael/mail/CRAP
> 
> 
> I KNOW I recognize that phrase about "< 256000" up there in the error
> message - I thought it was in /etc/procmailrc, but it's not and I can't
> seem to find the website that told me how to set this up.  This all
> worked perfectly before the PHP ugrade.  It's weird - I would think that
> procmail worked independently of PHP...
> 

I found the "< 256000".  I remerged procmail this morning thinking that
could possibly fix the problem, and I thought I told etc-update to
delete the default /etc/procmailrc file, but I guess I accidentally said
"Replace" instead.  I got this out of the backups and copied it over the
replacement /etc/procmailrc:

bullet ~ # cat /etc/procmailrc
# Use mbox-style mailbox in /var/spool/mail
DEFAULT=/var/spool/mail/$LOGNAME

DROPPRIVS=yes
#Uncomment the following lines to allow for logging
#
LOGFILE=/var/log/procmail
VERBOSE=ON

:0fw
# The following line tells Procmail to send messages to Spamassassin
only if they are less thatn 256000 bytes. Most spam falls well below
this size and a larger size could seriously affect performance.)
* < 256000

| /usr/bin/spamassassin -P

:0e
{
EXITCODE=$?
}



-- 
gentoo-user@gentoo.org mailing list

Reply via email to