Hello, I'm wondering if it is possible to turn down email notification for "simple" denied hosts (I get half a dozen of them daily) but keep them on for suspicious logins. I couldn't find a configuration option for that.
Therefore I wonder if the following would do: I would add a pref ADMIN_EMAIL_ONLY_SUSPICIOUS=yes in denyhosts.conf. In deny_hosts.py line 458 I would change the code a bit to have the following: > if not self.__report.empty(): > if new_suspicious_logins and not > is_true(self.__prefs.get('ADMIN_EMAIL_ONLY_SUSPICIOUS')): > if not self.__noemail: > # send the report via email if configured > send_email(self.__prefs, self.__report.get_report()) > elif not self.__daemon: > # otherwise, if not in daemon mode, log the report to the > console > info(self.__report.get_report()) > self.__report.clear() It looks too simple, that's just two lines added and a little indentation. Is there something else that should be modified or is it sufficient? Regards, Xavier ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ Denyhosts-user mailing list Denyhosts-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/denyhosts-user