Discussion:
POSTCONF(1) being slow when called multiple time
(too old to reply)
Laurent Declercq
2017-01-08 21:50:19 UTC
Permalink
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.
d***@gmail.com
2017-01-21 12:51:49 UTC
Permalink
Post by Laurent Declercq
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.
Hi Laurent

Which type/version of postfix, OS and filesystem do you use ?

Regards

Victor d'Agostino
Laurent Declercq
2017-01-31 00:01:23 UTC
Permalink
Post by d***@gmail.com
Post by Laurent Declercq
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.
Hi Laurent
Which type/version of postfix, OS and filesystem do you use ?
Regards
Victor d'Agostino
Hello,

Postfix 2.11.3 (as provided by Debian Jessie)
FS: Ext4

Same problem occurs with postfix 3.1.0 as provided by Ubuntu Xenial (16.04) with ext4 fs.
Loading...