archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deng Ching <och...@apache.org>
Subject Re: How to configure smtp?
Date Sat, 27 Mar 2010 15:36:55 GMT
Could you also try using mail.smtp.user and password properties to set the
username and password respectively, something like this:
<Resource name="mail/session" auth="Container" type="javax.mail.Session"
   ...
   mail.smtp.user="username" password="password">

Thanks,
Deng

On Sat, Mar 27, 2010 at 11:29 PM, Deng Ching <oching@apache.org> wrote:

> Hmm.. for the mail.smtp.user property, did you append the @domain (ex.
> user@bogusmail.com)?
>
>
> On Thu, Mar 25, 2010 at 7:08 PM, Robert Wierschke <wierob83@googlemail.com
> > wrote:
>
>> This doesn't work either.
>>
>> 2010/3/25 Deng Ching <oching@apache.org>
>>
>> > On Wed, Mar 24, 2010 at 11:30 PM, Robert Wierschke
>> > <wierob83@googlemail.com>wrote:
>> >
>> > > I've written a small Java example that uses the mail api to send
>> mails.
>> > The
>> > > app can succesfully send mails via google using the following
>> properties:
>> > >
>> > >        mail.smtp.host="smtp.googlemail.com"
>> > >        mail.smtp.port="465"
>> > >         mail.smtp.starttls.enable="true"
>> > >         mail.smtp.auth="true"
>> > >
>> > >        mail.smtp.socketFactory.port="465"
>> > >        mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
>> > >        mail.smtp.socketFactory.fallback="false"
>> > >
>> > > In my example username and password must be configured via
>> > > a javax.mail.Authenticator instance. However, I can't find any example
>> > that
>> > > shows how to set user and password via properties. So how to I
>> configure
>> > > username and password for Archiva? Both, mail.password
>> > > and mail.smpt.password do not work.
>> > >
>> > >
>> > Could you try with just username and password as the property names
>> instead
>> > of mail.user and mail.password?
>> >
>> > Thanks,
>> > Deng
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message