-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configures LMTP for Dovecot and Postfix.
Webmail now is works too.
- Loading branch information
Showing
5 changed files
with
43 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,5 @@ Listening on http://127.0.0.1:8080. | |
- [email protected] / pass | ||
|
||
User DB stored in `utils/imap/passwd`. SHA1 hash can be generated from a | ||
password with `doveadm pw -s sha1` inside `imap` container. | ||
password with `doveadm pw -s sha1` inside `imap` container. Mailboxes are | ||
configured in the `utils/smtp/vmailbox`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,56 @@ | ||
# The `submission` makes Dovecot the Postfix auth frontend. | ||
# See https://doc.dovecot.org/admin_manual/submission_server | ||
# See `service auth` setting below. | ||
protocols = imap lmtp submission | ||
listen = * | ||
|
||
# `/srv/mail` is mounted as `imap_mail` volume. | ||
# TODO: maybe evaluate this? | ||
# See https://doc.dovecot.org/configuration_manual/config_file/config_variables | ||
mail_home=/srv/mail/%Lu | ||
mail_location=sdbox:~/Mail | ||
mail_uid=1000 | ||
mail_gid=1000 | ||
|
||
protocols = imap pop3 submission sieve lmtp | ||
|
||
first_valid_uid = 1000 | ||
last_valid_uid = 1000 | ||
userdb { | ||
driver = static | ||
args = uid=vmail gid=vmail home=/srv/mail/%Lu | ||
} | ||
|
||
passdb { | ||
driver = passwd-file | ||
# TODO: may be generate it? | ||
args = scheme=SHA1 /etc/dovecot/passwd | ||
} | ||
|
||
ssl=no | ||
ssl_cert=<cert.pem | ||
ssl_key=<key.pem | ||
|
||
namespace { | ||
inbox = yes | ||
separator = / | ||
} | ||
|
||
service lmtp { | ||
# Auth via TCP by the Postfix remote host. | ||
# See https://doc.dovecot.org/configuration_manual/howto/postfix_and_dovecot_sasl | ||
service auth { | ||
inet_listener { | ||
port = 24 | ||
# TODO: read from .env | ||
port = 12345 | ||
} | ||
} | ||
|
||
listen = * | ||
|
||
# Auth via TCP on the Postfix remote host. | ||
# See https://doc.dovecot.org/configuration_manual/howto/postfix_and_dovecot_sasl/ | ||
# TODO: read from .env | ||
service auth { | ||
# See https://doc.dovecot.org/configuration_manual/protocols/lmtp_server | ||
service lmtp { | ||
inet_listener { | ||
port = 12345 | ||
port = 24 | ||
} | ||
} | ||
|
||
# `plain` allows unencrypted text password and `login` is plain too. | ||
# See https://doc.dovecot.org/configuration_manual/authentication/authentication_mechanisms/ | ||
auth_mechanisms = plain login | ||
|
||
# Somethimes plaintext auth is disabled even the auth mechanism is set to | ||
# and `dovecot -a | grep disable_plaintext` tells 'yes'. | ||
disable_plaintext_auth = no | ||
|
||
ssl=no | ||
ssl_cert=<cert.pem | ||
ssl_key=<key.pem | ||
|
||
log_path=/dev/stdout | ||
info_log_path=/dev/stdout | ||
debug_log_path=/dev/stdout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters