Problem sending external emails to James mail server

I am new to James Mail Server. I set up the steps mentioned by James. I can send messages to the internal network, but I cannot send mail to the external network, such as gmail.

Someone please help me solve the problem.

Thank you in advance

Rohith

+3
source share
1 answer

Sorry for the latter, but this may help some people in the future.

If you want to configure JAMES to send emails to an external network, you must edit the conf.xml file in $ {JAMES_DIR} / apps / james / SAR-INF.

Compile this line to determine the SMTP relay server, if necessary, through the gateway:

<processor name="transport">
  <mailet match="All" class="RemoteDelivery">
    ...
    <gateway> smtp.gmail.com </gateway>
    <gatewayPort>25</gatewayPort>
  </mailet>
</processor>

An example of using the gmail relay server:

  • POP Server: pop.gmail.com( POP GMail)
  • SMTP-: smtp.gmail.com
  • IMAP: imap.gmail.com

: gmail , gatewayus gatewayPassword:

<gatewayusername>login</gatewayusername>
<gatewayPassword>pass</gatewayPassword>

. http://mail.google.com/support/bin/answer.py?answer=10350

+4

Source: https://habr.com/ru/post/1725134/


All Articles