• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Fail2Ban: Sendmail

omexlu

Regular Pleskian
Hello,

I want to send a email if any jail bans an IP, but i don't have any mailserver installed on my server because i send out emails trought an other server.

How can i send this mail or maybe pass it to an smtp account?

Thanks in advance.
 
Hi,

As i understand that, i only need to install this relay option and configure my jail to use sendmail? An then it automaticly use this smtp to send the mail?
 
When you follow the guide, Plesk will use the external SMTP server to send all Plesk notifications. I do not know however, how this will be linked to fail2ban / how you are sending mails when fail2ban blocks an IP, because that is not included in the Plesk event manager. This will probably need a custom solution within fail2ban on your system, independent from Plesk. I am unaware that fail2ban offers such a function, but you probably have found one, else you had not asked about sending mails here.
 
Yes fail2ban send out via sendmail to i think this doesn't help, maybe i will want to create an action that let do the job by a external phpscript that gets curls :)

Thanks anyway.
 
Back
Top