Re: A MySQL connection setup issue SOLVED!

2019-01-05 Thread Garry Hurley
; PRIMARY KEY (MAIL_REPO_NAME)) ENGINE = innodb} [code=1071, state=42000] > > > > Uhhh "Specified key was too long; max key length is 767 bytes"??? > > What in the world is this talking about? Google makes it sound like > > another MySQL issue? > > > >

Re: Setup and build issues

2018-12-05 Thread Garry Hurley
a similar situation, except I want to keep docker and docker-compose, > but persist with mysql. I changed james-database.properties, but queries > throw a ClassNotFound exception for com.mysql.jdbc.Driver. > > Any guidance would be greatly appreciated. > > Thanks --Bill >

Setup and build issues

2018-12-05 Thread Garry Hurley
Hey, Is anyone able to get this application to build or install without using Cassandra or Docker? If so, how do you get past the MailboxAnnotation JPA failure of trying to create a table with a column named 'KEY' in a real database?

Re: Setup and build issues

2018-12-07 Thread Garry Hurley
we choose to not play Dockerized test if a docker environment > is not available, and skip these tests with a warning. Maybe working on > this would help? > > Cheers, > >> On 12/7/18 9:01 AM, Garry Hurley wrote: >> Bill >> >> I got past those same errors in

Re: Setup and build issues

2018-12-06 Thread Garry Hurley
if there isn't! > >> On 12/5/18 6:07 PM, Garry Hurley wrote: >> That is an easy fix. You have to download the MySql Connect driver and copy >> the jar file into the /lib path (or add it to your classpath >> manually, but making sure it is in /lib makes it more easily >>

Re: Setup and build issues

2018-12-06 Thread Garry Hurley
queries throw a ClassNotFound exception for > com.mysql.jdbc.Driver. > >> > >> Any guidance would be greatly appreciated. > >> > >> Thanks --Bill > >> > >>> On 12/5/18 3:27 PM, Garry Hurley wrote: > >>> Hey, > >>>

Re: James Server no longer compatible with MySQL/MariaDB since 3.1.0?

2019-01-07 Thread Garry Hurley
It is also worth noting that once the tables are created, you need not worry s much, except for putting records in where the data exceeds the size of the field Sent from my iPad > On Jan 7, 2019, at 7:17 AM, cryptearth wrote: > > Hello Benoit, > > as always you're such a great help. It took

Re: A MySQL connection setup issue

2019-01-04 Thread Garry Hurley
The vendor class on the driver is supposed to match, but also be certain you are using Mariadb and not MySQL database and MariaDB client in your Linux distro. My config, which does work in the current branch (3.3.0 SNAPSHOT), is as follows. It goes without saying that your mileage my vary, and

Re: A MySQL connection setup issue

