Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197820 - mail-filter/mimedefang broken
Summary: mail-filter/mimedefang broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 22:03 UTC by rosenfield.albert
Modified: 2008-01-29 19:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mimedefang ebuild diff for version 2.63 (mimedefang-2.63.ebuild.diff,784 bytes, patch)
2007-12-07 19:39 UTC, Vieri
Details | Diff
mimedefang ebuild diff for version 2.63 (mimedefang-2.63.ebuild.diff,691 bytes, patch)
2007-12-08 09:05 UTC, Vieri
Details | Diff
mimedefang-2.63.ebuild.diff (mimedefang-2.63.ebuild.diff,694 bytes, patch)
2007-12-10 12:46 UTC, Vieri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rosenfield.albert 2007-11-01 22:03:35 UTC
To reproduce:
 - Install postfix
 - Install libmilter
 - Install mimedefang
 - Hook up mimedefang in the postfix config

The mimedefang milter fails, causing all email delivery to come to a halt.  The error reported in syslog is "Permission denied", although that is not the problem - strace reveals that postfix does not communicate properly with mimedefang, it expects mimedefang to say something that it doesn't.

To fix:
 - Unmerge mimedefang which is at version 2.57
 - Download mimedefang 2.63 from official website
 - ./configure --bindir=/usr/bin + make + make install

If you have an empty /usr/local/bin (as my Gentoo does), mimedefang will get much farther than before, but will now fail because it finds the /usr/local/bin and just assumes that mimedefang.pl is placed there. The error shown in syslog is "SLAVE DIED UNEXPECTEDLY". To keep your slaves alive and breathing, just symlink /usr/local/bin/mimedefang.pl to /usr/bin/mimedefang.pl, and...

Voila! everything works like a charm.

Wanted:
* ebuild upgraded to 2.63, since upstream fixed whatever bug is preventing this from working OOTB.
* upstream fixed to look for /usr/local/bin/mimedefang.pl instead of /usr/local/bin.  alternatively, a gentoo patch on top which does this..


Reproducible: Always

Steps to Reproduce:
see above.

Actual Results:  
see above.


Expected Results:  
see above.


see above.
Comment 1 rosenfield.albert 2007-11-01 22:10:15 UTC
Running ./configure with --prefix=/usr causes the files to be installed in the right place, but `strings /usr/bin/mimedefang-multiplexor` reveals that it still looks in /usr/local/bin for the mimedefang.pl exectuable. Annoying.. Anyway.
Comment 2 Vieri 2007-12-07 19:39:57 UTC
Created attachment 137970 [details, diff]
mimedefang ebuild diff for version 2.63

version bump mimedefang to 2.63 and postfix compatibility.
Just proposing this ebuild wich compiles fine but did not test hooking it up with postfix content filtering.
Comment 3 Vieri 2007-12-08 09:05:32 UTC
Created attachment 137997 [details, diff]
mimedefang ebuild diff for version 2.63
Comment 4 Vieri 2007-12-10 12:46:39 UTC
Created attachment 138176 [details, diff]
mimedefang-2.63.ebuild.diff

sorry for the mistakes
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2008-01-29 19:31:33 UTC
Fixed in version 2.64, but using blocking dependency atoms.