Hi there,

I think this should work:

 <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>
               <!-- enable starttls -->
               <mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>
       </mailet>

Let me know if it works...

Bye,
Norman

mail.smtp.starttls.enable=true

2010/12/29 vijayabhaskar mamidi <[email protected]>:
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to