Hello Bill,
thanks for your reply. Guess your suggestion is a bit better than
hardwiring the address like I did, but it doesn't make much of a
difference, if the scope of the variable is limited to the file and you
have to set the value in each action.
I was wondering, if there is a way to set a global default for the
sender address. For example: if you set the value "destemail" in your
jail.local, you don't have to set "dest" in the actions anymore. Isn't
there a way to do the same thing for "sender" (I've tried "sender",
"sendemail" and "senderemail" in jail.local).
Kind regards
Am 24.04.2015 um 17:42 schrieb William Lewis:
The "sender" and "recipient/destination" addresses are in different files.
Look in "action.d" folder. It should be in directory
"/etc/fail2ban/action.d/"
In that folder are all the various "actions" rules. You will most
likely be looking for the ones that contain "sendmail" in the file
name. There should be four of them.
If you open each one, you can edit the "sender" and "destination"
addresses.
Look for the variable "dest = " and change the destination email
address to your own (or where ever you want the email to go).
Look for the variable "sender = " and change the sender email address
to be what you want it to be.
Once you change those variables in all four files, then restart the
fail2ban service and you should be good.
Bill
At 06:56 AM 4/24/2015, you wrote:
Hello,
I can't change the sender address of my fail2ban emails, by using
the config files. Somehow it uses the address fail2ban@ubuntu1404-64. I
don't understand, where it's getting the string "ubuntu1404-64". The
server has a fqdn hostname! Afaik the variable I want to set is just
called "sender". No matter what I try, either fail2ban is not starting
or it's ignoring this specific setting.
The only way to make it work was to hardwire the email-address into the
action.
fail2ban 0.8.11-1
ubuntu (server) 14.4
mta = sendmail
action = %(action_mwl)s
mail.log:
Apr 24 15:20:25 server postfix/smtp[2386]: 8ECA81D7:
to=<[email protected]>, relay=my.domain[87.106.5.84]:25, delay=0.27,
delays=0.18/0.0/0.02/0.06, dsn=5.5.2, status=bounced (host
my.domain[87.106.5.84] said: 504 5.5.2 <fail2ban@ubuntu1404-64>: Sender
address rejected: need fully-qualified address (in reply to RCPT TO
command))
Kind regards
------------------------------------------------------------------------------
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