27.09.22, 09:00 +0200, juan smitt:
Can you please confirm that it won't cause any problem if we put comments at the end of config lines?
No, I can't.
Example: file: /etc/postfix/virtual postmaster postmas...@example.com # this is a comment
$ cat virtual postmaster postmas...@example.com # this is a comment $ postmap -q postmaster virtual postmas...@example.com # this is a comment That doesn't look problem-free to me. From man postmap(1):
INPUT FILE FORMAT The format of a lookup table input file is as follows: • A table entry has the form key whitespace value • Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace character is a `#'. • A logical line starts with non-whitespace text. A line that starts with whitespace continues a logical line.
It doesn't mention that parts of a line after '#' are ignored when the '#' is preceded by non-whitespace characters.
We need to know this because of automation reasons. Thanks!
-- Regards mks