Mailu discussion
I’ve not tried mailu yet. It looks precisely what I want, however it doesn’t appear to have helm yet, or at least it didn’t. Just in the last few weeks there was a new helm chart that has been added and is in active development. So I suspect I’m going to have to put in some changes, or at least go crazy trying to keep up with it.
First pass at configuration
The helm chart looks to be going pretty well. I got it installing sorta at work. I don’t have any internet facing infrastructure there so I couldn’t actually deploy a mail server for real.
Anyway here is the documentation for the values.yaml file:
| Parameter | Description | Default |
|---|---|---|
mailuVersion |
Version/tag of mailu images | master |
logLevel |
Level of logging | WARNING |
nameOverride |
Override the resource name prefix | mailu |
fullnameOverride |
Override the full resource names | mailu-{release-name} (or mailu if release-name is mailu) |
hostnames |
List of hostnames to generate certificates and ingresses for | not set |
domain |
Mail domain name, see https://github.com/Mailu/Mailu/blob/master/docs/faq.rst#what-is-the-difference-between-domain-and-hostnames | not set |
passwordScheme |
Scheme used to hash passwords | PBKDF2 |
secretKey |
Session encryption key for admin and webmail | not set |
mail.messageSizeLimitInMegabytes |
Message size limit in Megabytes | 50 |
mail.authRatelimit |
Rate limit for authentication requests | 10/minute;1000/hour |
initialAccount.username |
Local part (part after @) for initial admin account | not set |
initialAccount.domain |
Domain part (part before @) for initial admin account | not set |
initialAccount.password |
Password for initial admin account | not set |
certmanager.issuerType |
Issuer type for cert manager | ClusterIssuer |
certmanager.issuerName |
Name of a preconfigured cert issuer | letsencrypt |
The secretKey is required, I’m gonna go with lastpass for now.
So, this is all I’m supposed to have to do to get it up:
helm repo add mailu https://mailu.github.io/helm-charts/
helm install --values values.yaml mailu/mailu
Looks like I need persistence.type looking at the code this variable just needs to not be ‘hostPath’. It will take storageClass, however here at deepthot I’ve already got nfs-client set up as the default so I don’t have to do anything.
I’m setting persistence.type=nfs-client although that’s not really a thing.
Some of the resources were set too low causing a really unhelpful error message. I bumped them quite a bit:
front:
resources:
requests:
memory: 200Mi
cpu: 200m
limits:
memory: 1000Mi
cpu: 1000m
Taking it apart and working on the pieces
I’ve been spending a bunch of time installing the non helmchart version and I think I’ve pretty much figured it out.
Setting up ingresses for mail
The port mappings are all in the nginx configuration repository git@gitlab.deepthot.aa:denebeim/nginxconfig.git
| Port | Container | Purpose |
|---|---|---|
| 25 | mailu/mailu-smtp:25 | SMTP |
| 465 | mailu/mailu-smtp:465 | DEPRECATED |
| 587 | mailu/mailu-smtp:587 | SMTP-TLS |
| 2525 | mailu/mailu-smtp:2525 | SMTP |
| 10025 | mailu/mailu-smtp:10025 | SMTP-AUTH |
| 143 | mailu/mailu-imap:143 | IMAP |
| 993 | mailu/mailu-imap:993 | IMAPS |
| 110 | mailu/mailu-imap:110 | POP |
| 995 | mailu/mailu-imap:995 | POPS |
Currently mailu is actually in the mailu-mailserver namespace since that’s what the non helmified server is shipped with. So what will go into the nginxconfig is
tcp:
25: "mailu-mailserver/mailu-smtp:25"
587: "mailu-mailserver/mailu-smtp:587"
2525: "mailu-mailserver/mailu-smtp:2525"
10025: "mailu-mailserver/mailu-smtp:10025"
143: "mailu-mailserver/mailu-imap:143"
993: "mailu-mailserver/mailu-imap:993"
110: "mailu-mailserver/mailu-pop:110"
995: "mailu-mailserver/mailu-pop:995"
No comments:
Post a Comment