NEW YORK (CNNMoney) -- JPMorgan Chase executives suspected that Bernard Madoff's investment strategy was actually a Ponzi scheme years prior to its collapse, but did nothing to stop it, according to the court-appointed trustee trying to recove assets stolen by Madoff.
The complaint seeks to recover nearly $1 billion in fees and profits and an additional $5.4 billion in damages stemming from the bank's long stint as Madoff's banker.
The complaint contains a redacted e-mail from a JPMorgan risk officer warning as early as June 2007 that Madoff was running a Ponzi scheme, and using the bank to hold his money.
"For whatever it[']s worth, I am sitting at lunch with [JPMC Employee 1] who just told me that there is a well-known cloud over the head of Madoff and that his returns are speculated to be part of a [P]onzi scheme," the e-mail reads.
Despite the warning about Madoff's activities in 2007, the complaint alleges that JPMorgan didn't bring the matter to the attention of authorities until October 2008.
At that time, the bank admitted in a filing made to the United Kingdom's Serious Organized Crime Agency that Madoff's firm's performance was "so consistently and significantly ahead of its peers year-on-year, even in the prevailing market conditions, as to appear too good to be true -- meaning that it probably is."
But even that failed to stop JPMorgan's involvement, according to Deborah Renner, a partner at Baker & Hostetler, the court-appointed counsel for the trustee.
"Even then, JPMC executives did not restrict the BLMIS [Madoff's] bank account, even though it was being used to launder money from the Ponzi scheme," said Renner.
In addition to the e-mails, the trustee says JPMorgan should have been tipped off by the way Madoff's account was being used. According to the complaint, the account had frequent large dollar transactions, suspicious spikes in activity, and wire activity with offshore accounts, all of which should have raised red flags.
In a statement to CNNMoney, a JPMorgan spokeswoman said the complaint is "meritless" and "based on distortions of both the relevant facts and the governing law."
"Contrary to the trustee's allegations, JPMorgan did not know about or in any way become a party to the fraud orchestrated by Bernard Madoff," she said, adding that at all times, "JPMorgan complied fully with all laws and regulations governing bank accounts."
The complaint was initially filed under seal, but after an agreement between lawyers for the two parties, the document was made public.
"We have reached an agreement with opposing counsel to unseal a large majority of the complaint, with the exception of several allegations as well as the identities of the bank's employees and customers," said Renner, the lawyer for the trustee.
What remains unclear is exactly which executives at JPMorgan were allegedly warned about Madoff, but a statement from Renner says that senior management was involved.
"The bank's top executives were warned in blunt terms about speculation that Madoff was running a Ponzi scheme, yet the bank appears to have been concerned only with protecting its own investments," Renner said.
HSBC banker arrested at JFK airport as he prepared to leave the country. He and former trader face federal charges they manipulated currency trades. More
Bernie Sanders takes credit for forcing for forcing Hillary Clinton and the entire Democratic Party to get a lot tougher on Wall Street. But how likely is that to happen? More
A cutting-edge Chinese tech firm that you've probably never heard of just snapped up top U.S. electronics maker Vizio for $2 billion. More
In 1998, Ntsiki Biyela won a scholarship to study wine making. Now she's about to launch her own brand. More
Only 3% of employers offer so-called "vacation stipends" that help pay for their employees' vacations. But those that do make taking time off a must. More