Thank you both.

[email protected] wrote on 07/23/2018 09:29:58 AM:

> From: Dominic Raferd <[email protected]>
> To: Postfix users <[email protected]>
> Date: 07/23/2018 09:31 AM
> Subject: Re: Commenting multi line option
> Sent by: [email protected]
> 
> 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).  


This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain proprietary and/or confidential 
information which may be privileged or otherwise protected from 
disclosure. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient(s), please contact the 
sender by reply email and destroy the original message and any copies of 
the message as well as any attachments to the original message.

Reply via email to