Commit Graph

50 Commits

Author SHA1 Message Date
18944ab54d build(version): bump version 0.1.0rc0 → 0.1.0rc1 v0.1.0rc1 2022-02-17 04:05:00 +00:00
Jon
91d65302cb Merge branch '1-message-authenticity' into 'development'
feat: add dkim, spf and dmarc validation

See merge request nofusscomputing/projects/docker-mail!6
2022-02-17 03:57:25 +00:00
Jon
bde6c054bb refactor: conf config values updated
To fail a message for spf policy, `fail` is the value not false.

MR !6
2022-02-17 03:52:02 +00:00
a71e7691a2 docs(spf): added basic spf guide
MR !6
2022-02-17 13:16:52 +09:30
ac706ed28b test: mail hostname set to non-existent domain
Don't use a legigimate domain. as this is for testing only, set to null

MR !6
2022-02-17 12:38:04 +09:30
92e4e4b2d5 feat(amavis): added DKIM verification
DKIM varification added to amavis milter.

MR !6
2022-02-17 12:37:12 +09:30
245aa724d2 feat(spf): conduct spf check for inbound smtp
NOTE: currently a failed SPF check does not block the message.
currently set to add header for testing purposes.

MR !6
2022-02-17 12:13:41 +09:30
Jon
fb909c009a Merge branch '1-docker-hub-dev-push' into 'development'
ci(docker_hub): fix dev push

See merge request nofusscomputing/projects/docker-mail!5
2022-02-16 06:07:32 +00:00
27ad07ead3 ci(docker_hub): fix dev push
Wasn't using the right cariable to check for dev push and the
commands were in the wrong order.

MR !5
2022-02-16 15:34:18 +09:30
Jon
e4e5078ba5 Merge branch '1-docker-hub-dev-push' into 'development'
fix: merge request to dev to create dev dockerhub tag

See merge request nofusscomputing/projects/docker-mail!4
2022-02-16 05:53:38 +00:00
be42d0ad3b docs: Addied initial documentation for dkim
Explains how to configure, generate keys and how to change keys.

MR !4
2022-02-16 15:14:54 +09:30
53e0cdd171 refactor(amavis): move dkim key config to own file
using a seperate file for the DKIM key configuration enables the user
to easily configure with their settings.

MR !4
2022-02-16 14:17:26 +09:30
f6cf41eaed test: adjust dkim key length
RFC6376  https://datatracker.ietf.org/doc/html/rfc6376#section-3.3.3
Specifies a key must be between 512 bits to 2048 bits.
However RSA Keys must be minimum of 1024 bits.

MR !4
2022-02-16 13:09:22 +09:30
aafd9acca9 ci(docker_hub): ensure build and DH push works on merge
fix the merge request dockerhub build.

var CI_COMMIT_BRANCH is not available in a merge request pipleine.
adjusted the pipline to run if development branch with a commit message
starting with Merge branch.
this enables usage of variable CI_COMMIT_BRANCH.

MR !4
2022-02-16 12:13:31 +09:30
Jon
bb44b67682 Merge branch '1-dkim-signing' into 'development'
feat: add dkim signing

See merge request nofusscomputing/projects/docker-mail!2
2022-02-16 02:23:29 +00:00
3e30b2780e refactor: ci code review suggestions
ensured the MR to dev would run for building the docker container.

MR !2
2022-02-16 11:46:54 +09:30
7f6de5ee2a build(dockerignore): added docker ignore file
Ignore all files and directories not applicable to the build.

MR !2
2022-02-16 11:34:29 +09:30
36808960ce ci(docker_hub): push a dev and latest tag to docker hub
When a git tag occurs, the image will also be tagged 'latest' and be
pushed to docker hub.

When a merge request occurs on the development branch, the image
will also be tagged 'dev' and be pushed to dockerhub.

MR !2
2022-02-16 11:20:57 +09:30
76c899e285 ci(docker_hub): removed duplicate rules section
There were two rules sections, combined both into a single section.

MR !2
2022-02-16 11:07:30 +09:30
b795fe5b67 feat(posfix): configure submission to dkim sign
All E-Mail submission (tcp/587) will be dkim signed if the domain is
matched in the amavis config '90-dkim'

MR !2
2022-02-16 10:42:31 +09:30
88ea42996d test(docker_compose): adjust ssl to be certs DIR
The directory was renamed from '/ssl' to '/certs'

