We just got bitten by a strange problem with our mynetworks-file. In main.cf we have mynetworks = /etc/postfix/mynetworks, and the /etc/postfix/mynetworks has been used to both include and exclude networks for ages... using the format:
#### BLACKLISTING ### ## Only blocked systems in this block !92.345.67.0/24 # BLACKLISTED - 17.09.10 !98.102.24.28/32 # BLACKLISTED - 11.06.09 - Some other company AS !82.110.89.38/32 # BLACKLISTED - 01.10.10 - Some company AS #<snip># ## Add openings beneath this point 10.0.0.0/8 127.0.0.0/8 #<snip> Today we forgot the "S" in "AS", i.e.: !9.11.21.12/30 # BLACKLISTED - 12.05.11 - Another company A instead of our normal: !9.11.21.12/30 # BLACKLISTED - 12.05.11 - Another company AS and suddenly postfix stopped working. It was complaining about: postfix/smtpd[29113]: fatal: bad address pattern: "A" So I guess our usage of comments in this file is wrong (ooops). Could someone help us with what the rules are for this file? Are lines starting with # interpreted as comments? Are the any way of introducing comments on the same line as a rule ? -jf