You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ja...@sun-rise.com.vn on 2008/05/08 12:34:45 UTC
How to get username and password for sessions that require SMTPAuthentication?
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!!!
Re: How to get username and password for sessions that require SMTPAuthentication?
Posted by ja...@sun-rise.com.vn.
----- Original Message -----
From: "Stefano Bagnara" <ap...@bago.org>
To: "James Developers List" <se...@james.apache.org>
Sent: Thursday, May 08, 2008 5:50 PM
Subject: Re: How to get username and password for sessions that require
SMTPAuthentication?
> james_mail@sun-rise.com.vn 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: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: How to get username and password for sessions that require SMTPAuthentication?
Posted by Stefano Bagnara <ap...@bago.org>.
james_mail@sun-rise.com.vn 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.
BTW what exactly are you trying to do?
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org