• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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