[Mimedefang] Problems with filter
Mark Penkower
mark at roycenet.com
Fri Dec 5 10:48:30 EST 2003
Are you sure? The default location is /etc/mail/mimedefang-filter. Check
again.
Regards,
David.
David,
Thanks
I moved mimedefang-filter to /etc/mail and restarted.
Now, when trying to send mail, I get 451 4.7.1 Please try again later
The Mail Log reports:
Dec 5 10:31:23 questbarf mimedefang-multiplexor: Slave 0 stderr: Can't
locate o
bject method "SWASHNEW" via package "utf8" at /etc/mail/mimedefang-filter
line 3
. Compilation failed in require.
Dec 5 10:31:23 questbarf mimedefang-multiplexor: Reap: Idle slave 0 (pid 3226)
exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
This is repeated many times.
Here is the file /etc/mail/mimedefang-filter:
filter_begin()
if($Subject =~ /\word1|word2|word3|word4 {
return action_bounce("Subject $Subject not allowed")
}
sub filter_end {
my($entity) = @_;
append_text_boilerplate($entity,
"Lame text disclaimer", 0);
append_html_boilerplate($entity,
"<em>Lame</em> HTML disclaimer", 0);
}
Help!
Thanks again.
Mark Penkower
More information about the MIMEDefang
mailing list