{"action":"created","comment":{"url":"https://api.github.com/repos/tomav/docker-mailserver/pulls/comments/52816510","id":52816510,"diff_hunk":"@@ -188,6 +188,22 @@ echo \"required_score 5\" >> /etc/mail/spamassassin/local.cf\n echo \"rewrite_header Subject ***SPAM***\" >> /etc/mail/spamassassin/local.cf\n cp /tmp/spamassassin/rules.cf /etc/spamassassin/\n \n+\n+echo \"Configuring fail2ban\"\n+# enable filters\n+perl -i -0pe 's/(\\[postfix\\]\\n\\n).*\\n/\\1enabled  = true\\n/'     /etc/fail2ban/jail.conf","path":"start-mailserver.sh","position":7,"original_position":7,"commit_id":"7e7c34a256bbdb37e890f284e68297b5be1e6b33","original_commit_id":"7e7c34a256bbdb37e890f284e68297b5be1e6b33","user":{"login":"tomav","id":303803,"avatar_url":"https://avatars.githubusercontent.com/u/303803?v=3","gravatar_id":"","url":"https://api.github.com/users/tomav","html_url":"https://github.com/tomav","followers_url":"https://api.github.com/users/tomav/followers","following_url":"https://api.github.com/users/tomav/following{/other_user}","gists_url":"https://api.github.com/users/tomav/gists{/gist_id}","starred_url":"https://api.github.com/users/tomav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomav/subscriptions","organizations_url":"https://api.github.com/users/tomav/orgs","repos_url":"https://api.github.com/users/tomav/repos","events_url":"https://api.github.com/users/tomav/events{/privacy}","received_events_url":"https://api.github.com/users/tomav/received_events","type":"User","site_admin":false},"body":"Let's keep like this for now.","created_at":"2016-02-13T00:24:19Z","updated_at":"2016-02-13T00:24:19Z","html_url":"https://github.com/tomav/docker-mailserver/pull/78#discussion_r52816510","pull_request_url":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/tomav/docker-mailserver/pulls/comments/52816510"},"html":{"href":"https://github.com/tomav/docker-mailserver/pull/78#discussion_r52816510"},"pull_request":{"href":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78","id":59230364,"html_url":"https://github.com/tomav/docker-mailserver/pull/78","diff_url":"https://github.com/tomav/docker-mailserver/pull/78.diff","patch_url":"https://github.com/tomav/docker-mailserver/pull/78.patch","issue_url":"https://api.github.com/repos/tomav/docker-mailserver/issues/78","number":78,"state":"open","locked":false,"title":"added fail2ban","user":{"login":"dominikwinter","id":2269503,"avatar_url":"https://avatars.githubusercontent.com/u/2269503?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikwinter","html_url":"https://github.com/dominikwinter","followers_url":"https://api.github.com/users/dominikwinter/followers","following_url":"https://api.github.com/users/dominikwinter/following{/other_user}","gists_url":"https://api.github.com/users/dominikwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikwinter/subscriptions","organizations_url":"https://api.github.com/users/dominikwinter/orgs","repos_url":"https://api.github.com/users/dominikwinter/repos","events_url":"https://api.github.com/users/dominikwinter/events{/privacy}","received_events_url":"https://api.github.com/users/dominikwinter/received_events","type":"User","site_admin":false},"body":"To prevent brute force attacks like:\r\n\r\n`Feb 12 18:17:25 mail postfix/smtpd[2595]: warning: unknown[xxx.xxx.xxx.xxx]: SASL LOGIN authentication failed: authentication failure\r\n`","created_at":"2016-02-12T21:01:02Z","updated_at":"2016-02-13T00:24:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bed6ee07b065d83c5335ad3c347c5d469de72bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78/commits","review_comments_url":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78/comments","review_comment_url":"https://api.github.com/repos/tomav/docker-mailserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomav/docker-mailserver/issues/78/comments","statuses_url":"https://api.github.com/repos/tomav/docker-mailserver/statuses/7e7c34a256bbdb37e890f284e68297b5be1e6b33","head":{"label":"dominikwinter:fail2ban","ref":"fail2ban","sha":"7e7c34a256bbdb37e890f284e68297b5be1e6b33","user":{"login":"dominikwinter","id":2269503,"avatar_url":"https://avatars.githubusercontent.com/u/2269503?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikwinter","html_url":"https://github.com/dominikwinter","followers_url":"https://api.github.com/users/dominikwinter/followers","following_url":"https://api.github.com/users/dominikwinter/following{/other_user}","gists_url":"https://api.github.com/users/dominikwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikwinter/subscriptions","organizations_url":"https://api.github.com/users/dominikwinter/orgs","repos_url":"https://api.github.com/users/dominikwinter/repos","events_url":"https://api.github.com/users/dominikwinter/events{/privacy}","received_events_url":"https://api.github.com/users/dominikwinter/received_events","type":"User","site_admin":false},"repo":{"id":51550549,"name":"docker-mailserver","full_name":"dominikwinter/docker-mailserver","owner":{"login":"dominikwinter","id":2269503,"avatar_url":"https://avatars.githubusercontent.com/u/2269503?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikwinter","html_url":"https://github.com/dominikwinter","followers_url":"https://api.github.com/users/dominikwinter/followers","following_url":"https://api.github.com/users/dominikwinter/following{/other_user}","gists_url":"https://api.github.com/users/dominikwinter/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikwinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikwinter/subscriptions","organizations_url":"https://api.github.com/users/dominikwinter/orgs","repos_url":"https://api.github.com/users/dominikwinter/repos","events_url":"https://api.github.com/users/dominikwinter/events{/privacy}","received_events_url":"https://api.github.com/users/dominikwinter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dominikwinter/docker-mailserver","description":"A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.","fork":true,"url":"https://api.github.com/repos/dominikwinter/docker-mailserver","forks_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/forks","keys_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/teams","hooks_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/hooks","issue_events_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/issues/events{/number}","events_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/events","assignees_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/assignees{/user}","branches_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/branches{/branch}","tags_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/tags","blobs_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/statuses/{sha}","languages_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/languages","stargazers_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/stargazers","contributors_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/contributors","subscribers_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/subscribers","subscription_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/subscription","commits_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/contents/{+path}","compare_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/merges","archive_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/downloads","issues_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/issues{/number}","pulls_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/pulls{/number}","milestones_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/milestones{/number}","notifications_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/labels{/name}","releases_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/releases{/id}","deployments_url":"https://api.github.com/repos/dominikwinter/docker-mailserver/deployments","created_at":"2016-02-11T22:05:34Z","updated_at":"2016-02-11T22:05:35Z","pushed_at":"2016-02-11T23:23:06Z","git_url":"git://github.com/dominikwinter/docker-mailserver.git","ssh_url":"git@github.com:dominikwinter/docker-mailserver.git","clone_url":"https://github.com/dominikwinter/docker-mailserver.git","svn_url":"https://github.com/dominikwinter/docker-mailserver","homepage":"","size":104,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tomav:master","ref":"master","sha":"52accb596c1c0d58c7a1aa5d85f1bb67fdbb84b6","user":{"login":"tomav","id":303803,"avatar_url":"https://avatars.githubusercontent.com/u/303803?v=3","gravatar_id":"","url":"https://api.github.com/users/tomav","html_url":"https://github.com/tomav","followers_url":"https://api.github.com/users/tomav/followers","following_url":"https://api.github.com/users/tomav/following{/other_user}","gists_url":"https://api.github.com/users/tomav/gists{/gist_id}","starred_url":"https://api.github.com/users/tomav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomav/subscriptions","organizations_url":"https://api.github.com/users/tomav/orgs","repos_url":"https://api.github.com/users/tomav/repos","events_url":"https://api.github.com/users/tomav/events{/privacy}","received_events_url":"https://api.github.com/users/tomav/received_events","type":"User","site_admin":false},"repo":{"id":33037215,"name":"docker-mailserver","full_name":"tomav/docker-mailserver","owner":{"login":"tomav","id":303803,"avatar_url":"https://avatars.githubusercontent.com/u/303803?v=3","gravatar_id":"","url":"https://api.github.com/users/tomav","html_url":"https://github.com/tomav","followers_url":"https://api.github.com/users/tomav/followers","following_url":"https://api.github.com/users/tomav/following{/other_user}","gists_url":"https://api.github.com/users/tomav/gists{/gist_id}","starred_url":"https://api.github.com/users/tomav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomav/subscriptions","organizations_url":"https://api.github.com/users/tomav/orgs","repos_url":"https://api.github.com/users/tomav/repos","events_url":"https://api.github.com/users/tomav/events{/privacy}","received_events_url":"https://api.github.com/users/tomav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomav/docker-mailserver","description":"A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker.","fork":false,"url":"https://api.github.com/repos/tomav/docker-mailserver","forks_url":"https://api.github.com/repos/tomav/docker-mailserver/forks","keys_url":"https://api.github.com/repos/tomav/docker-mailserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomav/docker-mailserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomav/docker-mailserver/teams","hooks_url":"https://api.github.com/repos/tomav/docker-mailserver/hooks","issue_events_url":"https://api.github.com/repos/tomav/docker-mailserver/issues/events{/number}","events_url":"https://api.github.com/repos/tomav/docker-mailserver/events","assignees_url":"https://api.github.com/repos/tomav/docker-mailserver/assignees{/user}","branches_url":"https://api.github.com/repos/tomav/docker-mailserver/branches{/branch}","tags_url":"https://api.github.com/repos/tomav/docker-mailserver/tags","blobs_url":"https://api.github.com/repos/tomav/docker-mailserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomav/docker-mailserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomav/docker-mailserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomav/docker-mailserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomav/docker-mailserver/statuses/{sha}","languages_url":"https://api.github.com/repos/tomav/docker-mailserver/languages","stargazers_url":"https://api.github.com/repos/tomav/docker-mailserver/stargazers","contributors_url":"https://api.github.com/repos/tomav/docker-mailserver/contributors","subscribers_url":"https://api.github.com/repos/tomav/docker-mailserver/subscribers","subscription_url":"https://api.github.com/repos/tomav/docker-mailserver/subscription","commits_url":"https://api.github.com/repos/tomav/docker-mailserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomav/docker-mailserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomav/docker-mailserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomav/docker-mailserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomav/docker-mailserver/contents/{+path}","compare_url":"https://api.github.com/repos/tomav/docker-mailserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomav/docker-mailserver/merges","archive_url":"https://api.github.com/repos/tomav/docker-mailserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomav/docker-mailserver/downloads","issues_url":"https://api.github.com/repos/tomav/docker-mailserver/issues{/number}","pulls_url":"https://api.github.com/repos/tomav/docker-mailserver/pulls{/number}","milestones_url":"https://api.github.com/repos/tomav/docker-mailserver/milestones{/number}","notifications_url":"https://api.github.com/repos/tomav/docker-mailserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomav/docker-mailserver/labels{/name}","releases_url":"https://api.github.com/repos/tomav/docker-mailserver/releases{/id}","deployments_url":"https://api.github.com/repos/tomav/docker-mailserver/deployments","created_at":"2015-03-28T14:56:28Z","updated_at":"2016-02-12T22:49:31Z","pushed_at":"2016-02-12T21:01:03Z","git_url":"git://github.com/tomav/docker-mailserver.git","ssh_url":"git@github.com:tomav/docker-mailserver.git","clone_url":"https://github.com/tomav/docker-mailserver.git","svn_url":"https://github.com/tomav/docker-mailserver","homepage":"","size":108,"stargazers_count":182,"watchers_count":182,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":2,"forks":52,"open_issues":2,"watchers":182,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78"},"html":{"href":"https://github.com/tomav/docker-mailserver/pull/78"},"issue":{"href":"https://api.github.com/repos/tomav/docker-mailserver/issues/78"},"comments":{"href":"https://api.github.com/repos/tomav/docker-mailserver/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/tomav/docker-mailserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomav/docker-mailserver/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/tomav/docker-mailserver/statuses/7e7c34a256bbdb37e890f284e68297b5be1e6b33"}}}}