Mailcow-dockerized: Set different MTU for docker interfaces

Created on 12 Jul 2018  路  10Comments  路  Source: mailcow/mailcow-dockerized

Hello :)
is it possible to lower the mtu of all the docker network interfaces to 1400? :)

Thanks in advance,

Alex

Most helpful comment

Just change the file, run docker-compose down and docker-compose up -d. It needs to recreate the network, that's why all containers need to be removed with down first. it would complain if you tried to change a network with active end-points.

All 10 comments

Thank you :) how will i apply this configuration change in an already running mailcow system?

Just change the file, run docker-compose down and docker-compose up -d. It needs to recreate the network, that's why all containers need to be removed with down first. it would complain if you tried to change a network with active end-points.

ok, but all my email data will survive? Just to be sure :D

Yes, no volume will be deleted. Just do not run down with "-v" appended. This would delete your vols.

Hi andryyy,
first thanks for your help!
But where do I need to set this option?
Since every container seems to have its own Section in this file, ...

networks:
mailcow-network:

aperas pretty often.
Do I need to edit them all, right now I just changed the last one which I understand is something like a mastertemplate for the others?
It works for me now but it's still a little bit slow, just wan't to make sure that I did it right. (Hetzner vswitch needs MTU 1400 btw.)

Maybe you can be a little bit more specific in the install.md.

Hi, you need to set it at the very bottom of the compose file only.

Sorry to bother you again, but does mailcow/docker add any overhead to the mtu?
I.e. I need an MTU of 1400, does docker(?) add 20bits for some vlan/bridge kind of stuff or does an mtu of 1400 mean that I get Packages of max 1400 byte over my real Network Interface?
Receiving an Mail is a matter of seconds now but sending takes 2-4 Minutes.

Did you recreate the network? With down and up -d?

How do you measure the 2-4 minutes? Do you look at logs?

You should check the logs, maybe a mail was greylisted.

Hmm... you're right, Postfix log says the Mails where sent instantly. I think I have to do some more testing here.
Let's think about this issue as an false alert.
Edit: Now Mails sent pretty fast tho. o.O

To complete this thread, does docker add any bytes to the mtu of the virtual interfaces? So does a MTU 1400 Docker-interface send packages and add some byte so the host has to handle Packages of 14xx byte?
Since it's seems to be pretty fast now I guess not.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Braintelligence picture Braintelligence  路  3Comments

starcraft0429 picture starcraft0429  路  3Comments

GalacticLion7 picture GalacticLion7  路  3Comments

zkryakgul picture zkryakgul  路  3Comments

patrick7 picture patrick7  路  3Comments