Hi,

for some of my domains I'd like to reject mails at a given spamscore of
>=5. For some other domains at a higher score. Is it a good idea to read
those domain names from different "external" config file instead of
coding them hard into mimedefang-milter?

sub filter_end {
[...]
  if (($Domain eq 'exmaple1.org' ||
       $Domain eq 'example2.org' ||
       $Domain eq 'example3.org') && $hits >= 5) {
         if ($WasResent) {
              action_discard();
         } else {
              action_bounce("Recipient refuses mail due to ..."); 
        }
  }
[...]

Ciao
Marcus


_______________________________________________
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 MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to