• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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