Hi,
Gmail requires SMTP TLS.
Could you try to start james with -Dmail.smtp.starttls.enable=true ?

Tks,
Eric

PS: I didn't try it, so it may be a partial solution...

On 29/12/2010 08:01, vijayabhaskar mamidi wrote:
Hi,

I want to use james as relay server and to start with i am trying to use gmail
as the smtp server and it fails with the following error:


28/12/10 19:05:41 INFO  James.Mailet: RemoteDelivery: Sending failure message
Mail1293591940502-2

==>  mailet-2010-12-28-19-09.log<==
28/12/10 19:09:31 INFO  James.Mailet: RemoteDelivery: Permanent exception
delivering mail (Mail1293592170730-0: com.sun.mail.smtp.SMTPSendFailedException:
530 5.7.0 Must issue a STARTTLS command first. f13sm7707112yhf.33

         at
com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
         at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
         at
org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:562)

         at
org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:1139)
         at java.lang.Thread.run(Thread.java:655)

here is my configuration :

  <mailet match="HostIs=gmail.com" class="RemoteDelivery">
                 <outgoing>  file://var/mail/relay/</outgoing>
                 <delayTime>  21600000</delayTime>
                 <maxRetries>  5</maxRetries>
                 <debug>  true</debug>
                 <deliveryThreads>  1</deliveryThreads>
                  <gateway>  smtp.gmail.com</gateway>
                 <gatewayPort>25</gatewayPort>
                 <gatewayusername>username</gatewayusername>
                 <gatewayPassword>password</gatewayPassword>
         </mailet>

Can you please help me with this ?

Thanks,
Vijay


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to