Diego Liziero a écrit :
> On Fri, Oct 10, 2008 at 9:59 PM, mouss <[EMAIL PROTECTED]> wrote:
>
>> Diego Liziero a écrit :
>>
>>> On Fri, Oct 10, 2008 at 9:27 PM, Brian Evans - Postfix List
>>> <[EMAIL PROTECTED]> wrote:
>>>
>>>> In-line comments are not supported in main.cf or master.cf. Recommend
>>>> removing # <-- if you really do have it there.
>>>>
>>> Really? I always had this doubt, but I was almost confident that they
>>> were supported.
>>>
>>>
>> they are not. comments should go on their own lines (this applies to
>> both main.cf and master.cf).
>>
>
> I found that I used them in mynetworks:
>
> mynetworks = 127.0.0.1, # localhost
> 192.168.1.1, # relay
> 172.16.1.1, # fax server
> ...
>
This results in "#", "localhost", "relay", "fax" and "server" being
included as independent entries in mynetworks. Not really what you want.
> and so on, and it _seems_ to really work correctly, (apart from the
> command postconf that shows mynetworks as a single joined line with
> comments in the middle of each ip couple).
>
> Should I change it to something like this?
>
> mynetworks =
> # localhost
> 127.0.0.1,
> # relay
> 192.168.1.1,
> # fax server
> 172.16.1.1,
>
>
I prefer
mynetworks =
# localhost
127.0.0.1
# relay
192.168.1.1
# fax server
172.16.1.1
the syntax of lines is explained at the beginning of the postconf man
page. this page is also available on the postfix site:
http://www.postfix.org/postconf.5.html