MR !2
2022-02-16 10:37:41 +09:30
b9b2527a42 feat(amavis): Configured dkim
Default config is for domain example.org, which
is the testing domain.

User will be required to customise '90-dkim' with thier
own domain configuration, including generating dkim signing certificates.

MR !2
2022-02-16 10:36:47 +09:30
d8e51085a1 refactor(amavis): seperate config for socket
added the socket config to it's own file for clarity and to distinguish
a custom change from default.

MR !2
2022-02-16 10:34:23 +09:30
09aabeb68a refactor(ssl): Moved /ssl to /certs
As this directory not only contains the SSL Certs,
the dkim certs as well, renamed to make more sense.

MR !2
2022-02-16 10:29:21 +09:30
72ee475be7 feat(dkim): Added OpenDKIM to image
OpenDKIM is required to sign the emails.

MR !2
2022-02-16 10:26:50 +09:30
Jon
23830c8551 ci(docker_container): set to allow failure
The docker container does not need to be built as part
of the CI/CD process, as it's not used.

MR !2
2022-02-14 07:06:55 +00:00
5f8dea24d9 build(version): bump version 0.0.2 → 0.1.0rc0 v0.1.0rc0 2022-02-14 06:15:23 +00:00
Jon
7fc7c1ea13 Merge branch '1-initial-container' into 'development'
build: Initial mail server docker image

See merge request nofusscomputing/projects/docker-mail!1
2022-02-14 06:10:14 +00:00
Jon
99e61d0f11 ci(detached_pipeline): stop MR jobs
MR !1
2022-02-14 06:01:52 +00:00
6a61efe229 docs(README): updated readme
MR !1
2022-02-14 15:01:46 +09:30
f80c02ba15 ci(build): Added docker container build job
Builds the container and pushes to local gitlab registry

MR !1
2022-02-14 14:30:54 +09:30
b01bab033f refactor: readme linting errors
MR !1
2022-02-14 11:48:47 +09:30
b536a5e4b4 ci(gitlab-ci): updated to current dev commit
required that md lint works and that the correct nfc_bot details display.

MR !1
2022-02-14 11:41:01 +09:30
3a3f2098c7 feat(spam-learn): add duration to email
MR !1
2022-02-14 11:35:26 +09:30
1fe3598a54 fix(fetchmail): fix cron job so it runs
the command was set to echo instead of run.

MR !1
2022-02-14 10:15:08 +09:30
eb43442bb7 refactor: cron out to /dev/null
MR !1
2022-02-14 10:14:32 +09:30
38a252727d ci(markdown_lint): added linting rule file
MR !1
2022-02-14 10:03:41 +09:30
1d73c6eb8c feat(vscode): recommended extensions added
MR !1
2022-02-14 10:03:14 +09:30
3601d90aef fix(script): group-mailbox script must be executable
MR !1
2022-02-14 10:02:38 +09:30
90a21cf866 test(docker_compose): add compose file for testing
MR !1
2022-02-14 10:01:04 +09:30
d8ad253f98 feat(shared_mailbox): added helper script to share mailbox.
Shares all of the default folders.

MR !1
2022-02-14 09:56:42 +09:30
5ec218dad9 feat(sa-learn): Added cron script to learn spam/ham
Script checks user inbox and spam to learn what is/isn't spam.

MR !1
2022-02-14 09:55:19 +09:30
ace2493f66 feat(fetchmail): added fetchmail
cron job to run fetchmail script to get fetchmail config from roundcube
mysql database.

MR !1
2022-02-14 09:53:57 +09:30
a7c1ae052c feat(backup): Added backup cron and helper script.
Backs up all of the data to the /backup dir.

MR !1
2022-02-14 09:51:20 +09:30
4db1b34d38 feat(amavis): added amavis and configured spam
Spamassassin added as spam filter.

MR !1
2022-02-14 09:49:31 +09:30
df8997f07d feat: Added Dovecot and Postfix to container
Initial config also added.

MR !1
2022-02-14 09:45:18 +09:30
ec9e329956 build(docker): base image added
Setup dockerfile with base components.

MR !1
2022-02-14 09:26:19 +09:30
516541b5e0 build(version): bump version 0.0.1 → 0.0.2 v0.0.2 2022-02-11 23:51:41 +00:00
bbd2f14662 docs(README): added initial repo readme
issue #1
2022-02-12 09:14:32 +09:30
4a6f36d078 ci(gitlab-ci): added gitlab CI v0.6.1rc0
issue #1
v0.0.1
2022-02-12 09:14:19 +09:30