some dovecot config

This commit is contained in:
Jeff Moe 2024-09-01 11:09:37 -06:00
parent 80b1e1904c
commit ab4704408e
2 changed files with 106 additions and 60 deletions

View file

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Libre Developers Documentation 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-01 10:53-0600\n"
"POT-Creation-Date: 2024-09-01 11:07-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -30,176 +30,199 @@ msgstr ""
#: ../../../_source/mail-libre-is.rst:6
msgid ""
"Setting up Internet mail servers is a pain. It's nothing like just setting "
"up a web server... This install is based on this guide:"
"Setting up Internet mail servers is a pain. It's nothing like just "
"setting up a web server..."
msgstr ""
#: ../../../_source/mail-libre-is.rst:10
msgid "`<https://workaround.org/ispmail-bookworm/>`_"
msgstr ""
#: ../../../_source/mail-libre-is.rst:14
#: ../../../_source/mail-libre-is.rst:11
msgid "Main Components"
msgstr ""
#: ../../../_source/mail-libre-is.rst:16 ../../../_source/mail-libre-is.rst:208
#: ../../../_source/mail-libre-is.rst:13
msgid "This install is based on this guide:"
msgstr ""
#: ../../../_source/mail-libre-is.rst:15
msgid "`<https://workaround.org/ispmail-bookworm/>`_"
msgstr ""
#: ../../../_source/mail-libre-is.rst:17
msgid "For more information and details about what is what, refer to that site."
msgstr ""
#: ../../../_source/mail-libre-is.rst:20 ../../../_source/mail-libre-is.rst:212
msgid "Dovecot"
msgstr ""
#: ../../../_source/mail-libre-is.rst:18
#: ../../../_source/mail-libre-is.rst:22
msgid "`<https://dovecot.org/>`_"
msgstr ""
#: ../../../_source/mail-libre-is.rst:21 ../../../_source/mail-libre-is.rst:54
#: ../../../_source/mail-libre-is.rst:25 ../../../_source/mail-libre-is.rst:58
msgid "MariaDB"
msgstr ""
#: ../../../_source/mail-libre-is.rst:24 ../../../_source/mail-libre-is.rst:234
#: ../../../_source/mail-libre-is.rst:28 ../../../_source/mail-libre-is.rst:257
msgid "OpenDKIM"
msgstr ""
#: ../../../_source/mail-libre-is.rst:26
#: ../../../_source/mail-libre-is.rst:30
msgid "`<http://www.opendkim.org/>`_"
msgstr ""
#: ../../../_source/mail-libre-is.rst:28 ../../../_source/mail-libre-is.rst:242
#: ../../../_source/mail-libre-is.rst:32 ../../../_source/mail-libre-is.rst:265
msgid "OpenDMARC"
msgstr ""
#: ../../../_source/mail-libre-is.rst:30
#: ../../../_source/mail-libre-is.rst:34
msgid "`<http://www.trusteddomain.org/opendmarc/>`_"
msgstr ""
#: ../../../_source/mail-libre-is.rst:32
#: ../../../_source/mail-libre-is.rst:36
msgid "`<https://github.com/trusteddomainproject/OpenDMARC>`_"
msgstr ""
#: ../../../_source/mail-libre-is.rst:34 ../../../_source/mail-libre-is.rst:106
#: ../../../_source/mail-libre-is.rst:38 ../../../_source/mail-libre-is.rst:110
msgid "Postfix"
msgstr ""
#: ../../../_source/mail-libre-is.rst:36
#: ../../../_source/mail-libre-is.rst:40
msgid "`<https://www.postfix.org/>`_"
msgstr ""
#: ../../../_source/mail-libre-is.rst:40
#: ../../../_source/mail-libre-is.rst:44
msgid "Apache"
msgstr ""
#: ../../../_source/mail-libre-is.rst:41
#: ../../../_source/mail-libre-is.rst:45
msgid ""
"The Apache webserver is used out of laziness as it allows easy certificate "
"updates with certbot. A webmail server won't be running on the main mail "
"server."
"The Apache webserver is used out of laziness as it allows easy "
"certificate updates with certbot. A webmail server won't be running on "
"the main mail server."
msgstr ""
#: ../../../_source/mail-libre-is.rst:50
#: ../../../_source/mail-libre-is.rst:54
msgid "Open up firewall ports 80 and 443."
msgstr ""
#: ../../../_source/mail-libre-is.rst:55
#: ../../../_source/mail-libre-is.rst:59
msgid "The main database server."
msgstr ""
#: ../../../_source/mail-libre-is.rst:63
#: ../../../_source/mail-libre-is.rst:67
msgid "Add databases. Change password to something secure."
msgstr ""
#: ../../../_source/mail-libre-is.rst:107
#: ../../../_source/mail-libre-is.rst:111
msgid "The main SMTP mail server."
msgstr ""
#: ../../../_source/mail-libre-is.rst:114
#: ../../../_source/mail-libre-is.rst:118
msgid ""
"Set up postfix to use MariaDB. Edit /etc/postfix/mysql-virtual-mailbox-"
"domains.cf and add below, using the mailserver password used in MariaDB."
msgstr ""
#: ../../../_source/mail-libre-is.rst:127
#: ../../../_source/mail-libre-is.rst:131
msgid "Edit /etc/postfix/mysql-virtual-mailbox-maps.cf and add below contents:"
msgstr ""
#: ../../../_source/mail-libre-is.rst:137
#: ../../../_source/mail-libre-is.rst:141
msgid "Edit /etc/postfix/mysql-virtual-alias-maps.cf and add below:"
msgstr ""
#: ../../../_source/mail-libre-is.rst:147
#: ../../../_source/mail-libre-is.rst:151
msgid "Edit /etc/postfix/mysql-email2email.cf and add:"
msgstr ""
#: ../../../_source/mail-libre-is.rst:157
#: ../../../_source/mail-libre-is.rst:161
msgid "Then run these commands:"
msgstr ""
#: ../../../_source/mail-libre-is.rst:174
#: ../../../_source/mail-libre-is.rst:178
msgid "Redis"
msgstr ""
#: ../../../_source/mail-libre-is.rst:175
#: ../../../_source/mail-libre-is.rst:179
msgid ""
"Note, the licensing of Redis has gone bad. The version in Debian is OK. But "
"in the future, probably replace with a fork."
"Note, the licensing of Redis has gone bad. The version in Debian is OK. "
"But in the future, probably replace with a fork."
msgstr ""
#: ../../../_source/mail-libre-is.rst:184
#: ../../../_source/mail-libre-is.rst:188
msgid "rspamd"
msgstr ""
#: ../../../_source/mail-libre-is.rst:185
#: ../../../_source/mail-libre-is.rst:189
msgid "Spam control."
msgstr ""
#: ../../../_source/mail-libre-is.rst:193
#: ../../../_source/mail-libre-is.rst:197
msgid "Certbot"
msgstr ""
#: ../../../_source/mail-libre-is.rst:194
#: ../../../_source/mail-libre-is.rst:198
msgid ""
"Encryption certificates with Let's Encrypt. Not using an Apache webserver on "
"the mail server makes getting new certificates a bit more complex."
"Encryption certificates with Let's Encrypt. Not using an Apache webserver"
" on the mail server makes getting new certificates a bit more complex."
msgstr ""
#: ../../../_source/mail-libre-is.rst:209
#: ../../../_source/mail-libre-is.rst:213
msgid "Just using encrypted IMAPS, not POP."
msgstr ""
#: ../../../_source/mail-libre-is.rst:216
#: ../../../_source/mail-libre-is.rst:220
msgid ""
"Note, since IPv6 isn't being used, the dovecot install barfs. Edit /etc/"
"dovecot/dovecot.conf and add this line, where appropriate:"
"Note, since IPv6 isn't being used, the dovecot install barfs. Edit "
"/etc/dovecot/dovecot.conf and add this line, where appropriate:"
msgstr ""
#: ../../../_source/mail-libre-is.rst:223
#: ../../../_source/mail-libre-is.rst:227
msgid ""
"Note, this is removing the \"::\" from listen, which using IPv6. Then re-run "
"the install so the packages are happy. Note, the re-install won't overwrite "
"the \"listen\" change."
"Note, this is removing the \"::\" from listen, which using IPv6. Then re-"
"run the install so the packages are happy. Note, the re-install won't "
"overwrite the \"listen\" change."
msgstr ""
#: ../../../_source/mail-libre-is.rst:243
#: ../../../_source/mail-libre-is.rst:236
msgid "Add user and set up configs"
msgstr ""
#: ../../../_source/mail-libre-is.rst:266
msgid "Requires database setup."
msgstr ""
#: ../../../_source/mail-libre-is.rst:252
#: ../../../_source/mail-libre-is.rst:275
msgid "SPF"
msgstr ""
#: ../../../_source/mail-libre-is.rst:253
#: ../../../_source/mail-libre-is.rst:276
msgid "Set up SPF."
msgstr ""
#: ../../../_source/mail-libre-is.rst:257
#: ../../../_source/mail-libre-is.rst:280
msgid "DNS"
msgstr ""
#: ../../../_source/mail-libre-is.rst:258
#: ../../../_source/mail-libre-is.rst:281
msgid "Set up DNS."
msgstr ""
#: ../../../_source/mail-libre-is.rst:262
#: ../../../_source/mail-libre-is.rst:285
msgid "Other"
msgstr ""
#: ../../../_source/mail-libre-is.rst:263
#: ../../../_source/mail-libre-is.rst:286
msgid "Perhaps these too."
msgstr ""
#~ msgid ""
#~ "Setting up Internet mail servers is "
#~ "a pain. It's nothing like just "
#~ "setting up a web server... This "
#~ "install is based on this guide:"
#~ msgstr ""
#~ msgid "Add user."
#~ msgstr ""

