Server operating system version Debian 12 Plesk version and microupdate number Plesk Obsidian 18.0.66
I have Plesk Obsidian 18.0.XX installed on a Debian 12 VPS with 32GB RAM and 240GB drive.
I would like Mailcow to take over all mail functions ( and remain closely tied to Plesk if possible). My installation so far gives me this error and indicates that I should disable the SMTP setting in Postfix.
Code:
Error response from daemon: driver failed programming external connectivity on endpoint mailcowdockerized-dovecot-mailcow-1 (4c6cf44559614df67738c64de0b91814342e5c562e836b8a11be82eccd8ca23c): failed to bind port 0.0.0.0:110/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:110: bind: address already in use
Quoting from Mailcow Dockerized documentation:
@ Local MTA on Docker host - mailcow: dockerized documentation
I have Plesk Obsidian 18.0.XX installed on a Debian 12 VPS with 32GB RAM and 240GB drive.
I would like Mailcow to take over all mail functions ( and remain closely tied to Plesk if possible). My installation so far gives me this error and indicates that I should disable the SMTP setting in Postfix.
Code:
Error response from daemon: driver failed programming external connectivity on endpoint mailcowdockerized-dovecot-mailcow-1 (4c6cf44559614df67738c64de0b91814342e5c562e836b8a11be82eccd8ca23c): failed to bind port 0.0.0.0:110/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:110: bind: address already in use
Quoting from Mailcow Dockerized documentation:
@ Local MTA on Docker host - mailcow: dockerized documentation
I'm new to Plesk so;The easiest option would be to disable the listener on port 25/tcp.
Postfix users disable the listener by commenting the following line (starting with smtp or 25) in /etc/postfix/master.cf:
#smtp inet n - - - - smtpd
Furthermore, to relay over a dockerized mailcow, you may want to add 172.22.1.1 as relayhost and remove the Docker interface from "inet_interfaces":
postconf -e 'relayhost = 172.22.1.1'
postconf -e "mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128"
postconf -e "inet_interfaces = loopback-only"
postconf -e "relay_transport = relay"
postconf -e "default_transport = smtp"
Now it is important to not have the same FQDN in myhostname as you use for your dockerized mailcow. Check your local (non-Docker) Postfix' main.cf for myhostname and set it to something different, for example local.my.fqdn.tld.
"172.22.1.1" is the mailcow created network gateway in Docker.Relaying over this interface is necessary (instead of - for example - relaying directly over ${MAILCOW_HOSTNAME}) to relay over a known internal network.
Restart Postfix after applying your changes.
2022-01-29 23:04:38
Click to expand...
- Can someone simplify the steps to achieve this in a step1, step2.. format?
- Would doing this remove all Plesk ability to set email accounts or would it work in tandem with Mailcow?
- What other Plesk services or utilities would be potentially impacted if taking this course?
- Is there a Plesk/Mailcow integration Howto/tutorial?