procmail
[Top] [All Lists]

Re: why the local-rules.procmail doesn't work????

2002-06-06 01:25:28
afeng <afeng(_dot_)sun(_at_)anlai(_dot_)com> writes:
------=_NextPart_000_01AB_01C208AF.84BCCD20
Content-Type: text/plain;
      charset="gb2312"
Content-Transfer-Encoding: base64

VW50aXRsZWQgRG9jdW1lbnR0aGlzIGlzIHBhcnQgb2YgbXkgcHJvY21haWxyYzoNCklOQ0xVREVS
Qz0vZXRjL3Byb2NtYWlsL2xvY2FsLXJ1bGVzLnByb2NtYWlsDQpJTkNMVURFUkM9L2V0Yy9wcm9j
...

Can you fix your mail user agent to label the messages you send as
being in the charset US-ASCII instead of GB2312 when they don't contain
non-ASCII characters?  The Internet mail standards actually require that,
so I presume it's a misconfiguration issue.  That'll save your message
from being encoded in base64, as seen above.


Anyway, to answer your question:

...
when i send a test mail , show this log:

"rocmail: Skipped "
"rocmail: Skipped "
"rocmail: Skipped "
"rocmail: Skipped "-A "X-Content-Security: [$HOST] QUARANTINE" \
procmail: Skipped "-A "X-Content-Security: [$HOST] REPORT: Trapped possible 
Klez worm - see 
http://securityresponse.symantec.com/avc"nter/venc/data/w32.klez.removal.tool.html";
procmail: Closing brace unexpected

The problem is that the lines in your .procmailrc file are terminated
with CRLF (carriage-return and line-feed) instead of the normal UNIX
line termination of just LF.  This is probably due to editting your
.procmailrc from a Windows system, either saving it directly or ftping
it to the server as a binary file instead of a text file.

You can fix the file by running the following command on the server:

        tr -d \\015 < .procmailrc > p.tmp && mv p.tmp .procmailrc

The 'tr' invocation deletes all the CRs in the file and the 'mv' command
then moves the 'cleaned' version over the original.

Note that while that'll fit it, it won't necessarily keep the problem from
recurring.  You'll have to look at how you created the file on the server
and figure out how to update it without reintroducing CRs to the file.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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