javaemailserver-user Mailing List for Java SMTP/POP EMail Server (Page 3)
Brought to you by:
edaugherty,
mfg8876
You can subscribe to this list here.
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
(6) |
Sep
|
Oct
(8) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(18) |
Jun
(1) |
Jul
|
Aug
(16) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(5) |
Dec
|
|
From: <jav...@li...> - 2011-10-26 18:34:55
|
You must forward the ports from your router to your pc so that incoming connections get directed from the former to the later. You must add an exception to your windows firewall for java. You should test that dns-java is properly running. You do that by running the lookup script in the bin folder. For basic server operations you only need the SMTP and POP3 ports (defaults are 25 and 110 respectively) open/forwarded. As far as receiving mail from gmail (or any other mail server not part of your local network) you will most likely need an MX record on a DNS server that tells gmail where to connect to in order to deliver mail. I have never tested JES against a Microsoft mail client until today. Microsoft's implementation of the SMTP/POP3 RFCs is somewhat dubious. Anyway, I have made minor adjustments and have received confirmation that JES now works with at least Outlook 2003. But you will have to download the latest release (beta4f). Note that JES doesn't support NTLM (aka SPA) so don't select it when setting up an account in Outlook. One (quick and dirty) way of testing JES on a windows machine is this: Name a local domain however you desire (e.g. myDomain.com) and place it in the domains entry in mail.conf. Add at least one user to the aforementioned domain in user.conf. Edit your hosts file (you need to run as administrator whatever editor you like using) and add an entry so that myDomain.com resolves to 127.0.0.1 or a 192.168.X.X address (whatever you specify as the address JES is listening on) so that a mail client running on your pc manages to connect to it. Andreas Date: Wed, 26 Oct 2011 09:14:06 -0400 To: jav...@li... From: jav...@li... Subject: [Javaemailserver-user] Ports for email server? Which ports to I need to open in my firewall for email server. I already opened ports 110 and 25. Are there any other ports that need to be opened? I have tried sending email from the gmail to my mail server and gmail can't connect. That is why I'm asking about ports. Also, I still can't connect to my mail server using outlook on the same machine. Is there another mail tool that I can you to read and send email through my server? I'm running my mail server on Windows 7. Any tricks or tips for windows 7? -- Robert Waligora ~ http://www.waligora.com Cell Phone: 440-941-2262 (new cell phone number) Home Phone: 440-519-0733 ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Javaemailserver-user mailing list Jav...@li... https://lists.sourceforge.net/lists/listinfo/javaemailserver-user |
|
From: <jav...@li...> - 2011-10-26 13:14:17
|
Which ports to I need to open in my firewall for email server. I already opened ports 110 and 25. Are there any other ports that need to be opened? I have tried sending email from the gmail to my mail server and gmail can't connect. That is why I'm asking about ports. Also, I still can't connect to my mail server using outlook on the same machine. Is there another mail tool that I can you to read and send email through my server? I'm running my mail server on Windows 7. Any tricks or tips for windows 7? -- Robert Waligora ~ http://www.waligora.com Cell Phone: 440-941-2262 (new cell phone number) Home Phone: 440-519-0733 |
|
From: <jav...@li...> - 2011-10-25 18:30:15
|
If you want to force the use of secure connections you can either set the standardSMTPsecure entry to true or activate an additional incoming connection listener by setting secureactive to true. The standardSMTPsecure setting uses "STARTTLS" as an SMTP extension while secureactive uses the dropped 465 port approach whereby the connection is secured before the SMTP handshake. Note that the standard SMTP/POP3 ports can not be deactivated. Therefore the only way to reject non-secure connections is to use standardSMTPsecure. You can also enable the use of secure outgoing SMTP connections by using outgoingSecure. SSLv2 is not supported by JES so it will reject an attempt to establish a secure context based on it. There is no way (besides building from source) to reject SSLv3. Date: Mon, 24 Oct 2011 13:49:02 +0800 To: jav...@li... From: jav...@li... Subject: [Javaemailserver-user] How to config JES to allow only TLS SMTP Connections? Hi,How can I config JES so that it only accept SMTP connections over TLS and reject all other non-secure, SSLv2 and SSLv3 connections?Thanks, Thanks and best regards, Hugh Chen ------------------------------------- Email: hug...@gm... "Work smart;Not work hard!" ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Javaemailserver-user mailing list Jav...@li... https://lists.sourceforge.net/lists/listinfo/javaemailserver-user |
|
From: <jav...@li...> - 2011-10-24 05:49:08
|
Hi, How can I config JES so that it only accept SMTP connections over TLS and reject all other non-secure, SSLv2 and SSLv3 connections? Thanks, Thanks and best regards, Hugh Chen ------------------------------------- Email: hug...@gm... "Work smart;Not work hard!" |
|
From: <jav...@li...> - 2011-10-18 19:19:59
|
Don't use outlook! Just kidding. The server is being contacted by your mail agent so that's one down. Using outlook... ... if you are trying to receive mail via POP3 you need to authenticate. ... if you are trying to send mail via SMTP you also have to authenticate. The default mail.conf allows cleartext password authentication mechs such as PLAIN or LOGIN so you should be able to authenticate. Perhaps you have to configure outlook in order to do so? Seriously, outlook? :) Plz mail me directly if you 're still having issues. I'd be glad to help out. Andreas |
|
From: <jav...@li...> - 2011-10-18 18:55:51
|
That explains the error message in the log file. However, I still can't connect using outlook to send or receive mail. 2011/10/18 <jav...@li...> > Hi there! > > Edit mail.conf and set enable.HELO=true > > > Andreas > > ------------------------------ > Date: Tue, 18 Oct 2011 11:53:50 -0400 > To: jav...@li... > From: jav...@li... > Subject: [Javaemailserver-user] JES Mail Configuration > > > Group; > > I have tried to setup your email server on my home pc before and ran into > issues. Yesterday, I gave it another shot and have the same problem. I think > the mail server is working, but I can't connect to it from Outlook. > > Here is what I did to configure the mail server: > > Installed in c:\jes (this eliminated the need to change mail.bat and set > the home) > > mail.conf: > set: domains=waligora.com > set: def...@wa... > user.conf: > Created 3 users with password: (ad...@wa..., bo...@wa... > ju...@wa...) > > Mail.bat: no changes (java.exe is in path and JES_HOME is correct) > > Opened ports 25 and 110 in my routers firewall. > > started server from command line by typing"mail" from the jes\bin folder. > > First run looked ok, but I did get an error from SMTP Processor below: > > 2011-10-18 09:42:07,079 - [SMTPSender] SMTPSender - SMTPSender resuming > operation. > 2011-10-18 09:42:07,080 - [main] Mail - JES Started Successfully. > 2011-10-18 09:42:37,081 - [JES Status Monitor] Mail$Status - Time active: > 2011-10-18 09:42:37,081 - [JES Status Monitor] Mail$Status - Active > Modules: SMTPSender Deliver Standard:4/4 SMTP:5/5 POP3: 5/5 > 2011-10-18 09:43:27,959 - [SMTP:5] SMTPProcessor - > nm18-vm1.bullet.mail.sp2.yahoo.com(98.139.91.215) socket connected via > SMTP. > 2011-10-18 09:43:27,959 - [SMTP:5] SMTPProcessor - Writing Output: 220 > ESMTP Server > 2011-10-18 09:43:28,076 - [SMTP:5] SMTPProcessor - Read Input: HELO > nm18-vm1.bullet.mail.sp2.yahoo.com > 2011-10-18 09:43:28,076 - [SMTP:5] SMTPProcessor - Writing Output: 554 > Active Security Context rejects the HELO command > 2011-10-18 09:43:28,189 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,189 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,190 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,190 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,190 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,191 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,191 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,191 - [SMTP:5] SMTPProcessor - Writing Output: 500 > Command Unrecognized: > 2011-10-18 09:43:28,192 - [SMTP:5] SMTPProcessor - The session generated > too many errors > I stopped and restarted jes, and it appears to be working, because emails > are starting to arrive in users directories. > > However, when I attempt to read the emails using outlook, I receive the > attached error message: > > > Any ideas on what causes this error in outlook? > > > > -- > Robert Waligora ~ http://www.waligora.com > Cell Phone: 440-941-2262 (new cell phone number) > Home Phone: 440-519-0733 > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security threats, > fraudulent activity and more. Splunk takes this data and makes sense of it. > Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ Javaemailserver-user > mailing list Jav...@li... > https://lists.sourceforge.net/lists/listinfo/javaemailserver-user > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > Javaemailserver-user mailing list > Jav...@li... > https://lists.sourceforge.net/lists/listinfo/javaemailserver-user > > -- Robert Waligora ~ http://www.waligora.com Cell Phone: 440-941-2262 (new cell phone number) Home Phone: 440-519-0733 |
|
From: <jav...@li...> - 2011-10-18 18:50:49
|
Hi there! Edit mail.conf and set enable.HELO=true Andreas Date: Tue, 18 Oct 2011 11:53:50 -0400 To: jav...@li... From: jav...@li... Subject: [Javaemailserver-user] JES Mail Configuration Group; I have tried to setup your email server on my home pc before and ran into issues. Yesterday, I gave it another shot and have the same problem. I think the mail server is working, but I can't connect to it from Outlook. Here is what I did to configure the mail server: Installed in c:\jes (this eliminated the need to change mail.bat and set the home) mail.conf: set: domains=waligora.com set: def...@wa... user.conf: Created 3 users with password: (ad...@wa..., bo...@wa... and ju...@wa...) Mail.bat: no changes (java.exe is in path and JES_HOME is correct) Opened ports 25 and 110 in my routers firewall. started server from command line by typing"mail" from the jes\bin folder. First run looked ok, but I did get an error from SMTP Processor below: 2011-10-18 09:42:07,079 - [SMTPSender] SMTPSender - SMTPSender resuming operation. 2011-10-18 09:42:07,080 - [main] Mail - JES Started Successfully. 2011-10-18 09:42:37,081 - [JES Status Monitor] Mail$Status - Time active: 2011-10-18 09:42:37,081 - [JES Status Monitor] Mail$Status - Active Modules: SMTPSender Deliver Standard:4/4 SMTP:5/5 POP3: 5/5 2011-10-18 09:43:27,959 - [SMTP:5] SMTPProcessor - nm18-vm1.bullet.mail.sp2.yahoo.com(98.139.91.215) socket connected via SMTP. 2011-10-18 09:43:27,959 - [SMTP:5] SMTPProcessor - Writing Output: 220 ESMTP Server 2011-10-18 09:43:28,076 - [SMTP:5] SMTPProcessor - Read Input: HELO nm18-vm1.bullet.mail.sp2.yahoo.com 2011-10-18 09:43:28,076 - [SMTP:5] SMTPProcessor - Writing Output: 554 Active Security Context rejects the HELO command 2011-10-18 09:43:28,189 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,189 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,190 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,190 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,190 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,191 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,191 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,191 - [SMTP:5] SMTPProcessor - Writing Output: 500 Command Unrecognized: 2011-10-18 09:43:28,192 - [SMTP:5] SMTPProcessor - The session generated too many errors I stopped and restarted jes, and it appears to be working, because emails are starting to arrive in users directories. However, when I attempt to read the emails using outlook, I receive the attached error message: Any ideas on what causes this error in outlook? -- Robert Waligora ~ http://www.waligora.com Cell Phone: 440-941-2262 (new cell phone number) Home Phone: 440-519-0733 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Javaemailserver-user mailing list Jav...@li... https://lists.sourceforge.net/lists/listinfo/javaemailserver-user |
|
From: <jav...@li...> - 2011-08-26 20:19:50
|
That's the result you get when: a) You get to write code at 3 in the morning and b) You believe you don't need unit testing. Beta4c is an evening effort with unit testing in place. Go grab it. Andreas |
|
From: <jav...@li...> - 2011-08-26 14:28:22
|
Hello Andreas, I tried the 2.1.2-beta4b build , but am still stuck in the rcptPolicy i'm afraid. (see log excerpt) When sending mail from a registered local 'eps.agfa.be' user to an email address in domain 'agfa.com' i always get a rejection in SMTPprocessor The different rcptPolicy setting which i've tried (all resulted in the same rejection message) are: 1) the default rcptPolicy.conf file settings (= no 'allow' nor 'block' is specified) 2) allow=agfa.com 3) allow.eps.agfa.be=agfa.com Thx, Raf ++++++++++++++++ jes.log +++++++++++++ 2011-08-26 16:14:50,027 - [SMTP:1] User - Authenticating User: ra...@ep... 2011-08-26 16:14:50,043 - [SMTP:1] PlainServerMode$FinalizeAuthenticationSMTP - User: ra...@ep... logged in successfully. 2011-08-26 16:14:50,043 - [SMTP:1] SMTPProcessor - Writing Output: 235 Authentication Successful 2011-08-26 16:14:50,043 - [SMTP:1] SMTPProcessor - Read Input: MAIL FROM:<ra...@ep...> 2011-08-26 16:14:50,043 - [SMTP:1] SMTPProcessor$FullTransferMode - MAIL FROM: ra...@ep... 2011-08-26 16:14:50,043 - [SMTP:1] SMTPProcessor - Writing Output: 250 OK 2011-08-26 16:14:50,058 - [SMTP:1] SMTPProcessor - Read Input: RCPT TO:<rap...@ag...> 2011-08-26 16:14:50,058 - [SMTP:1] ConfigurationManager - Tried to load non-existent user: rap...@ag... 2011-08-26 16:14:50,058 - [SMTP:1] SMTPProcessor - REJECTED! Message from domain eps.agfa.be to Domain agfa.com. 2011-08-26 16:14:50,058 - [SMTP:1] SMTPProcessor - Writing Output: 550 Recipient Domain not accepted; a policy restriction is in place 2011-08-26 16:14:50,058 - [SMTP:1] SMTPProcessor - Read Input: QUIT 2011-08-26 16:14:50,058 - [SMTP:1] SMTPProcessor - User has QUIT the session. 2011-08-26 16:14:50,058 - [SMTP:1] SMTPProcessor - Writing Output: 221 ESMTP server signing off +++++++++++++++++++++++++++++++++++ |
|
From: <jav...@li...> - 2011-08-24 23:36:29
|
Hello Raf Your input is much appreciated. I have identified the offending code and have proceeded to provide a fix. The new version (beta4b) is available at sourceforge. As I understand the SMTP rfc, an authenticated user (thus also a "local" JES user) can define any recipient. Therefore a user belonging to a locally administered domain (eps.agfa.be) MUST be allowed to send mail to whatever recipient (including agfa.com). It is the admin's responsibility to enforce a more strict recipient policy, and the means to do it is (now correctly) offered by JES via the recipientPolicy mechanism. If you purpose to send mail only to the locally administered mail domain (eps.agfa.be) you should specify allow=eps.agfa.be or allow.eps.agfa.be=eps.agfa.be This way you don't have to block domains individually. Let us know how things have worked out. Andreas To: jav...@li... Date: Tue, 23 Aug 2011 16:32:28 +0200 From: jav...@li... Subject: [Javaemailserver-user] message relaying - elaboration Hi Andreas, Thanks for your feedback on my previous questions. Here follows a more elaborate record of the relaying issue. >> >> 3) Mail to other (non local) domains gets relayed, even with relay.ipaddresses disabled (see setting) >> >> How can i prevent relaying ? >> >>>> Could you plz elaborate a bit more? The "relay" entries in mail.conf concern exclusively >>>> the recipient list of incoming messages and are only >> taken into account should the >>>> connecting sender not have authenticated during the active session. >> In our JES test mail.conf setup the domains 'agfa.com', 'agfahealthcare.com' are not local domains. Only 'eps.agfa.be'is local E.g. I want to prevent relaying any mail destined for '@agfa.com' A mail , sent by user 'ra...@ep...' to 'rap...@ag...' however is relayed successfully. Given the fact that (AFAIK) i've not enable relaying anywhere in mail.conf, i wasn't expecting this message to be relayed. However, the JES log shows that it was relayed via server 'morswhv64.agfahealthcare.com'. Even using the global 'block=agfa.com' feature in the rcptPolicy.conf file did not prevent relaying mail to the 'agfa.com' addresses. At which mail.conf setting should i be looking to prevent relaying ? Thx, Raf +++++++++++++++++ jes .log +++++++++++++++++++ 2011-08-03 15:09:57,937 - [SMTP:5] PlainServerMode$FinalizeAuthenticationSMTP - User: ra...@ep... logged in successfully. 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor - Writing Output: 235 Authentication Successful 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor - Read Input: MAIL FROM:<ra...@ep...> 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor$FullTransferMode - MAIL FROM: ra...@ep... 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor - Writing Output: 250 OK 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Read Input: RCPT TO:<rap...@ag...> 2011-08-03 15:09:57,953 - [SMTP:5] ConfigurationManager - Tried to load non-existent user: rap...@ag... 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Writing Output: 250 OK 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Message from domain eps.agfa.be to Domain agfa.com is ACCEPTED! 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor$FullTransferMode - RCTP TO: rap...@ag... accepted. 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Read Input: DATA 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Writing Output: 354 Start mail input; end with <CRLF>.<CRLF> 2011-08-03 15:09:57,984 - [SMTP:5] SMTPProcessor - Writing Output: 250 OK 2011-08-03 15:09:57,984 - [SMTP:5] SMTPProcessor - Message 688d9005 accepted for delivery. 2011-08-03 15:10:04,531 - [SMTPSender] IncrementalFileIOProccessor - Loading SMTP Message smtp688d9005.ser version 1.0 2011-08-03 15:10:04,531 - [Deliver Standard 2] SMTPSenderStandard$StandardDeliver - Delivering Message to remote domain: agfa.com 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 220 morswhv64.agfahealthcare.com ESMTP Service (Lotus Domino Release 8.5.2FP2 HF380) ready at Wed, 3 Aug 2011 15:10:04 +0200 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Writing: EHLO eps.agfa.be 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250-morswhv64.agfahealthcare.com Hello eps.agfa.be ([10.232.50.144]), pleased to meet you 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250-SIZE 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250-8BITMIME 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 PIPELINING 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Writing: MAIL FROM:<ra...@ep...> SIZE=716 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 ra...@ep...... Sender OK 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Writing: RCPT TO:<rap...@ag...> 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 rap...@ag...... Recipient OK 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Writing: DATA 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 354 Enter message, end with "." on a line by itself 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 Message accepted for delivery 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Writing: QUIT 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 221 morswhv64.agfahealthcare.com SMTP Service closing transmission channel 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Session has ended 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPSenderStandard$StandardDeliver - Delivery complete for message 688d9005 to recipient(s) at domain: agfa.com +++++++++++++++++++++++++++++++++++++ ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Javaemailserver-user mailing list Jav...@li... https://lists.sourceforge.net/lists/listinfo/javaemailserver-user |
|
From: <jav...@li...> - 2011-08-23 14:32:42
|
Hi Andreas, Thanks for your feedback on my previous questions. Here follows a more elaborate record of the relaying issue. >> >> 3) Mail to other (non local) domains gets relayed, even with relay.ipaddresses disabled (see setting) >> >> How can i prevent relaying ? >> >>>> Could you plz elaborate a bit more? The "relay" entries in mail.conf concern exclusively >>>> the recipient list of incoming messages and are only >> taken into account should the >>>> connecting sender not have authenticated during the active session. >> In our JES test mail.conf setup the domains 'agfa.com', 'agfahealthcare.com' are not local domains. Only 'eps.agfa.be'is local E.g. I want to prevent relaying any mail destined for '@agfa.com' A mail , sent by user 'ra...@ep...' to 'rap...@ag...' however is relayed successfully. Given the fact that (AFAIK) i've not enable relaying anywhere in mail.conf, i wasn't expecting this message to be relayed. However, the JES log shows that it was relayed via server 'morswhv64.agfahealthcare.com'. Even using the global 'block=agfa.com' feature in the rcptPolicy.conf file did not prevent relaying mail to the 'agfa.com' addresses. At which mail.conf setting should i be looking to prevent relaying ? Thx, Raf +++++++++++++++++ jes .log +++++++++++++++++++ 2011-08-03 15:09:57,937 - [SMTP:5] PlainServerMode$FinalizeAuthenticationSMTP - User: ra...@ep... logged in successfully. 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor - Writing Output: 235 Authentication Successful 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor - Read Input: MAIL FROM:<ra...@ep...> 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor$FullTransferMode - MAIL FROM: ra...@ep... 2011-08-03 15:09:57,937 - [SMTP:5] SMTPProcessor - Writing Output: 250 OK 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Read Input: RCPT TO:<rap...@ag...> 2011-08-03 15:09:57,953 - [SMTP:5] ConfigurationManager - Tried to load non-existent user: rap...@ag... 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Writing Output: 250 OK 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Message from domain eps.agfa.be to Domain agfa.com is ACCEPTED! 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor$FullTransferMode - RCTP TO: rap...@ag... accepted. 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Read Input: DATA 2011-08-03 15:09:57,953 - [SMTP:5] SMTPProcessor - Writing Output: 354 Start mail input; end with <CRLF>.<CRLF> 2011-08-03 15:09:57,984 - [SMTP:5] SMTPProcessor - Writing Output: 250 OK 2011-08-03 15:09:57,984 - [SMTP:5] SMTPProcessor - Message 688d9005 accepted for delivery. 2011-08-03 15:10:04,531 - [SMTPSender] IncrementalFileIOProccessor - Loading SMTP Message smtp688d9005.ser version 1.0 2011-08-03 15:10:04,531 - [Deliver Standard 2] SMTPSenderStandard$StandardDeliver - Delivering Message to remote domain: agfa.com 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 220 morswhv64.agfahealthcare.com ESMTP Service (Lotus Domino Release 8.5.2FP2 HF380) ready at Wed, 3 Aug 2011 15:10:04 +0200 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Writing: EHLO eps.agfa.be 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250-morswhv64.agfahealthcare.com Hello eps.agfa.be ([10.232.50.144]), pleased to meet you 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250-SIZE 2011-08-03 15:10:04,562 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250-8BITMIME 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 PIPELINING 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Writing: MAIL FROM:<ra...@ep...> SIZE=716 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 ra...@ep...... Sender OK 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Writing: RCPT TO:<rap...@ag...> 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 rap...@ag...... Recipient OK 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Writing: DATA 2011-08-03 15:10:04,578 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 354 Enter message, end with "." on a line by itself 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 250 Message accepted for delivery 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Writing: QUIT 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Read Input: 221 morswhv64.agfahealthcare.com SMTP Service closing transmission channel 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPRemoteSender - Session has ended 2011-08-03 15:10:04,718 - [Deliver Standard 2] SMTPSenderStandard$StandardDeliver - Delivery complete for message 688d9005 to recipient(s) at domain: agfa.com +++++++++++++++++++++++++++++++++++++ |
|
From: <jav...@li...> - 2011-08-13 01:16:24
|
Thank you for using JES2. On to your questions/issues. 1) Using 'non-secure' smtp mode (standard mail.conf settings) it seems the 1.6 mail.conf settings don't work 'out-of-the-box' anymore under 2.1. Non-authenticated mail connections don't get delivered anymore as they were under 1.6. To remedy this, in needed to enable authentication (password) for SMTP connection in my mail client, where authentication used to be 'none' working with jes 1.6. Is this a deliberate choice? Absolutely. Having an SMTP server run as an open relay is not an option these days. An alternative is to use the "testing.destination" option in mail.conf and set it to a folder of choice. 2) When we enable secure smtp communication, our java mail agent tries to establish a connection using the SSLv2Hello protocol. Jes logs this attempt as "javax.net.ssl.SSLHandshakeException: SSLv2Hello is disabled" Is there a mail.conf setting which enables SSLv2Hello support? No. SSLv2Hello is deprecated. If you really need it you will have to compile from source after adding it to "ENABLED_PROTOCOLS" entry in source file "ConfigurationParameterConstants". You will have to update the cipher entries as well. 3) Mail to other (non local) domains gets relayed, even with relay.ipaddresses disabled (see setting) (The contacted mail relay-server is not even configured in the mail.conf file, so this must be through dynamic discovery) How can i prevent relaying ? Could you plz elaborate a bit more? The "relay" entries in mail.conf concern exclusively the recipient list of incoming messages and are only taken into account should the connecting sender not have authenticated during the active session. 4) Address forwarding from forwardme to ra...@ep... fails (see included user.conf file). Verified. Fix is available as a beta4a download. Andreas |
|
From: <jav...@li...> - 2011-06-21 17:28:43
|
I just forwarded a message I received some time ago on my personal mailbox. It didn't catch my attention at the time and it never made to the list for approval. (Sorry Ben) Both Ben and Ronald report the same problem that has to do something with the way I haveextended the DNSService class (or so I believe at this time). I have followed the setup instructions to the letter and have been unable to reproduce theissue. Pretty obviously thought it's there. May I ask both Ben and Ronald for a bit more info? PC or Mac?OS (Windows/Linux Distro/OSX)? OS version?Java version? Could you also please mail the log entries (in the logs folder) that correspond to this exception? On the mac, are you Ronald using Parallels or some other VM to run windows and executeJES from there? I have to point out, just like it is implied on the manual, that no testing hastaken place on a Mac (I don't own one) and I can think of a few issues withthe code that would render it non Mac friendly (to put it mildly). Could you both also run the lookup script from the bin folder? Something along the lines of (just copy/paste the line below to the shell script): lookup "" "" MX sourceforge.net ??? The output should be adding server 192.168.XXX.XXXadding search XXXXXXXXXlookup sourceforge.net. MXunknownSending to 192.168.XXX.XXX:53queried sourceforge.net. MXsuccessfulsourceforge.net:sourceforge.net. 3600 IN MX 10 mx.sourceforge.net. If the lookup script executes like such then I can exclude the DNSJava 2.1.0 code from causingthe problem. Thank you both for taking the time to report this problem. Any further info will be of great helpto bring a quick resolution. Andreas |
|
From: <jav...@li...> - 2011-06-21 17:06:25
|
From: Ben...@su...
To: and...@ho...
Date: Wed, 18 May 2011 17:58:44 +1000
Subject: FW: JES and DNS
Hi andreas
Just forwardin this to yourself as well because I wasn’t shure if the mailing ,list was active yet.
Cheers
Ben
From: SULLIVAN, Ben
Sent: Wednesday, 18 May 2011 5:56 PM
To: 'jav...@li...'
Subject: JES and DNS
Hi guys
I need JES to run as a lightweight local email server that I can use to perform isolated acceptance testing. So the test emails are generated programmatically on the same machine as JES is running on (i.e. my development virtual machine
running on my dev workstation). So I don’t really need DNS. I am using the latest version of JES.
I am seeing the stack trace below because my VM hostname (WIN-JF8SCLDOHTG) is not setup by our corporate DNS. Is DNS mandatory now? It’s been a while since I used JES but I don’t remember having to worry about DNS before. I simply need
to be able to send test emails to JES and have my test subject suck these emails off the POP3 mailbox. The email generating software, JES and the test subject all run on the same machine – so DNS is really surplus to requirement for me.
If there’s no way around this, can anyone recommend some alternative POP3 implementations that might be more suitable for my needs?
Thanks
Ben
2011-05-18 17:26:13,035 - [main] Mail - JES Starting Up...
DNSJavaNameService: Unexpected error.
java.net.UnknownHostException: WIN-JF8SCLDOHTG
at org.xbill.DNS.spi.DNSJavaNameService.lookupAllHostAddr(DNSJavaNameSer
vice.java:147)
at org.xbill.DNS.spi.DNSJavaNameService.invoke(DNSJavaNameService.java:9
7)
at $Proxy0.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressFromNameService(Unknown Source)
at java.net.InetAddress.getLocalHost(Unknown Source)
at javax.crypto.SunJCE_b.j(DashoA13*..)
at javax.crypto.SunJCE_b.d(DashoA13*..)
at javax.crypto.SunJCE_b.c(DashoA13*..)
at javax.crypto.SunJCE_b$1.run(DashoA13*..)
at java.security.AccessController.doPrivileged(Native Method)
at javax.crypto.SunJCE_b.<clinit>(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
at javax.crypto.SealedObject.unseal(DashoA13*..)
at javax.crypto.SealedObject.getObject(DashoA13*..)
at com.ericdaugherty.mail.server.configuration.ConfigurationManager.load
Passwords(ConfigurationManager.java:1502)
at com.ericdaugherty.mail.server.configuration.ConfigurationManager.load
Properties(ConfigurationManager.java:1468)
at com.ericdaugherty.mail.server.configuration.ConfigurationManager.init
ialize(ConfigurationManager.java:475)
at com.ericdaugherty.mail.server.Mail.init(Mail.java:133)
at com.ericdaugherty.mail.server.Mail.instantiate(Mail.java:334)
at com.ericdaugherty.mail.server.Mail.main(Mail.java:461)
DNSJavaNameService: Unexpected error.
java.net.UnknownHostException: WIN-JF8SCLDOHTG
at org.xbill.DNS.spi.DNSJavaNameService.lookupAllHostAddr(DNSJavaNameSer
vice.java:147)
at org.xbill.DNS.spi.DNSJavaNameService.invoke(DNSJavaNameService.java:9
7)
at $Proxy0.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressFromNameService(Unknown Source)
at java.net.InetAddress.getLocalHost(Unknown Source)
at sun.security.provider.SeedGenerator$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.provider.SeedGenerator.getSystemEntropy(Unknown Source)
at sun.security.provider.SecureRandom.engineNextBytes(Unknown Source)
at java.security.SecureRandom.nextBytes(Unknown Source)
at java.security.SecureRandom.next(Unknown Source)
at java.util.Random.nextInt(Unknown Source)
at org.xbill.DNS.UDPClient$1.run(UDPClient.java:38)
at java.lang.Thread.run(Unknown Source)
2011-05-18 17:26:15,384 - [SMTP] ServiceListener - Could not create ServiceListe
ner on address: localhost port: 25
Exception in thread "SMTP" java.lang.RuntimeException: Address already in use: J
VM_Bind
at com.ericdaugherty.mail.server.services.general.ServiceListener.run(Se
rviceListener.java:178)
at java.lang.Thread.run(Unknown Source)
Ben Sullivan
Software Quality Engineer, Enterprise Applications
Suncorp Business Services
Level 30, Brisbane Square, Brisbane, Australia
Ext 52928
07 31352928
This e-mail is sent by Suncorp Group Limited ABN 66 145 290 124 or one of its related entities "Suncorp".
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 55 or at suncorp.com.au.
The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended
recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments
from your system.
|
|
From: <jav...@li...> - 2011-06-21 13:48:26
|
I downloaded the latest version of JES just now and updated the user.conf,
mail.conf (following the instructions in the pdf file for non-root
privileges) en start it up using mail.sh (on my mac).
I get the following exception on startup and all the emails I try to send
are rejected:
2011-06-21 15:13:46,809 - [main] Mail - JES Starting Up...
DNSJavaNameService: Unexpected error.
java.net.UnknownHostException: rpi-macbook-pro-6.local
at
org.xbill.DNS.spi.DNSJavaNameService.lookupAllHostAddr(DNSJavaNameService.ja
va:147)
at
org.xbill.DNS.spi.DNSJavaNameService.invoke(DNSJavaNameService.java:97)
at $Proxy0.lookupAllHostAddr(Unknown Source)
at
java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
at java.net.InetAddress.getLocalHost(InetAddress.java:1351)
at javax.crypto.SunJCE_b.j(DashoA13*..)
at javax.crypto.SunJCE_b.d(DashoA13*..)
at javax.crypto.SunJCE_b.c(DashoA13*..)
Any idea what I might have forgotten?
|