National Australia Bank mistakenly sent the bank account details of 60,000 customers to an email address controlled by a domain name squatter and owner of adult websites.

Fairfax Media understands David Weissenberg, who owns domain names through his company Real Assets Limited, received the data when it was wrongly emailed to nab.com, a domain name he controls.

The data breach occurred in 2012 but was first revealed by the bank last month. It affected NAB's migrant banking customers – customers migrating to Australia who had recently opened NAB bank accounts.

NAB has written to customers notifying them that an email confirming their account had been established was also sent in error to an incorrect email address. The information that was wrongly shared includes customer names, addresses, email addresses, BSB and account numbers.