1 |
On Wed, 2006-02-01 at 09:58 -0600, Michael Sullivan wrote: |
2 |
> I have an annoying problem. I have three computers on my network. |
3 |
> Every night I get emerge -uD world cron reports and backup reports as |
4 |
> well as a few others. These reports (and other things cron sends me) |
5 |
> are delivered successfully...and unsuccessfully. I get them just fine, |
6 |
> but I also get mailer errors for the same emails that go through |
7 |
> successfully. Here's an example of the one error message: |
8 |
> |
9 |
> From: |
10 |
> Mail Delivery Subsystem |
11 |
> <MAILER-DAEMON> |
12 |
> To: |
13 |
> root@××××××××××××××××××××.com |
14 |
> Subject: |
15 |
> Returned mail: see transcript for |
16 |
> details |
17 |
> Date: |
18 |
> Wed, 1 Feb 2006 00:16:43 -0600 |
19 |
> |
20 |
> |
21 |
> The original message was received at Wed, 1 Feb 2006 00:00:23 -0600 |
22 |
> from camille.espersunited.com [192.168.1.3] |
23 |
> |
24 |
> ----- The following addresses had permanent fatal errors ----- |
25 |
> michael |
26 |
> (reason: 243) |
27 |
> (expanded from: root) |
28 |
> |
29 |
> ----- Transcript of session follows ----- |
30 |
> procmail: Error while writing to "/var/log/procmail" |
31 |
> procmail: [14282] Wed Feb 1 00:00:27 2006 |
32 |
> procmail: Match on "< 256000" |
33 |
> procmail: Executing "/usr/bin/spamassassin,-P" |
34 |
> 554 5.3.0 unknown mailer error 243 |
35 |
> |
36 |
> |
37 |
> |
38 |
> |
39 |
> |
40 |
> |
41 |
> |
42 |
> mail delivery |
43 |
> report attachment |
44 |
> |
45 |
> Reporting-MTA: dns; bullet.espersunited.com |
46 |
> Received-From-MTA: DNS; camille.espersunited.com |
47 |
> Arrival-Date: Wed, 1 Feb 2006 00:00:23 -0600 |
48 |
> |
49 |
> Final-Recipient: RFC822; postmaster@camille |
50 |
> X-Actual-Recipient: RFC822; michael@×××××××××××××××××××.com |
51 |
> Action: failed |
52 |
> Status: 5.0.0 |
53 |
> Diagnostic-Code: X-Unix; 243 |
54 |
> Last-Attempt-Date: Wed, 1 Feb 2006 00:16:25 -0600 |
55 |
> |
56 |
> |
57 |
> I use procmail to filter mail marked as spam (by spamassassin) into a |
58 |
> particular folder under ~/mail on my server box. Here's |
59 |
> my /etc/mail/sendmail.mc file: |
60 |
> |
61 |
> bullet ~ # cat /etc/mail/sendmail.mc |
62 |
> divert(-1) |
63 |
> divert(0)dnl |
64 |
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl |
65 |
> VERSIONID(`$Id: sendmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp |
66 |
> $')dnl |
67 |
> OSTYPE(linux)dnl |
68 |
> DOMAIN(generic)dnl |
69 |
> |
70 |
> #define(`confTO_IDENT',`0s')dnl |
71 |
> |
72 |
> |
73 |
> FEATURE(`smrsh',`/usr/sbin/smrsh')dnl |
74 |
> FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl |
75 |
> FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl |
76 |
> |
77 |
> MASQUERADE_AS(`espersunited.com')dnl |
78 |
> MASQUERADE_DOMAIN(`espersunited.com')dnl |
79 |
> FEATURE(`masquerade_entire_domain')dnl |
80 |
> |
81 |
> FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl |
82 |
> |
83 |
> #Begin spamass-milter config |
84 |
> |
85 |
> dnl INPUT_MAIL_FILTER(`spamassassin', |
86 |
> `S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl |
87 |
> dnl define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, |
88 |
> {if_name}, {if_addr}')dnl |
89 |
> |
90 |
> #End spamass-milter config |
91 |
> |
92 |
> MAILER(local)dnl |
93 |
> MAILER(smtp)dnl |
94 |
> MAILER(pop)dnl |
95 |
> |
96 |
> |
97 |
> My /etc/procmailrc file: |
98 |
> |
99 |
> bullet portage # cat /etc/procmailrc |
100 |
> # Use mbox-style mailbox in /var/spool/mail |
101 |
> DEFAULT=/var/spool/mail/$LOGNAME |
102 |
> |
103 |
> |
104 |
> My ~/.procmailrc file: |
105 |
> |
106 |
> bullet portage # cat /home/michael/.procmailrc |
107 |
> :0: |
108 |
> |
109 |
> * ^X-Spam-Status: Yes |
110 |
> |
111 |
> /home/michael/mail/CRAP |
112 |
> |
113 |
> |
114 |
> I KNOW I recognize that phrase about "< 256000" up there in the error |
115 |
> message - I thought it was in /etc/procmailrc, but it's not and I can't |
116 |
> seem to find the website that told me how to set this up. This all |
117 |
> worked perfectly before the PHP ugrade. It's weird - I would think that |
118 |
> procmail worked independently of PHP... |
119 |
> |
120 |
|
121 |
I found the "< 256000". I remerged procmail this morning thinking that |
122 |
could possibly fix the problem, and I thought I told etc-update to |
123 |
delete the default /etc/procmailrc file, but I guess I accidentally said |
124 |
"Replace" instead. I got this out of the backups and copied it over the |
125 |
replacement /etc/procmailrc: |
126 |
|
127 |
bullet ~ # cat /etc/procmailrc |
128 |
# Use mbox-style mailbox in /var/spool/mail |
129 |
DEFAULT=/var/spool/mail/$LOGNAME |
130 |
|
131 |
DROPPRIVS=yes |
132 |
#Uncomment the following lines to allow for logging |
133 |
# |
134 |
LOGFILE=/var/log/procmail |
135 |
VERBOSE=ON |
136 |
|
137 |
:0fw |
138 |
# The following line tells Procmail to send messages to Spamassassin |
139 |
only if they are less thatn 256000 bytes. Most spam falls well below |
140 |
this size and a larger size could seriously affect performance.) |
141 |
* < 256000 |
142 |
|
143 |
| /usr/bin/spamassassin -P |
144 |
|
145 |
:0e |
146 |
{ |
147 |
EXITCODE=$? |
148 |
} |
149 |
|
150 |
|
151 |
|
152 |
-- |
153 |
gentoo-user@g.o mailing list |