Comments (8)
But what I mean is that I don't know how "bad it can affect the data", in a way that I would notice only months later, for example.
It should only affect /etc/postfix/master.cf
config. When you down
+ up
that will get recreated again. So since you noticed it and quickly resolved it by recreating the container without the error present anymore there shouldn't be any issues going forward.
That file is configuration for routing mail delivery (ports 25, 465, 587), anti-virus milter, etc. Basically "I've got a connection, what should I do?", so your service should only have been temporarily affected with connections during that time.
possibly if you have a postfix-master.cf
There is an empty
postfix-master.cf
in my./config
mount, that DMS seems to at least touch it (leaving it empty, but updating the date modified).
That's odd, it should not be creating that file, but it doesn't expect it to be empty either if it was already there 馃槄
docker-mailserver/target/scripts/startup/setup.d/postfix.sh
Lines 109 to 120 in eb165de
docker-mailserver/target/scripts/helpers/utils.sh
Lines 17 to 24 in eb165de
Presumably something in the logic there triggered it to read a line without proper content calling postconf -P
.
I don't see why it'd affect the modified timestamp of the file though. If your filesystem updates atime, that'd happen from a read.
Only way a write should be happening AFAIK is if you mounted directly to /etc/postfix/master.cf
which would be bad.
from docker-mailserver.
There is an empty postfix-master.cf in my ./config mount,
If it's empty and you are not using it, get rid of it 馃憤
from docker-mailserver.
Thank you for your replies.
I've deleted the postfix-master.cf
file in the config folder, recreated the container, and so far so good.
The file wasn't recreated there.
And no error log.
from docker-mailserver.
Please note that this response was created using generative AI, leveraging previously available information from the repository. This information may be helpful. However, it is our strong recommendation that you carefully consider the information before blindly applying it.
This response is generated only once - you will not be able to interact with the glime-ai.
El error que est谩s viendo en los registros, postconf: fatal: -P option requires service_name[/type[/parameter]]
, indica que hay un problema con la configuraci贸n de Postfix en tu archivo postfix-main.cf
o postfix-master.cf
. Este error ocurre cuando la opci贸n -P
de postconf
no se usa correctamente.
Para resolver este problema, aseg煤rate de que todas las l铆neas en tu archivo postfix-master.cf
sigan el formato correcto: <service_name>/<type>/<parameter>
. Aqu铆 hay algunos pasos que puedes seguir para depurar y corregir este problema:
-
Revisa tu archivo
postfix-master.cf
:- Aseg煤rate de que cada l铆nea siga el formato correcto. Por ejemplo:
submission/inet/smtpd_reject_unlisted_recipient=no
- Aseg煤rate de que cada l铆nea siga el formato correcto. Por ejemplo:
-
Verifica el archivo
user-patches.sh
:- Si est谩s utilizando un script
user-patches.sh
para aplicar configuraciones personalizadas, aseg煤rate de que las l铆neas que usanpostconf -P
tambi茅n sigan el formato correcto.
- Si est谩s utilizando un script
-
Ejecuta
postconf -Mf
:- Dentro del contenedor, ejecuta
postconf -Mf
sin argumentos para ver las opciones activas demaster.cf
. Esto puede ayudarte a identificar cualquier configuraci贸n incorrecta.
- Dentro del contenedor, ejecuta
-
Aumenta la verbosidad de los registros:
- Configura la variable de entorno
LOG_LEVEL
adebug
otrace
para obtener m谩s detalles en los registros. Esto puede proporcionar m谩s informaci贸n sobre d贸nde est谩 ocurriendo el problema.
- Configura la variable de entorno
Aqu铆 tienes un ejemplo de c贸mo deber铆a verse una configuraci贸n correcta en postfix-master.cf
:
# adjust the submission "reject_unlisted_recipient" option
submission/inet/smtpd_reject_unlisted_recipient=no
Si necesitas m谩s ayuda, puedes consultar la documentaci贸n de depuraci贸n de Docker Mailserver aqu铆.
This comment was generated by Glime.
from docker-mailserver.
I updated this:
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
(although I don't think this would have fixed it)
Then I restarted the container:
docker compose down mailserver && docker compose up -d
And the error didn't appear this time.
from docker-mailserver.
Just upgraded now the other machine I have (using down
and up -d
too), already with the updated smtpd_sender_restrictions
as per my last message.
The error appeared too:
postconf: fatal: -P option requires service_name[/type[/parameter]]
Then I recreated the container again, and the error didn't appear.
Not sure why this happens on the very first run, on the upgrade, and how bad it is that this happens.
from docker-mailserver.
The error is related to /etc/postfix/master.cf
, possibly if you have a postfix-master.cf
, or we may internally use it to configure some changes during startup.
It could also be triggered by user-patches.sh
if using the postconf
method.
Not sure why this happens on the very first run, on the upgrade, and how bad it is that this happens.
Was the down
before the upgrade + up
?
There was quite a lot of changes with v14 release, be sure to have a backup copy of your data when upgrading to new major versions. Our tests don't always catch everything unfortunately 馃槗
from docker-mailserver.
Was the down before the upgrade + up?
Yep - I mentioned that several times in my messages above :)
be sure to have a backup copy of your data when upgrading to new major versions
Yeah, I do.
But what I mean is that I don't know how "bad it can affect the data", in a way that I would notice only months later, for example.
possibly if you have a postfix-master.cf
There is an empty postfix-master.cf
in my ./config
mount, that DMS seems to at least touch it (leaving it empty, but updating the date modified).
from docker-mailserver.
Related Issues (20)
- question: Why does `doveadm auth test` fails with user added by `setup dovecot-master add` and `setup email add` HOT 11
- docs: IPv6 updates with Docker v27
- bug: Container restarts skip ownership fixes
- question: How can I verify that the integration with iptables is actually working? HOT 12
- bug report: Scaling issues with check-for-changes.sh when managing mailboxes/aliases HOT 4
- docs: `ACCOUNT_PROVISIONER=FILE` additional Dovecot user attribtues
- postfix/submissions/smtpd: SASL authentication failure: Couldn't find mech XOAUTH2 HOT 12
- feature request: OAUTH - autoprovision accounts on first login using post-login scripting HOT 5
- bug report: Upgrading to v14 - postfix does not start HOT 12
- question: Why does `DEFAULT_RELAY_HOST` fail to authenticate? (DMS release prior to v14) HOT 3
- bug report: Postfix logs the error `fatal: bad string length 0 < 1: virtual_mailbox_base` HOT 4
- question: How to send email on port 465 without using a relay HOT 10
- Question: How to add reply-to header information HOT 1
- [TODO]: `SMTP_ONLY=1` feature should swap `virtual_mailbox_domains` with `virtual_alias_domains`
- bug report: `postfix-main.cf` is appending warnings to `/etc/postfix/main.cf` HOT 7
- [TODO]: Small tasks
- other: Proposal to change Getmail working directory HOT 8
- [TODO]: DMS v14 regression - Container restart support may fail due to unclean exit
- bug report: `postconf: fatal: open /etc/postfix/main.cf for reading: No such file or directory` HOT 2
- bug report: configured dovecot stats/metrics are always 0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google 鉂わ笍 Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mailserver.