Can someone explain this please?
Thanks,
SteveC
For the same reason: To prevent an MX lookup on the provided string. In
the case of an IP address, it will fail.
Well, it depends on which IP addresses you're talking about. In main.cf
no IP addresses are specified in square brackets (apart from IPv6
addresses, which are always specified in square brackets, everywhere).
transport (5) (for example) says:
The interpretation of the nexthop field is transport
dependent. In the case of SMTP, specify a service on a
non-default port as host:service, and disable MX (mail
exchanger) DNS lookups with [host] or [host]:port. The []
form is required when you specify an IP address instead of
a hostname.
So, you have to let Postfix know that an IP address in a transport table
is an IP address by putting it in square brackets ...
--Tonni
Thanks, sometimes it just takes another way of explaining it. So while
I saw an IP address and host/domain name as separate in the sense of
what they are, postfix sees them all as just 'strings', and that is how
they are treated.
Square brackets are in. I use an IP address so I assume the dns lookups
occured, failed, then postfix just send e-mail to the IP. So the downside
with not using brackets is the extra unnecessary dns lookups, as it was
working without them also.
SteveC