odd redirect - relaying denied interaction

2005-07-06 Thread Brett Sutton
I have a requirment to forward all mail sent from a specific address to be redirected to a single user, regardless of the intended recipient. This is to aid in debugging programs which use a copy of a production database and which send out lots of mail to addresses in the database. During debugg

R: Mailet delivery to database

2005-07-06 Thread Stefano Bagnara
> > You just need to add a "mail.setState(Mailet.GHOST)" in your mailet > > before > > I found Mail.GHOST, but no Mailet.GHOST. I'll try that out. Sorry, it was a typo: Mail.GHOST is the correct one. What's the problem with Mail.GHOST? Stefano

Re: Mailet delivery to database

2005-07-06 Thread Mark
On 7/6/05, Stefano Bagnara <[EMAIL PROTECTED]> wrote: > > You just need to add a "mail.setState(Mailet.GHOST)" in your mailet before I found Mail.GHOST, but no Mailet.GHOST. I'll try that out. thx, Mark - To unsubscribe, e-mai

Re: Mailet delivery to database

2005-07-06 Thread Stefano Bagnara
> So, I'm writing a custom Mailet to deliver a message to a database. > But, I don't want the message processed any further after my > mailet, nor do I want messages to be delivered to a repository. > > > transport > > > > What do I put in the processor tag

Mailet delivery to database

2005-07-06 Thread Mark
So, I'm writing a custom Mailet to deliver a message to a database. But, I don't want the message processed any further after my mailet, nor do I want messages to be delivered to a repository. transport What do I put in the processor tag? Do I even need the

RE: Writing a new mail repository

2005-07-06 Thread Steve Brewin
For mailets and matchers you can also place .class files in the /apps/james/SAR-INF/classes directory. I find this very useful while developing as it saves the hassle of packaging up a .jar every time I make a change. If you are developing in Eclipse you can set this as your build directory and you

RE: Can JAMES do mail forwarding?

2005-07-06 Thread Steve Brewin
And when you have it all worked out, you might like to add an 'HOWTO' to the James Wiki at http://wiki.apache.org/james/JamesDocumentationNotes, as might others that use this functionality. Then the next time someone asks, we can point them there, saving them the hassle of trawling the list archive

RE: Custom Mailet or Repository

2005-07-06 Thread Jason Webb
> -Original Message- > From: Mark Gulbrandsen [mailto:[EMAIL PROTECTED] > Sent: 06 July 2005 19:08 > To: server-user@james.apache.org > Subject: Custom Mailet or Repository > > Hi all, > > I want to store emails in a database. But, I want to index the inbox > emails in a different way t

Custom Mailet or Repository

2005-07-06 Thread Mark Gulbrandsen
Hi all, I want to store emails in a database. But, I want to index the inbox emails in a different way than the regular inbox table. For example (MySQL): create table webmail_inbox ( id bigint not null auto_increment, client_id bigint, subject varchar(1), sender varchar(255) not n

Re: Writing a new mail repository

2005-07-06 Thread Vincenzo Gianferrari Pini
*If* you are adding your own mailet or matcher, just put your jar in the /apps/james/SAR-INF/lib directory of your server, without any change to james.sar. This (possible from james-2.2.0+) because adding your own matcher/mailet is considered a kind of (sofisticated) configuration setup. If i

RE: Can JAMES do mail forwarding?

2005-07-06 Thread Daniel Perry
not that i know of. (other than list archives) It's pretty straight forward: create the database table (assuming you already have a db repository, then use that) stick the mailet in - quite early on in root processor. If you have a hostisnotlocal matcher designed to stop relaying then it must b

RE: Can JAMES do mail forwarding?

2005-07-06 Thread Ivan Jouikov
Is there any good docs on that virutalusertable? There's a brief description on the james website, but that definitely doesn't explain how to set it up or nothing like that.. >-Original Message- >From: Daniel Perry [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 06, 2005 2:32 AM >To: Jam

RE: Writing a new mail repository

2005-07-06 Thread John Neale
Thanks Steve. I added the jar to the existing james.sar file using winzip. My preference would be not to do this as I would prefer to be able to take a standard install and add to it. I guess instead I'll need to work from the source code and build James from scratch for development instead.

RE: Can JAMES do mail forwarding?

2005-07-06 Thread Daniel Perry
You might also be interested in JDBC/XML VirtualUserTable. That way one mailet can map as many addresses as you like. You can specify forwarders for single addresses: user:admin domain woo.com targetaddress:[EMAIL PROTECTED] or all addresses: user:% domain:woo.com targetaddress:[EMAIL PROTECTED]

RE: Can JAMES do mail forwarding?

2005-07-06 Thread Ivan Jouikov
Heh thanks, you're like my personal jesus Christ! I guess I should apologize as I could have probably found those things in the doc, but thanks a lot! >-Original Message- >From: Vincenzo Gianferrari Pini [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 06, 2005 2:19 AM >To: James Users Li

Re: Can JAMES do mail forwarding?

2005-07-06 Thread Vincenzo Gianferrari Pini
Ivan Jouikov wrote: Wow thanks! Wouldn't that be a big excessive if I have many clients who want this? Absolutely no problem. Also, can I make it not host-specific, but address-specific? Like [EMAIL PROTECTED], not just [EMAIL PROTECTED] ? [EMAIL PROTECTED]

RE: Can JAMES do mail forwarding?

2005-07-06 Thread Ivan Jouikov
Wow thanks! Wouldn't that be a big excessive if I have many clients who want this? Also, can I make it not host-specific, but address-specific? Like [EMAIL PROTECTED], not just [EMAIL PROTECTED] ? >-Original Message- >From: Vincenzo Gianferrari Pini [mailto:[EMAIL PROTECTED] >Sent: Wedn

Re: Can JAMES do mail forwarding?

2005-07-06 Thread Vincenzo Gianferrari Pini
Yes, put the following in config.xml: [EMAIL PROTECTED] Ivan Jouikov wrote: Here's the scenario: An email domain "woo.com" has its MX pointing to my server which's running james as a mail server My client who owns woo.com wants so that all the mail that hits [E

Can JAMES do mail forwarding?

2005-07-06 Thread Ivan Jouikov
Here's the scenario: An email domain "woo.com" has its MX pointing to my server which's running james as a mail server My client who owns woo.com wants so that all the mail that hits [EMAIL PROTECTED] is forwarded to her @hotmail.com email. Is there a way to accomplish that?