Re: Running mail and web servers on UNIX
cryptearth <[email protected]> Sat, 1 Feb 2025 00:14:53 +0100
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <[email protected]> |
Hi there, as I use MariaDB this is my current start script for 3.8.x guice jpa: #!/bin/sh java \ -javaagent:james-server-jpa-app.lib/openjpa-3.2.0.jar \ -Dworking.directory=. \ -Djdk.tls.ephemeralDHKeySize=2048 \ -Dlogback.configurationFile=conf/logback.xml \ -cp "james-server-jpa-app.jar:james-server-jpa-app.lib/*:mariadb-java-client-3.4.1.jar" \ org.apache.james.JPAJamesServerMain put into james directory as start.sh and given +x If you don't want to add a database driver just remove it. There's also a simpler version in the docs which starts the main .jar itself (which contains a classpath in its manifest). @Benoit As for your planed 3.9 in Q1: Can you maybe look into make auto-loading of jdbc drivers via ServiceLoader an option? Would be cool to just drop-in the jdbc driver into the lib folder and have it loaded without giving it explicit in a start script. Have a nice weekend. Matt Am 29.01.25 um 09:35 schrieb [email protected]: > Hi David and other James users, > > Does anyone have a script that I can use on Debian 12 bookworm to > start James? > > Thanks for any help > > On 2025-01-21 12:20, David Matthews wrote: > >> hello >> >>> Most Linux services require some sort of sendmail - either sendmail >>> itself or wrappers from exim or postfix. So although you can use James >>> as your primary server you have to provide some implementation of >>> sendmail or have to connect it to James. >> >> I have to dissent from that. >> >> I'm a long time unix user and did investigate James maybe 3 years >> ago on linux; I'm also a java programmer, so I did have to take a >> look. I stuck with my exim4/dovecot solution, at least one reason >> being that the devils you know (almost 25 years of experience) are >> better than the devil you don't. >> >> But there is no reason I know that you cannot dispense with >> sendmail/exim4/postfix on unix and run james. I would expect your >> setup on windows would need no or minimal changes. So you have the >> same james/java on a much improved base - linux/unix > windows (by a >> very long way) >> >> My email howto might be of interest, I can't check the url as I'm in >> a public library that blocks part of my domain, but I think: >> >> https://dmatthews.org/email_server/perfect_email.html >> >> If not check the start menu at dmatthews.org >> >> -- >> David Matthews >> [email protected] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected]