WIP: Setup of a mail server #9

Draft
otthorn wants to merge 151 commits from mailserver into master

151 commits

Author SHA1 Message Date
0283c0c589 🚨 fix risky-file-permissions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-02-20 14:18:09 +01:00
5d8874b489 🚨 fix trailling-spaces 2021-02-20 14:17:07 +01:00
6958bbf17a 🚨 fix risky-file-permission 2021-02-20 14:15:30 +01:00
6dae04fe62 🚨 fix trailling spaces and space in front of comment 2021-02-20 14:14:25 +01:00
otthorn
b06ac0647c Merge branch 'master' into mailserver
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-20 14:00:43 +01:00
a2cbf4a487 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
2021-02-06 13:09:37 +01:00
4cd6a2d2c5 Correct typo, this one was sneaky!
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-06 12:54:00 +01:00
11d5d19bb6 Add postfix quota check 2021-02-06 12:54:00 +01:00
18ca5b4805 Fix postfix cert variables 2021-02-06 12:54:00 +01:00
5dcb7eb0d1 Remove file since I did not git mv correclty... 2021-02-06 12:54:00 +01:00
402b203489 move files to the right place and fix small typo 2021-02-06 12:54:00 +01:00
a2fbe9b1e6 Post renewal hook for certbot to reload dovecot and postfix 2021-02-06 12:54:00 +01:00
9e6a127a8f Fix broken vars 2021-02-06 12:54:00 +01:00
391d5ce9a0 fix yaml syntax 2021-02-06 12:54:00 +01:00
bf692f4501 Add additional role for mailserver 2021-02-06 12:54:00 +01:00
d0196c8c00 Postfix conf add certs and other security related modifications 2021-02-06 12:54:00 +01:00
59302b7fd8 Don't reinvent the whell, use existing roles (have to be tested) 2021-02-06 12:54:00 +01:00
95e67e8fe1 Use correct re2o API vars (don't add them twice in vault, reuse them) 2021-02-06 12:54:00 +01:00
cac03b51c0 Mail VM has a public addr now and FQDN is mail.auro.re 2021-02-06 12:54:00 +01:00
8b59794013 Add Re2o API vars 2021-02-06 12:54:00 +01:00
ed81571cb8 add re2o service mail cron 2021-02-06 12:54:00 +01:00
5ae66dae15 Re2o API config 2021-02-06 12:54:00 +01:00
3af1aa8a18 Add re2o mail server 2021-02-06 12:54:00 +01:00
49243202b2 Add re2o mail server to the roles of the mailserver playbook 2021-02-06 12:54:00 +01:00
4d769ff6d3 Add quota to dovecot 2021-02-06 12:54:00 +01:00
b8edf512f7 Enable Dovecot sieve 2021-02-06 12:54:00 +01:00
477781e293 Fix syntax: don't forget the underscore 2021-02-06 12:54:00 +01:00
0d9de57a78 Add LMTP for Postfix-Dovecot communication 2021-02-06 12:54:00 +01:00
3b19ef06ee Add config in the right section 2021-02-06 12:54:00 +01:00
4bcdbec9c4 Don't add conf.d/*.conf into a file that is itself already there! dumb dumb 2021-02-06 12:54:00 +01:00
c1fc197da7 remove non-existant conf file from the role 2021-02-06 12:54:00 +01:00
c36e52c263 Add sane logging timestamp format 2021-02-06 12:54:00 +01:00
012a6076f3 fix conf.d template files path 2021-02-06 12:54:00 +01:00
ab124e560a Fix indentation... again 2021-02-06 12:54:00 +01:00
e26bc5f8c1 fix typo and indentation problem 2021-02-06 12:54:00 +01:00
32adecd5c1 add local_network variable 2021-02-06 12:54:00 +01:00
495f4c4343 User handlers to run when something changed 2021-02-06 12:54:00 +01:00
486216b8ff use command instead of shell when no shell functionality is required 2021-02-06 12:54:00 +01:00
f8774587c2 use underscores instead of dashes inside role names 2021-02-06 12:54:00 +01:00
522d286bdd Fix mode, shoudl always be set 2021-02-06 12:54:00 +01:00
5732fef21e rename roles to match regex set by linter 2021-02-06 12:54:00 +01:00
b8aa507166 fix typo 2021-02-06 12:54:00 +01:00
8436e64b3a reload -> restart 2021-02-06 12:54:00 +01:00
5c7537f4ac Add dovecot role to the mailserver 2021-02-06 12:54:00 +01:00
482bf1f8bc Add dovecot bind password into the vault 2021-02-06 12:53:50 +01:00
f14da45305 dovecot vars 2021-02-06 12:51:12 +01:00
637d7b02d3 dovecot ldap conf 2021-02-06 12:51:12 +01:00
910838c416 Add ssl conf 2021-02-06 12:51:12 +01:00
f0a2bfd740 Add IMAP/POP/SMTP auth conf 2021-02-06 12:51:12 +01:00
f3eeb243bb renamed to fit jinja template 2021-02-06 12:51:12 +01:00
05e16f3226 maildir conf 2021-02-06 12:51:12 +01:00
9260b902d6 auth config 2021-02-06 12:51:12 +01:00
1ec03eda87 dovecot handlers 2021-02-06 12:51:12 +01:00
74e722fef8 fix typo 2021-02-06 12:51:12 +01:00
46c8b82a57 Config outside of conf.d 2021-02-06 12:51:12 +01:00
946b3c973e Apt retry mechanism 2021-02-06 12:51:12 +01:00
cbdde70c2a Starting to try out postfix config 2021-02-06 12:51:12 +01:00
facb7365fc Please linter 2021-02-06 12:51:12 +01:00
769dc5619b Add the mail-certificate role 2021-02-06 12:51:12 +01:00
155daedd24 Agree to Letsencrypt TOS 2021-02-06 12:51:05 +01:00
d49ad0f8d8 oupsie, reverse this 2021-02-06 12:47:49 +01:00
3a2f073db5 fix typo 2021-02-06 12:47:49 +01:00
9543c2f10d dashes are evil, use underscore in var names 2021-02-06 12:47:49 +01:00
a0a6124481 add sain defaults for NFS client 2021-02-06 12:47:49 +01:00
ed9557d342 fix ansible-lint 2021-02-06 12:47:49 +01:00
f7ee1403d9 Fix yaml lint 2021-02-06 12:47:49 +01:00
8cb8548139 mail is no longer in adm 2021-02-06 12:46:39 +01:00
b6355ebb0a Added NFS host_var for mail.auro.re 2021-02-06 12:46:39 +01:00
2605266137 fix var names for better hierarchy 2021-02-06 12:46:39 +01:00
991e306320 Add nfs-client role 2021-02-06 12:46:39 +01:00
40df593f11 Added the certificates gestion 2021-02-06 12:46:39 +01:00
3714396b6b commented unused tasks for the moment 2021-02-06 12:46:39 +01:00
750753f16d Starting the dovecot task 2021-02-06 12:46:39 +01:00
673d77d1be fix yaml lint 2021-02-06 12:46:39 +01:00
de83af936d Add (initial) mailserver playbook 2021-02-06 12:46:39 +01:00
5377378bf7 Add (initial) mail-utils role 2021-02-06 12:46:39 +01:00
f01533409f Add (initial) postfix role 2021-02-06 12:46:39 +01:00
4b3e491983 Add mail vars 2021-02-06 12:46:39 +01:00
faba1d2005 Correct typo, this one was sneaky!
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-05 01:50:56 +01:00
5f48a46522 Add postfix quota check
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-05 01:35:46 +01:00
c0cd3946fb Fix postfix cert variables
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-05 01:17:58 +01:00
b35922346e 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
2021-02-05 00:09:12 +01:00
77918e00ce 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
2021-02-05 00:07:36 +01:00
256d2d5df4 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
2021-02-05 00:05:26 +01:00
43053e57f9 Fix broken vars
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-04 23:44:32 +01:00
efa34dab42 fix yaml syntax
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-04 23:35:12 +01:00
e316679e13 Add additional role for mailserver 2021-02-04 23:34:53 +01:00
2c531d1af2 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
2021-02-04 23:18:23 +01:00
27cfcc1320 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
2021-02-04 14:47:40 +01:00
ebf712d0bc 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
2021-02-04 13:02:52 +01:00
0a7de4fc78 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
2021-02-04 02:24:35 +01:00
1e59bec323 Add Re2o API vars
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2021-02-04 02:14:52 +01:00
1c7b4f8560 add re2o service mail cron
Some checks failed
continuous-integration/drone/push Build is failing
2021-02-04 01:46:55 +01:00
9e91f2e9d5 Re2o API config 2021-02-04 01:38:49 +01:00
cf58c2bac5 Add re2o mail server
Some checks failed
continuous-integration/drone/push Build is failing
2021-02-04 01:30:14 +01:00
1c20193fc8 Add re2o mail server to the roles of the mailserver playbook 2021-02-04 01:03:18 +01:00
c85b2b58fe Add quota to dovecot
Some checks failed
continuous-integration/drone/push Build is failing
2021-02-03 23:20:10 +01:00
2673f771d9 Enable Dovecot sieve 2021-02-03 20:18:46 +01:00
52a29ff010 Fix syntax: don't forget the underscore
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 01:14:53 +01:00
b2a49c1e42 Add LMTP for Postfix-Dovecot communication
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 01:10:31 +01:00
809f5f9cc9 Add config in the right section
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 01:05:37 +01:00
c45dab323a 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
2021-01-30 00:56:17 +01:00
af4d66c85b remove non-existant conf file from the role
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 00:46:00 +01:00
fcb53b7cf5 Add sane logging timestamp format
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 00:41:30 +01:00
b50ef60e8a fix conf.d template files path
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 00:38:15 +01:00
d05425745f Fix indentation... again 2021-01-30 00:34:54 +01:00
8612f835af fix typo and indentation problem
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 00:30:35 +01:00
24fa5a969c add local_network variable
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 00:25:15 +01:00
99a46af244 User handlers to run when something changed
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-30 00:02:28 +01:00
8b66ba059b use command instead of shell when no shell functionality is required 2021-01-29 23:59:53 +01:00
b8e4ece8a7 use underscores instead of dashes inside role names
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-29 23:44:20 +01:00
094334e069 Fix mode, shoudl always be set
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-29 01:03:18 +01:00
de2758f4d6 rename roles to match regex set by linter 2021-01-29 01:01:10 +01:00
58064df056 fix typo 2021-01-29 00:57:24 +01:00
bd8942eff2 reload -> restart 2021-01-29 00:56:08 +01:00
418da50049 Add dovecot role to the mailserver 2021-01-29 00:55:02 +01:00
645f0fd445 Add dovecot bind password into the vault
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-29 00:27:00 +01:00
eb257b966b dovecot vars 2021-01-29 00:20:02 +01:00
ad1a1602eb dovecot ldap conf
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-29 00:16:42 +01:00
1297884ce1 Add ssl conf
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-28 03:15:45 +01:00
026e35adc7 Add IMAP/POP/SMTP auth conf
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-28 01:34:09 +01:00
f991befbc6 renamed to fit jinja template
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-28 01:27:22 +01:00
79b75cae00 maildir conf
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-28 01:24:50 +01:00
765ce39625 auth config 2021-01-28 01:11:32 +01:00
d3cf2c7e5f dovecot handlers
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-28 00:15:51 +01:00
e1d8382fed fix typo
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-28 00:13:08 +01:00
241997396b Config outside of conf.d
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-28 00:11:36 +01:00
a54c5832a3 Apt retry mechanism 2021-01-28 00:07:23 +01:00
851e459b6f Starting to try out postfix config
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 23:48:36 +01:00
a8cbe4549c fix ansible lint v2 -- we actually git add the file this time
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 23:45:09 +01:00
ee16220591 Please linter
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 17:02:52 +01:00
9d4c630c7e Add the mail-certificate role
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 17:02:05 +01:00
06917ce46b Agree to Letsencrypt TOS
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 16:40:28 +01:00
a5a0e5ccfe oupsie, reverse this
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 13:27:55 +01:00
72d486119e fix typo 2021-01-17 13:27:43 +01:00
7e03eafeaa dashes are evil, use underscore in var names 2021-01-17 13:27:24 +01:00
e77047a532 add sain defaults for NFS client
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 13:03:09 +01:00
d873b3f3a8 fix ansible-lint
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 12:51:52 +01:00
5c9ae10a8c Fix yaml lint 2021-01-17 12:47:58 +01:00
17a64241d6 mail is no longer in adm
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 12:42:15 +01:00
807ecda890 Added NFS host_var for mail.auro.re
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 12:41:37 +01:00
f901669341 fix var names for better hierarchy
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 12:34:25 +01:00
1847a5a698 Add nfs-client role
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-17 12:31:30 +01:00
8557db5e89 Added the certificates gestion
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-15 19:52:55 +01:00
ca6d4a9839 commented unused tasks for the moment
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-14 22:48:13 +01:00
9a04934bd2 Starting the dovecot task 2021-01-14 22:47:29 +01:00
bb8bd718a9 fix yaml lint
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-14 12:25:23 +01:00
9c0f7010a7 Add (initial) mailserver playbook
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-14 12:16:20 +01:00
846665961a Add (initial) mail-utils role 2021-01-14 12:16:00 +01:00
b412210d56 Add (initial) postfix role 2021-01-14 12:15:48 +01:00
b2fb30d46d Add mail vars 2021-01-14 12:14:57 +01:00