Bug 180303
Summary: | cannot forward mail from procmail to cyrus | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Frank DiPrete <fdiprete> |
Component: | cyrus-imapd | Assignee: | Petr Rockai <prockai> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | CC: | tao |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-05-12 11:11:59 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Frank DiPrete
2006-02-07 00:47:46 UTC
same problem on fedora c3: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180302 Found a workaround. After removing the From header cyrus will accept the forward: LOGFILE=/var/log/maillog VERBOSE=no # check for viruses with clamd :0fw | /usr/bin/clamassassin # if virus is found dump it :0: * ^X-Virus-Status: Yes /var/tmp/virusbucket # send mail through spamd :0fw | /usr/bin/spamc # if marked as spam dump it :0: * ^X-Spam-Status: Yes /var/tmp/spambucket # hand off to cyrus for delivery # strip From header - borks cyrus deliver (arg!) :0f | formail -I "From " :0w | /usr/lib/cyrus-imapd/deliver -e -a $LOGNAME -m user.$LOGNAME That isn't a workaround. The From line is not part of the internet message format RFC and therefore is invalid. Cyrus correctly rejects such message. The problem is that procmail expects that the reading process wants to read mbox-formatted input, not just the message. Stripping the From line is therefore a correct solution. |