Send emails on Solaris 10 via relay authentication

Hi,

I am looking for a shell/perl script which can used to get authenticate on relay server by a domain user account and password and send emails. Basically in our organisation system level authentication is blocked and we need to get authenticated via user level authentication on smtp server'.s and send emails. Is this possible ? I tried lot of perl scripts on web but couldn't find a soluton.

Thanks

Isn't it a security violation to use user authentication on the system mail server? It sounds like advanced sendmail setup. Do you have established id/pw store, or just want to set one up? Something like ldap would work nice for the later case.