Posts

Showing posts with the label fail2ban

fail2ban configure third-party email server

fail2ban configure third-party email server I'm using fail2ban on Google Compute Engine where I can't install sendmail or other email servers and I would to set sendgrid as email server. In jail.local there is this config: destemail = myemail@myhost.it mta = mail Where can I set the host, user, password to send emails via sendgrid.com? 1 Answer 1 I think that fail2ban uses the machine mail command to send email, thus it is using the machine mailing daemon. If you look at this snippet: fail2ban mail # Option: actionstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD # actionstart = printf %%b "Hi,n The jail <name> has been started successfully.n Regards,n Fail2Ban"|mail -s "[Fail2Ban] <name>: started on <fq-hostname>" <dest> that is taken from here ( fail2ban sources on githu...