-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 17 Jul 2010, tonj wrote:

'appears' to be working (for incoming mail) but all mail outward bound is
reporting socket error. In etc/sysconfig/mimedefang I did MD_EXTRA="-t" and
this is a snippet of my current md-filter:

What is the error message? And what has been logged before & after it, because this info is related probably? What does "outward" mean: originating from localhost via sendmail binary or via SMTP?

sub filter_recipient {
...
  {
  return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
  }
}

The sample code in the man page includes a default return value. I'm not certain, whether or not that is required, but I would add it.

sub filter {
  my($entity, $name, $ext, $type) = @_;
  if ($type =~ /text.html/i) {

This test is quite "open", although it is less likely for false hits. I would use a strong test e.g. lc($type) eq 'text/html' or anchor the beginning of the pattern.

Regards,

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBTEaaeUgddVksjRnHAQIZhQgA05GJIqhNhjJ8YBKVMREznWEkzAp/mjUx
jrjGgUaTg8o9GFKZmfFAu3woKi+X1XCquGPPylvAckh+c7kfH8lCthWSfTGAh/Uj
wc6MKRHBUJRNuB7pySiR0NtmfvTSa7d8edJcojl4uOQ+/4GYNioSmSfQT14//25R
U+coyeb/GmOqhnjDgeM3ZNyphTAPtc1UBlnU+49bmWm9HPlkVYg1HtNG/iaKDOv6
gTEaVR1FCgkSgMcIrMTxn6iD+zWxjfMVBLUVJ8GIgV9ddecI53Eafj03eTCtyT6B
BEXwaRkruU8KeIpgSZ5421lEIvsbFgy/A7F/OgWoxEX3qH6zvAWHMA==
=t4/C
-----END PGP SIGNATURE-----
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to