Currently I'm just using out-of-the-box after clean build. I'll have a look at the mentioned class and the mailetcontainer. Maybe I'll find my way around. Good James is written in Java - the one language I really know.
Thanks for the point in a possible direction. I'll report back when I got something usefull. Matt ---- Garry Hurley schrieb ---- >Matt, are you using a custom mailet, or working out of the box? Take a look at >the source for LocalDelivery.java, and the configuration for local mail in >your mailetcontainer.xml file. You may have to override some functionality to >get the processing you want. > >Sent from my iPhone > >> On Jan 26, 2019, at 9:36 AM, cryptearth <cryptea...@cryptearth.de> wrote: >> >> Hey there, Matt here. >> >> So I got sendmail working with james now (tried postfix, but it always >> complains forwarding to localhost isn't supported as there is no option to >> ignore false loopback detection), and when used from apache with additional >> -f parameter all works good. But as there're other services might drop mail >> into local queue (crontab specificly) I noticed, that I'm still missing >> something. My goal is somesort of wildcard alias so that no matter from wich >> user sendmail gets a message, except the one I use for apache, it should >> redirect them internally to one of the user-accounts inside james itself. I >> guess there would be a simple solution if would like all mails to get >> forwareded, but I don't think there is a blacklist syntax so that mails from >> specific services with non-local recipients got send out. >> >> Currently I'm using 3.2.0 final release commit. I also looked into the >> mailetcontainer.xml file and I guess it's possible in there to specify this >> rule: >> >> redirect anything local, except address set in apache config, to user X, >> otherwise when from apache with non-local target -> transport >> >> Could anyone maybe give me a hint? >> Other solution: redirect anything local from sendmail to processing and with >> another task process the mails like some short lines of additional Java. >> >> Matt > >--------------------------------------------------------------------- >To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org >For additional commands, e-mail: server-user-h...@james.apache.org >