Koozali.org: home of the SME Server

Denyhosts for SME

Offline smeerbartje

  • *
  • 71
  • +0/-0
Denyhosts for SME
« on: February 13, 2009, 10:12:14 AM »
I am very happy with the Denyhosts tool. The wiki page provides a lot of information about installing/maintaining denyhosts. But there is one thing I miss: I want to disable the sending of emails when a host has been blocked.

The wiki page only provides information about changing the email address, but not about disabling emailing. Can anyone tell me how to disable those emails?

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: Denyhosts for SME
« Reply #1 on: February 14, 2009, 09:28:47 PM »
Edit the config file from denyhosts:

Code: [Select]
/etc/denyhosts.conf
change the line:

Code: [Select]
ADMIN_EMAIL = admin@localhost
to

Code: [Select]
ADMIN_EMAIL =
yythoss

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Denyhosts for SME
« Reply #2 on: February 23, 2009, 09:47:53 AM »
Thanks, it's not that when I insert NULL as email address, the smtp server still will be requested to send an email? In other words: it is not necessary to set a parameter like "send admin mail" to false or something?

Offline yythoss

  • *
  • 532
  • +0/-0
    • http://www.hylafax-client.de
Re: Denyhosts for SME
« Reply #3 on: February 23, 2009, 10:09:03 AM »
I have this information from the Homepage of Denyhosts.

yythoss

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Denyhosts for SME
« Reply #4 on: February 23, 2009, 10:10:49 AM »
I have this information from the Homepage of Denyhosts.

yythoss
Again, thanks! :D

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Denyhosts for SME
« Reply #5 on: March 03, 2009, 11:33:49 AM »
After changing the config file (/etc/denyhosts.conf) indeed the emails stopped. But after rebooting the server, it all started over again. What can I do to make it permanent?

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Denyhosts for SME
« Reply #6 on: March 03, 2009, 12:13:29 PM »
Although I haven't checked, the file referenced is probably populated from a template - so you would need to create a custom template that eliminated this value.