Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: smeerbartje on February 13, 2009, 10:12:14 AM

Title: Denyhosts for SME
Post by: smeerbartje on February 13, 2009, 10:12:14 AM
I am very happy with the Denyhosts (http://wiki.contribs.org/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?
Title: Re: Denyhosts for SME
Post by: yythoss 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
Title: Re: Denyhosts for SME
Post by: smeerbartje 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?
Title: Re: Denyhosts for SME
Post by: yythoss on February 23, 2009, 10:09:03 AM
I have this information from the Homepage of Denyhosts.

yythoss
Title: Re: Denyhosts for SME
Post by: smeerbartje on February 23, 2009, 10:10:49 AM
I have this information from the Homepage of Denyhosts.

yythoss
Again, thanks! :D
Title: Re: Denyhosts for SME
Post by: smeerbartje 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?
Title: Re: Denyhosts for SME
Post by: David Harper 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.