Commits

Zhang Huangbin committed 8c5c7d7

Set 'BLACKLISTDNSNAME=1' in Policyd.

Comments (0)

Files changed (2)

iRedMail/functions/policyd.sh

 
     # ---- BLACKLISTING ----
     perl -pi -e 's#^(BLACKLISTING=)(.*)#${1}1#' ${POLICYD_CONF}
+    perl -pi -e 's#^(BLACKLISTDNSNAME=)(.*)#${1}1#' ${POLICYD_CONF}
     perl -pi -e 's#^(BLACKLIST_TEMP_REJECT=)(.*)#${1}0#' ${POLICYD_CONF}
     perl -pi -e 's#^(AUTO_BLACK_LISTING=)(.*)#${1}1#' ${POLICYD_CONF}
     perl -pi -e 's#^(AUTO_WHITELIST_NUMBER=)(.*)#${1}10#' ${POLICYD_CONF}

iRedMail/samples/amavisd.mysql

   CONSTRAINT part_email UNIQUE (partition_tag,email)
 ) ENGINE=InnoDB;
 
+CREATE INDEX maddr_idx_email ON maddr (email);
+CREATE INDEX maddr_idx_domain ON maddr (domain);
+
 -- information pertaining to each processed message as a whole;
 -- NOTE: records with NULL msgs.content should be ignored by utilities,
 --   as such records correspond to messages just being processes, or were lost