-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POSTFIX_INET_PROTOCOLS not applied. #1504
Comments
This image is using What is the output of |
root@mail-7465f748c9-9mq6c:/# postconf inet_protocols |
I cannot reproduce. Can you provide your docker-compose/env files etc. as mentioned in https://github.com/tomav/docker-mailserver/blob/master/.github/ISSUE_TEMPLATE/bug_report.md? You can also enable Thank you |
I've added a test (#1505) and |
Well since I'm setting it up in Kubernetes, I can't really provide a compose file. But I can give you the yaml file for k8s. DMS_DEBUG is enabled for now, but it's not like I'm receiving an error or anything. It's just that I noticed that it didn't actually respect the setting. I'll also attach the full startup log. No idea how to get the indentation right for the yaml but hopefully it's readable anyway. apiVersion: apps/v1 and logfile: root@dream0:~/kopano# kubectl logs mail-7465f748c9-9mq6c 2020-05-09 18:17:45,412 INFO success: mailserver entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) ENVDEFAULT_RELAY_HOST=[smtp.sendgrid.net]:587 docker-mailserverInitializing setup
Config'O'mat. Version 0.0.0Got the ENV_PREFIX: LDAP_
|
It seems your are using That said, I would recommend you to always use the I hope this will solve your issue. |
Ah so wasn't added in that version. I was sure I checked that it was the latest, though granted it was a while back when I started this project so it may have been latest at the time. Thank you. Although using :latest is not an option, and is really not a thing that you should be recommending either. And it doesn't actually help you any with making sure you're running the latest version. See if you pull :latest, then the next time you pull an image, you don't actually make any pull request. It checks if you have an image with the tag you've selected, and since you pulled it as :latest, it keeps the :latest tag until you pull another image, at which point it will lose all its tags. So in order to update, you have to manually make a new pull, and then restart your container. So since you need manual intervention either way, it's simply better to used fixed versions. This is especially important in distributed setups like k8s. Image as an example I have :latest. Well it runs on one node, and when it started there, 6.2 was latest so it pulled and ran that. Now that node dies, so k8s restarts the pod on a different node. And now 7 is the latest, so it pulls that. Well now that node dies, and k8s schedules the pod back on the original node. But it already has an image with the :latest tag, so it ofc uses that. Except that's a 6.2 image. Which is from before the 7 image... While I don't know how this particular image would handle that situation, but most apps do NOT handle uncontrolled downgrades gracefully. So no, for any serious setups, always, always, ALWAYS, use fixed image versions. |
Seen this project is not updating fixed releases, it's the only option you have in order to get security patches, otherwise you will be running images with CVE 🏴☠️ You are always free to manage your images as you want, follow the release channel and adjust upgrades to your needs.
For serious setups, fork this project (forks represents almost 1/5 of the stars) and handle it yourself. Thank for sharing your docker versioning knowledge but it's not part of this issue, could you close if it's resolved? |
@Ether009 we will make a new numbered release soon. I understand both positions and using numbered releases is certainly supported. Ideally we should make them on a regular basis, but all of us do this on our free time, which makes that difficult. |
* Updated FAQ and Tips (markdown) * add a better example for sa-learn cron-jobs * Updated Configure SSL (markdown) * Updated Configure SSL (markdown) * Updated Configure SSL (markdown) * add a plain docker-compose example without docker swarm * change min docker-compose version * remove docker-compose swarm only statement * unify documentation * add a blank line in the docker-compose.yml example * add hint for system cron file * Added info about DMS_DEBUG variable * Typo in link * change user to root. amavis is not sufficient * emphasize difference between user and system crontab * change ham folder to Archives * add consitent comments * SA_SPAM_SUBJECT values * LetsEncrypt has a http challenge that runs http and https. * Created _Footer (markdown) * Updated Installation Examples (markdown) * Revert 2e2c1a9...64f2cfe on _Footer * Add info about mail-state * Fix wrong directory for spamassassin learning * Syntax correction. * Added note about POSTFIX_MESSAGE_SIZE_LIMIT * Updated Configure SSL (markdown) * Updated Configure SPF (markdown) * Updated Configure SSL (markdown) * Added reference to docker-mailserver/docker-mailserver#1247. * Edit backup script * Updated FAQ and Tips (markdown) * Updated FAQ and Tips (markdown) * path for generated certificates has changed * adding note about keys on multiple line * Added note about clamav memory usage and swap. * Replace deliveries/certbot docker image by official certbot/cerbot * Addded example for overriding postfix-master.cf * Added warning about spaces in options * Wrong filebeat config path * Fix wrong volume syntax * Fixed a typo in docker repository name (certbot instead of cerbot) * Spamassing cron directories are wrong for Archive and Inbox. On my fresh install it's not .Archives but .Archive and I don't have a separate INBOX folder, just cur, new etc under main mail dir. * Add sections for catch-all and delete * Added FAQ about naked/bare domains * Improved description for bare domains * updated the deployment manifests. Tested with Kubernetes 1.17 and docker-mailserver v6.2.1 * Add a note on the Biggest flaw of using `hostNetwork` * Proxy setup is nowhere mentioned. * Updated FAQ and Tips (markdown) * Updated FAQ and Tips (markdown) * added user-patches.sh explanation and example * Updated Configure SSL (markdown) * Updated Configure SSL (markdown) * command did not show up with the <> * Filebeat container (v7.0.0) * Updated Using in Kubernetes (markdown) * Rework section on PROXY protocol (including nameless previous change) * add ssl doc: traefik * quota update * quota update * quota update * quota update * Updated Configure Accounts (markdown) * quota update * Updated Configure Accounts (markdown) * Updated FAQ and Tips (markdown) * Add MOVE_SPAM_TO_JUNK * Update SA-learn * Added note about caddy * Update config file mentioned in cron instructions to env-mailserver * Update config file mentioned in cron instructions to env-mailserver * update image: tvial/docker-mailserver ---> always use latest (docker-mailserver/docker-mailserver#1504) * Added mail_max_userip_connections * Adding instructions for Caddy V2 * Updated Configure DKIM (markdown) * Add DMARC guide * Updated Configure DMARC (markdown) * Updated Configure DMARC (markdown) * Updated Configure DMARC (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Configure Accounts (markdown) * Updated FAQ and Tips (markdown) * Updated FAQ and Tips (markdown) * Updated Update and cleanup (markdown) * Updated Update and cleanup (markdown) * Updated Update and cleanup (markdown) * better not to keep outdated example, upstream's doc is the way to go * Updated Configure SSL (markdown) * Updated Configure Accounts (markdown) * Updated Configure Accounts (markdown) * Updated Configure Accounts (markdown) * Updated Configure Accounts (markdown) * Updated Configure Aliases (markdown) * Updated Configure autodiscover (markdown) * Updated Configure DKIM (markdown) * Updated Configure DKIM (markdown) * Updated Configure DMARC (markdown) * Updated Configure ELK (markdown) * Updated FAQ and Tips (markdown) * Updated FAQ and Tips (markdown) * Updated Configure Sieve filters (markdown) * Updated Override Default Dovecot Configuration (markdown) * Updated Override Default Dovecot Configuration (markdown) * Updated Override Default Dovecot Configuration (markdown) * Updated Override Default Dovecot Configuration (markdown) * Updated Configure SPF (markdown) * Updated Configure SPF (markdown) * Updated Configure SPF (markdown) * Updated Configure SPF (markdown) * Updated FAQ and Tips (markdown) * Updated Home (markdown) * Created _Sidebar (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Created A mail server's 101 (markdown) * Updated _Sidebar (markdown) * Updated _Sidebar (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Minor changes: `plain text` to `cleartext`, inline codeblock `docker-mailserver`, some rephrasing and grammar fixes * Fix rendering of ASCII flows (assuming this isn't an inconsistency between mono fonts chosen by browsers) * Initial more details page to redirect from README on the ports section * Add ports page under security section, format single lines into sub-bullet points * Revert 936020e...fac8d4a on A mail server's 101 * More details on Submission (Outward vs Inward) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * Updated A mail server's 101 (markdown) * clarification about third-party sending email to dms' MTA * Add flowchart for SMTP, expand on inbound/outband SMTP traffic and ports * Slight changes to Alice and Bob example * Change postfix-aliases.cf to postfix-virtual.cf & add setup.sh alias link * mailto was missing from the forensics receiver (ruf) * Added information about stealth blocks on port 25 * traefik v2 section added * Changed stable to latest for Traefik as the code has not been merged into stable yet * how to set timezone for container * Traefik2's wildcard certificates now work with `:stable` * added warning message for PERMIT_DOCKER=network when using IPv6 (#1405) * added warning message for PERMIT_DOCKER=network when using IPv6 (#1405) * Update for key_type global option with Caddy v2 for people sharing their LE certs between Caddy and docker-mailserver * Updated FAQ and Tips (markdown) * Updated FAQ and Tips (markdown) * add account without restart container * Add Full-text search * Created Full-text search (markdown) * Updated Full text search (markdown) * Updated Full text search (markdown) * Updated _Sidebar (markdown) * Created IPv6 (markdown) * Fix example YAML markdown code block * Add new options to reflect support for SELinux * Moving Caddy pitfall to a dedicated section * Command-line to verify certificate dates * Better highlighting on config blocks * Update "Manage Sieve" link * Mention maintained autodiscover-email-settings * Add a ToDo note * Created Forward-Only mailserver with LDAP authentication (markdown) * Add link to 'Forward-Only mailserver with LDAP authentication' * Describe how to authenticate with LDAP * Mention that RELAY_HOST needs to be set even in advanced mode * style * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated _Sidebar (markdown) * Add section to use mailserver with proxy protocol * Updated Installation Examples (markdown) * Otherwise it will completly set the variable and disable any plugins loaded beforehand e.x. quota * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Configure DKIM (markdown) * Updated Configure DKIM (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * adjusting to the migrated repo and improvements * Created _Footer (markdown) * Updated Home (markdown) * Updated Setup docker mailserver using the script setup.sh (markdown) * Updated Configure Accounts (markdown) * Updated Configure Aliases (markdown) * Updated Configure DKIM (markdown) * Updated Configure DKIM (markdown) * Destroyed Configure ELK (markdown) * Updated Setup docker mailserver using the setup.sh script (markdown) * Updated _Sidebar (markdown) * Updated _Sidebar (markdown) * Updated _Sidebar (markdown) * Updated A mail server's 101 (markdown) * Updated _Sidebar (markdown) * Updated _Sidebar (markdown) * Updated Configure Accounts (markdown) * Updated Configure Aliases (markdown) * Updated _Sidebar (markdown) * Updated Configure DKIM (markdown) * Updated Home (markdown) * Updated Home (markdown) * Import wiki Co-authored-by: Christian Glahn <cpglahn@gmail.com> Co-authored-by: Anne <34578028+voordev@users.noreply.github.com> Co-authored-by: Sebastian Wiesendahl <swiesend@users.noreply.github.com> Co-authored-by: Jeremy Shipman <jeremy@burnbright.net> Co-authored-by: MegaXLR <8215278+megaxlr@users.noreply.github.com> Co-authored-by: Albert Louzon <46165265+albert-darillium@users.noreply.github.com> Co-authored-by: marios88 <marios88@gmail.com> Co-authored-by: Thomas Drake <tom@tom-drake.co.uk> Co-authored-by: Thomas VIAL <github@ifusio.com> Co-authored-by: cternes <github@slackspace.de> Co-authored-by: Ovidiu Predescu <ovidiu@gmail.com> Co-authored-by: Erik Wramner <erik@wramner.name> Co-authored-by: lukas <open@mindrunner.de> Co-authored-by: Andreas Perhab <38032588+ap-wtioit@users.noreply.github.com> Co-authored-by: mchamplain <email@mchamplain.com> Co-authored-by: Germain Masse <gmasse@users.noreply.github.com> Co-authored-by: Vilius <34487517+vilisas@users.noreply.github.com> Co-authored-by: Kaan88 <kaankasim88@gmail.com> Co-authored-by: Remo E <remo.eichenberger@gmail.com> Co-authored-by: Claus Beerta <claus@beerta.de> Co-authored-by: odinis <23659698+odinis@users.noreply.github.com> Co-authored-by: Hans-Cees Speel <hanscees@hanscees.com> Co-authored-by: Lars Pötter <justanotherone@gmx.net> Co-authored-by: DuncanvR <DuncanvR@users.noreply.github.com> Co-authored-by: youtous <contact@youtous.me> Co-authored-by: msheakoski <michael.sheakoski@gmail.com> Co-authored-by: rhyst <rhystyers1@gmail.com> Co-authored-by: Oleg Kainov <godfathernn@gmail.com> Co-authored-by: Jean-Denis Vauguet <jd@vauguet.fr> Co-authored-by: Sascha Scandella <sascha.scandella@gmail.com> Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Co-authored-by: Amin Vakil <info@aminvakil.com> Co-authored-by: idaadi <idaadi@gmail.com> Co-authored-by: Trangar <victor.koenders@gmail.com> Co-authored-by: Michael <MichaelSp@users.noreply.github.com> Co-authored-by: pyy <pyy@users.noreply.github.com> Co-authored-by: Georg Lauterbach <44545919+aendeavor@users.noreply.github.com> Co-authored-by: squash <josh@shortcutsolutions.net> Co-authored-by: engelant <mumie_die@yahoo.de> Co-authored-by: Luke Cyca <me@lukecyca.com> Co-authored-by: Dorian Ayllón <ayllon.dorian@gmail.com> Co-authored-by: omarc1492 <10967529+omarc1492@users.noreply.github.com> Co-authored-by: William Desportes <williamdes@wdes.fr> Co-authored-by: Patrizio Bekerle <patrizio@bekerle.com> Co-authored-by: Dashamir Hoxha <dashohoxha@gmail.com> Co-authored-by: FL42 <46161216+fl42@users.noreply.github.com> Co-authored-by: Tin <kontakt@martin-becker.ovh>
Setting the above env var, does not produce the corresponding line in the postfix configuration, resulting in trying to reach kopano-dagent over ipv6, even if this is not at all available.
`
root@mail-569fc74d58-p5rg2:/# echo $POSTFIX_INET_PROTOCOLS
ipv4
root@mail-569fc74d58-p5rg2:/# cat /etc/postfix/main.cf | grep ipv4
root@mail-569fc74d58-p5rg2:/#
`
It should have created the inet_protocols = ipv4 line properly.
The text was updated successfully, but these errors were encountered: