WIP: Setup of a mail server #9

Draft
otthorn wants to merge 151 commits from mailserver into master
Owner

Creating a full fledged mail server at Aurore

Before merging, to sure to...

TODO :

  • Add {{ ansible_managed }} in the config files where it is missing
  • Please yaml linter
  • Please ansible linter
  • Run the whole playbook one last time to check if the result is idempotent
  • Add a motd for each service (re2o-mailserver, Postfix, Dovecot, rspamd, etc...) and give a link of where to find them if necessary
  • Add apt retry and update cache everywhere where it is needed
register: apt_result
retries: 3
until: apt_result is succeeded
  • Rebase from master to avoid changing re2o-service password
  • Resolve merge conflicts (most notablly in the vault)
  • Re-deploy the new re2o-service password
  • Add the service mail-server to re2o (prod)
  • Change re2o instance (from re2o-test)
Creating a full fledged mail server at Aurore Before merging, to sure to... TODO : - [ ] Add `{{ ansible_managed }}` in the config files where it is missing - [ ] Please yaml linter - [ ] Please ansible linter - [ ] Run the whole playbook one last time to check if the result is idempotent - [ ] Add a motd for each service (re2o-mailserver, Postfix, Dovecot, rspamd, etc...) and give a link of where to find them if necessary - [ ] Add apt retry and update cache everywhere where it is needed ```yaml register: apt_result retries: 3 until: apt_result is succeeded ``` - [x] Rebase from master to avoid changing re2o-service password - [x] Resolve merge conflicts (most notablly in the vault) - [x] Re-deploy the new re2o-service password - [ ] Add the service `mail-server` to re2o (prod) - [ ] Change re2o instance (from `re2o-test`)
otthorn added 60 commits 2021-02-04 02:21:39 +01:00
Add (initial) mailserver playbook
Some checks failed
continuous-integration/drone/push Build is failing
9c0f7010a7
fix yaml lint
Some checks failed
continuous-integration/drone/push Build is failing
bb8bd718a9
commented unused tasks for the moment
Some checks failed
continuous-integration/drone/push Build is failing
ca6d4a9839
Added the certificates gestion
Some checks failed
continuous-integration/drone/push Build is failing
8557db5e89
Add nfs-client role
Some checks failed
continuous-integration/drone/push Build is failing
1847a5a698
fix var names for better hierarchy
Some checks failed
continuous-integration/drone/push Build is failing
f901669341
Added NFS host_var for mail.auro.re
Some checks failed
continuous-integration/drone/push Build is failing
807ecda890
mail is no longer in adm
Some checks failed
continuous-integration/drone/push Build is failing
17a64241d6
fix ansible-lint
Some checks failed
continuous-integration/drone/push Build is failing
d873b3f3a8
add sain defaults for NFS client
Some checks failed
continuous-integration/drone/push Build is failing
e77047a532
oupsie, reverse this
Some checks failed
continuous-integration/drone/push Build is failing
a5a0e5ccfe
Agree to Letsencrypt TOS
Some checks failed
continuous-integration/drone/push Build is failing
06917ce46b
Add the mail-certificate role
Some checks failed
continuous-integration/drone/push Build is failing
9d4c630c7e
Please linter
Some checks failed
continuous-integration/drone/push Build is failing
ee16220591
fix ansible lint v2 -- we actually git add the file this time
Some checks failed
continuous-integration/drone/push Build is failing
a8cbe4549c
Starting to try out postfix config
Some checks failed
continuous-integration/drone/push Build is failing
851e459b6f
Config outside of conf.d
Some checks failed
continuous-integration/drone/push Build is failing
241997396b
fix typo
Some checks failed
continuous-integration/drone/push Build is failing
e1d8382fed
dovecot handlers
Some checks failed
continuous-integration/drone/push Build is failing
d3cf2c7e5f
maildir conf
Some checks failed
continuous-integration/drone/push Build is failing
79b75cae00
renamed to fit jinja template
Some checks failed
continuous-integration/drone/push Build is failing
f991befbc6
Add IMAP/POP/SMTP auth conf
Some checks failed
continuous-integration/drone/push Build is failing
026e35adc7
Add ssl conf
Some checks failed
continuous-integration/drone/push Build is failing
1297884ce1
dovecot ldap conf
Some checks failed
continuous-integration/drone/push Build is failing
ad1a1602eb
Add dovecot bind password into the vault
Some checks failed
continuous-integration/drone/push Build is failing
645f0fd445
Fix mode, shoudl always be set
Some checks failed
continuous-integration/drone/push Build is failing
094334e069
use underscores instead of dashes inside role names
Some checks failed
continuous-integration/drone/push Build is failing
b8e4ece8a7
User handlers to run when something changed
Some checks failed
continuous-integration/drone/push Build is failing
99a46af244
add local_network variable
Some checks failed
continuous-integration/drone/push Build is failing
24fa5a969c
fix typo and indentation problem
Some checks failed
continuous-integration/drone/push Build is failing
8612f835af
fix conf.d template files path
Some checks failed
continuous-integration/drone/push Build is failing
b50ef60e8a
Add sane logging timestamp format
Some checks failed
continuous-integration/drone/push Build is failing
fcb53b7cf5
remove non-existant conf file from the role
Some checks failed
continuous-integration/drone/push Build is failing
af4d66c85b
Don't add conf.d/*.conf into a file that is itself already there! dumb dumb
Some checks failed
continuous-integration/drone/push Build is failing
c45dab323a
Add config in the right section
Some checks failed
continuous-integration/drone/push Build is failing
809f5f9cc9
Add LMTP for Postfix-Dovecot communication
Some checks failed
continuous-integration/drone/push Build is failing
b2a49c1e42
Fix syntax: don't forget the underscore
Some checks failed
continuous-integration/drone/push Build is failing
52a29ff010
Add quota to dovecot
Some checks failed
continuous-integration/drone/push Build is failing
c85b2b58fe
Add re2o mail server
Some checks failed
continuous-integration/drone/push Build is failing
cf58c2bac5
add re2o service mail cron
Some checks failed
continuous-integration/drone/push Build is failing
1c7b4f8560
Add Re2o API vars
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
1e59bec323
otthorn added 1 commit 2021-02-04 02:24:50 +01:00
Mail VM has a public addr now and FQDN is mail.auro.re
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
0a7de4fc78
otthorn added 1 commit 2021-02-04 13:03:07 +01:00
Use correct re2o API vars (don't add them twice in vault, reuse them)
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
ebf712d0bc
otthorn added 1 commit 2021-02-04 14:48:00 +01:00
Don't reinvent the whell, use existing roles (have to be tested)
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
27cfcc1320
otthorn added 1 commit 2021-02-04 23:19:03 +01:00
Postfix conf add certs and other security related modifications
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2c531d1af2
otthorn added 2 commits 2021-02-04 23:35:24 +01:00
fix yaml syntax
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
efa34dab42
otthorn added 1 commit 2021-02-04 23:44:43 +01:00
Fix broken vars
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
43053e57f9
otthorn added 1 commit 2021-02-05 00:05:36 +01:00
Post renewal hook for certbot to reload dovecot and postfix
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
256d2d5df4
otthorn added 1 commit 2021-02-05 00:07:47 +01:00
move files to the right place and fix small typo
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
77918e00ce
otthorn added 1 commit 2021-02-05 00:09:21 +01:00
Remove file since I did not git mv correclty...
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
b35922346e
otthorn added 1 commit 2021-02-05 01:18:12 +01:00
Fix postfix cert variables
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
c0cd3946fb
otthorn added 1 commit 2021-02-05 01:35:56 +01:00
Add postfix quota check
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
5f48a46522
otthorn added 1 commit 2021-02-05 01:51:08 +01:00
Correct typo, this one was sneaky!
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
faba1d2005
otthorn force-pushed mailserver from faba1d2005 to 659847bbfa 2021-02-06 12:30:40 +01:00 Compare
otthorn force-pushed mailserver from 659847bbfa to 4cd6a2d2c5 2021-02-06 12:54:46 +01:00 Compare
otthorn added 74 commits 2021-02-20 13:47:39 +01:00
Add (initial) mailserver playbook
Some checks failed
continuous-integration/drone/push Build is failing
9c0f7010a7
fix yaml lint
Some checks failed
continuous-integration/drone/push Build is failing
bb8bd718a9
commented unused tasks for the moment
Some checks failed
continuous-integration/drone/push Build is failing
ca6d4a9839
Added the certificates gestion
Some checks failed
continuous-integration/drone/push Build is failing
8557db5e89
Add nfs-client role
Some checks failed
continuous-integration/drone/push Build is failing
1847a5a698
fix var names for better hierarchy
Some checks failed
continuous-integration/drone/push Build is failing
f901669341
Added NFS host_var for mail.auro.re
Some checks failed
continuous-integration/drone/push Build is failing
807ecda890
mail is no longer in adm
Some checks failed
continuous-integration/drone/push Build is failing
17a64241d6
fix ansible-lint
Some checks failed
continuous-integration/drone/push Build is failing
d873b3f3a8
add sain defaults for NFS client
Some checks failed
continuous-integration/drone/push Build is failing
e77047a532
oupsie, reverse this
Some checks failed
continuous-integration/drone/push Build is failing
a5a0e5ccfe
Agree to Letsencrypt TOS
Some checks failed
continuous-integration/drone/push Build is failing
06917ce46b
Add the mail-certificate role
Some checks failed
continuous-integration/drone/push Build is failing
9d4c630c7e
Please linter
Some checks failed
continuous-integration/drone/push Build is failing
ee16220591
fix ansible lint v2 -- we actually git add the file this time
Some checks failed
continuous-integration/drone/push Build is failing
a8cbe4549c
Starting to try out postfix config
Some checks failed
continuous-integration/drone/push Build is failing
851e459b6f
Config outside of conf.d
Some checks failed
continuous-integration/drone/push Build is failing
241997396b
fix typo
Some checks failed
continuous-integration/drone/push Build is failing
e1d8382fed
dovecot handlers
Some checks failed
continuous-integration/drone/push Build is failing
d3cf2c7e5f
maildir conf
Some checks failed
continuous-integration/drone/push Build is failing
79b75cae00
renamed to fit jinja template
Some checks failed
continuous-integration/drone/push Build is failing
f991befbc6
Add IMAP/POP/SMTP auth conf
Some checks failed
continuous-integration/drone/push Build is failing
026e35adc7
Add ssl conf
Some checks failed
continuous-integration/drone/push Build is failing
1297884ce1
dovecot ldap conf
Some checks failed
continuous-integration/drone/push Build is failing
ad1a1602eb
Add dovecot bind password into the vault
Some checks failed
continuous-integration/drone/push Build is failing
645f0fd445
Fix mode, shoudl always be set
Some checks failed
continuous-integration/drone/push Build is failing
094334e069
use underscores instead of dashes inside role names
Some checks failed
continuous-integration/drone/push Build is failing
b8e4ece8a7
User handlers to run when something changed
Some checks failed
continuous-integration/drone/push Build is failing
99a46af244
add local_network variable
Some checks failed
continuous-integration/drone/push Build is failing
24fa5a969c
fix typo and indentation problem
Some checks failed
continuous-integration/drone/push Build is failing
8612f835af
fix conf.d template files path
Some checks failed
continuous-integration/drone/push Build is failing
b50ef60e8a
Add sane logging timestamp format
Some checks failed
continuous-integration/drone/push Build is failing
fcb53b7cf5
remove non-existant conf file from the role
Some checks failed
continuous-integration/drone/push Build is failing
af4d66c85b
Don't add conf.d/*.conf into a file that is itself already there! dumb dumb
Some checks failed
continuous-integration/drone/push Build is failing
c45dab323a
Add config in the right section
Some checks failed
continuous-integration/drone/push Build is failing
809f5f9cc9
Add LMTP for Postfix-Dovecot communication
Some checks failed
continuous-integration/drone/push Build is failing
b2a49c1e42
Fix syntax: don't forget the underscore
Some checks failed
continuous-integration/drone/push Build is failing
52a29ff010
Add quota to dovecot
Some checks failed
continuous-integration/drone/push Build is failing
c85b2b58fe
Add re2o mail server
Some checks failed
continuous-integration/drone/push Build is failing
cf58c2bac5
add re2o service mail cron
Some checks failed
continuous-integration/drone/push Build is failing
1c7b4f8560
Add Re2o API vars
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
1e59bec323
Mail VM has a public addr now and FQDN is mail.auro.re
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
0a7de4fc78
Use correct re2o API vars (don't add them twice in vault, reuse them)
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
ebf712d0bc
Don't reinvent the whell, use existing roles (have to be tested)
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
27cfcc1320
Postfix conf add certs and other security related modifications
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2c531d1af2
fix yaml syntax
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
efa34dab42
Fix broken vars
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
43053e57f9
Post renewal hook for certbot to reload dovecot and postfix
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
256d2d5df4
move files to the right place and fix small typo
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
77918e00ce
Remove file since I did not git mv correclty...
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
b35922346e
Fix postfix cert variables
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
c0cd3946fb
Add postfix quota check
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
5f48a46522
Correct typo, this one was sneaky!
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
faba1d2005
Merge branch 'mailserver' of ssh://gitea.auro.re:2222/Aurore/ansible into mailserver
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
a2cbf4a487
otthorn added 1 commit 2021-02-20 14:00:51 +01:00
Merge branch 'master' into mailserver
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
b06ac0647c
otthorn added 4 commits 2021-02-20 14:18:22 +01:00
🚨 fix risky-file-permissions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
0283c0c589
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
This pull request has changes conflicting with the target branch.
  • group_vars/all/vault.yml
  • hosts
  • roles/certbot/templates/letsencrypt/conf.d/certname.ini.j2
  • group_vars/all/vars.yml
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin mailserver:mailserver
git checkout mailserver
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: aurore/ansible#9
No description provided.