{"action":"closed","issue":{"url":"https://api.github.com/repos/NethServer/dev/issues/5586","repository_url":"https://api.github.com/repos/NethServer/dev","labels_url":"https://api.github.com/repos/NethServer/dev/issues/5586/labels{/name}","comments_url":"https://api.github.com/repos/NethServer/dev/issues/5586/comments","events_url":"https://api.github.com/repos/NethServer/dev/issues/5586/events","html_url":"https://github.com/NethServer/dev/issues/5586","id":363058247,"node_id":"MDU6SXNzdWUzNjMwNTgyNDc=","number":5586,"title":"Fail2Ban: asterisk notification always enabled","user":{"login":"gsanchietti","id":804596,"node_id":"MDQ6VXNlcjgwNDU5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/804596?v=4","gravatar_id":"","url":"https://api.github.com/users/gsanchietti","html_url":"https://github.com/gsanchietti","followers_url":"https://api.github.com/users/gsanchietti/followers","following_url":"https://api.github.com/users/gsanchietti/following{/other_user}","gists_url":"https://api.github.com/users/gsanchietti/gists{/gist_id}","starred_url":"https://api.github.com/users/gsanchietti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsanchietti/subscriptions","organizations_url":"https://api.github.com/users/gsanchietti/orgs","repos_url":"https://api.github.com/users/gsanchietti/repos","events_url":"https://api.github.com/users/gsanchietti/events{/privacy}","received_events_url":"https://api.github.com/users/gsanchietti/received_events","type":"User","site_admin":false},"labels":[{"id":299407445,"node_id":"MDU6TGFiZWwyOTk0MDc0NDU=","url":"https://api.github.com/repos/NethServer/dev/labels/bug","name":"bug","color":"ee0701","default":true},{"id":300924045,"node_id":"MDU6TGFiZWwzMDA5MjQwNDU=","url":"https://api.github.com/repos/NethServer/dev/labels/verified","name":"verified","color":"707070","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-24T08:48:32Z","updated_at":"2018-09-25T17:03:17Z","closed_at":"2018-09-25T17:03:17Z","author_association":"MEMBER","body":"On a machine where asterisk is up&running, fail2ban sends a notification every time the asterisk jail is restarted, even if mail notification is turned off.\r\n\r\n**Steps to reproduce**\r\n\r\n- Install nethserver-freepbx and make sure asterisk is running\r\n- Install fail2ban and enable asterisk jail\r\n- Make sure mail notification is disabled in fail2ban\r\n- Restart fail2ban\r\n\r\nTo reproduce on a dev machine (without asterisk installed):\r\n```\r\nmkdir -p /var/log/asterisk/ && touch /var/log/asterisk/full\r\nconfig set asterisk service status enabled\r\nsignal-event nethserver-fail2ban-save\r\n```\r\n\r\n**Expected behavior**\r\n\r\nThe message should be sent only if mail notification is turned on.\r\n\r\n**Actual behavior**\r\n\r\nFail2ban always send a notification.\r\n\r\nExtract from maillog:\r\n```\r\nSep 14 18:19:10 test postfix/pickup[10564]: 5229A31AB0AC: uid=0 from=<fail2ban>\r\nSep 14 18:19:10 test postfix/cleanup[15080]: 5229A31AB0AC: message-id=<20180914161910.5229A31AB0AC@test.local.neth.eu>\r\nSep 14 18:19:10 test postfix/qmgr[1155]: 5229A31AB0AC: from=<fail2ban@test.local.neth.eu>, size=434, nrcpt=1 (queue active)\r\nSep 14 18:19:10 test postfix/smtp[15082]: 5229A31AB0AC: to=<admin@local.neth.eu>, relay=none, delay=0.48, delays=0.03/0.07/0.38/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=local.neth.eu type=AAAA: Host not found)\r\nSep 14 18:19:10 test postfix/cleanup[15080]: CBBAC31AB0AA: message-id=<20180914161910.CBBAC31AB0AA@test.local.neth.eu>\r\nSep 14 18:19:10 test postfix/qmgr[1155]: CBBAC31AB0AA: from=<>, size=2383, nrcpt=1 (queue active)\r\nSep 14 18:19:10 test postfix/bounce[15096]: 5229A31AB0AC: sender non-delivery notification: CBBAC31AB0AA\r\nSep 14 18:19:10 test postfix/qmgr[1155]: 5229A31AB0AC: removed\r\nSep 14 18:19:10 test postfix/local[15097]: CBBAC31AB0AA: to=<fail2ban@test.local.neth.eu>, relay=local, delay=0.02, delays=0.01/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: \"fail2ban\")\r\nSep 14 18:19:10 test postfix/qmgr[1155]: CBBAC31AB0AA: removed\r\n```\r\n\r\n**Components**\r\n\r\nnethserver-fail2ban-1.0.5-1.ns7.noarch\r\n"}}
{"actor":{"display_login":"gsanchietti"}}