Re: [Javaemailserver-user] issue in relay?
Brought to you by:
edaugherty,
mfg8876
|
From: <jav...@li...> - 2013-05-13 22:31:12
|
Hi Andreas,
Ok I tried that and I get;
log4jxml main [ERROR] ConfigurationManager - cvc-pattern-valid: Value '
smtp.socketlabs.com:2525/myUser:myPass' is not facet-valid with respect to
pattern
'(([\p{IsBasicLatin}-[:]]+@[\p{IsBasicLatin}-[:]]+(:([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-5][0-9][0-9][0-9][0-9]|6[0-4][0-9][0-9][0-9]|65(([0-4][0-9][0-9])|(5[0-2][0-9])|(53[0-5])){1}))?(/[\p{IsBasicLatin}-[:]]+:[\p{IsBasicLatin}-[:]]+)?)||\s{0})(
*,
*([\p{IsBasicLatin}-[:]]+@[\p{IsBasicLatin}-[:]]+(:([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-5][0-9][0-9][0-9][0-9]|6[0-4][0-9][0-9][0-9]|65(([0-4][0-9][0-9])|(5[0-2][0-9])|(53[0-5])){1}))?(/[\p{IsBasicLatin}-[:]]+:[\p{IsBasicLatin}-[:]]+)?))*'
for type '#AnonType_serveroutgoingSMTPServermailconfig'.
Also if I am going to go that route, I might as well just use smtp
directly to the smtp.socketlabs.com from my app and skip JES altogether as
it is just another link that could fail and additional latency.
Cheers,
Scott
On Mon, May 13, 2013 at 5:05 PM, <jav...@li...
> wrote:
> Or, you could use the available facility built into JES that uses your
> provider to relay outgoing SMTP messages. You will find it in the mail.xml
> element config:mail:outgoingSMTPServer:server. Perceptually,
> SMTPRemoteSender fulfills the same operational contract as any mail user
> agent. As a nice side effect, the PBL blacklist issue is also taken care of.
>
> Regards,
> Andreas
>
> ------------------------------
> Date: Mon, 13 May 2013 01:26:17 -0500
>
> To: jav...@li...
> From: jav...@li...
> Subject: Re: [Javaemailserver-user] issue in relay?
>
> Hi Again,
>
> Ok I have determined my ISP is blocking port 25, after finding a post
> on wikipedia that some ISP's block outbound connections to port 25 on all
> servers. I would change the relay code to something like;
>
>
> MXRecord mxEntry = mxEntries[index];
>
> int port = 25;
>
>
> Name target = mxEntry.getTarget();
>
> String mxServer = target.toString();
>
> Record [] ipAddrs = new Lookup(mxServer, Type.A).run();
>
> if (ipAddrs.length >= 1) {
>
> Record record = ipAddrs[0];
>
> String ip = record.rdataToString();
>
>
>
> try {
>
>
>
> return new Socket(ip, port );
>
> }
>
> catch( IOException e ) {
>
> log.error( "Delivering to domain " + domain.
> getDomainName() + " through " + mxServer + " at "
>
> + ip + ":" + port + " failed with exception: " + e.
> getLocalizedMessage() +
>
> "\n Note some ISP's block port outbound connections to
> " + port + " to prevent spamming, you may need to contact them.");
>
> }
>
> }
>
>
>
> Cheers,
>
> Scott
>
>
> On Sun, May 12, 2013 at 11:31 AM, <
> jav...@li...> wrote:
>
> Hello Scott,
> this is another nasty bug that found its way into the previous release. I
> 'm currently making the necessary corrections and additions towards a 2.6
> release. Perhaps even tonight.
>
> Thanks for taking the time to review the code. I appreciate your offer of
> assistance and kindly ask you to wait before reaching a decision regarding
> which server to select. There are a number of ideas I would like to explore
> (e.g. a parallel scaled back version of JES, in the spirit of version
> 1.6.1) and any help towards actually manifesting them is welcomed.
>
> Regards,
> Andreas
>
> ------------------------------
> Date: Sat, 11 May 2013 13:15:46 -0500
> To: jav...@li...
> From: jav...@li...
> Subject: Re: [Javaemailserver-user] issue in relay?
>
>
> Hi,
>
> Thanks for the quick response, I may be interested in helping you in
> some maintaince (although I am in the evaluation phase of my work and may
> go with james). I did have to make this change to get as far as I did, as
> far as I can tell code would have always thrown a npe.
>
> had to modify JESProperties.java at 105 (looks like a intentional snag?)
>
> private JESProperties(Properties properties, String fileEncoding,
> boolean charMode) {
>
> this.dis = null;
>
> if
> (!Charset.forName(fileEncoding).equals(Charset.forName(dis.getEncoding())))
> {
>
> this.fileEncoding = dis.getEncoding();
>
> }
>
> else {
>
> this.fileEncoding = fileEncoding;
>
> }
>
>
>
> to;
>
> private JESProperties(Properties properties, String fileEncoding,
> boolean charMode) {
>
> this.dis = null;
>
> this.fileEncoding = fileEncoding;
>
>
> Cheers,
>
> Scott
>
>
> On Sat, May 11, 2013 at 3:32 AM, <
> jav...@li...> wrote:
>
> The code submitted during the last update did indeed break
> SMTPRemoteSender. An update is ready, but the testing facility meant to
> prevent something like this from happening again in the future needs some
> work , that is why I have not rolled out a new version. (Entering personal
> details mode) The fact that I got a new job (which I'm really excited about
> and pleased with) is not helping right now, it raises priority issues.
> (Exiting personal details mode) You could open a bug ticket so that I can
> suggest the fix (actually supply the correct code there). The whole SMTP
> client code base actually needs a complete overhaul, not unlike the one
> already implemented for the SMTP server mode in version 2.5. I will try to
> send a new version upstream ASAP.
>
> Regards,
> Andreas
>
> ------------------------------
> Date: Sat, 11 May 2013 01:57:47 -0500
> To: jav...@li...
> From: jav...@li...
> Subject: [Javaemailserver-user] issue in relay?
>
>
> Ok I got it running from the source in eclipse on nonstandard ports,
>
> however it doesn't seem to want to send the mail to external servers?
>
>
> I altered the source to get (I am pretty sure googles email servers are
>
> running) the following (Is there something that would cause this?, I am
>
> behind a firewall, and yes I am trying to spam myself at the moment);
>
>
> It is happening on all of the google mail servers, I am pretty sure some
> of them are running at least (there are 10 or so).
>
>
> log4jxml Deliver Standard 4 [ERROR] SMTPRemoteSender - Connection to
> SMTP
>
> Server: aspmx.l.google.com. failed with exception:
> java.net.ConnectException:
>
> Operation timed out
>
> java.net.ConnectException: Operation timed out
>
> at java.net.PlainSocketImpl.socketConnect(Native Method)
>
> at java.net.AbstractPlainSocketImpl.doConnect(
>
> AbstractPlainSocketImpl.java:339)
>
> at java.net.AbstractPlainSocketImpl.connectToAddress(
>
> AbstractPlainSocketImpl.java:200)
>
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182
>
> )
>
>
> - Ignored:
>
>
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
>
>
> at java.net.Socket.connect(Socket.java:579)
>
>
> at
>
>
> com.ericdaugherty.mail.server.services.smtp.client.SMTPRemoteSender.connect(
>
> SMTPRemoteSender.java:976)
>
>
> at
>
>
> com.ericdaugherty.mail.server.services.smtp.client.SMTPRemoteSender.sendMessage(
>
> SMTPRemoteSender.java:181)
>
>
> at
>
>
> com.ericdaugherty.mail.server.services.smtp.client.SMTPRemoteSender.sendMessage(
>
> SMTPRemoteSender.java:155)
>
>
> at
>
>
> com.ericdaugherty.mail.server.services.smtp.client.SMTPSenderStandard$StandardDeliver.deliverRemoteMessage(
>
> SMTPSenderStandard.java:493)
>
>
> at
>
>
> com.ericdaugherty.mail.server.services.smtp.client.SMTPSenderStandard$StandardDeliver.run(
>
> SMTPSenderStandard.java:231)
>
>
> at
>
>
> com.ericdaugherty.mail.server.services.smtp.client.SenderPool$FastThread.run(
>
> SenderPool.java:129)
>
>
>
> Cheers,
>
>
> Scott
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is
> the definitive new guide to graph databases and their applications. This
> 200-page book is written by three acclaimed leaders in the field. The early
> access version is available now. Download your free book today!
> http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________ Javaemailserver-user
> mailing list Jav...@li...
> https://lists.sourceforge.net/lists/listinfo/javaemailserver-user
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Javaemailserver-user mailing list
> Jav...@li...
> https://lists.sourceforge.net/lists/listinfo/javaemailserver-user
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is
> the definitive new guide to graph databases and their applications. This
> 200-page book is written by three acclaimed leaders in the field. The early
> access version is available now. Download your free book today!
> http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________ Javaemailserver-user
> mailing list Jav...@li...
> https://lists.sourceforge.net/lists/listinfo/javaemailserver-user
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Javaemailserver-user mailing list
> Jav...@li...
> https://lists.sourceforge.net/lists/listinfo/javaemailserver-user
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is
> the definitive new guide to graph databases and their applications. This
> 200-page book is written by three acclaimed leaders in the field. The early
> access version is available now. Download your free book today!
> http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________ Javaemailserver-user
> mailing list Jav...@li...
> https://lists.sourceforge.net/lists/listinfo/javaemailserver-user
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> Javaemailserver-user mailing list
> Jav...@li...
> https://lists.sourceforge.net/lists/listinfo/javaemailserver-user
>
>
|