1
1
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-12-18 14:04:17 +01:00
docker-mailserver/test/config/dovecot-lmtp/user-patches.sh

33 lines
624 B
Bash

#!/bin/bash
##
# This user script will be executed between configuration and starting daemons
# To enable it you must save it in your config directory as "user-patches.sh"
##
echo "[user-patches.sh] Changing Dovecot LMTP service listener from a unix socket to TCP on port 24"
cat >/etc/dovecot/conf.d/lmtp-master.inc << EOF
service lmtp {
inet_listener lmtp {
address = 127.0.0.1
port = 24
}
}
EOF
### Before / After ###
# service lmtp {
# unix_listener lmtp {
# mode = 0660
# group = postfix
# }
# }
# service lmtp {
# inet_listener lmtp {
# address = 127.0.0.1
# port = 24
# }
# }