Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible-tools-zmsupport
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Gatica
ansible-tools-zmsupport
Commits
44956be8
Commit
44956be8
authored
Jan 08, 2018
by
David Gatica
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.zboxapp.com:david/ansible-tools-zmsupport
parents
d09a0290
6c1e3f76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
Readme.md
Readme.md
+37
-0
No files found.
Readme.md
0 → 100644
View file @
44956be8
### Index
-
[
Use this ansible to mark messages as not spam
](
#####Use-this-ansible-to-mark-messages-as-not-spam
)
-
[
Use this ansible to mark messages as spam
](
#####Use-this-ansible-to-mark-messages-as-spam
)
-----
##### Use this ansible to mark messages as not spam
#### Steps
-
Clone this project on our machine
-
Once project cloned on our machine, execute the playbook the following way
```
bash
ansible-playbook
-i
inventory tasks/playbook.yml
--extra-vars
"domain=domainWhereWantSearch query=criteriaForSearchMessagesOnDomain"
--tags
"search,searchOnJunk"
```
This will search on all Domain's mailboxes the messages that do match with our criteria passed in the before command
Then will mark all messages as not spam on the mailboxes and move this messages at Inbox folder
-----
##### Use this ansible to mark messages as spam
#### Steps
-
Clone this project on our machine
-
Once project cloned on our machine, execute the playbook the following way
```
bash
ansible-playbook
-i
inventory tasks/playbook.yml
--extra-vars
"domain=domainWhereWantSearch query=criteriaForSearchMessagesOnDomain"
--tags
"search,searchDefault"
```
This will search on all Domain's mailboxes the messages that do match with our criteria passed in the before command
Then will mark all messages as spam on the mailboxes and move this messages at Junk folder
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment