----- Original Message -----
From: "Stefano Bagnara" <[EMAIL PROTECTED]>
To: "James Developers List" <server-dev@james.apache.org>
Sent: Thursday, May 08, 2008 5:50 PM
Subject: Re: How to get username and password for sessions that require
SMTPAuthentication?
[EMAIL PROTECTED] ha scritto:
Hi,
I am developing an Mail Relay application that uses Server JAMES to do
the work.
I have a Gmail's account .
I used Mail Client to send a message to JAMES.Then JAMES will relay this
message to Gmail,but Gmail requires authentication username and password.
How to get username and password from JAMES to relay the mail to Gmail?
Thanks!!!
You can't. Passwords are store encrypted. We can only check if a password
is valid but we cannot know the password content.
Do you want to relay *every* message sent to JAMES to a gmail server that
will handle the delivery? In this case why don't you use gmail as SMTP
server in your mail client? Why do you need to use gmail and you can't use
JAMES built-in RemoteDelivery.
Or you simply what to send to gmail messages destinated to gmail
addresses? If I understood your message this is your case. You don't need
a username/password to deliver mail messages to gmail addresses. It will
simply work out of the box. There is no need to use authentication when
sending mails via SMTP if the SMTP server is an MX server for the
recipient domain.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
BTW what exactly are you trying to do?
In this case I used JAMES put attach file to mail(Ex: file Text,file
Image,.....) then relay this message to Gmail.
(attach Text,Image..)
MailClient(account gmail)=====================> JAMES
===================>Gmail
Thanks Stefano!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]