On Mon, 23 Jul 2018 at 16:02, <[email protected]> wrote:
> I would like to know if comments may be used in this fashion. In the
> example below, will the last line 'permit' be seen as part of the
> 'smtpd_helo_restrictions' option?
>
>
> smtpd_helo_restrictions =
> permit_mynetworks
> #
>
> check_helo_access hash:/etc/postfix/helo_access
> # reject_invalid_helo_hostname
> # reject_unknown_helo_hostname
> permit
>
Yes, and even blank (empty) lines are ok within restriction lists, as long
as the next non-blank non-comment line is also indented. Comment lines do
not have to be indented within lists (although clarity may be lost by
failing to do so). But you should not append comments to an active line.
smtpd_helo_restrictions =
permit_mynetworks # this comment may cause problems
check_helo_access hash:/etc/postfix/helo_access
reject_invalid_helo_hostname
#... this comment is fine though...
permit
BTW, the final 'permit' is not needed as it is implicit (but I tend to put
it in anyway as a reminder to self).