2019-01-04 Thread Garry Hurley
into an email. On Fri, Jan 4, 2019 at 9:16 AM Garry Hurley wrote: > The vendor class on the driver is supposed to match, but also be > certain you are using Mariadb and not MySQL database and MariaDB > client in your Linux distro. My config, which does work in the current > branch (3.

Re: A MySQL connection setup issue

2019-01-04 Thread Garry Hurley
t; which is commented out. (If uncommented, according to the comments in the > file, then only socket connections would be allowed and all TCP/IP port > connections disabled.) > > Marc... > > > >> On 1/4/19 6:16 AM, Garry Hurley wrote: >> The vendor class on th

Re: events.xml?

2019-04-01 Thread Garry Hurley
I believe that was removed in 3.3 and rolled into another file. Let me look through my emails and see which commit it was. Sent from my iPhone > On Mar 31, 2019, at 8:15 PM, Marc Chamberlin wrote: > > Hi - I seem to be experiencing troubles with Android email clients > picking up emails

Re: events.xml?

2019-04-01 Thread Garry Hurley
MAILBOX-364 back in December. On Sun, Mar 31, 2019 at 8:15 PM Marc Chamberlin wrote: > Hi - I seem to be experiencing troubles with Android email clients > picking up emails from the IMAP service on James. Google research led me > to understand that the IMAP service must support an IMAP

Re: sqlResources.xml

2019-03-25 Thread Garry Hurley
Yeah, I had put up a bug report on that issue. I had to fix that in the source code. The problem is the MailboxAnnotation class uses the column name ‘KEY’ which is a reserved word in SQL, so most real SQL databases balk at it. I thought that had been fixed before the 3.3 tag was finalized. All

Re: How to split a message in a mailet

2019-03-06 Thread Garry Hurley
Simon, it might be a question of where you are attaching the header. In the root processor, you need to attach the isRedirection header before your email hits the mailet you want to use to route it. I suggest using a multiplerecipients matcher and customizing that to identify when some

Re: Migration from James 2.3

2019-03-19 Thread Garry Hurley
There is a migration guide, but it is very skeletal. It doesn’t work as well with 3.1 and beyond as it did for the 3.0 betas. The thing you have to realize is that the config.xml file has been separated into its relevant sections, with each having its own XML file. For example, there is now a

Re: Logfiles not working

2019-01-28 Thread Garry Hurley
Yeah, the extra logs seem like a good idea, but details are either logged in the james-server.log for out-of-the-box components, or wrapper.log for custom code. Sent from my iPhone > On Jan 28, 2019, at 9:27 PM, Marc Chamberlin wrote: > > Thanks Simon for your thoughts, I tried making the

Re: Could not rewrite recipient?

2019-01-25 Thread Garry Hurley
the walkback messages as I do not want it to be probed until I am > satisfied things are secure.. ;-) Marc.. > >> On 01/25/2019 07:36 AM, Garry Hurley wrote: >> This is going to sound patronizing, but inthe ‘caused by’ section it says it >> could not set your domain and

Re: Could not rewrite recipient?

2019-01-25 Thread Garry Hurley
This is going to sound patronizing, but inthe ‘caused by’ section it says it could not set your domain and the value was ‘mydomain.com’. If you actually registered that domain, you need to smack your registrar a few times with a rather large trout. My suggestion is to replace that domain with

Re: james and sendmail - wildcard alias for local users

2019-01-30 Thread Garry Hurley
ort-processor there is the line >>>>> >>>>> >>>>> >>>>> I looked into LocalDelivery.java, but I guess when this matches it's >>>>> to late to perform the test I want to about where the mail comes from >>>>&

Re: james and sendmail - wildcard alias for local users

2019-01-30 Thread Garry Hurley
uice products). > > (And you are right, we miss a JPA MailRepository implementation... This > sounds like a nice proposal of contribution!) > > So I really do think that we are, as a project, moving forward to newer > tech. If you think we are missing something, then this should of

Re: james and sendmail - wildcard alias for local users

2019-05-27 Thread Garry Hurley
Why are you trying to redirect the mail from ‘webmas...@mydomain.com’ to ‘a.randome.u...@mydomain.com’ anyhow? Isn’tthere an alias set up? I was just configuring postfix on another machine, not my james server, and I noted a virtualiases configuration for that purpose. I am recalling an aliases

Re: james and sendmail - wildcard alias for local users

2019-05-28 Thread Garry Hurley
re out how it works. As james uses netty I maybe >> also need to dug into this framework to figure out where the specific >> handler is called forming the Mail instance from the read input after seeing >> .. So maybe someone can point out where to start to figure ou

Re: events.xml?

2019-05-08 Thread Garry Hurley
droid's new > battery savings features so that is another path for us to explore... > > Marc.. > >> On 4/2/19 4:02 AM, cryptearth wrote: >> Just checked current git clone with java-mail (that's what most >> android apps using anyway): IMAPFolder.idle() works fine

Re: [ANNOUNCE] Apache James 3.3.0 released

