Laurent Declercq
2017-01-08 21:50:19 UTC
Hello,
We are using the POSTCONF(1) command to edit the Postfix main.c file. For that, we created an interface to POSTCONF(1) command in Perl. A problem appears when the postconf(1) command is executed multiple times or when the main.cf file has been edited manually just before. In such case, it is appearing that POSTCONF(1) is waiting FILEMTIME+2 seconds before processing. To work around this issue we touch the file manually (time() - 2).
QUESTION: It is the expected behavior? Why POSTCONF(1) command is waiting FILEMTIME+2 seconds before processing?
Thank you.
Environment: Postfix 2.11.x as provided by Debian Jessie.
We are using the POSTCONF(1) command to edit the Postfix main.c file. For that, we created an interface to POSTCONF(1) command in Perl. A problem appears when the postconf(1) command is executed multiple times or when the main.cf file has been edited manually just before. In such case, it is appearing that POSTCONF(1) is waiting FILEMTIME+2 seconds before processing. To work around this issue we touch the file manually (time() - 2).
QUESTION: It is the expected behavior? Why POSTCONF(1) command is waiting FILEMTIME+2 seconds before processing?
Thank you.
Environment: Postfix 2.11.x as provided by Debian Jessie.