Bug 180302
Summary: | cannot forward mail from procmail to cyrus | ||
---|---|---|---|
Product: | [Fedora] Fedora | 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: | 3 | ||
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:10:56 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:30:29 UTC
tested imap and it works fine just can't forward from procmail to imap via deliver same problem on RHEL4: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180303 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. |