2019-07-12 Thread Garry Hurley
If you want the source code, try http://archive.apache.org/dist/james/server/3.3.0/james-project-3.3.0-src.zip going up to http://archive.apache.org/dist/james/server/ gets you the different releases and the 3.3.0 folder gets you the 3.3.0 tree. Sent from my iPhone > On Jul 12, 2019, at 8:27

Re: How to split a message in a mailet

2019-04-09 Thread Garry Hurley
Long names are not a problem - unless you are a masochist still using a text editor and command-line compilation. Sent from my iPhone > On Apr 9, 2019, at 4:56 AM, Raphael OUAZANA > wrote: > > Hi Simon, > > Thank you very much and sorry for the late reply. > > I see nothing wrong with long

Re: Building James 3.3.0 in Eclipse

2019-08-31 Thread Garry Hurley
Jerry, I had to download the source, run configure and make on a Linux system. The problem is that the source is made to build onto a docker system on Windows. Those of us who choose not to run docker and run a real operating system often have issues. Those .git files are from the .git

Re: 3.0.0 on Linux

2019-09-09 Thread Garry Hurley
ome version of james running on my AWS Linux box. Can > someone please find time to help? I'll take help on my 3.0.0 b5 OpenJPA > issue and/or my 3.3.0 Eclipse build problems... just SOMETHING. > > Thx > > Jerry > > On 9/8/2019 2:31 AM, Garry Hurley wrote: > > 3.0.0

Re: 3.0.0 on Linux

2019-09-08 Thread Garry Hurley
3.0.0 is kinda old. In fact, IIRC, it never made it out of Beta stage. 3.3.0 works and is stable, so unless you have some reason to use an older version, you should consider updating. Sent from my iPhone > On Sep 8, 2019, at 12:07 AM, Jerry Malcolm wrote: > > I'm still waiting and hoping

Re: log4j Configuration

2019-09-17 Thread Garry Hurley
It’s not you. I have the same issue. I think those other log files are just there for backwards compatibility to make users feel good, since they never seem to be written to. “No news is good news” as the saying goes. Sent from my iPhone > On Sep 17, 2019, at 4:34 PM, Jerry Malcolm wrote: >

Re: two datasources?

2019-09-17 Thread Garry Hurley
Jerry, I have had moderate success with creating a separate properties file with your database info in it. You can use a simple properties file with key-value pairs and then use a class with a name like MailetProperties to read the file into your application. I recommend this approach so that

Re: James Database Import

2019-09-16 Thread Garry Hurley
Jerry It looks like the export did not export the data in the proper order. You are trying to put mail into the mail table that is assigned to mailboxes that do not exist yet. Three options: 1, create ‘dummy mailboxes’ for those messages to fall into. This may be the faster workaround for the

Re: Error in wrapper logs after upgrading to James 3.3