View file

@ -5,14 +5,18 @@ Documentation for Libre mail server.
Setting up Internet mail servers is a pain.
It's nothing like just setting up a web server...
This install is based on this guide:
`<https://workaround.org/ispmail-bookworm/>`_
Main Components
===============
This install is based on this guide:
`<https://workaround.org/ispmail-bookworm/>`_
For more information and details about what is what,
refer to that site.
Dovecot
`<https://dovecot.org/>`_
@ -229,6 +233,25 @@ won't overwrite the "listen" change.
sudo apt install --reinstall dovecot-mysql dovecot-pop3d dovecot-imapd \
dovecot-managesieved dovecot-lmtpd
Add user and set up configs
.. code-block:: sh
sudo groupadd -g 5000 vmail
sudo useradd -g vmail -u 5000 vmail -d /var/vmail -m
sudo chown -R vmail:vmail /var/vmail
sudo sed -i -e \
's/auth_mechanisms = plain/auth_mechanisms = plain login/g' \
/etc/dovecot/conf.d/10-auth.conf
sudo sed -i -e \
's/!include auth-system.conf.ext/#!include auth-system.conf.ext/g' \
/etc/dovecot/conf.d/10-auth.conf
sudo sed -i -e \
's/#!include auth-sql.conf.ext/!include auth-sql.conf.ext/g' \
/etc/dovecot/conf.d/10-auth.conf
OpenDKIM
========