[Mimedefang] read domain list from config file

Marcus Schopen lists at localguru.de
Thu Mar 27 13:25:15 EDT 2014


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) {
         } else {
              action_bounce("Recipient refuses mail due to ..."); 


More information about the MIMEDefang mailing list