2019-08-05 Thread Garry Hurley
Matt, what did you upgrade from? If you jumped from 2.3.2 to 3.3 and have custom mailets, you MAY have to recompile your custom mailets. I suggest using at least James 3.2.0 in your maven build file James versions, if not 3.3.0. That might mitigate some of the problems (of course, it will take

Re: Need help with James 3.4, smtpserver, and keystore file.

2020-01-03 Thread Garry Hurley
Okay. One thing I noticed before. The key took command will hash the password with the appropriate algorithm and use it to access the keystone file. James code is not guaranteed to use the appropriate hashing algorithm. Try the following: 1 sift through the code, find the hashing algorithm used

Re: DKIM With Virtual Hosting

2019-12-28 Thread Garry Hurley
I wonder if the problem is not with your setup but with the spam filters on your recipients’ machines. You might remember that AOL used to be notorious for marking messages from certain domains as ‘untrusted’ and ‘possible spam’ even though a large percentage of the spam on the Internet

Re: James 3.5.0 startTLS="true"

2021-06-28 Thread Garry Hurley
So, this is a Linux box. Let’s run down the list of usual suspects: File does not exist File permissions are wrong Directory structure permissions are wrong File ownership is wrong File is in the wrong format Code issue Now, the first three or four items in the list are where things go wrong

Re: systemd auto start and stop

2021-04-23 Thread Garry Hurley
the help and assistance. > > > > On Monday, April 19, 2021, 8:19:57 AM PDT, Garry Hurley > wrote: > > > > > > What are the errors in your James.log file? > > By the way, I had set up my James files to locate my logs in a configurable > direct

Re: systemd auto start and stop

2021-04-19 Thread Garry Hurley
What are the errors in your James.log file? By the way, I had set up my James files to locate my logs in a configurable directory by setting up a ‘log_dir’ variable in the properties file and locating all logs in log_dir. That makes it easier for organizations that are required to move their

Re: Apache James MTA 3.6.0 spawning additional connections.

2021-07-13 Thread Garry Hurley
Agreed. It also needs to be pointed out that if you use those multiple gateway lines, and all four gateway hosts are the same server, you are connecting four times to he same server. My suggestion, if possible, is to hide your gateway behind a VIP server and do a round-robin request from the

Re: Mail list support?

2021-08-07 Thread Garry Hurley
On Sat, Aug 7, 2021 at 10:29 PM Marc Chamberlin wrote: > Hello - I am still limping along with James 2.3.2 and every year or two I > come back to the Apache James website to see if mail lists are supported > yet with the appropriate mailets and matchers necessary, in the latest > version of

Re: Mail list support?

2021-08-07 Thread Garry Hurley
By ‘mail lists’, I assume you mean that by addressing mail to server-user@james.Apache.org, you would effectively send that message to everyone who subscribes to that mailing list. As an out of the box solution, you’re right that such a list is not explicitly implemented, but you do have an

Re: Mail list support?

2021-08-12 Thread Garry Hurley
As for ‘set up’ to work in eclipse, I can tell you that if there is not an eclipse project in the source tree, you can easily import the files into it. As for custom mailers and marchers, you can do whatever you like as far as an IDE as long as you check in and commit only what you need to check

Re: Help on James 2.3.2 on production

2021-08-04 Thread Garry Hurley
Okay, so, let's look at the RFC-822 email standard. The steps are simply as follows: 1. connect to server 2. send initiation command. (HELO or EHLO) 3. Send MAIL TO command (MAIL TO: recipi...@domain.ext) 4. Send From command (FROM: m...@mydomain.ext) 5. Send Data command to start

Re: Help on James 2.3.2 on production

2021-08-06 Thread Garry Hurley
Handing over to > James > > > Error queue: > Are you taking about this "james-2.3.2\apps\james\var\mail\error" error > queue ? > Regarding error queue I will check on that on customers machine and get > back. But At the end of the day all the emails are processed. So

Re: Web Administration for James

2021-12-23 Thread Garry Hurley
Piggybacking on Jean’s response, you may be able to do a skip-tests on the maven build, which will skip the Cassandra and Docker stuff. On Thu, Dec 23, 2021 at 4:50 PM Bs Serge wrote: > Wow, it's amazing how you just spotted it. > > cheers > > On Thu, Dec 23, 2021 at 9:50 PM Jean Helou wrote:

Re: James 3.0-b4 on CentOS7

2021-07-24 Thread Garry Hurley
I believe it is likely a configuration issue. Adam, I worked on a project that was approved for use with 3.0 beta 4, but since it was beta, I was reluctant to put it into production. I got approval from the management to migrate our custom mailets to James 3.4.0. I suggest you try a similar

Re: Custom mailet question

2022-06-30 Thread Garry Hurley
Actually, the bounce notification may have its own message ID, so you might have to dig through it a little bit more than just taking mail.getMessage().getMessageID(). You might have to parse the body of the message or the header to find the id of the original message that bounced. This is

Re: OpenJPA pool with DBCP

2023-06-04 Thread Garry Hurley
PersistenceException: Multiple concurrent threads attempted to access a single broker. By default brokers are not thread safe; if you require and/or intend a broker to be accessed by more than one thread, set the openjpa.Multithreaded property to true to override the default behavior. That is the