INDENTURE dated as of August 1, 2004 by and between ACCREDITED MORTGAGE LOAN TRUST 2004-3, as Issuer and DEUTSCHE BANK NATIONAL TRUST COMPANY as Indenture Trustee