Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker_notes:docker-mailserver [2024-05-04 Sat wk18 10:16] – [nftables] baumkp | docker_notes:docker-mailserver [2024-08-14 Wed wk33 20:50] (current) – [postfix] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
======Docker mailserver====== | ======Docker mailserver====== | ||
- | This mailserver setup follows Workaround' | + | This mailserver setup follows Workaround' |
//As this follows Workaround' | //As this follows Workaround' | ||
- | <fc # | ||
- | </ | ||
- Use of virtual machines is much more common these days than base metal for applications. However Workarounds Debian email server could be loaded on base metal. | - Use of virtual machines is much more common these days than base metal for applications. However Workarounds Debian email server could be loaded on base metal. | ||
- The database requirements for a small mailserver with a few dozen domains, with each domain having hundreds of emails and aliases is well within the capacity of the sqlite database. The use of a full multi user server / client relational database is not necessary, particularly for a Docker based server implementation. See [[https:// | - The database requirements for a small mailserver with a few dozen domains, with each domain having hundreds of emails and aliases is well within the capacity of the sqlite database. The use of a full multi user server / client relational database is not necessary, particularly for a Docker based server implementation. See [[https:// | ||
+ | |||
+ | <fc # | ||
+ | </fc> | ||
=====Dockerfile===== | =====Dockerfile===== | ||
I go annoyed with the messy UID and GID and found this reference to attempt to standardise upon. <fc # | I go annoyed with the messy UID and GID and found this reference to attempt to standardise upon. <fc # | ||
Line 250: | Line 251: | ||
< | < | ||
mail_version = 3.7.4</ | mail_version = 3.7.4</ | ||
+ | *'' | ||
+ | *'' | ||
====Making Postfix get its information from the sqlite database==== | ====Making Postfix get its information from the sqlite database==== | ||
Line 311: | Line 314: | ||
*'' | *'' | ||
*'' | *'' | ||
- | *'' | + | *'' |
It looks a shell script is used to control Postfix, in Alpine is is located ++here|/ | It looks a shell script is used to control Postfix, in Alpine is is located ++here|/ | ||
Line 350: | Line 353: | ||
Alpine posfix would seem to be setup to use postlogd, as master.cf has the following line already configured: | Alpine posfix would seem to be setup to use postlogd, as master.cf has the following line already configured: | ||
+ | The '' | ||
====/ | ====/ | ||
I get an error when recreating the container; " | I get an error when recreating the container; " | ||
Line 370: | Line 374: | ||
< | < | ||
2.3.20 (80a5ac675d) </ | 2.3.20 (80a5ac675d) </ | ||
+ | *'' | ||
+ | *'' | ||
====dovecot database configuration and testing==== | ====dovecot database configuration and testing==== | ||
Line 480: | Line 486: | ||
====dovecot testing with mutt==== | ====dovecot testing with mutt==== | ||
Workaround suggests the following command to be used to test: '' | Workaround suggests the following command to be used to test: '' | ||
+ | |||
+ | ====dovecot ssl_dh==== | ||
+ | |||
+ | I was getting the following error coming up occasionally in my Dovecot log file, "May 25 12:16:05 imap-login: Error: Diffie-Hellman key exchange requested, but no DH parameters provided. Set ssl_dh=</ | ||
====dovecot logging==== | ====dovecot logging==== | ||
Line 506: | Line 516: | ||
=====Certificates SSL/ | =====Certificates SSL/ | ||
- | Early on, before 2015 there were not many free SSL certificate providers. I used StartSSL for a free certificate. | + | Early on, before 2015 there were not many free SSL certificate providers. I used StartSSL for a free certificate. |
=====apache2===== | =====apache2===== | ||
Alpine apk apache2 distribution seems to follow the Red Hat setup style. The daemon is httpd instead of apache2. | Alpine apk apache2 distribution seems to follow the Red Hat setup style. The daemon is httpd instead of apache2. | ||
Line 602: | Line 612: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | |||
+ | Places to change php version number: | ||
+ | *In the Docker file us the variable '' | ||
+ | *All the /php82/ paths in the pre_start_script.sh, | ||
+ | *The php-fpm82 reference in '' | ||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
===Reference=== | ===Reference=== | ||
Line 828: | Line 846: | ||
=====Mailserver testing from CLI===== | =====Mailserver testing from CLI===== | ||
- | '' | + | *'' |
- | '' | + | *'' |
- | '' | + | *'' |
The mailserver exit control character is ' | The mailserver exit control character is ' | ||
The SMTP and mailserver exit control character is ' | The SMTP and mailserver exit control character is ' | ||
+ | |||
+ | =====Errors===== | ||
+ | < | ||
+ | Please check the message recipient " | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
=====References===== | =====References===== | ||
*Workaround.org [[https:// | *Workaround.org [[https:// |