Hi Haiming, thank you for your great support. finally i resolved the issue. now every thing ok i am able to receive email from iCloud, yahoo, gmail, aliyun, etc. the root cause was i modified default smtp port 25 to 465 but i didn’t setup SSL. i was not aware the remote server was trying to connect my email server through default port 25 only. just noticed from my returned failure email mentioned as follows in red.
Wed, 21 Sep 2016 03:06:26 +0000 (GMT) TCP active open: Failed connect() to TCP port 25 of (my ip address) (No formatted text for errno = 113) due to i have postfix installed using 25, so after i modified postfix to another port. changed james smtp back to 25. now everything is working perfectly !!! :p :p :p Thank you again very much for your continous kind help! Thanks and Regards, Shawn On Sep 25, 2016, at 10:39 PM, li hai ming <haiming...@outlook.com> wrote: If you like, you may create an account for me (e.g., lhm@your.domain <mailto:lhm@your.domain>, pwd=lhm123456). I can have a try with my email client to see what would happen. 发送自 Windows 10 版邮件应用 发件人: Shawn Fu Sheng <mailto:sh...@victz.com> 发送时间: 2016年9月25日 17:50 收件人: li hai ming <mailto:haiming...@outlook.com> 抄送: James Users List <mailto:server-user@james.apache.org> 主题: Re: 答复: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains Hi Haiming, I am using iPhone and mac native email client, but thing is I can see all emails in INBOX sent from local account. All emails looks good in INBOX and SENT box. That's why I am a bit confused. Is there any switch for incoming email in configuration files I need to open? Thanks and Regards, Shawn On 25 Sep 2016, at 1:41 PM, li hai ming <haiming...@outlook.com <mailto:haiming...@outlook.com>> wrote: In this case (mx ok and no log in your james server log file), it seems there is something wrong in your email client. Which client r u using? Everything OK in the client config? 发送自 Windows 10 版邮件应用 发件人: Shawn Fu Sheng <mailto:sh...@victz.com> 发送时间: 2016年9月25日 12:31 收件人: Li Haiming <mailto:haiming...@outlook.com> 抄送: James Users List <mailto:server-user@james.apache.org> 主题: Re: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains Hi Haiming, thank you for your prompt response. i can see MX record is pointing to my CNAME which pointing to server ip. in smtpserver.xml, i put the ip address instead of this cname, is that correct? BTW, how is your sending issue now? is it resolved? you may feel free to call FaceTime auto to my email address if you need discussion, please. <PastedGraphic-1.png> Thanks and Regards, Shawn On Sep 25, 2016, at 10:58 AM, li hai ming <haiming...@outlook.com <mailto:haiming...@outlook.com>> wrote: Maybe you can use nslookup to check if MX is ok or not. Nslookup > set type=mx > your.james.mail.host > set type=a > your.mx.host 发送自 Windows 10 版邮件应用 发件人: Shawn Fu Sheng <mailto:sh...@victz.com> 发送时间: 2016年9月25日 10:23 收件人: li hai ming <mailto:haiming...@outlook.com> 抄送: James Users List <mailto:server-user@james.apache.org> 主题: Re: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains Hi Hai ming, i even unable to find any log regarding incoming email after i gone through all log files under log directory. i suppose could it because of my MX problem or Firewall issue? may i know is the incoming mail using same port with outgoing smtp ? i only opened port 465 as i set in smtpserver.xml. i remember i switched off firewall before and tested also cannot. Thanks and Regards, Shawn On Sep 25, 2016, at 9:34 AM, li hai ming <haiming...@outlook.com <mailto:haiming...@outlook.com>> wrote: Regarding receiving problem, have u checked james-server.log to see if any clue there? 发送自 Windows 10 版邮件应用 发件人: Shawn Fu Sheng <mailto:sh...@victz.com> 发送时间: 2016年9月24日 23:21 收件人: li hai ming <mailto:haiming...@outlook.com> 抄送: James Users List <mailto:server-user@james.apache.org> 主题: Re: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains Hi, can’t see much from you logs. those are INFO messages not error. may be you can share your logs or config file? BTW, how did you config your receiving part? which config file i should update? is it smtpserver.xml? Thanks and Regards, Shawn On Sep 24, 2016, at 11:14 PM, li hai ming <haiming...@outlook.com <mailto:haiming...@outlook.com>> wrote: Hi, I also have beta5 up and running. When sending email from james to my qq email, I got below error. Any config I should change? Btw: my james is able to receive the emails from my qq senders. ## INFO | jvm 1 | 2016/09/24 23:11:37 | INFO 23:11:37,478 | james.mailetcontext | Local delivery with ToSenderFolder mailet for mail Mail1474729897353-d54c9c61-b19c-445e-86f5-da2b4706ba14 with sender u...@xx.yyy.com <mailto:u...@xx.yyy.com> in folder Sent INFO | jvm 1 | 2016/09/24 23:11:37 | INFO 23:11:37,495 | james.mailetcontext | Storing mail Mail1474729897353-d54c9c61-b19c-445e-86f5-da2b4706ba14 in file://var/mail/relay-denied/ <file://var/mail/relay-denied/> ## 发送自 Windows 10 版邮件应用 发件人: Shawn Fu Sheng <mailto:sh...@victz.com> 发送时间: 2016年9月24日 18:32 收件人: James Users List <mailto:server-user@james.apache.org> 主题: Apache James Server 3.0-beta5-SNAPSHOT : Unable receive email from outside domains Hi, good day. I cloned the trunk source code from git (22Sep2016) and builded zip, tested seems everything ok but unable receive email from outside domains. anyone could help give me a hint how to troubleshoot, please? i made sure the MX and SPF record has been pointed to the correct CNAME address and verified by NSLOOKUP shown ok. the steps listed as follows for your advice, please. 1) cloned trunk source code from git, executed mvn package -DskipTests=true -Pwith-assembly 2) copied and extracted james-server-app-3.0.0-beta5-SNAPSHOT-app.zip under directory /james-project/server/app/target/ to target server. 3) modified below xml bind IP to server IP and enable SMTP authRequired. events.xml imapserver.xml indexer.xml mailetcontainer.xml managesieveserver.xml pop3server.xml quota.xml smtpserver.xml 4)comment below RemoteAddrNotInNetwork matcher. <!-- <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor"> <processor>relay-denied</processor> <notice>550 - Requested action not taken: relaying denied</notice> </mailet> --> after above, i created test domain and test user, started services, opened firewall 25,465, 110. 995, 143, 993, i am now able to connect SMTP and IMAP via my iPhone. able to send email to iCloud and yahoo mails. but when they reply, i can’t receive. but i am able to receive email from local user. Appreciate your help, please. thank you in advance. Thanks and Regards, Shawn