linuxserver / docker-fail2ban

GNU General Public License v3.0
57 stars 7 forks source link

Support email notifications #5

Closed mhbates closed 2 years ago

mhbates commented 2 years ago

It would be nice to be able to configure email notifications.

nemchik commented 2 years ago

Have you tried? Was there an error?

You should be able to, unless we're missing a package or something.

mhbates commented 2 years ago

Sorry, I guess what I meant was I wasn't sure how to actually configure the email sending settings. That's done within the container, no? Where is that set up in the container? And I'm referring to external email, SMTP, not internal.

nemchik commented 2 years ago

You could use the included configs for sendmail or apprise. You'll need to look at the files in the actions.d folder and read the comments at the top. Keep in mind that many of the configs weren't created by LSIO, and are part of the fail2ban package itself.

I'm going to close this issue since it's a configuration question, and not a bug with the container image.

mhbates commented 2 years ago

Thanks. I'll dig around in the container for the sendmail config to set up the SMTP relay. I'm thinking I can just volume mount that and do it that way.