Note that there are some explanatory texts on larger screens.

plurals
  1. POapache james mail server to send emails
    primarykey
    data
    text
    <p>Hi I am using apache james email server 2.3.2 for email sending thrugh my Java application I have setup it and using JavaMail API 1.4. I am tring to send emails to gmail/yahoo etc mail servers.</p> <p>I could sent mail to accunts on localhost(account on locally running James ) but not to outside email servers.</p> <p>I have changed /apps/config.xml also. I have my sample MyMailet on james. It is not throwing any exception. but mailet*.log is like:</p> <pre><code>13/06/12 15:20:13 INFO James.Mailet: MyMailet#init called 13/06/12 15:20:13 INFO James.Mailet: RemoteAddrNotInNetwork: Authorized addresses: [127.0.0.1/255.255.255.255] 13/06/12 15:20:13 INFO James.Mailet: RemoteDelivery: Total number of delayTime attempts exceeds maxRetries specified. Increasing maxRetries from 1 to 6 13/06/12 15:20:17 INFO James.Mailet: MyMailet#service callednull from test@localhost 13/06/12 15:20:23 INFO James.Mailet: RemoteDelivery: Attempting delivery of Mail1339581017690-0 to host 192.168.15.186 at 192.168.15.186 for addresses [shreyas1910@gmail.com] 13/06/12 15:20:23 INFO James.Mailet: RemoteDelivery: null 13/06/12 15:20:23 INFO James.Mailet: RemoteDelivery: Temporary exception delivering mail (Mail1339581017690-0: 13/06/12 15:20:23 INFO James.Mailet: RemoteDelivery: Storing message Mail1339581017690-0 into outgoing after 0 retries </code></pre> <p>dnsserver*.log is like:</p> <pre><code>13/06/12 15:20:13 INFO dnsserver: DNS Server is: 192.168.15.3 james*.log like: 13/06/12 15:20:13 INFO James: JAMES init... 13/06/12 15:20:13 INFO James: Local host is: IISD27 13/06/12 15:20:13 INFO James: Handling mail for: 97.74.180.1 13/06/12 15:20:13 INFO James: Handling mail for: iisd27 13/06/12 15:20:13 INFO James: Handling mail for: gmail.com 13/06/12 15:20:13 INFO James: Handling mail for: 74.125.236.182 13/06/12 15:20:13 INFO James: Handling mail for: 74.125.236.181 13/06/12 15:20:13 INFO James: Handling mail for: 127.0.0.1 13/06/12 15:20:13 INFO James: Handling mail for: localhost 13/06/12 15:20:13 INFO James: Local users repository opened 13/06/12 15:20:13 INFO James: Private Repository LocalInbox opened 13/06/12 15:20:13 INFO James: JAMES ...init end </code></pre> <p>and cofig.xml is like:</p> <pre><code> &lt;processor name="transport"&gt; &lt;mailet match="All" class="RemoteDelivery"&gt; &lt;outgoing&gt; file://var/mail/outgoing/ &lt;/outgoing&gt; &lt;gateway&gt;192.168.15.186&lt;/gateway&gt;//My IP addresss. Tried with smtp.gmail.com also &lt;gatewayPort&gt;25&lt;/gatewayPort&gt; &lt;gatewayusername&gt;user123&lt;/gatewayusername&gt; &lt;gatewayPassword&gt;pass123&lt;/gatewayPassword&gt; &lt;!-- Set the HELO/EHLO name to use when connectiong to remote SMTP-Server --&gt; &lt;mail.smtp.localhost&gt;myMailServer&lt;/mail.smtp.localhost&gt; &lt;/mailet&gt; &lt;/processor&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload