On 04/27/2015 08:25 AM, [email protected] wrote: > Thanks a lot, that did work. > > Funny thing though: when I'm trying to overwrite that value with a self > generated sendmail-common.local file as suggested, fail2ban doesn't > start anymore. > > I've put the file containing just one line in the actions.d directory. > On "service fail2ban restart" I get:
Try specifying the section as well: [Init] sender = [email protected] > > ERROR Error in action definition sendmail-whois-lines[name=ssh, > dest="*@***.**", logpath=/var/log/auth.log, chain="INPUT", > sendername="Fail2Ban2"] > ERROR Errors in jail 'ssh'. Skipping... > > Kind regards > > > Am 27.04.2015 um 05:38 schrieb Ivan Demkovitch: >> Yaroslav, >> >> Thanks for responding! >> >> I was able to make it work by editing /action.d/sendmail-common.conf and >> setting sender there. >> >> I like the idea of having my own config parts separate from installed ones, >> but this specific setting threw me off (and I’m really new to Linux all >> together) >> >> Whats worse, lot of examples flying around have jail.local configs where >> “sender=somename@…” and that makes you think this is what going to happen. >> >> Any way to place this all in one file? >> >> >>> On Apr 26, 2015, at 10:21 PM, Yaroslav Halchenko <[email protected]> >>> wrote: >>> >>> >>> On Sun, 26 Apr 2015, Ivan Demkovitch wrote: >>> >>>> Hello list! >>>> I setup postfix to use Amazon SES for relaying SMTP mail. Amazon >>>> requires >>>> to a**verifya** sender email, which is fine. So, in my jail.local I >>>> have >>>> exactly what I need: >>>> sender = [email protected] >>> I don't think it should just "be" in the jail.local but you should provide >>> it >>> as the option for the corresponding sendmail action... and apparently we >>> forgot >>> (or on purpose since some might not have that option?) to specify that >>> for the >>> >>> %(mta)s-whois-lines[name=%(__name__)s, dest="%(destemail)s", >>> logpath=%(logpath)s, chain="%(chain)s"] >>> >>> so depending on what is your action really is -- just specify there >>> sender="%(sender)s" and report if it helps >>> >>> -- >>> Yaroslav O. Halchenko, Ph.D. >>> http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org >>> Research Scientist, Psychological and Brain Sciences Dept. >>> Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 >>> Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 >>> WWW: http://www.linkedin.com/in/yarik >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Fail2ban-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/fail2ban-users > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Fail2ban-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fail2ban-users ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
