The documentation provides a description for entries in the .netrc file, but fails to note the order of execution. For the file to work, the machine name of the remote system needs to be the first entry. This would be followed by login, password, and then any macdef entries for ftp macros.
Support Information Services