RE: Regular JAMES releases / Release 2.3.0 / Feature sponsors

2006-02-09 Thread Daniel Perry
> The message that normal users see is: "JAMES is abandonware" and
> than only when someone is saying
> something provocative a small sparkle of replys appear (for
> mostly one or two days, than total
> silence for months).
>
> > BTW we should remember that there are few committers behind James and
> > Noel already did a great job in the past years for James:
> > he is not in
> > the current position by his own choice.
> That was very clear from the speed things happen in JAMES.
> If someone is forced to do things 

Hey, if you dont like it, then do somthing about it.  You're on the list, so
obviously want to use james!

If someone wants to donate £30k p/a, then i'd happily work full time on
james.  Until then, i'll continue contributing any code, etc when i get the
time to do so.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to build james in windows xp

2005-12-15 Thread Daniel Perry
check the spamassasin mailet
http://www.mail-archive.com/server-dev@james.apache.org/msg00138.html

Daniel.

> -Original Message-
> From: nurularesya ;p [mailto:[EMAIL PROTECTED]
> Sent: 15 December 2005 03:10
> To: James Users List
> Subject: Re: How to build james in windows xp
>
>
> now after configuration using binary format..how can i get
> antispam java file in james?filtering is my thesis..and i must
> prove it with filtering file that created by james...can anyone
> help me on this,shoud i use the binary format or get the
> source format to get a antispam java file...?
>
>   thanks,
>   nurularesya
>
> "nurularesya ;p" <[EMAIL PROTECTED]> wrote:
>   ok anne...thanks 4 helping me...i mostly understand now... ;p
>
> thanks,
> nurularesya
>
> Anne S wrote:
> Yes, configuring the config.xml file appropriately will activate James'
> antispam abilities. You'll have to read the docs to properly configure it,
> however.
>
> To get James to accept the new changes, you'll have to save the
> config file,
> then restart James.
>
> On 12/13/05, nurularesya ;p wrote:
> >
> > so thats mean if i configure on config.xml file and the remote manager
> > then james can allow to detect spam email or somewhat?what if
> when i change
> > the file and save it...should i have to build it again or just run the
> > james?
> > anyway thanks...
> >
> > nurularesya
> >
> > Anne S wrote:
> > Configuration is done via the config.xml file and the Remote Manager. If
> > you
> > have a text editor and a telnet client, you're good to go.
> >
> > On 12/13/05, nurularesya ;p wrote:
> > >
> > > im working on my thesis about james...what if i download the binary
> > format
> > > i can configure to detected spam email...my thesis sounds like "spam
> > > filtering with james used honeypot concept"..so can i used
> the binary to
> > > makes james as filtering to detect spam? or any reference about
> > > this...please help me on this..thanks to reply...
> > >
> > > thanks,
> > > nurularesya
> > >
> > >
> > >
> > > -
> > > Yahoo! Shopping
> > > Find Great Deals on Holiday Gifts at Yahoo! Shopping
> > >
> >
> >
> >
> >
> > -
> > Yahoo! Shopping
> > Find Great Deals on Holiday Gifts at Yahoo! Shopping
> >
>
>
>
>
> -
> Yahoo! Shopping
> Find Great Deals on Holiday Gifts at Yahoo! Shopping
>
>
>
> -
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Automating management of servernames list?

2005-10-13 Thread Daniel Perry
ok
i will try and do this when i have a couple of spare mins.

Daniel.

> -Original Message-
> From: Serge Knystautas [mailto:[EMAIL PROTECTED]
> Sent: 12 October 2005 04:38
> To: James Users List
> Subject: Re: Automating management of servernames list?
>
>
> Daniel,
>
> If you haven't already, can you create a diff and store it as an
> issue in JIRA?
>
> --
> Serge Knystautas
> Lokitech >> software . strategy . design >> http://www.lokitech.com
> p. 301.656.5501
> e. [EMAIL PROTECTED]
>
>
> On 10/11/05, Daniel Perry <[EMAIL PROTECTED]> wrote:
> > I'm not sure if it would be accepted into james. Although it maintains
> > backward compatibility, in that it only does anything if you
> add the extra
> > attribute - so it wont break anything!
> >
> > It also has the sql hard coded in James.java - it might be better to
> > externalise this as with other SQL code.  I have only used it
> with MySQL,
> > but i think the query should work with all SQL compatible servers.
> >
> > It's also a bit of a bodge, and it only works with
> virtualusertable.  A more
> > generic way of specify local servers would be better - so that it can be
> > used by virtualusertable, xmlvirtualusertable, and also an
> added feature:
> > domains to accept relaying for, but not treat as local would be nice.
> >
> > The code as-is has been running in a 2.1.3 server and a 2.2.0
> server (since
> > it came out).  So i guess it's stable enough.
> >
> > If you want this to make it into james, make a patch against SVN trunk,
> > compile it, check it works, and submit it to JIRA.  Or, moan at
> me a lot,
> > and i might do it for you :)
> >
> > Daniel.
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: 11 October 2005 14:51
> > > To: James Users List
> > > Subject: RE: Automating management of servernames list?
> > >
> > >
> > > It seems to me that deriving the domains from the
> > > virtualusertable + the ones defined in config.xml would be the
> > > solution to make it dynamic.
> > >
> > > Could you indicate what needs to be done more to your james.java
> > > before it will be sound enough to implement
> > > it in the next version?
> > >
> > > Pierre
> > >
> > > Citeren Daniel Perry <[EMAIL PROTECTED]>:
> > >
> > > > I half-heartedly did this.  It makes james treat all the
> domains in the
> > > > virtualusertable as local.
> > > >
> > > > New James.java is at:
> > > > http://www.netcase.co.uk/daniel/james/2.2.0RC4_UNTESTED/
> > > >
> > > > (i recoment you run diff against the cvs version of 2.2.0 to
> > > see the code
> > > > changes.
> > > >
> > > > Daniel.
> > > >
> > > > > -Original Message-
> > > > > From: JWM [mailto:[EMAIL PROTECTED]
> > > > > Sent: 06 October 2005 22:15
> > > > > To: server-user@james.apache.org
> > > > > Subject: Automating management of servernames list?
> > > > >
> > > > >
> > > > > I suspect I know what the answer to this is.  But it won't hurt to
> > > > ask...
> > > > >
> > > > > I would like to fully automate the process of
> adding/removing domain
> > > > names
> > > > > in my hosting environment.  In the case of James, I have
> to manually
> > > > edit
> > > > > config.xml and add/remove  tags.  Has anybody written
> > > > anything
> > > > > that can automate this?  Or do I simply need to write a
> perl script to
> > > > go
> > > > > massage the file?
> > > > >
> > > > > Sure would be nice if there was an option for James to read
> > > the list of
> > > > > valid server names from a DB table.
> > > > >
> > > > > Oh well, just dreaming...  is the answer to write my own??
> > > > >
> > > > > Thanks.
> > > > >
> > > > > JWM
> > > > >
> > > > >
> > > > >
> -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > _
> > > Nu 12 maanden gratis Live Eredivisievoetbal bij 20 Mb ADSL voor maar
> > > EUR 39,95 per maand. Bestel op www.versatel.nl/voetbal
> > >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Automating management of servernames list?

2005-10-11 Thread Daniel Perry
I'm not sure if it would be accepted into james. Although it maintains
backward compatibility, in that it only does anything if you add the extra
attribute - so it wont break anything!

It also has the sql hard coded in James.java - it might be better to
externalise this as with other SQL code.  I have only used it with MySQL,
but i think the query should work with all SQL compatible servers.

It's also a bit of a bodge, and it only works with virtualusertable.  A more
generic way of specify local servers would be better - so that it can be
used by virtualusertable, xmlvirtualusertable, and also an added feature:
domains to accept relaying for, but not treat as local would be nice.

The code as-is has been running in a 2.1.3 server and a 2.2.0 server (since
it came out).  So i guess it's stable enough.

If you want this to make it into james, make a patch against SVN trunk,
compile it, check it works, and submit it to JIRA.  Or, moan at me a lot,
and i might do it for you :)

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 11 October 2005 14:51
> To: James Users List
> Subject: RE: Automating management of servernames list?
>
>
> It seems to me that deriving the domains from the
> virtualusertable + the ones defined in config.xml would be the
> solution to make it dynamic.
>
> Could you indicate what needs to be done more to your james.java
> before it will be sound enough to implement
> it in the next version?
>
> Pierre
>
> Citeren Daniel Perry <[EMAIL PROTECTED]>:
>
> > I half-heartedly did this.  It makes james treat all the domains in the
> > virtualusertable as local.
> >
> > New James.java is at:
> > http://www.netcase.co.uk/daniel/james/2.2.0RC4_UNTESTED/
> >
> > (i recoment you run diff against the cvs version of 2.2.0 to
> see the code
> > changes.
> >
> > Daniel.
> >
> > > -Original Message-
> > > From: JWM [mailto:[EMAIL PROTECTED]
> > > Sent: 06 October 2005 22:15
> > > To: server-user@james.apache.org
> > > Subject: Automating management of servernames list?
> > >
> > >
> > > I suspect I know what the answer to this is.  But it won't hurt to
> > ask...
> > >
> > > I would like to fully automate the process of adding/removing domain
> > names
> > > in my hosting environment.  In the case of James, I have to manually
> > edit
> > > config.xml and add/remove  tags.  Has anybody written
> > anything
> > > that can automate this?  Or do I simply need to write a perl script to
> > go
> > > massage the file?
> > >
> > > Sure would be nice if there was an option for James to read
> the list of
> > > valid server names from a DB table.
> > >
> > > Oh well, just dreaming...  is the answer to write my own??
> > >
> > > Thanks.
> > >
> > > JWM
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
> --
> _
> Nu 12 maanden gratis Live Eredivisievoetbal bij 20 Mb ADSL voor maar
> EUR 39,95 per maand. Bestel op www.versatel.nl/voetbal
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Automating management of servernames list?

2005-10-11 Thread Daniel Perry
I half-heartedly did this.  It makes james treat all the domains in the
virtualusertable as local.

New James.java is at:
http://www.netcase.co.uk/daniel/james/2.2.0RC4_UNTESTED/

(i recoment you run diff against the cvs version of 2.2.0 to see the code
changes.

Daniel.

> -Original Message-
> From: JWM [mailto:[EMAIL PROTECTED]
> Sent: 06 October 2005 22:15
> To: server-user@james.apache.org
> Subject: Automating management of servernames list?
>
>
> I suspect I know what the answer to this is.  But it won't hurt to ask...
>
> I would like to fully automate the process of adding/removing domain names
> in my hosting environment.  In the case of James, I have to manually edit
> config.xml and add/remove  tags.  Has anybody written anything
> that can automate this?  Or do I simply need to write a perl script to go
> massage the file?
>
> Sure would be nice if there was an option for James to read the list of
> valid server names from a DB table.
>
> Oh well, just dreaming...  is the answer to write my own??
>
> Thanks.
>
> JWM
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Remove OLD mm.mysql driver (not compatible with newer MySQL db) #JAMES-394

2005-08-11 Thread Daniel Perry
Can you not include the latest mysql connector/j under mysql's FLOSS
exception?  Having read it, it looks ok to me, with the only real exception
being that you would have to distribute james source code on the same medium
as james binaries.

Daniel.

> -Original Message-
> From: Stefano Bagnara [mailto:[EMAIL PROTECTED]
> Sent: 11 August 2005 13:24
> To: 'James Users List'
> Subject: Re: Remove OLD mm.mysql driver (not compatible with newer MySQL
> db) #JAMES-394
>
>
> I only want to remove the mm.mysql driver currently bundled with james
> because they are LGPL and because they are not compatible with
> latest mysql
> servers (e.g. your 4.1).
>
> You can still download any jdbc driver and use it with James as like as
> before!
>
> I want to avoid people downloading james with bundled org.gjt.mm.mysql
> driver and not understanding why it doesn't work with their just installe
> mysql server (they simply need a better/newer jdbc driver, that you
> correctly linked in your message).
>
> Stefano
>
> > Stefano B. wrote in JIRA
> > "Please comment on this bug if you agree on this change now
> > that we have derby configured by default or if you would like
> > to still distribute org.gjt.mm.mysql driver (I tested it
> > doesn't work with Mysql 4.1+ and the "upgrade to connector/j"
> > has already been a solution for at least 2 users having
> > problems with mysql on the mailing list)."
> >
> > I do not know enough about JAVA to know whether your
> > suggested change will impact my operation.  I have no
> > experience with Derby.  I am using James
> > 2.2.1-RC1 on an XP box using MySQL 4.1.11 for all stores.  I
> > am using the 'org.apache.james.util.dbcp.JdbcDataSource' and
> > downloaded the MySQL connector
> > 'mysql-connector-java-3.1.8-bin.jar' from
> > http://dev.mysql.com/downloads/connector/j/3.1.html.  I have
> > been using the db stores since starting with James four plus
> > years ago and I am now supporting 5 domains.  I could not be
> > more pleased and would hope that future releases remain
> > compatible with MySQL with little additional effort.
> > I understand the licensing issues as far as packaging the
> > MySQL supplied connector goes but again, would hope that
> > James plans does not prevent me from doing what I did on
> > future releases.
> >
> > I wish I knew more about "building" mailets and matchers from
> > a Win32 platform.  I expect to have a need to deploy some
> > custom, but universally appreciable, mailets in the near
> > future as I am using James with db stores as the
> > communication backbone of a comprehensive and integrated web
> > application.
> >
> > Regards,
> > Tony Freeman
> > TEAMXL
> > 678.344.2305 Office
> > 509.693.2598 eFax
> > [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Strange sending error

2005-07-25 Thread Daniel Perry
And check that he doesnt have Norton internet security installed.  That
seems to randomly screw with mail sessions, even if you tell it to allow the
program unrestricted access.  This accounts for about 80% of email
enquireies i get.

Daniel.

> -Original Message-
> From: Danny Angus [mailto:[EMAIL PROTECTED]
> Sent: 25 July 2005 14:21
> To: James Users List
> Subject: Re: Strange sending error
>
>
> Please don't spam the list with many copies of the same mail
> If anyone can help you they will, repeating the question doesn't help, it
> just pisses people off.
> Looks like your user's MUA is causing James to think that no
> sender address
> has been received.
>
> I don;t know what to tell you to do, If he can send OK then it breaks try
> restarting his MUA, or his PC or both.
> If that fixes it you can bet the problem isn't James.
>
> If that doesn't fix it try restarting James, or the whole box,  if that
> fixes it it sounds like James' fault.
>
> What email client software (MUA) is your user using?
>
> d.
>
>
>
> **
> *
> The information in this e-mail is confidential and for use by the
> addressee(s) only. If you are not the intended recipient (or
> responsible for delivery of the message to the intended
> recipient) please notify us immediately on 0141 306 2050 and
> delete the message from your computer. You may not copy or
> forward it or use or disclose its contents to any other person.
> As Internet communications are capable of data corruption Student
> Loans Company Limited does not accept any  responsibility for
> changes made to this message after it was sent. For this reason
> it may be inappropriate to rely on advice or opinions contained
> in an e-mail without obtaining written confirmation of it.
> Neither Student Loans Company Limited or the sender accepts any
> liability or responsibility for viruses as it is your
> responsibility to scan attachments (if any). Opinions and views
> expressed in this e-mail are those of the sender and may not
> reflect the opinions and views of The Student Loans Company Limit
>  ed.
>
> This footnote also confirms that this email message has been
> swept for the presence of computer viruses.
>
> **
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Confusion with XMLVirtualUserTable

2005-07-08 Thread Daniel Perry
> > Sadly james doesnt work with accounts with domains
>
> The string argument to the POP3 USER command has absolutely no
> relationship
> to an e-mail address.  The assumption that there is any meaningful
> relationship between the parameter passed to RCPT TO and the parameter to
> USER is false.

That was meant to be my point.  The two arn't linked, but it would be really
nice if they were by default.

It seems to me that most james newbies are expecting this exact behaviour -
smtp: RCPT [EMAIL PROTECTED] to end up in a pop3 account [EMAIL PROTECTED]

>
> > This leads to problems with virtualhosting
>
> No it doesn't.  Not if you actually understand the situation.  If
> I had ten
> people named Daniel in ten different domains, that's just fine.
> Your e-mail
> might be [EMAIL PROTECTED], and your POP3 account is
> daniel_perry, so I
> simply add a mapping from one to the other.  Trivial.

Yes it's trivial, and i understand it. But, I have about 40 domains running
on one server and there is no way i would want daniel to map to
daniel_perry.  This would become totally unmanageable.

> If you use % in a user name, it could cause issues with the default JDBC
> virtual user support, since MySQL uses % for matching.
>

That is a valid point.  But assuming it is properly escaped, and is using =
not like for searching, it shouldnt matter.

I havent tested this as i opted for ..at.. as the user/domain separator in
our accounts, and modified the smtp/pop3 server to do string replacing on
usernames for @ with ..at.. so that people log in with their email addresses
(this was done for backward compatibility with our previous server).

I stand by my statement that this leads to problems (albeit an easily fixed
one) with virtual hosting, as this same question comes up again and again.
Built in domain support for users and mailbox repositories would make it
easier.

Imagine being able to add a user as bubba (and everything work as it does
now), or being able to add a user [EMAIL PROTECTED], and james dealing
with the virtual domain issues for you.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Confusion with XMLVirtualUserTable

2005-07-08 Thread Daniel Perry
>
> Thanks for clearing this up, but it still sounds like a kind of dumb
> implementation to have a "naming policy" with "%"... Why the hell not
> just use the email address as the username?

Yeah, that would be nice!  But natively james doesnt support virtual
domains.  And if the email is to [EMAIL PROTECTED], james sees that as an
email to bubba (if prison.com is local). Say you have another local domain
office.com.  [EMAIL PROTECTED] would also go to the bubba mailbox.  So you
need to map a unique email address to a unique local address (ie one without
@).  ie bubba.office.com and bubba.prison.com

>
> However, I'm facing a pretty nasty problem here...
>
> I tried setting up the JDBCVirtualUserTable(JDBCVUT), and the forwarding
> to other domains (not locals) works like a charm.  However, the
> following isn't really related to the JDBCVUT...
>
> If I create an account called bubba%prison.com or [EMAIL PROTECTED] or
> bubba.prison.com, for some reason the SMTP server won't recognize that
> user...  As a matter of fact, when I do the "test account settings" in
> outlook, it just tells me that POP3 connection timed out...
>
> I have no problem adding a new user like bubba25 - works like a charm...
> but for some reason when I start using dots, or "%" or "@", POP3 stops
> working!!!
>
> Any idea why?
>

nope... @ will cause problems - although actually james will let you have
accounts with @ in it, just mail wont get to them. I am pretty sure you can
use % though.  And i am definately sure you can use . - i use
user..at..domain.com, and i bodge some james code to do string replacements
on logins with @ to ..at..

I have no idea why you cant login - try debugging over telnet or looking at
the log files.

Daniel.

> >-Original Message-
> >From: Daniel Perry [mailto:[EMAIL PROTECTED]
> >Sent: Friday, July 08, 2005 2:27 AM
> >To: James Users List
> >Subject: RE: Confusion with XMLVirtualUserTable
> >
> >Sadly james doesnt work with accounts with domains, it only uses the
> user
> >part.
> >
> >In your example, if prison.com is a local domain (as determined
> >servernames), james would put the email address in the account 'bubba'.
> If
> >prison.com is not local, it would get sent to the mail server for
> >prison.com.
> >
> >This leads to problems with virtualhosting, which is why you should
> choose
> >a
> >naming policy for local accounts: eg bubba%prison.com (which must be
> local
> >as it's treated as [EMAIL PROTECTED]
> >
> >Then have rules such as:
> >User: bubba  Domain:  prison.com  Target_Address:  bubba%prison.com
> >User: hubba  Domain:  prison.com  Target_Address:  [EMAIL PROTECTED]
> >
> >Obviously you wont be declaring hotmail.com as local in the servernames
> >block, so it will relay it.
> >
> >Daniel.
> >
> >ps. i've never used xmlvirtualusertable, i'm just making assumptions
> based
> >on heavy use of jdbcvirtualusertable.
> >
> >> -Original Message-
> >> From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
> >> Sent: 08 July 2005 09:00
> >> To: server-user@james.apache.org
> >> Subject: Confusion with XMLVirtualUserTable
> >>
> >>
> >> Ok I'm trying to get the XMLVirtualUserTable to work so that I can
> have
> >> separate accounts for separate domains, as well as email forwarding
> (as
> >> suggested by Daniel Perry).
> >>
> >> My biggest confusion is - how would the mailet know if I want to
> forward
> >> or I'm simply mapping a virtual user?
> >>
> >> For instance, what if my naming policy is:
> >>
> >> For an account "bubba" at domain "prison.com", the username would be
> >> "[EMAIL PROTECTED]"  (this is as straightforward of a naming policy as
> I
> >> could think of, and james allows to create users like that).
> >>
> >> So now, if I put the following in the XMLVirtualUserTable:
> >>
> >> User: bubba  Domain:  prison.com  Target_Address:  [EMAIL PROTECTED]
> >>
> >> What will happen?  I'm about to find out, but I just wanted to send
> this
> >> to the mail list.  I mean how would the mailet know if I'm trying to
> >> forward this or if this is a local account?  (well I can think of a
> >> technical way to do it, but I'm asking about the current behavior
> >> implementation).
> >>
> >> Thanks for the responses, but I'm about to give this a shot :-)
> >>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >--
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.323 / Virus Database: 267.8.10/43 - Release Date: 7/6/2005
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Confusion with XMLVirtualUserTable

2005-07-08 Thread Daniel Perry
Sadly james doesnt work with accounts with domains, it only uses the user
part.

In your example, if prison.com is a local domain (as determined
servernames), james would put the email address in the account 'bubba'. If
prison.com is not local, it would get sent to the mail server for
prison.com.

This leads to problems with virtualhosting, which is why you should choose a
naming policy for local accounts: eg bubba%prison.com (which must be local
as it's treated as [EMAIL PROTECTED]

Then have rules such as:
User: bubba  Domain:  prison.com  Target_Address:  bubba%prison.com
User: hubba  Domain:  prison.com  Target_Address:  [EMAIL PROTECTED]

Obviously you wont be declaring hotmail.com as local in the servernames
block, so it will relay it.

Daniel.

ps. i've never used xmlvirtualusertable, i'm just making assumptions based
on heavy use of jdbcvirtualusertable.

> -Original Message-
> From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
> Sent: 08 July 2005 09:00
> To: server-user@james.apache.org
> Subject: Confusion with XMLVirtualUserTable
>
>
> Ok I'm trying to get the XMLVirtualUserTable to work so that I can have
> separate accounts for separate domains, as well as email forwarding (as
> suggested by Daniel Perry).
>
> My biggest confusion is - how would the mailet know if I want to forward
> or I'm simply mapping a virtual user?
>
> For instance, what if my naming policy is:
>
> For an account "bubba" at domain "prison.com", the username would be
> "[EMAIL PROTECTED]"  (this is as straightforward of a naming policy as I
> could think of, and james allows to create users like that).
>
> So now, if I put the following in the XMLVirtualUserTable:
>
> User: bubba  Domain:  prison.com  Target_Address:  [EMAIL PROTECTED]
>
> What will happen?  I'm about to find out, but I just wanted to send this
> to the mail list.  I mean how would the mailet know if I'm trying to
> forward this or if this is a local account?  (well I can think of a
> technical way to do it, but I'm asking about the current behavior
> implementation).
>
> Thanks for the responses, but I'm about to give this a shot :-)
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 be before the
jdbccirtualusertable mailet.

enter data into table.

Works a treat.

Have a go and experiment a bit.  Any probs, just ask the list!

Daniel.


> -Original Message-
> From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
> Sent: 06 July 2005 09:52
> To: 'James Users List'
> Subject: RE: Can JAMES do mail forwarding?
>
>
> 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: James Users List
> >Subject: RE: Can JAMES do mail forwarding?
> >
> >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]
> >
> >or both - if it doesnt match single, it uses the default.
> >
> >Daniel.
> >
> >
> >
> >> -Original Message-
> >> From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
> >> Sent: 06 July 2005 09:27
> >> To: 'James Users List'
> >> Subject: RE: Can JAMES do mail forwarding?
> >>
> >>
> >> 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 List
> >> >Subject: Re: Can JAMES do mail forwarding?
> >> >
> >> >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] 
> >> >
> >> >
> >> >>
> >> >>
> >> >>>-Original Message-
> >> >>>From: Vincenzo Gianferrari Pini
> >> >>>
> >> >>>
> >> >>[mailto:[EMAIL PROTECTED]
> >> >>
> >> >>
> >> >>>Sent: Wednesday, July 06, 2005 2:09 AM
> >> >>>To: James Users List
> >> >>>Subject: Re: Can JAMES do mail forwarding?
> >> >>>
> >> >>>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
> >> >>>>[EMAIL PROTECTED] is forwarded to her @hotmail.com email.
> >> >>>>
> >> >>>>Is there a way to accomplish that?
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>>
> >>
> >>>-
> >> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >>>For additional commands, e-mail: [EMAI

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]

or both - if it doesnt match single, it uses the default.

Daniel.



> -Original Message-
> From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
> Sent: 06 July 2005 09:27
> To: 'James Users List'
> Subject: RE: Can JAMES do mail forwarding?
>
>
> 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 List
> >Subject: Re: Can JAMES do mail forwarding?
> >
> >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] 
> >
> >
> >>
> >>
> >>>-Original Message-
> >>>From: Vincenzo Gianferrari Pini
> >>>
> >>>
> >>[mailto:[EMAIL PROTECTED]
> >>
> >>
> >>>Sent: Wednesday, July 06, 2005 2:09 AM
> >>>To: James Users List
> >>>Subject: Re: Can JAMES do mail forwarding?
> >>>
> >>>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
> [EMAIL PROTECTED] is forwarded to her @hotmail.com email.
> 
> Is there a way to accomplish that?
> 
> 
> 
> 
> 
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>--
> >>>No virus found in this incoming message.
> >>>Checked by AVG Anti-Virus.
> >>>Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date:
> 7/5/2005
> >>>
> >>>
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >--
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.0.323 / Virus Database: 267.8.9/41 - Release Date: 7/5/2005
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nobody replied to me about Virtual Domains..

2005-06-23 Thread Daniel Perry
> A while ago I send an email but nobody replied... that "solution" that
> you have in your FAQ - does it work?

Yes.

As for last questions, see below:

>
> 1)   Performance of James seems to be a bit slow compared to qmail.
> With qmail, if I wanted to send myself an email message, I would usually
> get it right back on my MUA within the same send/receive.  With James it
> usually takes about 10 seconds (and it's running on a test serer, not
> development one so there's no load)

No idea on your issue, but performance and smtp-in-to-inbox mail transfer
are two totally different issues. As long as it reaches the inbox in a
reasonable time it's ok.  Performance of a mail server really should be
measured in what sort of email load it can handle.  Also, it depends on what
the server is doing: what do you have set up in the mail chain? for example,
any of the spam lookups take time.  Also i dont know if the spool sleeps
when it has no mails? etc,etc,etc.

> 2)   I'm hosting 3 different domains.  I understand that virtual
> hosting isn't yet implemented, so does this mean that if I create an
> account "sales", all [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
> messages
> will go into the same account?  I read the following:
> http://james.apache.org/FAQ.html#7   - does that actually work?  There
> seems to be no good explanation on installing it, can somebody help me
> with that?
>
> Thanks a lot, I hope I can contribute to James somehow in a future (I'm
> a java dev)
>

Easy... create the table. Add the database repository if you aren't already
using same database for users.  Add the mailet into your config.xml (in root
near top).

Then, choose a naming scheme and stick to it, or you will very quickly loose
control: eg: user.domain or user%domain, and set up users as normal users,
and in virtual table:
[user,domain,target]
sales,domain1.com,sales.domain1.com
sales,domain2.com,sales.domain2.com
bob,domain1.com,bob.domain1.com

then set up users:
sales.domain1.com
sales.domain2.com
bob.domain1.com

I'm using it to host lots of domains.  Though i wrote a quick'and'dirty php
app to manage the users/virtualusers (combined) and forwarders (from virtual
users).

Daniel.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mailet, matcher and distribution list IT WORKS!!!!, another question

2005-06-23 Thread Daniel Perry
I've done this with a very simple php app (using mysql as users store).

Otherwise, you'll have to write your own command (very similar to
subscribe-confirm)

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 22 June 2005 17:11
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list IT WORKS, another
> question
>
>
> Hi to everybody,
> Is it possible to subscribe someone else than himself?
>
> What I'd like to have is that the newsletter administrator, and *only*
> administrator could subscribe someone else.
>
> There is some mailet already done ?
> Could someone address me to do it?
>
> Regards
>
> [EMAIL PROTECTED] wrote:
>
> > Hi Daniel, you are very kind to respond me again,
> > I replaced the class below, I rebuilded it,  and.. it WORKS
> >
> > Thanks to everybody helped me
> >
> >
> > Regards
> >
> >
> > Daniel Perry wrote:
> >
> >> Ah,
> >> Forgot that one: you need to download and recompile
> >> CommandListServFooter.
> >> There was a bug with multipart mails that i/noel fixed quite a long
> >> time ago
> >> See:
> >>
> http://svn.apache.org/viewcvs.cgi/james/server/branches/branch_2_1
> _fcs/src/j
> >>
> >>
> ava/org/apache/james/transport/mailets/CommandListservFooter.java?
> rev=157463
> >>
> >> &view=log
> >>
> >> Daniel.
> >>
> >>
> >>
> >>> -Original Message-
> >>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>> Sent: 13 June 2005 14:31
> >>> To: James Users List
> >>> Subject: Re: Mailet, matcher and distribution list
> >>>
> >>>
> >>> Thanks all for your support.
> >>> Now it works, only one prblem is still present:
> >>> When I sent a message to the list, the mail delivered to the
> subscribed
> >>> user is the following:
> >>>
> >>>
> >>> --=_NextPart_000_0005_01C56E86.7CF19F90
> >>>
> >>> *Message text*
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>> --=_NextPart_000_0005_01C56E86.7CF19F90
> >>>
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> A  >>>
> />-
> >>> To unsubscribe, e-mail:  >>> href="mailto:[EMAIL PROTECTED]">newsletter-unsubscr
> >>> [EMAIL PROTECTED]
> >>> For additional commands, e-mail:  >>> href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]<
> >>> /a>
> >>>
> >>> --=_NextPart_000_0005_01C56E86.7CF19F90--
> >>>
> >>> What have I to check to solve this, I hope last, problem?
> >>>
> >>>
> >>>
> >>> Regards
> >>>
> >>> Noel J. Bergman wrote:
> >>>
> >>>
> >>>
> >>>> See
> >>>> http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/jam
> >>>>
> >>>
> >> es-listmana
> >>
> >>
> >>> ger.xml, which is also in the distribution, for a sample.  You must do
> >>> things in the right order with the command list server.
> >>>
> >>> --- Noel
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection timed out and Too many recipients

2005-06-16 Thread Daniel Perry
hmm maybe james should be able to have a configurable per domain limit
so we can deal with dodgy servers.  Maybe also it should try to detect "too
many recipients" when sending the message and break it down there too.

Applying it to all servers, including well behaved ones would cost me a lot
in terms of bandwidth.  For example, i have an academic mailing list with
about 500 members, of which 95% are accounted for by two different domains.
It often gets 1 or 2 MB emails.  1mb email ends up using 20 to 30 mb of
bandwidth instead of 500mb!

Daniel.

> -Original Message-
> From: Peter T. Brown [mailto:[EMAIL PROTECTED]
> Sent: 15 June 2005 18:02
> To: James Users List
> Subject: Re: Connection timed out and Too many recipients
>
>
> Right, but practically speaking if James cannot support sending to major
> email vendors it can't really be considered a useable mailing
> list manager,
> as far as I am concerned. I mean, I simply cannot use James if a
> significant
> portion of my users will be left in the cold...
>
> A common approach I've seen is for the list manager to detect when a
> recipient list is getting to long, and break it up into smaller
> chunks that
> can be sent separately.
>
> Cheers
>
> --
> Peter T. Brown
> Founding Partner
> Headless Hunter, Inc.
> [EMAIL PROTECTED]
>
> "Rewarding you for who you know."
> http://www.headlesshunter.com/
>
>
>
>
>
>
> > From: "Noel J. Bergman" <[EMAIL PROTECTED]>
> > Reply-To: James Users List 
> > Date: Wed, 15 Jun 2005 09:01:30 -0400
> > To: James Users List , Andrew Hayden
> > <[EMAIL PROTECTED]>
> > Subject: RE: Connection timed out and Too many recipients
> >
> > Andrew Hayden wrote:
> >
> >> this is an issue with hotmail, yahoo, etc's spam-prevention
> >> techniques.  They tend to set very low limits on the number of
> >> recipients that a message can be sent to at once
> >
> > Which is, by the way, an RFC violation.  I appreciate why they
> do it, but
> > their limits are well below those mandated by RFC 2821:
> >
> >   The minimum total number of recipients that must be buffered is
> >   100 recipients.  Rejection of messages (for excessive recipients)
> >   with fewer than 100 RCPT commands is a violation of this
> >   specification.
> >
> > --- Noel
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mailet, matcher and distribution list

2005-06-13 Thread Daniel Perry
Ah,
Forgot that one: you need to download and recompile CommandListServFooter.
There was a bug with multipart mails that i/noel fixed quite a long time ago
See:
http://svn.apache.org/viewcvs.cgi/james/server/branches/branch_2_1_fcs/src/j
ava/org/apache/james/transport/mailets/CommandListservFooter.java?rev=157463
&view=log

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 13 June 2005 14:31
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list
>
>
> Thanks all for your support.
> Now it works, only one prblem is still present:
> When I sent a message to the list, the mail delivered to the subscribed
> user is the following:
>
>
> --=_NextPart_000_0005_01C56E86.7CF19F90
>
> *Message text*
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> --=_NextPart_000_0005_01C56E86.7CF19F90
>
> 
> 
> 
> 
> 
> 
> 
> A  />-
> To unsubscribe, e-mail:  href="mailto:[EMAIL PROTECTED]">newsletter-unsubscr
> [EMAIL PROTECTED]
> For additional commands, e-mail:  href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]<
> /a>
>
> --=_NextPart_000_0005_01C56E86.7CF19F90--
>
> What have I to check to solve this, I hope last, problem?
>
>
>
> Regards
>
> Noel J. Bergman wrote:
>
> >See
> >http://svn.apache.org/viewcvs.cgi/james/server/trunk/src/conf/jam
es-listmana
>ger.xml, which is also in the distribution, for a sample.  You must do
>things in the right order with the command list server.
>
>   --- Noel
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: onMailetException="ignore"

2005-06-13 Thread Daniel Perry
> for instance, I have the following in config.xml:
>
> 
> 12
> 
>
>
> so...
>
> does mailet or processor care of "onMailetException" ? if processor,
> so it is general thing and should have been documented, I haven't found
> anything in my documentation for James 2.2.

Processor.

Basically the processor calls the service method on the mailet to service a
mail.  The mailet can deal with any exceptions internally, or can throw
them.  If it does throw an exception, then the processor will just catch it
and ignore it if onMailetException="ignore", otherwise it will handle it.

>
> does mailet have yo="123" passed to it ? or it is totally to processor ?

Processor i believe.  The mailet only sees what is inside of the mailet tag.

> "12" is passed to mailet and processor knows nothing is it
> correct or not. right ?

12 is passed straight to the mailet.  When the processor
initialises the mailet, it passes it anything inside the mailet tags as it's
config.


> >
> >> 3) I tried to pass really weird parameters to mailets, like
> yo="123", but
> >> mailets say nothing about it. I found this really bad. Because I want
> >> mailet to complain when I mis-type something. I don't want them to
> >> silently ignore mis-typed parameters. How can it be achived ?
> >
> > Write code.  Mailets check for the parameters they know, and don't care
>
> I meant attributes.

It will complain if any of the things the processor needs are wrong eg.
class
If you want your mailet to complain, then write code to check the config in
the initialisation of the mailet.

> > about others, which is often a good thing, since not all
> parameters may be
> > intended for the mailet.  Some could be meta-information for
> the container.
> > This is consistent with other container managed components,
> such as Servlets
> > and Portlets.
>
> How those is connected to Servlets and Portlets ? Can You give some
> examples ? we are writing portal, so our developers write code in Java,
> that's why I chose James for smtp/pop3 server. But since there'll
> be other
> things in Java, I'd like to know how mailets can interoperate with
> Servlets and Portlets.
>

There is no relationship between mailets and servlets/portlets.  Noel was
pointing out that mailets are a bit like servlets in the structure of the
overall system:

Servlets run inside a servlet container, and they service http requests,
when the container calls a service method (eg doGet).

Mailets run inside a mailet container (eg. processor), and they service mail
objects, at the request of the container.

There is a similar lifecycle - init is called when started, and the the same
servlet/mailet is used to service all requests.  Ok, so servlets actually
have a more complex lifecycle, but that's off topic.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



rejected mail - was RE: Mailet, matcher and distribution list

2005-06-08 Thread Daniel Perry
I tried to reply this message and got back:

Failed to deliver to 'server-user@james.apache.org'
SMTP module(domain james.apache.org) reports:
 message text rejected by mail.apache.org:
 552 You have entered a blackhole from which few have returned (body).

What's the deal here?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mailet, matcher and distribution list

2005-06-08 Thread Daniel Perry
penny drops you were using the avalon list serv (and partly still are,
which is why you get the error).

The code changes were to the commandlistserv - which is newer that the
avalonlistserv.

> Now I changed into:
>
> class="*AvalonListservManager*">

Here is your problem - change it to class="CommandListservManager"

> list-james
>
>
> class="*CommandListservProcessor*">

That is correct.

> true
> true
> false
> list-james
> Prefisso
> true
> true
> [EMAIL PROTECTED]
> Newsletter
> 
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
> 
>  
> <#>
>
> --
> --
>
> But, I got the following Excection:
>
> 08/06/05 10:25:08 ERROR spoolmanager: Unable to init mailet
> CommandListservProcessor: javax.mail.MessagingException: Unable to find
> command list manager named: Newsletter;
>   nested exception is:
> java.lang.IllegalStateException: Unable to find command list manager
> named: Newsletter
> javax.mail.MessagingException: Unable to find command list manager
> named: Newsletter;
>   nested exception is:
> java.lang.IllegalStateException: Unable to find command list manager
> named: Newsletter
> at
> org.apache.james.transport.mailets.CommandListservProcessor.init(C
ommandListservProcessor.java:287)
> at org.apache.mailet.GenericMailet.init(GenericMailet.java:129)
>
> So, I think I miss someting else into the config.xml,
> may someone suggest me what blocks have I to insert into the config.xml
> file?
>
> Regards
> Pietro
>

The commandlistservprocessor needs a commandlistservmanager mailet.  You are
trying to use a commandlistservprocessor with an avalonlistservmanager.

Hope that helps,

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mailet, matcher and distribution list

2005-06-01 Thread Daniel Perry
Well, I'm not sure exactly how the sar loader works, so I don't really know
why that didn't work.  I would recommend downloading the source for the
version of james you have, then replace the java file, and build.  You will
then have a new SAR file.  This is what I do, and it works fine.

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 31 May 2005 13:57
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list
>
>
> I did all you explained, replacing the old .class with the new ones.
> It seems to do not have effect, new fields aren't readed.
> Even I tried to delete the class and the newsletter works again
> following th original rules, thats is very strange.
> Obviously I stoped and started the James each time.
> It seems James have its own classes that have priority on the ones in
> the james.sar inside the apps/james.sar
> Last I want to try to put some logging inside the class, to check if the
> class is loaded, how can I log from inside there?
> Any other suggestion, please?
>
> Regards
>
> Daniel Perry wrote:
>
> >Hah, that's a tricky one. (I normally just rebuild the whole of
> james), then
> >replace james.sar
> >
> >It is in: apps/james.sar
> >
> >a sar file is a jar file, which is a zip file.
> >
> >Inside james.sar, the james class files are in a jar file:
> >SAR-INF/lib/james.jar
> >
> >Hope that makes sense,
> >
> >Daniel.
> >
> >
> >
> >
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>Sent: 26 May 2005 16:45
> >>To: James Users List
> >>Subject: Re: Mailet, matcher and distribution list
> >>
> >>
> >>Thanks for your reply, one last question;
> >>where have I to place the .class ?
> >>Have I to substitute with old one in the jar archive or there is a
> >>lib/classes folder where I can store it?
> >>
> >>Regards
> >>
> >>
> >>Daniel Perry wrote:
> >>
> >>
> >>
> >>>I added this to the command mail list a while ago, and it was
> commited to
> >>>the subversion repository.
> >>>
> >>>http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branche
> >>>
> >>>
> >>s/branch_2_
> >>
> >>
> >>>1_fcs/src/java/org/apache/james/transport/mailets/CommandListserv
> >>>
> >>>
> >>Processor.j
> >>
> >>
> >>>ava
> >>>(for v2.1/2 branch)
> >>>
> >>>You'll need to recompile  to use it :) It adds the config
> options below:
> >>>
> >>>true
> >>>
> >>>   [EMAIL PROTECTED]
> >>>   [EMAIL PROTECTED]
> >>>   [EMAIL PROTECTED]
> >>>
> >>>
> >>>Also, see http://issues.apache.org/jira/browse/JAMES-367 for a
> >>>
> >>>
> >>patch which
> >>
> >>
> >>>makes footers optional, and also allows you to modify the to
> >>>
> >>>
> >>address for the
> >>
> >>
> >>>list, so that it appears that the email was sent to a different
> >>>
> >>>
> >>address than
> >>
> >>
> >>>it actually was. I have used this to make a list reply to an
> >>>
> >>>
> >>admin, and also
> >>
> >>
> >>>when moving lists from one server to another - put the list
> >>>
> >>>
> >>temporarily on a
> >>
> >>
> >>>new domain, while the domain records are propergating, and then
> >>>
> >>>
> >>set the new
> >>
> >>
> >>>list to appear as if it was the old domain.
> >>>
> >>>Daniel.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>-Original Message-
> >>>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>>>Sent: 26 May 2005 13:44
> >>>>To: James Users List
> >>>>Subject: Mailet, matcher and distribution list
> >>>>
> >>>>
> >>>>Hi, I activated a mailing list following the Apache James
> user guide and
> >>>>FAQ.
> >>>>All work well, but I prefer to have only one, or at least some users
> >>>>that can write to the distribution list,
> >>>>while for the other the message should going back.
> >>>>
> >>>>Is it possibledoing using the provided mailet, matchers ?
> >>>>Have I to write my own mailet?
> >>>>
> >>>>May someone help me to have the rigth directions to start this job.
> >>>>
> >>>>Thanks
> >>>>
> >>>>
> >>>>
> >>>>-
> >>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mailet, matcher and distribution list

2005-05-26 Thread Daniel Perry
Hah, that's a tricky one. (I normally just rebuild the whole of james), then
replace james.sar

It is in: apps/james.sar

a sar file is a jar file, which is a zip file.

Inside james.sar, the james class files are in a jar file:
SAR-INF/lib/james.jar

Hope that makes sense,

Daniel.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 26 May 2005 16:45
> To: James Users List
> Subject: Re: Mailet, matcher and distribution list
>
>
> Thanks for your reply, one last question;
> where have I to place the .class ?
> Have I to substitute with old one in the jar archive or there is a
> lib/classes folder where I can store it?
>
> Regards
>
>
> Daniel Perry wrote:
>
> >I added this to the command mail list a while ago, and it was commited to
> >the subversion repository.
> >
> >http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branche
> s/branch_2_
> >1_fcs/src/java/org/apache/james/transport/mailets/CommandListserv
> Processor.j
> >ava
> >(for v2.1/2 branch)
> >
> >You'll need to recompile  to use it :) It adds the config options below:
> >
> >true
> >
> >[EMAIL PROTECTED]
> >[EMAIL PROTECTED]
> >[EMAIL PROTECTED]
> >
> >
> >Also, see http://issues.apache.org/jira/browse/JAMES-367 for a
> patch which
> >makes footers optional, and also allows you to modify the to
> address for the
> >list, so that it appears that the email was sent to a different
> address than
> >it actually was. I have used this to make a list reply to an
> admin, and also
> >when moving lists from one server to another - put the list
> temporarily on a
> >new domain, while the domain records are propergating, and then
> set the new
> >list to appear as if it was the old domain.
> >
> >Daniel.
> >
> >
> >
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>Sent: 26 May 2005 13:44
> >>To: James Users List
> >>Subject: Mailet, matcher and distribution list
> >>
> >>
> >>Hi, I activated a mailing list following the Apache James user guide and
> >>FAQ.
> >>All work well, but I prefer to have only one, or at least some users
> >>that can write to the distribution list,
> >>while for the other the message should going back.
> >>
> >>Is it possibledoing using the provided mailet, matchers ?
> >>Have I to write my own mailet?
> >>
> >>May someone help me to have the rigth directions to start this job.
> >>
> >>Thanks
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mailet, matcher and distribution list

2005-05-26 Thread Daniel Perry
I added this to the command mail list a while ago, and it was commited to
the subversion repository.

http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branches/branch_2_
1_fcs/src/java/org/apache/james/transport/mailets/CommandListservProcessor.j
ava
(for v2.1/2 branch)

You'll need to recompile  to use it :) It adds the config options below:

true

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]


Also, see http://issues.apache.org/jira/browse/JAMES-367 for a patch which
makes footers optional, and also allows you to modify the to address for the
list, so that it appears that the email was sent to a different address than
it actually was. I have used this to make a list reply to an admin, and also
when moving lists from one server to another - put the list temporarily on a
new domain, while the domain records are propergating, and then set the new
list to appear as if it was the old domain.

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 26 May 2005 13:44
> To: James Users List
> Subject: Mailet, matcher and distribution list
>
>
> Hi, I activated a mailing list following the Apache James user guide and
> FAQ.
> All work well, but I prefer to have only one, or at least some users
> that can write to the distribution list,
> while for the other the message should going back.
>
> Is it possibledoing using the provided mailet, matchers ?
> Have I to write my own mailet?
>
> May someone help me to have the rigth directions to start this job.
>
> Thanks
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Duplicate Email Problem

2005-05-18 Thread Daniel Perry
When does it happen? ie, do you get every mail every time you login? or is
it intermittent? I'm assuming you're using the same mail client each time?
Because whenever you set up a new client, it will re-download all the
messages.

As i said previously, the pop3 server doesnt care which messages you've
read, and the mail client should remember which it has seen, normally based
on the unique ids handed out by UIDL.

I would suggest you start debugging using telnet:

>telnet mailserver 110
+OK mailserver POP3 server (JAMES POP3 Server 2.2.0) ready
>user daniel
+OK
>pass blah
+OK Welcome daniel
>uidl
1 Mail1116402062753-3136
.
>quit
+OK Apache James POP3 Server signing off.

Following the steps above you'll retrieve the same uidl list that you mail
client should be using.

I suggest creating a test account, setting up an email client to retrieve
and leave messages on server, and send a few test messages. Log in, and get
the UIDL response. Now try to replicate the problem, and then get the UIDL
response again, and check to see that the uidls are the same. Also check all
the log files for any hints.

Daniel.

> -Original Message-
> From: Camron Levanger [mailto:[EMAIL PROTECTED]
> Sent: 18 May 2005 04:57
> To: James Users List
> Subject: Re: Duplicate Email Problem
>
>
> On the contrary, I switched James to use filesystem for messages and
> deadletter and it solved the problem.  So the problem lies somewhere
> within storing and retrieving mail from the database.  Does anyone
> have any suggestions on how to go about debugging this?  I would love
> to find the problem, just not sure where to start looking.
>
> Thanks,
>
> Camron G. Levanger
> The Dreamlab
> http://www.dreamlabmedia.com
> 866-890-3705
>
>
> On May 17, 2005, at 3:58 PM, Tony Freeman @ TeamXL wrote:
>
> > I have been running James for a couple of years and upgraded to
> > 2.2.0.  I
> > have been using MySQL for users, mail stores, and spool.  I am
> > using the
> > VirtualUsers table as well.  I am hosting 5 domains with about 400
> > emails
> > per day.  I have never experienced duplicate emails with James.  I
> > have
> > observed duplicate and more email however with Exchange Server and
> > Outlook
> > Express.  The clients connecting range from Outlook, Outlook Express,
> > Eudora, and a webmail server.  I am using IlohaMail as my webmail
> > server.
> >
> > I would not expect the problem to have anything to do with James.
> >
> > Regards,
> > Tony Freeman
> > TEAMXL
> > 678.344.2305 Office
> > 509.693.2598 eFax
> > [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Camron Levanger [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 17, 2005 1:03 PM
> > To: James Users List
> > Subject: Re: Duplicate Email Problem
> >
> > I am going to try filesystem messagestores and see what happens.  I
> > will
> > also connect via command line to see if there is anything strange
> > going on.
> >
> > Thanks
> >
> > Camron G. Levanger
> > The Dreamlab
> > http://www.dreamlabmedia.com
> > 866-890-3705
> >
> > On May 17, 2005, at 5:01 AM, Daniel Perry wrote:
> >
> >
> >> I'm not sure whats causing this problem, but AFAIK james doesnt
> >> remember which messages have been read!
> >>
> >> The client should determine which messages have been read (probably
> >> using the UIDL command), and download ones it doesnt recognise.  It
> >> retrieves them - james doesnt send them.
> >>
> >> I have checked, and it works fine for me: james 2.2.0 with
> >> virtualusertable, mysql users, filesystem for messagestores,
> >> Outlook2000.
> >>
> >> The only way james could cause this is if the UIDL ids changed for a
> >> message - which would be bad as these should stay the same for the
> >> lifetime of the message in the system.
> >>
> >> Daniel.
> >>
> >>
> >>
> >>> -Original Message-
> >>> From: Camron Levanger [mailto:[EMAIL PROTECTED]
> >>> Sent: 16 May 2005 22:00
> >>> To: James Users List
> >>> Subject: Duplicate Email Problem
> >>>
> >>>
> >>> Hello, I am still having problems with my James server.  Whenever
> >>> you
> >>> check your mail, the server sends you all of your email again,
> >>> unread.  This results in mutliple copies of the same message, and
> >>> email boxes full of 14,000 unread messages everytime you check your
> >>> mail.
>

RE: Duplicate Email Problem

2005-05-17 Thread Daniel Perry
I'm not sure whats causing this problem, but AFAIK james doesnt remember
which messages have been read!

The client should determine which messages have been read (probably using
the UIDL command), and download ones it doesnt recognise.  It retrieves
them - james doesnt send them.

I have checked, and it works fine for me: james 2.2.0 with virtualusertable,
mysql users, filesystem for messagestores, Outlook2000.

The only way james could cause this is if the UIDL ids changed for a
message - which would be bad as these should stay the same for the lifetime
of the message in the system.

Daniel.

> -Original Message-
> From: Camron Levanger [mailto:[EMAIL PROTECTED]
> Sent: 16 May 2005 22:00
> To: James Users List
> Subject: Duplicate Email Problem
>
>
> Hello, I am still having problems with my James server.  Whenever you
> check your mail, the server sends you all of your email again,
> unread.  This results in mutliple copies of the same message, and
> email boxes full of 14,000 unread messages everytime you check your
> mail.
>
> This happens to every client using the server, regardless of OS or
> mail client.
>
> If you set your client to remove the message after downloading, then
> the problem goes away (it properly removes the message).  So it seems
> that James is having trouble figuring out which messages are already
> downloaded.
>
> I am using James 2.2.0, full mysql backend, and I use the
> virtusertable mailet.
>
> I have searched through the config looking for clues, looked through
> the database, sqlresources.xml, I can't seem to find anything.
>
> Anyone have an idea where I can start?
>
> Thanks,
>
>
> Camron G. Levanger
> The Dreamlab
> http://www.dreamlabmedia.com
> 866-890-3705
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Serious bandwidth begin consumed by James

2005-05-11 Thread Daniel Perry
(cross posted as code change proposal at bottom)

Having had a quick look at the RFCs it looks like the 552 error should not
be sent until the final . has been received.

Looking at james code (SMTPHandler.java):

James recieves data command. Responds accordingly.
James starts receiving data. Once hit's maximum limit, an exception causes
james to send a 552 error (immediately).
Now, this is where i might be missing somthing, but James then seems to
return to reading commands, but as the state MESG_FAILED is set,
parseCommand skips logging, and doesnt return 500 error messages!

In terms of DOS, this seems ok, as once the mail hits the size limit, data
is no longer built into a mail. (so cant do OutOfMemory DOS)

Sure, you can use bandwidth, but you can do that anyway with lots of smaller
messages that will get accepted and use more CPU!

Assuming my understanding of the code and rfcs is correct, it means that
james enters a blackhole phase, where james basically does nothing until it
receives a proper smtp command, and then it doesnt get it's state reset,
which all seems wrong in light of the rfcs.

If i am right, it should:
Notice to size limit has been reached, and stop buffering the message.
Continue reading the message until . is reached
Send 552 error!
Reset state, and continue to accept other messages.

I think it should do this by:
Upon catching the size exception,
gobble away at the CharTerminatedInputStream (need to keep a reference to
this) until eof.
then continue as before, but:
Also, Get rid of MESG_FAILED state, and call resetState so we can allow the
parsing/logging/responses-to further commands/messages to work properly!

Does this make sense?

Daniel.




> -Original Message-
> From: Chris Hane [mailto:[EMAIL PROTECTED]
> Sent: 10 May 2005 18:53
> To: James Users List
> Subject: Re: Serious bandwidth begin consumed by James
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
> >>I tested by:
> >>
> >>- I had two test servers both setup with james (Sender, Receiver)
> >>- I set the Receiver to a max message size of 7MB
> >>- I set the Sender to a max message size of 0MB (unlimited)
> >>- When I sent a 20MB file from Sender to Receiver I saw the
> >>following (very rough times from memory but I can repeat and
> >>get more accuruate timings if anyone cares.  (I don't really
> >>at this point since I really wanted to solve the bounce issue
> >>I was having originally).
> >>
> >>1. Receiver.smtp.log time 0 - connection accept and message
> >>started to be transmited 2. Receiver.smtp.log time 1 minute -
> >>message to large (552) 3. Sender.mailet.log time 3 minute -
> >>error message 552 message too large
> >>
> >>I made an assumption that message #2 on the Receiver
> >>generated the error message back to the Receiver; but based
> >>on what you said I assume this is informational that an error
> >>message will be sent once the message has been completely sent.
> >>
> >>However, wouldn't this behavior allow for a denial of service
> >>attack?
> >>Someone could repeatedly send large files and clog up my
> >>bandwidth..
> >>
> >>
> >
> >This behaviour simply double the bandwith used: once to receive
> the message,
> >once to send the bounce.
> >You can configure james to avoid creating the bounce or to
> create the bounce
> >with no message attached.
> >
> >
> hmm...
>
> Maybe I'm not fully understanding; but that is not what I am seeing.
>
> First, the Receiver email server should not "bounce" the email.  Is that
> correct?  Instead it sends back a 552 error code (I'm only dealing with
> the use case where the email exceeds the max message size ).
>
> Second, I have configured the Sender RemoteDelivery with a
> bounceProcessor and set the none option.
>
> What I am seeing is a log message on the Receiving Email server
> indicating that a message has exceeded max size and will send a 552
> error message.  I'm assuming it will only send the error code back via
> the connection and *not* the entire message.
>
> Once this error message (552) is written to the Receiving.smtp.log file,
> the Sending email server continues to send the email.  The send portion
> is not aborted.  When I look at ntop which shows me network traffic
> broken by IP address / direction (in/out) / and protocol, I confirm that
> the entire 20MB message is sent (Sender -> Receiver) and very little
> traffic (measured in KBs) is received (Receiver -> Sender).
>
> Also, the Receiver contains the mbox of the actual user sending the
> email so I would not expect double the bandwidth until the user actual
> downloads the email (but it still wouldn't be double since the
> bounceProcessor strips the attachment - which I have confirm it is doing).
>
> I still believe that if james is not stopping an incoming message
> (receiver side) when a message has exceeded it's max message size, that
> a denial of service attack it possible.  This type of attack would more
> consume bandwidth than cpu, but bandwidth is the expensive resource in
> this e

RE: Changing port

2005-05-09 Thread Daniel Perry
Short answer: No!

Mail servers look for your server on port 25. There are ways to achieve this
using port-forwarding, etc, but if you have no control over your firewall,
and dont have an external server that you can use port 25 on to forward,
then i dont know a way you can do it.

Daniel.



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 09 May 2005 09:38
> To: James Users List
> Subject: Changing port
>
>
> A simple quastion.
> Since my company has firewalled port 25 I can't read mail from my mail
> reader,
> so I changed SMTP port to a 465 value, without enabling TLS.
>
> I can send mail to others, but can't receive mails from others domain,
> is this due to port changing, is it possible to work on a SMTP port
> different from 25?
>
> Regards
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Serious bandwidth begin consumed by James

2005-05-05 Thread Daniel Perry
Now this problem has hit our server And in the last ten days or so
consumed an enormous amount of bandwidth!

An 18mb email was sent to an address that is forwarded elsewhere (via
jdbcvirtualusertable).  The server it is forwarded to has a 10mb limit, so
it responded with "552 Message size exceeds maximum permitted".

Now I've looked through the code, and it all looks good - permanent error,
so send bounce, and delete original message. But this wasn't happening.

Now here's the catch - delivering the bounce caused a
java.lang.OutOfMemoryError.  So, the bouncing never completed, and this is
not caught by the "catch Exception" block around getMailetContext().bounce,
but is caught in RemoteDelivery.run()!

I changed the code to catch all "Error"s on bouncing, not just "Exception"s.

---patch

--- C:\RemoteDelivery.java.orig Thu May 05 15:42:37 2005
+++ C:\RemoteDelivery.java.fixedThu May 05 15:50:30 2005
@@ -740,12 +740,12 @@
 log("Sending failure message " + mail.getName());
 try {
 getMailetContext().bounce(mail, sout.toString());
 } catch (MessagingException me) {
 log("Encountered unexpected messaging exception while bouncing
message: " + me.getMessage());
-} catch (Exception e) {
-log("Encountered unexpected exception while bouncing message: "
+ e.getMessage());
+} catch (Error e) {
+log("Encountered unexpected exception/error while bouncing
message: " + e.getMessage());
 }
 }

 public String getMailetInfo() {
 return "RemoteDelivery Mailet";
---end of patch


However, looking at remotedelivery.run, it seems like it was designed to
handle this kind of problem - but only removes messages that fails with an
exception, not an error or throwable:

} catch (Exception e) {
// Prevent unexpected exceptions from causing looping by removing
// message from outgoing.
outgoing.remove(key);
throw e;
}
} catch (Throwable e) {
if (!destroyed) log("Exception caught in RemoteDelivery.run()", e);
}


Maybe this code should be catch all errors, and try to remove the mail!

Daniel.




> -Original Message-
> From: Stefano Bagnara [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED]
> Sent: 14 April 2005 21:04
> To: 'James Users List'; [EMAIL PROTECTED]
> Subject: Re: Serious bandwidth begin consumed by James
>
>
> > I did a little digging in the logs and I was able to find
> > these repeated log entries in the mailet-* logs (I removed
> > the actual email address/dns info to protect the innocent):
>
> It seems the same message that once failed bounces and resend
> again. This is
> really strange.
> RemoteDelivery, after it says "Sending failure...":
>
> log("Sending failure message " + mail.getName());
> try {
> getMailetContext().bounce(mail, sout.toString());
>
> Will call MailetContext.bounce. James.java, bounce():
>
> if (mail.getSender() == null) {
> if (getLogger().isInfoEnabled())
> getLogger().info("Mail to be bounced contains a null (<>)
> reverse path.  No bounce will be sent.");
> return;
> } else {
> // Bounce message goes to the reverse path, not to
> the Reply-To
> address
> if (getLogger().isInfoEnabled())
> getLogger().info("Processing a bounce request for
> a message
> with a reverse path of " + mail.getSender().toString());
> reply.setRecipient(MimeMessage.RecipientType.TO,
> mail.getSender().toInternetAddress());
> }
>
> You should find a log containing one of these 2 logs "Mail to be bounce
> contains" or "Processing a bounce request"... Please find that
> log and tell
> us what you find.
>
> But I think I found the problem: the bounce created has the full
> message as
> attachment and so it is bigger than the original. The
> domain.here.com refuse
> big messages as like the graphicsbyheather.com server so the message keeps
> bouncing.
> This is a problem in the current 2.2.0. I rememeber something fixed about
> return-path handling in the current 2_1_fcs branch. You should
> try upgrading
> to "2.2.1dev" (branch 2_1_fcs in current subversion). This should
> be fixed.
>
> Alternatively you probably can fix this by adding a  tag
> like described in this JIRA issue:
> http://issues.apache.org/jira/browse/JAMES-357
>
> The bug will be still there but the bounce will be created by DSNBounce
> instead of the MailetContext and I think that DSNBounce will correctly set
> the return-path of the bounce to "<>". You can even configure the
> DSNBounce
> with the option none so that the bounce will not
> contain the original message!
>
>
> > mailet-2005-04-13-00-01.log:13/04/05 14:10:28 INFO  James.Mailet:
> > RemoteDelivery: Attempting delivery of Mail1113353072629-556
> > 45-to-graphicsbyheather.com to host mx.domain.here.com. at
> > 217.160.230.10 to addresses [EMAI

RE: How to send email from JAMES to users on another mail server

2005-05-05 Thread Daniel Perry
> Look in the logs if james has made delivery attempts.
> apps/james/logs/*.log
>
> Stefano

As stefano says, check the (James) logs!  More specifically,
apps/james/logs/mailet-*.log

Look for lines like:
[date] [time] INFO  James.Mailet: RemoteDelivery: ...

They should point you in the right direction.

The problem you are seeing is probably nothing to do with james.

>From the server running james, check that you can do MX record lookups using
the configured dns server.  Some adsl routers that provide dns
proxying/caching only allow A/CNAME/NS lookups, and don't support MX
lookups. (use a tool like nslookup or dig to check it out):
dig @213.239.57.3 yahoo.com mx
Should return lots of mx records.

If you cant do mx lookups then use a dns server that can - eg your ISP's dns
server.

Second, check that you can connect to an external mail server via telnet.
Lots of ISPs, block these connections to try and cut down on spam/viruses
coming from their networks.

telnet mx1.mail.yahoo.com 25

You should get "220 YSmtp mta152.mail.re2.yahoo.com ESMTP service ready"

If this doesnt work, then it's a router/ISP issue.

If this does work, then check the james logs carefully.
Also look for the message in the address-error, or error repositories.

Daniel.







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connection refused

2005-04-29 Thread Daniel Perry
Another point - make sure you're running mysql on tcp, as well as the unix
socket file, beacuse AFAIK jdbc will only use tcp!

Daniel.

> -Original Message-
> From: Bud Bach [mailto:[EMAIL PROTECTED]
> Sent: 29 April 2005 15:25
> To: 'James Users List'
> Subject: RE: Connection refused
>
>
> http://dev.mysql.com/downloads/connector/j/3.1.html
>
> Grab the zip file and unzip it.  The jar file is in the root of
> the unzipped
> directory.  Also, are you running mysql on the same machine as james?  You
> might want to use localhost as the server for your connect string.
>
> > -Original Message-
> > From: Kelly [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 29, 2005 8:58 AM
> > To: James Users List
> > Subject: RE: Connection refused
> >
> > I cannot find the connectorJ 3.0.9 driver on the MySQL website.  I found
> > the 3.0.6 tar file.  I found the 3.1.8a tar file.  When I try to untar
> > any of them I get a checksum error.  The MySQL website says to copy the
> > mysql-connector-java-[version]-bin.jar to the lib directory from the com
> > directory.  There are no files that end in 'jar' in the com directory,
> > only '.java' and '.class' files.  I downloaded the windows version and
> > looked at the files.  Same thing as the tar files, no '.jar' files
> > anywhere.  Can anyone help me understand this.  I have never felt so
> > stupid in my whole life.
> >
> > K
> >
> > >  Original Message 
> > > Subject: Re: Connection refused
> > > From: Camron Levanger <[EMAIL PROTECTED]>
> > > Date: Thu, April 28, 2005 10:16 pm
> > > To: "James Users List" 
> > >
> > > It sounds to me like you are using mysql 4.1 or greater.  You need to
> > > download the connectorj 3.0.9 driver from the mysql site and put it
> > > in your lib directory, then you need to go into your datasource and
> > > switch the driver from org.gjt.mm.mysql to com.mysql.jdbc.Driver
> > >
> > > -Cam
> > >
> > > On Apr 28, 2005, at 9:05 PM, Kelly wrote:
> > >
> > > > I am still having a problem getting the database to connect.
> > > >
> > > > This is from\m the default log.  It happens when I try to access
> > > > the server.
> > > >
> > > > 28/04/05 22:04:27 ERROR database-connections.maildb: Error creating
> > > > connection: java.sql.SQLException: Cannot connect to MySQL server
> > > > on boredomhost.com:3306. Is there a MySQL server running on the
> > > > machine/port you are trying to connect to?
> (java.net.ConnectException)
> > > > at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)
> > > > at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown
> > > > Source)
> > > > at org.gjt.mm.mysql.Driver.connect(Unknown Source)
> > > > at java.sql.DriverManager.getConnection(DriverManager.java:512)
> > > > at java.sql.DriverManager.getConnection(DriverManager.java:171)
> > > > at org.apache.james.util.mordred.JdbcDataSource.createConn
> > > > (JdbcDataSource.java:514)
> > > > at org.apache.james.util.mordred.JdbcDataSource.getConnection
> > > > (JdbcDataSource.java:163)
> > > > at org.apache.james.transport.mailets.JDBCVirtualUserTable.init
> > > > (JDBCVirtualUserTable.java:131)
> > > > at org.apache.mailet.GenericMailet.init(GenericMailet.java:129)
> > > > at org.apache.james.transport.MailetLoader.getMailet
> > > > (MailetLoader.java:60)
> > > > at org.apache.james.transport.JamesSpoolManager.initialize
> > > > (JamesSpoolManager.java:253)
> > > > at
> > > > org.apache.avalon.framework.container.ContainerUtil.initialize
> > > > (ContainerUtil.java:235)
> > > > at
> > > > org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup
> > > > (LifecycleHelper.java:144)
> > > > at
> > > >
> org.apache.avalon.phoenix.components.application.DefaultApplication.st
> > > > artup(DefaultApplication.java:480)
> > > > at
> > > >
> org.apache.avalon.phoenix.components.application.DefaultApplication.do
> > > > RunPhase(DefaultApplication.java:428)
> > > > at
> > > >
> org.apache.avalon.phoenix.components.application.DefaultApplication.ru
> > > > nPhase(DefaultApplication.java:364)
> > > > at
> > > >
> org.apache.avalon.phoenix.components.application.DefaultApplication.st
> > > > art(DefaultApplication.java:138)
> > > > at org.apache.avalon.framework.container.ContainerUtil.start
> > > > (ContainerUtil.java:251)
> > > > at
> > > > org.apache.avalon.phoenix.components.kernel.DefaultKernel.startup
> > > > (DefaultKernel.java:178)
> > > > at
> > > >
> org.apache.avalon.phoenix.components.kernel.DefaultKernel.addApplicati
> > > > on(DefaultKernel.java:254)
> > > > at
> > > > org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy
> > > > (DefaultDeployer.java:353)
> > > > at
> > > >
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFi
> > > > le(DefaultEmbeddor.java:498)
> > > > at
> > > >
> org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFi
> > > > le(DefaultEmbeddor.java:4

RE: JDBCVirtualUserTable

2005-04-28 Thread Daniel Perry
Btw, one issue i've found under linux is that jdbc appears to be connecting
using the full server name, not localhost, so the user should be set up in
mysql to to allow myservername.com, not localhost.

Daniel.

> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]
> Sent: 28 April 2005 04:11
> To: James Users List
> Subject: RE: JDBCVirtualUserTable
>
>
> At a quick glance, your JDBCVirtualUserTable and data-source look OK.  Did
> you manually test that you can access the database using that user and
> password?  Did you create the table as required?
>
>   --- Noel
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Virtual user table.

2005-04-18 Thread Daniel Perry
Yes, and no!
The target_address should be a local address.  Assuming domain.com is local,
then this is ok, but if you [EMAIL PROTECTED] (where otherdomain is
local), it will go to the same mailbox.

You would be better off creating mailboxes that include the domain name, so
that there's no overlap between domains.

e.g.

insert into virtualusertable (username,domain,target_address) values
('mail.test','domain.com','mail.test_domain.com');

insert into virtualusertable (username,domain,target_address) values
('mail.test','otherdomain.com','mail.test_otherdomain.com');

To add the user for pop3, use telnet 4555, and add the user :
mail.test_domain.com, and mail.test_otherdomain.com

Note the target_address must be the same as the pop3 username.  Also note
that the only the part before the @ counts in target address (ie, if the
domain is local, then it is used to determine mailbox, otherwise it is
forwarded to other server with full address).

Daniel.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 17 April 2005 19:17
> To: server-user@james.apache.org
> Subject: Virtual user table.
>
>
>
> How I can define virtual user table in SQL?
> Example:
>
> user: mail.test
> domain: domain.com
>
> in virtualusertable:
>
> insert into virtualusertable (username,domain,target_address)
> values ('mail.test','domain.com','[EMAIL PROTECTED]');
>
> It is properly?
>
> Where create user for POP3 client? By telnet on 4555?
>
>
>
> --
> Wszystko o MOTORYZACJI >>> http://link.interia.pl/f186a
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Spamassassin

2005-04-15 Thread Daniel Perry
Anyone have any idea how to run james emails through spamassassin?  I'm sure
someone mentioned it, but i cant find a mailet.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using the API to Dynamically Add Users

2005-04-14 Thread Daniel Perry
That would work.

Though if you are using database user repositories (others can be file or
db) it is easier to just do it directly.

Daniel.

> -Original Message-
> From: Davide Dalla Rosa [mailto:[EMAIL PROTECTED]
> Sent: 14 April 2005 10:41
> To: 'James Users List'
> Subject: R: Using the API to Dynamically Add Users
>
>
> I think a simple solution could be...
> write a simple appl that performs a socket connection w/ the
> remote manager,
> gets the input stream, feeds the latter with the siutable command
> ("adduser
> username password")
> get the output stream, reads from it the answer then close the connection.
> I suppose this should work whatever the persistence mechanics is...
> and you can do it whatever your programming language is.
> Am I that wrong?
> cheers
> d.
>
> -Messaggio originale-
> Da: Daniel Perry [mailto:[EMAIL PROTECTED]
> Inviato: giovedì 14 aprile 2005 11.27
> A: James Users List
> Oggetto: RE: Using the API to Dynamically Add Users
>
>
> Are you planning on doing this inside of james? (ie in a mailet)
> or outside
> of james (eg webapp)?
>
> >From a mailet you can work directly with user repositories.  See
> commandlistservmanager for an example - it adds users in subscribe-confirm
> command.
>
> >From outside of james, if you use a database, you can add
> entries directly
> (ie using jdbc / any database connectivity provided by other languages).
>
> Not sure how easy it is to work with file repositories from outside of
> james.
>
> Daniel.
>
>
> > -Original Message-
> > From: Don Kim [mailto:[EMAIL PROTECTED]
> > Sent: 12 April 2005 17:31
> > To: server-user@james.apache.org
> > Subject: Using the API to Dynamically Add Users
> >
> >
> > Hi all,
> >
> > I was looking for some help with user creation in James.  I have
> > read the documention that explains how to manage users via the
> > James admin, however, we would like to be able to add users
> > programmatically.  Looking at the API, I'm going to assume that I
> > should primarily be concerned with the
> > org.apache.james.userrepository package, but I have a few questions:
> >
> > 1) Does anyone know of a "starting point?"
> >
> > Right now, I am struggling with basics, such as how do I initiate
> > a connection to the server to even start trying to make
> > modifictions?  I guess a parallel to this would be that if I were
> > trying to connect to a DB, I'd be setting up all of the JDBC
> > info.  Would I be doing this in the configure() method of one of
> > the user repositories?  Or should I be looking elsewhere?
> >
> >
> > 2) Does it matter if I'm using the file system or DB storage methods?
> >
> > I contacted someone from a James mailing list to ask some basic
> > question (that person had originally been asking if anyone knew
> > of any additional doc/training info/examples).  Anyway, this
> > person stated that if I wanted to add users programmatically,
> > that I should go with DB storage.  Can anyone comment on this?  I
> > see that in the UsersFileRepository class, there is an addUser()
> > method, so I'd assume it didn't matter.
> >
> >
> > Any help or pointers would be greatly appreciated.
> >
> >
> > Thanks,
> > Don Kim
> >
> > DISCLAIMER:
> >   The information contained in this e-mail may be confidential
> > and is intended solely for the use of the named addressee.
> > Access, copying or re-use of the e-mail or any information
> > contained herein by any other person is not authorized. If you
> > are not the intended recipient please notify us immediately by
> > returning the e-mail to the originator.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Good learning? => Define User Manual

2005-04-14 Thread Daniel Perry
Have you read the docs on james website?
http://james.apache.org/documentation_2_1.html
goes through most steps.  I think that's the closest you'll get to a user
manual (for now).

Once you get the hang of that, all you need to do for virtual hosting is add
an xmlvirtualusertable, or jdbcvirtualusertable mailet (See the faq).

Have a go - it's easy! If you get stuck, email the list with specific
questions.

Daniel.

> -Original Message-
> From: Kelly [mailto:[EMAIL PROTECTED]
> Sent: 13 April 2005 21:01
> To: [EMAIL PROTECTED]
> Cc: 'James Users List'
> Subject: RE: Good learning? => Define User Manual
>
>
> Alan,
>
> I would be interested in helping with a user manual.  Not sure how much
> help I would be but always willing to do my share.  I need a good
> resource that will explain the whole email operation to me.
>
> Kelly
>
> >  Original Message 
> > Subject: RE: Good learning?  => Define User Manual
> > From: "Alan Gerhard" <[EMAIL PROTECTED]>
> > Date: Mon, April 11, 2005 8:05 pm
> > To: "'James Users List'" 
> >
> > yes, Kelly ... what is it that you are missing ??
> >
> > Although we have a lot of information throughout the site and
> in the WIKI,
> > we need a well defined user manual.
> >
> > Would you be interested in working with me to help define a classic user
> > manual ??
> > We can start by bantering about various outlines ... give me a shout off
> > line if you want
> >
> > - Alan
> >
> >
> > > [EMAIL PROTECTED] wrote:
> > > > Does anyone know of some good resources for learning about JAMES.  I
> > > > think Apache has dropped the ball on the documentation for
> > > JAMES.  I am
> > > > looking for something to deal with the overall operation.
> > > Such as DNS
> > > > and BIND was for BIND.
> > >
> > > There are some articles linked from the James website, but to date
> > > nobody has been able to put a book deal together for James.  That and
> > > the user mailing list are the best sources of information.
> > >
> > > What are you looking for when you say "overall operation"?  From a
> > > sysadmin perspective of managing users, domains, network setup?
> > > Something else?
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using the API to Dynamically Add Users

2005-04-14 Thread Daniel Perry
Are you planning on doing this inside of james? (ie in a mailet) or outside
of james (eg webapp)?

>From a mailet you can work directly with user repositories.  See
commandlistservmanager for an example - it adds users in subscribe-confirm
command.

>From outside of james, if you use a database, you can add entries directly
(ie using jdbc / any database connectivity provided by other languages).

Not sure how easy it is to work with file repositories from outside of
james.

Daniel.


> -Original Message-
> From: Don Kim [mailto:[EMAIL PROTECTED]
> Sent: 12 April 2005 17:31
> To: server-user@james.apache.org
> Subject: Using the API to Dynamically Add Users
>
>
> Hi all,
>
> I was looking for some help with user creation in James.  I have
> read the documention that explains how to manage users via the
> James admin, however, we would like to be able to add users
> programmatically.  Looking at the API, I'm going to assume that I
> should primarily be concerned with the
> org.apache.james.userrepository package, but I have a few questions:
>
> 1) Does anyone know of a "starting point?"
>
> Right now, I am struggling with basics, such as how do I initiate
> a connection to the server to even start trying to make
> modifictions?  I guess a parallel to this would be that if I were
> trying to connect to a DB, I'd be setting up all of the JDBC
> info.  Would I be doing this in the configure() method of one of
> the user repositories?  Or should I be looking elsewhere?
>
>
> 2) Does it matter if I'm using the file system or DB storage methods?
>
> I contacted someone from a James mailing list to ask some basic
> question (that person had originally been asking if anyone knew
> of any additional doc/training info/examples).  Anyway, this
> person stated that if I wanted to add users programmatically,
> that I should go with DB storage.  Can anyone comment on this?  I
> see that in the UsersFileRepository class, there is an addUser()
> method, so I'd assume it didn't matter.
>
>
> Any help or pointers would be greatly appreciated.
>
>
> Thanks,
> Don Kim
>
> DISCLAIMER:
>   The information contained in this e-mail may be confidential
> and is intended solely for the use of the named addressee.
> Access, copying or re-use of the e-mail or any information
> contained herein by any other person is not authorized. If you
> are not the intended recipient please notify us immediately by
> returning the e-mail to the originator.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to check if my Server is open for relay.

2005-04-07 Thread Daniel Perry
Set up an account on a computer that is not an 'authorised address' using
your server as the SMTP server, and do not enter any SMTP auth info. Try and
send an email to an account that is not hosted on the server.  If the server
relays the email then it is open!

Alternatively, have ORDB check it for you: http://www.ordb.org/submit/

Note that if they find it to be open, it will be listed in their database,
until it is retested and found to be ok.

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 07 April 2005 14:51
> To: James Users List
> Subject: How to check if my Server is open for relay.
>
>
> I'm not very expert in E-Mail server configuration.
> I installed James on a Server and configured without problem,
> My question is ho to verify if it is open window for spamming ?
>
> Regards
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: authRequired setting

2005-04-06 Thread Daniel Perry
It should insist upon authentication - unless the email is addressed to a
domain on that server, or the sending machine is an authorised address.

Daniel.

> -Original Message-
> From: Marcello Marangio [mailto:[EMAIL PROTECTED]
> Sent: 06 April 2005 16:40
> To: James users
> Subject: authRequired setting
>
>
> Hi all.
> I switched on the SMTP authentication.
> If I set a wrong password on MS-Outlook upon sending an email, james
> complains.
> If I turn off the smtp authentication on MS-Outlook, james accepts the
> outgoing mail.
> It doesn't make much sense ...
> I mean, if james is set to require SMTP authentication, I'd expect it
> refuses an unauthenticated smtp connection.
>
> Any reasonable explaination?
> Cheers
> Marcello
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Same urse on wo domains

2005-03-31 Thread Daniel Perry
You need to use either JDBCVirtualUserTable or XMLVirtualUserTable to map
the users from [EMAIL PROTECTED] to different local addresses dependant on the
domain.  Eg. [EMAIL PROTECTED] to webmaster%firstdomain.com, or
webmaster1, then [EMAIL PROTECTED] to webmaster%seconddomain.com or
webmaster2. You are free to choose a namind scheme (cannot use @ in
usernames), although if you're planning on mass vitual hosting, then i would
advise a scheme including the username.

See: http://james.apache.org/FAQ.html#7

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 31 March 2005 13:31
> To: server-user@james.apache.org
> Subject: Same urse on wo domains
>
>
> I installed James to get mail from domain
> firstdomain.com
> I registered the user webmaster: /adduser webmaster password
> /all works fine.
>
> Now I'like to get mails also from
> seconddomain.com
>
> Also this new domain has the account webmaster, how to distinguish the
> two accounts?
>
> Regards
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Current Issues - > RE: Gateway Authentication

2005-03-30 Thread Daniel Perry
> >
> > Check SVN, last commit 12 days ago by Vincenzo, before that 2
>
> Unless you don't know the magic word and you solely rely on JIRA reports
> and posting on the mailing lists... Most proposed patches seem to be
> ignored.

Fair enough. You'll find with many open source projects that if you want a
current (albeit unstable) version, then you have to dig into cvs/svn.  I
haven't got the hang of SVN just yet... but viewcvs makes it easier!

I agree with the comments about JIRA/mailing list.  I think JIRA needs to be
more used, as it helps keep things more organised/accessible.  I am guilty
of sending patches/comments to the mailing list that really should be in
JIRA.  Obviously putting everything into JIRA isn't the solution, as people
(committers) need to be reviewing the JIRA requests, and reviewing code,
commenting, and where appropriate committing the code to SVN.


> Also, it seems to take a long time before committed patches are actually
> released. There was a 2.2.1-rc1 release in August 2004. Whatever
> happened to next RC or the decision to make this one final?

Fair comment.  Is there a need for a release? Has anything much changed
since rc1?

> Yes, but no one dares to make a patched release of one of the deprecated
> components and incorporate it into James. I proposed a patch in the
> Phoenix container but it was very unclear if it could be part of a new
> James release.

Why not? I don't see a problem with patching deprecated components.  In
fact, once they're deprecated, there's no longer any reason to go through
the steps trying to get it incorporated in the proper component.

>
> I don't want to run a product where I have to apply my patches each time
> there is a new release.

This I totally agree with.  I have issues with james (stock build) that I
have to patch each time I update the system.  This is a pain in the ass.
I'm sure some of the patches would be useful to some other people, although
also harmless to everyone.  Some of them are for our setup, so they
shouldn't be committed.

I would like to see james development shift up a gear, and james evolve into
a better product.  There seem to be developers about that are producing
useful code that could be contributed back to the project, that we are
missing out on.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot receive email in my james server (I can send ok)

2005-03-29 Thread Daniel Perry
This is probably a firewall issue.

If you have another pc on your network, can you connect to it from that?

If so, then it's probably either: router (port forwarding/firewall?) or your
ISP - A lot of isps will block mail servers. Some isps will open it up for
your ip if you ask nicely, and only do so if it's not set up as an open
relay.

Do you have a static IP, or dynamic?

If dynamic then definitely use the dyndns name for the mx record.
Otherwise, you could use either - but the isp one wouldn't require the
dyndns at all.

Another issue that you probably will come across: If you host a mail server
on an adsl/other consumer line, then you will probably get bounced emails
from people who use block lists- eg. my pipex adsl line is listed in some of
the dns-block-lists as it's dynamic adsl. You can overcome this by using
your providers mail sever as a gateway.

Daniel.

> -Original Message-
> From: Davide Frigerio [mailto:[EMAIL PROTECTED]
> Sent: 29 March 2005 14:02
> To: James Users List
> Subject: Re: Cannot receive email in my james server (I can send ok)
>
>
> Juan,
>   you need to see the log file for details.
>
> Davide Frigerio.
>
>
>
> Juan Jose Costello Levien wrote:
>
> >Clive,
> >
> >Hmm, I opened Ok.
> >I can telnet locally.
> >I am going to test it on a cybercafé, and then I tell
> >you.
> >
> >Thank you very much.
> >
> >Juan
> >
> >
> >--- Clive Tonge <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Juan,
> >>
> >>Can you telnet into James on your own computer?
> >>I will assume that you can.
> >>Open port 25 on your firewall. If it isn't open SMTP
> >>won't work.
> >>
> >>I did try to telnet to your server without success.
> >>
> >>Clive
> >>
> >>Juan Jose Costello Levien wrote:
> >>
> >>
> >>
> >>>Clive,
> >>>
> >>>Thanks for your answer.
> >>>My hostname is jcostello.ath.cx.
> >>>
> >>>(ath.cx is from DynDNS).
> >>>
> >>>I am not sure if someone can ping my machine,
> >>>
> >>>
> >>because
> >>
> >>
> >>>I have a firewall and I dont know which port is for
> >>>ping.
> >>>I opened port 7 and nothing.
> >>>But the telnet connection is working, so you can
> >>>
> >>>
> >>try:
> >>
> >>
> >>>telnet jcostello.ath.cx 25
> >>>and should work.
> >>>
> >>>Yes, I remember I saw a trick for the problem.
> >>>Well, lets continue reading.
> >>>
> >>>Thanks.
> >>>
> >>>Juan
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >-
> >
> >
> >>To unsubscribe, e-mail:
> >>[EMAIL PROTECTED]
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >___
> >250MB gratis, Antivirus y Antispam
> >Correo Yahoo!, el mejor correo web del mundo
> >http://correo.yahoo.com.ar
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
> --
>
> --
> Davide Ing. Frigerio
> Wise-Lab S.r.l.
> c/o Polo Regionale di Como - Politecnico di Milano
> P.le Gerbetto, 6  -  22100 Como (Italy)
> Tel: +39 031 332 7362 - Fax: +39 031 332 7321
> Email: davide.frigerio/at/wise-lab.it
> Web: http://www.wise-lab.it - http://www.wisemodel.com
> --
>
> Leggi l'informativa in base all'art.13 del D.lgs. 30 giugno 2003,
> 196 sul trattamento
> dei dati personali da parte di Wise-Lab:
> http://www.wise-lab.it/info_privacy.htm
>
> *
> Scarica il nuovo web browser FireFox, l'alternativa SICURA ad
> Internet Explorer: Get Firefox!
> 
> *
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multipart Messages with Mailing List

2005-03-29 Thread Daniel Perry
I fixed this a couple of weeks ago, and noel checked it into svn.

You'll need to build james from source. You'll need to checkout james from
svn (or download the source zip and update the problem file):
http://svn.apache.org/viewcvs.cgi/*checkout*/james/server/branches/branch_2_
1_fcs/src/java/org/apache/james/transport/mailets/CommandListservFooter.java

If you have a problem doing this, then let me know and i'll build it and
mail you a new james.sar.

Daniel.


> -Original Message-
> From: Peter T. Brown [mailto:[EMAIL PROTECTED]
> Sent: 28 March 2005 18:55
> To: James Users List
> Subject: Re: Multipart Messages with Mailing List
>
>
> Certainly!
>
> I am using James 2.2.0
>
> Attached is an example of the original (working) message and the message
> manipulated and broken by james.
>
> Thank You
>
>
> > From: "Serge Knystautas" <[EMAIL PROTECTED]>
> > Reply-To: "James Users List" 
> > Date: Fri, 25 Mar 2005 16:07:45 -0500
> > To: "James Users List" 
> > Subject: Re: Multipart Messages with Mailing List
> >
> > On Fri, 25 Mar 2005 13:02:25 -0800
> > "Peter T. Brown" <[EMAIL PROTECTED]> wrote:
> >> Why might this be happening? If my application sends the
> >> message directly,
> >> it works and displays only the HTML or text depending on
> >> my client settings.
> >> Perhaps the mailet that adds the subscribe/unsubscribe
> >> info is broken?
> >
> > What version of James are you using, and would it be
> > possible to send text attachments with the original email
> > and the mungled email?
> >
> > --
> > Serge Knystautas
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Current Issues - > RE: Gateway Authentication

2005-03-29 Thread Daniel Perry
> I think you might be missing the big picture.  James
> is already (I stand corrected, it's not dead) in idle
> mode.  My feeling is that new development cannot
> happen with the current committers not committing
> anything.  Unless they let other (active) developers
> in, they are nothing more than sourceforge-squatters.
> Case study: FreeBSD vs. DragonflyBSD.

Check svn, last commit 12 days ago by Vincenzo, before that 2 weeks by Noel.
Sure (some/all) of the committers might not be actively developing james,
but they do commit patches with a bit of gentle persuasion :)

> Could you please elaborate?  If you are defending the
> Avalon beast, I have nothing to add.  Except, that
> having to rely on deprecated components is not a good
> thing and does tarnish James's image.

James is stable, and I'd like to see it stay that way.  I don't see a
problem with relying on depreciated components when they are open source.
They work. They have a proven track record.  Sure, there wont be any
development, but they work stably as is.  If there's any urgent need to
change anything in them, they're open source!

On the other hand, I don't like avalon - never figured it out. I do like the
new wave of CDI containers using POJOs, because there really is very little
you need to know about how they work, containers, etc to use them.

I think this is definitely (and I don't think there are any arguments here)
the where the next major branch of james should be heading. (I think I would
put this before new features like IMAP, better virtual domains support, etc,
etc.)

Sadly I don't have much time to work on these things, at the moment I am
working on a new mailing list system for james.  When that is finished
(maybe I should say if...) I will give it to the project for possible
inclusion in james.

Daniel.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PostmasterAlias - silently added mailet - NOT good for virtual hosting

2005-03-18 Thread Daniel Perry
Over the last few days, I've received a couple of emails from some new
accounts on our server, and it's been baffling me.  All of the emails are
addressed to [EMAIL PROTECTED], but they keep coming to me!

After a bit of hunting, I found a mailet that would do this:
PostmasterAlias.

However, PostmasterAlias isnt in my config file - it's "silently inserted at
the top of the root * spool processor"

JamesSpoolManager.java (201-207):
if (processorName.equals("root")) {
Matcher matcher = matchLoader.getMatcher("All",
 mailetContext);
Mailet mailet =
mailetLoader.getMailet("PostmasterAlias",
   mailetContext,
null);
processor.add(matcher, mailet);
}

I can almost see the logic in having this as rfc822 mandates postmaster@
addresses be valid.

However, I would prefer it (as would anyone with multiple domains with
different postmaster accounts) if it was a default mailet in config.xml,
rather than hiding it in code, as in some cases it causes problems (see
above).

The alternative solution (in my case) is to add a forwarder to
virtualusertable with [EMAIL PROTECTED] getting mapped to the default 
postmaster.
This keeps it rfc compliant, but allows different postmasters for different
domains!

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java 1.5 Support (was RE: How to use James with ClamAV?)

2005-03-17 Thread Daniel Perry
I think 2.1 was the last (and therefore current) branch (not tag!)

On a side note, i've never quite sussed svn where did the nice cvs tags
go? (ie the ones for every release ever made)

Daniel.

> -Original Message-
> From: Gabor Kincses [mailto:[EMAIL PROTECTED]
> Sent: 17 March 2005 18:08
> To: James Users List
> Subject: Re: Java 1.5 Support (was RE: How to use James with ClamAV?)
>
>
> I'm lost.  2.1 is 2.2.1???  What's the numbering
> strategy?
>
> Thanks,
> Gabor
>
> --- Vincenzo Gianferrari Pini
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > [EMAIL PROTECTED] wrote:
> >
> > >>I am using the binary  james 2.2.1-rc1 with java
> > 1.5.0_01.  seems fine
> > >>
> > >>
> > >
> > >Where did you take james 2.2.1-rc1 ?
> > >I found subversion repository but I'm not sure that
> > "trunk" contains
> > >2.2.1-rc1: it seems older than my 2.2.0.
> > >
> > >
> > Here it is:
> >
> >
> https://svn.apache.org/repos/asf/james/server/branches/branch_2_1_fcs/
> >
> > Vincenzo
> >
> > >Stefano
> > >
> > >
> >
> >-
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
> Gabor Kincses
> Running Mandrake Linux 10.0
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Collating mail before send

2005-03-17 Thread Daniel Perry
As far as i know, there isnt a way to do this without some coding :)

It sounds fairly straight forward though (for a java programmer!):

When a mailet receives mail, it writes it to a defined store (torepository
mailet would be a starting point for code).

But, when the mailet inits, it creates a quartz timer that once a day
removes all mails from the store, puts them together, and mails them out to
a specified address.

Probably the hardest bit is merging the mails together - plain/text, + html
+ attachments + separators. nightmare!

Daniel.

> -Original Message-
> From: Andy Shaw [mailto:[EMAIL PROTECTED]
> Sent: 17 March 2005 15:12
> To: server-user@james.apache.org
> Subject: Collating mail before send
>
>
> Hi,
>
> Having completed a basic James install & config I'm looking to find a
> way of collating mail prior to sending it. I'd like to have one users
> mail collated into a single email over a 24 hour period and then mailed
> out at the end of the day and I've been told that James can do this.
>
> Unfortunately - I'm not a Java dev and looking at examples
> (http://www.ociweb.com/jnb/jnbDec2004.html) on writing agents I'm quick
> to realise this is not something I'm going to be able to do. I guess I'm
> hoping that my config isn't too complex and that James may be able to be
> configured to do this without getting too down and dirty with Java.
>
> If anyone could advise me on how to do this I'd be very grateful.
>
> Kind regards
> Andy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent: Spam Backdoor in James?

2005-03-17 Thread Daniel Perry
> Noel J. Bergman wrote:
> > Actually, the real core issue wasn't listed.  The normal RemoteDelivery
> > mailet was explicitly configured with ITS OWN address as the
> gateway.  Hence
>
> Is this something we'd want, or even could, prevent?

Personally i use this 'feature' in a test server - stops any mail getting
routed externally, and allows mail to get resent back into the system for
second time round processing.


>I would like to point out that James is a powerful tool which gives
>you great freedom and doesn't draw much distinction between possible
>and desirable. We're not nannies, here to protect people from
>themselves.

The biggest plus point for james for me, is that it's open source java -
when i dont like the way it does somthing / want to do somthing it doesnt
provide, i head straight for the source code! You wouldnt get me doing that
with a C mail server :)

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Slow data flow from James NNTP server, or what?

2005-03-17 Thread Daniel Perry
I believe this is being caused by a bug that I previously solved where if a 
message doesn't end with \r\n (some clients add this, some don't - rfc doesn't 
specify) james returns it terminating with .\r\n not \r\n.\r\n , so the client 
never realises it's then end of message!

see patch below which makes james handle this in a rfc compliant manner.

ps. noel, can you commit please :)

bug is: http://issues.apache.org/jira/browse/JAMES-311

Daniel.


--- NNTPHandler_orig.java
+++ NNTPHandler.java
@@ -1053,7 +1053,7 @@
 if (article != null) {
 writer.flush();
 article.writeBody(new ExtraDotOutputStream(outs));
-writeLoggedFlushedResponse(".");
+writeLoggedFlushedResponse("\r\n.");
 }
 }
 
@@ -1189,7 +1189,7 @@
 if (article != null) {
 writer.flush();
 article.writeArticle(new ExtraDotOutputStream(outs));
-writeLoggedFlushedResponse(".");
+writeLoggedFlushedResponse("\r\n.");
 }
 }



> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]
> Sent: 16 March 2005 19:54
> To: James Users List
> Subject: RE: Slow data flow from James NNTP server, or what?
> 
> 
> > We are newbie users of Apache James. We only want to use it as an
> > NNTP server. We've installed, configured and started it.
> 
> Fair warning.  I love JAMES, but the NNTP support is weak.  
> Functional, but weak and not as actively developed.  I'd like to 
> see that change.
> 
> > when we post an article and after when we select it from the list
> > to see the details we wait for minutes to see its _body_.
> 
> I don't recall seeing that, but try tuning the polling rate for 
> the NNTP private spool.  Did I mention that the code needs 
> further development?
> 
>   --- Noel
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Urgent: Spam Backdoor in James?

2005-03-14 Thread Daniel Perry
Can you send through one of the messages including all headers? Who are the
messages being sent to? who are they received from? You can look in the
james-home/apps/james/var/mail/outgoing folder and see the queued mails in
the *.FileStreamStore files.

Daniel.

> -Original Message-
> From: Colin W. Kingsbury [mailto:[EMAIL PROTECTED]
> Sent: 14 March 2005 14:27
> To: James Users List
> Subject: Re: Urgent: Spam Backdoor in James?
>
>
>
> Hello again, here's some more information:
>
> I have attached some relevant sections from the config.xml. Once
> again, the
> mail does not appear to be being relayed (I can see us junking
> relay-attempt
> mails no problem) but it actually appears to be (or is forged to have the
> appearance of) coming from the local host. If you read the headers, it has
> out address (often many times, as if in a mail loop).
>
> When we restarted the system last night with Sendmail, and elft it running
> for 30 minutes or so, the spam attempts did not appear again. Upon
> restarting James, it took no more than 30 minutes for the flood to resume,
> and likely much less. My reasoning is that if it was a bot
> looking only for
> SMTP, it would have happily used Sendmail. This is why I am
> suspicious about
> James, but of course I could be wrong. As for the mails that came when we
> started James in pop-only mode, I think the outgoing queue may have still
> had mail in it; is it possible that in that case James will
> continue to send
> the mail that's there?
>
> Below are some config snippets:
>
> 
>  file://var/mail/outgoing/ 
>  db://maildb/spool/outgoing 
> 
> 
>   
>10 
>   
>1 
>   true
>   
>   xxx.xxx.xxx.234
>   25
> 
>
>
> 
>   110
>   
>   xxx.xxx.xxx.234
>   12
>   
> 
>
> 
>   
>   25
>   
>   
>   
>   mail.xxx.com
>   36
>   
>   
>   xxx.xxx.xxx.234/29-->
>   
> 
> 
>
> -030-
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Message not displayed as HTML in listserv emails

2005-03-04 Thread Daniel Perry
A fix for this seems to be to add:
message.saveChanges();

immediately after both calls:
message.setContent(multipart);

in the service method of CommandListservFooter.

I'm not a javamail expert, but from the javadocs it looks like you should
call this whenever the message content is changed.

Could someone with commit privileges patch and commit :)

Daniel.

> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 04 March 2005 15:14
> To: James Users List
> Subject: RE: Message not displayed as HTML in listserv emails
>
>
> I've just been hit by this bug trying to set up mail servers which WILL be
> using html emails.
>
> Anyway, it seems that it is dropping the content-type headers:
>
> Content-Type: multipart/alternative;
>   boundary="=_NextPart_000_0022_01C520B7.E185E640"
>
> is in the original, but vanished in the list version. Then for each part,
> the content type has gone!
>
> There are two points that things can be going wrong - when the new mail is
> created, or when each part has it's content reset when the footer
> is added.
>
> Will report back if I find a fix :)
>
> Daniel.
>
>
> > -Original Message-
> > From: Daniel Smith [mailto:[EMAIL PROTECTED]
> > Sent: 23 May 2004 05:09
> > To: server-user@james.apache.org
> > Subject: Message not displayed as HTML in listserv emails
> >
> >
> > Let me start off by saying that this is my first email to the
> > list so I want
> > to say hello to all!
> >
> > Onto the issue at hand, I am using James 2.2.0RC4, but I also had
> > this issue
> > with RC3.  When sending a direct email of Content-Type text/html
> > everything
> > displays properly.  However, when sending an HTML email to a listserv
> > (handled by the CommandListservProcessor mailet) the subscribers
> > see all of
> > the following as the message:
> >
> > --=_NextPart_000_00E2_01C44057.CF9D9540
> >
> > hey
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > --=_NextPart_000_00E2_01C44057.CF9D9540
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  > size=7>hey  > />
> > -  > />To unsubscribe, e-mail:  > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]
> > t  > />For additional commands, e-mail:  > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]
> >
> > --=_NextPart_000_00E2_01C44057.CF9D9540--
> >
> > I even tried using a different email client (Outlook instead of Outlook
> > Express) to confirm it wasn't a settings issue.  Any ideas?
> >
> > -Daniel
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Message not displayed as HTML in listserv emails

2005-03-04 Thread Daniel Perry
I've just been hit by this bug trying to set up mail servers which WILL be
using html emails.

Anyway, it seems that it is dropping the content-type headers:

Content-Type: multipart/alternative;
boundary="=_NextPart_000_0022_01C520B7.E185E640"

is in the original, but vanished in the list version. Then for each part,
the content type has gone!

There are two points that things can be going wrong - when the new mail is
created, or when each part has it's content reset when the footer is added.

Will report back if I find a fix :)

Daniel.


> -Original Message-
> From: Daniel Smith [mailto:[EMAIL PROTECTED]
> Sent: 23 May 2004 05:09
> To: server-user@james.apache.org
> Subject: Message not displayed as HTML in listserv emails
>
>
> Let me start off by saying that this is my first email to the
> list so I want
> to say hello to all!
>
> Onto the issue at hand, I am using James 2.2.0RC4, but I also had
> this issue
> with RC3.  When sending a direct email of Content-Type text/html
> everything
> displays properly.  However, when sending an HTML email to a listserv
> (handled by the CommandListservProcessor mailet) the subscribers
> see all of
> the following as the message:
>
> --=_NextPart_000_00E2_01C44057.CF9D9540
>
> hey
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> --=_NextPart_000_00E2_01C44057.CF9D9540
>
> 
> 
> 
> 
> 
> 
> 
>  size=7>hey  />
> -  />To unsubscribe, e-mail:  href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]
> t  />For additional commands, e-mail:  href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]
>
> --=_NextPart_000_00E2_01C44057.CF9D9540--
>
> I even tried using a different email client (Outlook instead of Outlook
> Express) to confirm it wasn't a settings issue.  Any ideas?
>
> -Daniel
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HTML messages how to?

2005-03-04 Thread Daniel Perry
Not sure what you're trying to do (and I might have got totally the wrong
end of the stick!), but James is a mail server! sure you can create html
messages within a James mailet, or you can send html emails through it like
any other mail server but I think what your looking for is javamail, or
a wrapper like commons-email.

See: http://jakarta.apache.org/commons/email/examples.html

There is an html email example with an embedded image.

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 03 March 2005 22:02
> To: James Users List
> Subject: HTML messages how to?
>
>
>
>
>
>
> Hi everyone,
>
> I'd like to be able to create html messages (with embedded images) using
> James.  I.e., the html message should be created via code, not in Outlook
> etc.
> Any resources (sample code, etc) that you could point me at?
>
> Thanks
>
> Melroy
>
>
>
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Any workaround for virtual domains/users

2005-02-28 Thread Daniel Perry
Use a JDBCVirtualUserTable mailet. (or xml equivilent)

Set up users like tony%foo.com and tony%bar.com, and map the addresses to
these in the table.

Due to the migration of other companies mail services onto our server, i had
to modify james so that it would handle @ chars in pop/smtp usernames. i did
this by adding strategicly placed code to convert @ into ..at.. which worked
a treat.

Another problem you may have is that you have to define all the domains in
the servernames block.  I got round this with a bodge that uses the virtual
users table as well as the servernames in config.xml.

Daniel.

> -Original Message-
> From: Cuevas Tony [mailto:[EMAIL PROTECTED]
> Sent: 26 February 2005 03:11
> To: server-user@james.apache.org
> Subject: Any workaround for virtual domains/users
>
>
> Hi-
>
> I am trying to create a user with various aliases
> within a domain. But the same user may exist in
> another domain. For example,
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> Currently any mail to [EMAIL PROTECTED] would also be
> received from [EMAIL PROTECTED] The documentation specfies
> that you cannot use a fully qualified email address to
> define your user.
> How can I define 2 tony users with different domains
> w/o running james smtp on diff ports?
>
> Thanks in advance,
>
> tony
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javax.mail.AuthenticationFailedException

2005-02-22 Thread Daniel Perry
Have you set up any pop3 users for james?

See: http://james.apache.org/adding_users_2_1.html

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 22 February 2005 05:18
> To: server-user@james.apache.org
> Subject: javax.mail.AuthenticationFailedException
>
>
> Hello All,
> We have an IAS SNTP server running on our machine. We want to configure a
> POP3 server on the same. After configuring all the required
> parameters for
>
>
> the POP3 server. When we try to run the a java class just to connect to
> the server we get the following error:
>
>
> javax.mail.AuthenticationFailedException: Authentication failed.
> at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:118)
> at javax.mail.Service.connect(Service.java:233)
> at javax.mail.Service.connect(Service.java:134)
> at TestMailSeverConnection.main(TestMailSeverConnection.java:45)
>
>
> Any help will be highly appreciated.
>
> \\|///
> (  @ @  )
> +oOOo-(_)-oOOo---+
> |
> |   Regards & Thanks
> | Alok Garg
> |
> |   # +91-22-56544534
> |
> |
> +-Oooo---+
>   oooO   (   )
>  (   )) /
>   \ ((_/
>\_)
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



returned mail headers - open relay???

2005-02-18 Thread Daniel Perry
I often receive returned messages that have been sent with from addresses at
our mail severs.  I received one such message today from aol, with an
attachement, which from what i can work out are the headers of the origional
message:

The message starts:
The original message was received at Fri, 18 Feb 2005 11:21:33 -0500 (EST)
from p4-.uk2net.com [213.232.XX.XX]
...

Headers:
returned headers:
Received: from  p4-.uk2net.com (p4-.uk2net.com [213.232.XX.XX]) by
rly-xi01.mx.aol.com (v104.18) with ESMTP id MAILRELAYINXI17-4c14216160119c;
Fri, 18 Feb 2005 11:21:22 -0500
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 18 Feb 2005 16:25:24 + (GMT)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Premier adult site! HOT SE.X !
In-Reply-To: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed;
 boundary="=_Part_222_28472465.1108743924410"
X-AOL-IP: 213.232.93.83
X-AOL-SCOLL-SCORE: 0:0:0:
X-AOL-SCOLL-URL_COUNT: 0

I am a little worried as received from header seems to suggest that the mail
was received by AOL from our server! hostname/ip both match, however the
hostname is not the helo name of our server.

I have tried relaying through our server without using authentication, and
it gives back a 530 error.

Any ideas?

Is there some clever way of faking these headers so that aol thinks it is
coming from our server?  I can understand the hostname, but not the ip.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: queue analysis

2005-02-18 Thread Daniel Perry
Yeah, that should work for allowing people on those ips to relay, and send
mails that are forwarded to gmail. However, any mail coming from any other
ip would not get forwarded as it would be not in those ip ranges. ie. if i
sent an email to [EMAIL PROTECTED] via my smtp server it would get
blocked.

I would that you use authorisation, but set 172.16.*.* as an authorised
address, and remove that mailet. That way:
- anyone can send email to local addresses
- anyone can send email to local addresses that get forwarded
- anyone on 172.16.* can use it as an smtp relay without any authorisation
- anyone outside that ip range trying to relay mail will be forced to
authorise themselves.

Daniel.

> -Original Message-
> From: Jason Clark [mailto:[EMAIL PROTECTED]
> Sent: 18 February 2005 14:09
> To: Daniel Perry
> Cc: James Users List
> Subject: Re: queue analysis
>
>
> I don't really want a 'totally open relay', but I would like to
> authorize a few hosts to use it as an smtp server ( similar to the way
> you add an entry in the access file in sendmail )
>
> I thought that :
>
>  class="ToProcessor">
>  relay-denied 
> 550 - Requested action not taken: relaying denied
> 
>
> would allow this to happen.
>
> cheers,
> jason.
>
>
> On Fri, 18 Feb 2005 11:08:40 -, Daniel Perry
> <[EMAIL PROTECTED]> wrote:
> > No idea about mail analysis tools, but i think your problem is
> as follows:
> >
> > Mail comes in to: [EMAIL PROTECTED]
> > Gets changed to: [EMAIL PROTECTED] by your forwarder.
> >
> > Gets caught by: (assuming you have it enables)
> >
> > 
> >  relay-denied 
> > 550 - Requested action not taken: relaying denied
> > 
> >
> > This mailet is there so that any mail put into the system that
> is not for
> > local delivery, and was not put there by localhost will be
> denied relaying.
> > (Note, open relay very very bad!)
> >
> > If you have smtp authentication enabled, then you can safely
> comment out the
> > above, as any mail not for the local machine will have to be
> authorised when
> > it enters james.
> >
> > Daniel.
> >
> >
> > > -Original Message-
> > > From: Jason Clark [mailto:[EMAIL PROTECTED]
> > > Sent: 17 February 2005 19:56
> > > To: server-user@james.apache.org
> > > Subject: queue analysis
> > >
> > >
> > > Are there any good queue analysis tools I can use to view the status
> > > of my mail queues?
> > >
> > > in postfix the mailq command give some useful information.
> > >
> > > I'm asking because I have a rule setup to:
> > >
> > > 
> > >[EMAIL PROTECTED]
> > > 
> > >
> > >
> > > I have this setup immeadiatley after : 
> > >
> > >
> > > there's no mention in the log that the mail was forwarded to
> > > [EMAIL PROTECTED], but if I look in the /var/mail/relay-denied, I look
> > > in the file .Repository.FileObjectStore and find the
> > > [EMAIL PROTECTED] address.
> > >
> > > Any ideas why that would be?  If I could at least get a bit more
> > > information out of the system, at the current time, I don't even have
> > > anything in my logs.
> > >
> > > Cheers,
> > > jason.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: queue analysis

2005-02-18 Thread Daniel Perry
No idea about mail analysis tools, but i think your problem is as follows:

Mail comes in to: [EMAIL PROTECTED]
Gets changed to: [EMAIL PROTECTED] by your forwarder.

Gets caught by: (assuming you have it enables)


 relay-denied 
550 - Requested action not taken: relaying denied


This mailet is there so that any mail put into the system that is not for
local delivery, and was not put there by localhost will be denied relaying.
(Note, open relay very very bad!)

If you have smtp authentication enabled, then you can safely comment out the
above, as any mail not for the local machine will have to be authorised when
it enters james.

Daniel.


> -Original Message-
> From: Jason Clark [mailto:[EMAIL PROTECTED]
> Sent: 17 February 2005 19:56
> To: server-user@james.apache.org
> Subject: queue analysis
>
>
> Are there any good queue analysis tools I can use to view the status
> of my mail queues?
>
> in postfix the mailq command give some useful information.
>
> I'm asking because I have a rule setup to:
>
> 
>[EMAIL PROTECTED]
> 
>
>
> I have this setup immeadiatley after : 
>
>
> there's no mention in the log that the mail was forwarded to
> [EMAIL PROTECTED], but if I look in the /var/mail/relay-denied, I look
> in the file .Repository.FileObjectStore and find the
> [EMAIL PROTECTED] address.
>
> Any ideas why that would be?  If I could at least get a bit more
> information out of the system, at the current time, I don't even have
> anything in my logs.
>
> Cheers,
> jason.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: POP3 Server Access

2005-02-15 Thread Daniel Perry
iptables firewall took me a while to find it on one of our leased FC1
servers no GUI :)

For reference, FC stores the firewall config in:/etc/sysconfig/iptables
The gui is great for tick box to enable mail/ftp/httpd etc... but no good if
you need to add extra rules (like port forwarding 443 to 25 so that people
on crapy free dial-up can use our mail servers :) If you need to add rules
for extra services, just copy and paste an existing one!

Odly on our FC2 server, the firewall is controlled by a script in
/etc/rc.d/rc.firewall - but i think this may have been somthing the hosting
company set up after installing fc2.

Daniel.


> -Original Message-
> From: Bud Bach [mailto:[EMAIL PROTECTED]
> Sent: 15 February 2005 16:06
> To: 'James Users List'
> Subject: RE: POP3 Server Access
>
>
> Just one final follow up in case someone else comes across this,
> the Fedora
> has a "Security Level" application under "System Services" that makes it
> easy to allow connections to tcp:110 (add under other).  There
> are probably
> more manly ways of doing this with "iptables" from the command line but it
> seemed to work for me.  If you uncommented your   section in
> your config.xml, you would probably need to comment it out again.
>
> Thanks again.  -- Bud
>
> > -Original Message-
> > From: Bud Bach [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 15, 2005 9:42 AM
> > To: 'James Users List'
> > Subject: RE: POP3 Server Access
> >
> > Daniel is right.  It looks like the system is using iptables.  Now to
> > figure
> > out that piece of software.  It's never ending!
> >
> > Thanks Broc and Daniel!
> >
> > -- Bud
> >
> >
> >
> > > -Original Message-
> > > From: Daniel Perry [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, February 15, 2005 4:27 AM
> > > To: James Users List
> > > Subject: RE: POP3 Server Access
> > >
> > > FC2 uses iptables by default (i think)
> > >
> > > Try: service iptables stop
> > >
> > > Daniel.
> > >
> > > > -Original Message-
> > > > From: Seib, Broc [mailto:[EMAIL PROTECTED]
> > > > Sent: 15 February 2005 04:03
> > > > To: James Users List
> > > > Subject: RE: POP3 Server Access
> > > >
> > > >
> > > > Comments inline...
> > > >
> > > > > -Original Message-
> > > > > From: Bud Bach [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, February 14, 2005 5:24 PM
> > > > > To: 'James Users List'
> > > > > Subject: RE: POP3 Server Access
> > > > >
> > > > >
> > > > > Broc, I think you are right.  This is what I'm seeing:
> > > > >
> > > > > % netstat -an | more
> > > > > Active Internet connections (servers and established)
> > > > > Proto Recv-Q Send-Q Local Address   Foreign Address
> > > > >   State
> > > > > tcp0  0 :::110  :::*
> > > > >   LISTEN
> > > >
> > > > This says there is a socket listening on port 110 on *all*
> interfaces
> > > > (including 192.168.1.50), which is fine. (This netstat output looks
> > like
> > > > IP6 address format; I'm used to seeing the style "*:110" rather than
> > > > ":::110" for local address.)
> > > >
> > > > This also makes sense since it is the default in the config file to
> > bind
> > > > to all interfaces. It confirms you *should* be able to connect from
> > > > anywhere. I think this alone suggests that your server is
> running fine
> > > > and that something else is preventing the connection.
> > > >
> > > > > I'm not sure how to interpret this.  I'm guessing the POP
> > > > > server is not properly bound.  Do I just uncomment the 
> > > > >  block and add the ip address of the server?  The docs
> > > > > say that if the parameter is omitted, the service will be
> > > > > bound to all network interfaces on the machine.  Is this
> > > > > broken under Fedora (FC2) or has the behavior changed?
> > > > >
> > > > > I tried binding it to the address the server with:
> > > > >
> > > > > 192.168.1.50
> > > > >
> > > > > but it still doesn't quite seem to work.

RE: POP3 Server Access

2005-02-15 Thread Daniel Perry
FC2 uses iptables by default (i think)

Try: service iptables stop

Daniel.

> -Original Message-
> From: Seib, Broc [mailto:[EMAIL PROTECTED]
> Sent: 15 February 2005 04:03
> To: James Users List
> Subject: RE: POP3 Server Access
> 
> 
> Comments inline...
> 
> > -Original Message-
> > From: Bud Bach [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, February 14, 2005 5:24 PM
> > To: 'James Users List'
> > Subject: RE: POP3 Server Access
> > 
> > 
> > Broc, I think you are right.  This is what I'm seeing:
> > 
> > % netstat -an | more
> > Active Internet connections (servers and established)
> > Proto Recv-Q Send-Q Local Address   Foreign Address   
> >   State
> > tcp0  0 :::110  :::*  
> >   LISTEN
> 
> This says there is a socket listening on port 110 on *all* interfaces
> (including 192.168.1.50), which is fine. (This netstat output looks like
> IP6 address format; I'm used to seeing the style "*:110" rather than
> ":::110" for local address.)
> 
> This also makes sense since it is the default in the config file to bind
> to all interfaces. It confirms you *should* be able to connect from
> anywhere. I think this alone suggests that your server is running fine
> and that something else is preventing the connection.
> 
> > I'm not sure how to interpret this.  I'm guessing the POP 
> > server is not properly bound.  Do I just uncomment the  
> >  block and add the ip address of the server?  The docs 
> > say that if the parameter is omitted, the service will be 
> > bound to all network interfaces on the machine.  Is this 
> > broken under Fedora (FC2) or has the behavior changed?
> > 
> > I tried binding it to the address the server with:
> > 
> > 192.168.1.50
> > 
> > but it still doesn't quite seem to work.  Netstat shows:
> > 
> > tcp0  0 :::192.168.1.50:110  :::* 
> >LISTEN
> 
> You did the bind config correct here, if you want to explicitly bind to
> just one address rather than all. It also means the server is no longer
> bound to 127.0.0.1, so when you said telnet to localhost stopped
> working, that looks correct.
> 
> > In this case, I can connect from a remote system but the 
> > server doesn't spit out the banner.  Also on the local 
> > machine, I can no longer telnet to "localhost 110", I have to 
> > use the specific ip address.  
> 
> I am puzzled why it would behave differently based on your 
> config. The netstat output proved it was listening correctly in both
> cases, so your external connection to 192.168.1.50 should behave the
> same in both cases. I'd guess this is not a problem with your server
> config.
> 
> Q1: does Fedora Core 2 use 'ipf', 'ipfw', or 'ipchains', or any other
> kernel level firewall? I am not very familiar with FC2, but this would
> be the next place I'd look.
> 
> Q2: Where is the other host from which you are externally connecting? Is
> it also on the same 192.168.1.x subnet, on your own private LAN? Or is
> it coming from a real internet location via a broadband connection or
> something?
> 
> -broc
> 
> > 
> > Can you provide anymore pointers that might get me going?  Thanks. 
> > 
> > -- Bud
> > 
> > > -Original Message-
> > > From: Seib, Broc [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, February 14, 2005 12:19 PM
> > > To: James Users List
> > > Subject: RE: POP3 Server Access
> > > 
> > > I'd first check that the server is bound to the correct 
> > address while 
> > > it is running, i.e. the command "netstat -an" should show  
> > > xx.xx.xx.xx:110 where xx.xx.xx.xx is an IP address reachable by the 
> > > world.
> > > 
> > > -broc
> > > 
> > > 
> > > > -Original Message-
> > > > From: Bud Bach [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, February 14, 2005 1:00 PM
> > > > To: server-user@james.apache.org
> > > > Subject: POP3 Server Access
> > > >
> > > >
> > > > I know this is probably something stupid but here goes.  I have 
> > > > James running and the POP3 server is configured (see below).
> > > >
> > > >
> > > >
> > > > On the local host, I can telnet to port 110 and I get the 
> > James POP3 
> > > > banner. From any other machine, I can't connect. No 
> > firewalls in the 
> > > > way.  What am I missing?  Is there an "allow" list I need 
> > to add to 
> > > > allow remote access?
> > > >
> > > >
> > > >
> > > > Thanks for any assistance.  - Bud
> > > >
> > > >
> > > >
> > > > config.xml:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > 
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > >   
> > > >
> > > >   
> > > >
> > > >   110
> > > >
> > > >
> > > >
> > > >   
> > > >
> > > >   
> > > >
> > > >   
> > > >
> > > >   
> > > >
> > > >
> > > >
> > > >   
> > > >
> > > >  
> > > >
> > > >  
> > > >
> > > >  
> > > >
> > > >  
> > > >
> > > >  
> > > >
> > > >  myMailServer
> > > >
> > > >  12
> > > >
> > 

RE: Decoding user passwords

2005-01-14 Thread Daniel Perry
Not using SHA or MD5 as these are one-way hashes - ie you cant get the
origional password from the hash.

I'm not sure if james will use a symetric encryption algorithm for password
storage.

So i believe the answer to your question is no.

I use a custom web app to manage username/passwords in a mysql database, and
i have added an extra column with the unencrypted password.

Daniel.

> -Original Message-
> From: Hartmann, Jan [mailto:[EMAIL PROTECTED]
> Sent: 14 January 2005 14:45
> To: 'server-user@james.apache.org'
> Subject: Decoding user passwords
>
>
> As there is the DigestUtil class, which I can use to encode passwords for
> writing them coded into the database, is there any class within James to
> decode those passwords?
>
> Greetz, Jan
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Email Auto responder

2005-01-07 Thread Daniel Perry
I think the best way to deal with this is to keep a list of all addresses
that a response has been sent to, and only response once to each address for
each 'out of office' note.

Shouldnt be too hard to write a mailet to do all of this, with some web
management feature.

Daniel.

> -Original Message-
> From: Andrew Munn [mailto:[EMAIL PROTECTED]
> Sent: 07 January 2005 14:25
> To: 'James Users List'
> Subject: RE: Email Auto responder
>
>
> Hmm..Is there a master list maintained of email addresses used to post to
> list-servs?  If such a list does not exist, how can an autoresponder know
> for certain that it isn't posting to a list?  And if such a list
> did exist,
> how could you keep it from being a list of spam targets?
>
> -Andrew
>
> -Original Message-
> From: Stephen Goodey [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 07, 2005 5:25 AM
> To: James Users List
> Subject: Email Auto responder
>
> Our office has been using James for almost a year now with very little
> problems.  One thing that has cropped up lately though is the need for
> some sort of automated response that can be sent to people in the event
> that a particular person is on holiday at the time.  I would like to
> avoid using the actual email client, since that would require the users
> PC to be left on while they are away.
>
> Does anyone know of any system, perhaps web based, that can be
> configured by the user to send an automated message back of their
> choosing.  I also realise that this should ideally not reply to
> distribution lists.
>
> Please can I have a few recommendations, there must be something
> out there.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RE : i need help urgently

2004-12-22 Thread Daniel Perry
Yup.

I set up a failover server (failover only - no local accounts):

1. set up servernames
2. set up authorization for non-local names
3. for all 'non-local' emails, relay them

You can set a matcher to match emails for a server, and relay them using
that server as a relay.  I just use the above and rely on MX records.

Daniel.

> -Original Message-
> From: Michael Motet [mailto:[EMAIL PROTECTED]
> Sent: 22 December 2004 19:45
> To: James Users List
> Subject: Re: RE : i need help urgently
>
>
> This worries me a little bit if using database connection is unstable!?.
> We intend to make use of James Mailserver connected to an MS SQL Server.
> (already running).
> But the system must be able to hold more than 20 mail users.
> We hope we have done the right choice by installing the James Mail Server.
> Btw has anyone installed a functional failover mailserver using James
> Mail Server ?
>
> -Michael
>
> Nathan Cheng wrote:
>
> > Diego,
> >
> > That was it. We ran the JVM in debug mode and discovered that most of
> > its threads were deadlocking in "mordred" classes.
> >
> > Mordred is aptly named. Good riddance. It should be not only
> > deprecated, but completely removed from the James code base. We would
> > much rather have discovered this while upgrading and configuring 2.2
> > rather than getting killed by a time bomb two months later. This has
> > cost us dearly.
> >
> > Thanks to all for the help.
> >
> > Nathan
> >
> > Diego Castillo wrote:
> >
> >> Hello Nathan,
> >>
> >> You seem to have run out of JDBC connections. I have
> experienced similar
> >> problems when my JDBC connections expire. James does not restart them
> >> and it simply hangs after a while.
> >>
> >> This is what I would do:
> >>   1. Restart your server.
> >>   2. Defragment your MySQL queues periodically via crontab:
> >> 0 * * * * /usr/local/mysql/bin/mysql -uXXX -pXXX -Dmail -e"OPTIMIZE
> >> TABLE spool"
> >>   3. Replace Mordred by DBCP:
> >> org.apache.james.util.mordred.JdbcDataSource
> >>
> >> Hope this helps,
> >>
> >>
> >> Diego
> >>
> >> -Message d'origine-
> >> De : Nathan Cheng [mailto:[EMAIL PROTECTED] Envoyé : mardi 21
> >> décembre 2004 02:32
> >> À : James Users List
> >> Objet : Re: i need help urgently
> >>
> >> It all started with this error in the spoolmanager log:
> >>
> >> 17/12/04 14:02:06 ERROR spoolmanager: Exception in processor
> 
> >> javax.mail.MessagingException: Exception caught while storing mail
> >> Container: java.io.IOException: java.sql.SQLException: Giving up...
> >> no connections available.
> >>  at
> >>
> org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailReposit
> >> ory.java:764)
> >>  at
> >>
> org.apache.james.mailrepository.JDBCSpoolRepository.store(JDBCSpoolRepos
> >> itory.java:238)
> >>  at
> >>
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:
> >> 438)
> >>  at
> >>
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.j
> >> ava:451)
> >>  at
> >>
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:
> >> 360)
> >>  at java.lang.Thread.run(Thread.java:534)
> >> 17/12/04 14:02:06 ERROR spoolmanager: An error occurred processing
> >> Mail1103309206722-118542 through transport
> >> 17/12/04 14:02:06 ERROR spoolmanager: Result was ghost
> >>
> >> No connections available, eh? What is wrong with these settings:
> >>
> >> ...
> >>
> >>   >> class="org.apache.james.util.mordred.JdbcDataSource">
> >>  org.gjt.mm.mysql.Driver
> >>
> >> jdbc:mysql://newco-prod-db/mail?autoReconnect=true
> >>  xxx
> >>  xxx
> >>  100
> >>  
> >>   >> class="org.apache.james.util.mordred.JdbcDataSource">
> >>  org.gjt.mm.mysql.Driver
> >>
> >> jdbc:mysql://newco-prod-db/newco?autoReconnect=true
> >>  xxx
> >>  xxx
> >>  100
> >>  
> >>
> >> ...
> >>
> >> 
> >>30
> >>100
> >> 
> >>
> >> ...
> >>
> >> 
> >>
> >>   default
> >>   8
> >>   false
> >>   100
> >>   20
> >>   20
> >>
> >> 
> >>
> >> And here is this:
> >>
> >> mysql> select count(*), message_state from spool group by
> message_state;
> >> +--+---+
> >> | count(*) | message_state |
> >> +--+---+
> >> |   41 | error |
> >> | 5903 | root  |
> >> |   99 | spam  |
> >> |   32 | transport |
> >> +--+---+
> >> 4 rows in set (0.55 sec)
> >>
> >> ... 2 minutes pass 
> >>
> >> mysql> select count(*), message_state from spool group by
> message_state;
> >> +--+---+
> >> | count(*) | message_state |
> >> +--+---+
> >> |   41 | error |
> >> | 5903 | root  |
> 

RE: CVS stand does not compile !

2004-12-14 Thread Daniel Perry
I believe james has moved to subversion (svn.apache.org).

Also, what tag are you downloading? I think HEAD is for the next-gen james
server! Use branch_2_1_fcs as thats the branch for a usable james server. Or
build_2_2_0_fcs for the most recent release.

Daniel.

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Ahmed Mohombe
> Sent: 14 December 2004 15:47
> To: [EMAIL PROTECTED]
> Subject: CVS stand does not compile !
>
>
> Hi,
>
> If one checks JAMES fresh from CVS and tries to run ant on it will
> receive a lot of compiler errors and the build process will fail.
>
> I saw that the last modifications on files in CVS (on sources/libs) were
> taken a long time ago (more than two months).
> Is this normal for an Apache project not to be compile ready for such a
> long time ?
>
> All other Apache projects I've tried so for (and non Apache OS projects
> too) had compile problems for mostly a few days (or not at all).
>
> Thanks in advance,
>
> Ahmed.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: A lot of links in documentation and Wiki do not work anymore!

2004-12-13 Thread Daniel Perry
Well, i have no idea about whats happening with regards to avalon, etc.  I
think i recall something about james ditching it for the next major release.
But i suspect the next major release of james is a very long way off!

James isnt one of the most actively developed apache projects.  It has a
fairly niche market.  It's also quite (note in my experience VERY) stable,
and the the standards it supports also havnt changed that much in the last
decade!  For this reason james seems to only really get bug fixes/minor
enhancements.  I'm not saying its perfect. IMAP/virtual hosting being my
gripes :)

I certainly dont think james will be dropped anytime soon, as a lot of the
people using it support/develop it when necessary.

Daniel.

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Ahmed Mohombe
> Sent: 13 December 2004 17:21
> To: [EMAIL PROTECTED]
> Subject: A lot of links in documentation and Wiki do not work anymore!
>
>
> Hi,
>
> All the links related to Avalon and Phoenix return to the same page that
>   "Avalon has been stopped".
> Under these conditions for a new user is very hard to understand how
> things work in James.
> Some of the other links that point to messages in mail archives do not
> work either (IMHO for links in mail archives, "an inline" of the message
> would be much simpler and better). This problems persists however thru'
> all Apache projects.
>
> A lot of new users ask them selfs if they should stick with JAMES or it
> will be abandoned too.
>
> IMHO you should post a clear statement on the Apache site, about JAMES
> position related to Avalon (now that it's abandoned).
>
> Thanks in advance,
>
> Ahmed.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: A lot of links in documentation and Wiki do not work anymore!

2004-12-13 Thread Daniel Perry
One thing to note is that just because avalon is gone, doesnt mean you cant
continue to use it/modify it for your own use. One of the many many benefits
of open source software!

Also, it looks to me like its just been split into several projects.  Loom
seems to be a direct replacement for phoenix!

Daniel.

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Ahmed Mohombe
> Sent: 13 December 2004 17:32
> To: [EMAIL PROTECTED]
> Subject: Re: A lot of links in documentation and Wiki do not work
> anymore!
>
>
> > James will not be abandoned.  It's an entirely different situation.
> Glad to hear that. It would be really bad if the only real Java mail
> server would be abandoned too.
>
> > We don't have one yet.  It's a non-trivial change to replace
> your entire
> > backend, so we're still discussing how exactly we'll be moving forward.
> What I mean is just a simple message, on the first page with bold :).
> (e.g. here: http://james.apache.org/  in the News block, or in "What is
> It?" block, after "James is based upon the Apache Avalon..." with bold.
> This would be just to calm the "users"  :), till a definitive solution
> is found .
>
> Ahmed.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: vhosts question

2004-12-13 Thread Daniel Perry
Take a look at the faq:
http://james.apache.org/FAQ.html#7

It explains the virtual user table.  This allows you to have users on lots
of different domians (including the same username on multiple domains).

Basically...
1. set up james in general
2. set up that table
3. set up that mailet
4. insert users into that table as well as the user table (if using database
for normal user table)

James by default can handle mail for different domains, but james only uses
the username to determine the mail account:
ie [EMAIL PROTECTED] and [EMAIL PROTECTED] both go to bob.

VirtualUserTable can be used to map [EMAIL PROTECTED] to bob.domain1.com and
[EMAIL PROTECTED] to bob.domain2.com - two different usernames.

There is no equivilent to apache httpd virtualhost configuration, as that
relies on the http 'Host' header, and there is no equivilent in SMTP.

The only real problem i came accross with virtual hosting with james, is
that to add a new domain, you need to add a new hostname to the config.xml
file and restart james.  I wrote some code that alters james's behaviour to
consider anything in the domain column of VirtualUserTable as local.

Give it a go, and post back any specific questions you have.

Daniel.


> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Ahmed Mohombe
> Sent: 13 December 2004 16:54
> To: [EMAIL PROTECTED]
> Subject: Re: vhosts question
>
>
> >
> > See the VirtualUserTable mailets.
> Thanks for the hint.
> I see it but I do not understand, cause I see not "REAL" example how to
> configure the thing :( . I read all the docs available  for JAMES and
> the entire WIKI but I'm not a bit smarter about how to do it :( .
>
> Thanks in advance,
>
> Ahmed.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Is it possible to access the james server using the web browser?

2004-11-22 Thread Daniel Perry



Appologies for not replying sooner - had a long weekend 
:)
Imp is 
part of horde (i've never tried any of the other apps):
http://www.horde.org/imp/
 
If you 
have any probs getting it working, drop me an email and i can take a look at my 
config.
 
The 
following is a guide to getting it working (not james specific).  I had a 
few probs - mainly that james 2.1.3 demanded authorisation for sending mail and 
imp wont use the current login for smtp - you have to specify a user/password in 
the config.  But 2.2.0 can allow all mail from localhost, so that would be 
simpler!
 

http://www.totkat.org/pages/install-horde.shtml
 
One 
issue - find the default options and set it so that when it deletes it proper 
deletes, not 'move to trash' which doesnt work on pop3!!! (also make sure you 
create the options table in the db aswell)
 
Daniel.
 

  -Original Message-From: David Lee 
  [mailto:[EMAIL PROTECTED]Sent: 18 November 2004 19:44To: 
  James Users ListSubject: RE: Is it possible to access the james 
  server using the web browser?
  Yes, I mean web access. Can you give me a hint as where I 
  can get the imp webmail. Basically I'm trying to find a webmail client that I 
  can set up to pop or smtp using
  james.  
   
  Thanks for the comment!
   
  David
  
  
  From: Daniel Perry 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 
  2:23 AMTo: James Users ListSubject: RE: Is it possible 
  to access the james server using the web browser?
  
  eh? 
  what exactly do you mean 'web enable'. do you mean web access to 
  emails?
   
  I've 
  set up imp webmail.  The only disapointment is that AFAIK james doesnt 
  have a usable imap implementation, so you can only read/write/delete messages 
  through pop, and dont have facilities such as 'sent mail', or folders, 
  etc.
   
  It's 
  pretty straight forward to set up.  One issue i remember is that you 
  should set up the default user preferences to properly delete mail, not move 
  to deleted items - as that obviously doesnt work with pop3, and it saves 
  clients having to find the option.
   
  When 
  i get a chance i will experiement with integrating james and dbmail (as a 
  stand in until james gets imap).
   
  Daniel.
   
  
-Original Message-From: David Lee 
[mailto:[EMAIL PROTECTED]Sent: 17 November 2004 18:27To: 
[EMAIL PROTECTED]Subject: Is it possible to access the 
james server using the web browser?
I'm just curious 
how to web enable the james server?
 
David


RE: Is it possible to access the james server using the web browser?

2004-11-18 Thread Daniel Perry



eh? 
what exactly do you mean 'web enable'. do you mean web access to 
emails?
 
I've 
set up imp webmail.  The only disapointment is that AFAIK james doesnt have 
a usable imap implementation, so you can only read/write/delete messages through 
pop, and dont have facilities such as 'sent mail', or folders, 
etc.
 
It's 
pretty straight forward to set up.  One issue i remember is that you should 
set up the default user preferences to properly delete mail, not move to deleted 
items - as that obviously doesnt work with pop3, and it saves clients having to 
find the option.
 
When i 
get a chance i will experiement with integrating james and dbmail (as a stand in 
until james gets imap).
 
Daniel.
 

  -Original Message-From: David Lee 
  [mailto:[EMAIL PROTECTED]Sent: 17 November 2004 18:27To: 
  [EMAIL PROTECTED]Subject: Is it possible to access the 
  james server using the web browser?
  I'm just curious 
  how to web enable the james server?
   
  David


RE: [junk] James in Production

2004-11-17 Thread Daniel Perry



I've 
got james in production on two servers. (one version 2.1.3 one version 
2.2.0)
 
The 
2.1.3 server has been running since march (8 months without 
reboot/restarting james) and i have had 0 problems.  The 2.2.0 server 
has been running since 2.2.0 was realeased and i've had 0 
problems.
 
It's 
not handling a particularly heavy load - although thinking about it i havnt ever 
considered the new servers load.  So for stability/reliability i'd say it's 
very good.  A while ago i was looking at setting up the two servers to act 
as failover for eachother, but never got round to it... and to be honest dont 
see the point as they've got good network/power connectivity and 
have never gone down anyway!
 
Daniel.
 

  -Original Message-From: Boon Seong 
  [mailto:[EMAIL PROTECTED]Sent: 17 November 2004 
  15:57To: [EMAIL PROTECTED]Subject: [junk] 
  James in Production
  Hi,
   
  Has anyone used James in production environment ? 
  Any sample to quote ?
  How's it reliability and stability ?
   
   
  Regards,
   
  Boon Seong


RE: Local DNS

2004-11-16 Thread Daniel Perry
> Yes this is all true. It can find other domains as long as I have
> visited them
> once already (eg with browser) so that they are cached.
>

It shouldnt matter how you trigger the lookup - james and a web browser use
the same method.

>
> It is a simple all in one ADSL router.  It seems that it does not
> function as a
> "proper" DNS server.  But as I don't know about DNS I have no
> idea what the
> difference is!

It should work.  It will probably do the lookup using your isp's dns server
that is provided to it through the dhcp client.

The only difference between what james does and what a web browser does is
the type of question.  A web browser will do an 'A' lookup for a domain.
James will to an 'MX' lookup for a domain, and then do 'A' lookups for the
results.  I would be suprised if your router didnt support 'MX' lookups.

Can you send mail through the server to a different domain (or in fact any
domain)?  If so the router must be resolving names properly.  Have you tried
doing a lookup using your isp's nameserver?

Daniel.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Relaying Denied Error with JavaMail

2004-11-16 Thread Daniel Perry
This works for me - I have a similar setup.

However i am not using james' forwardingDestination user field.

I'm not sure how this forwarding works:  I dont know if james accepts mail
based on the initial hostname, or based on the forwardingDestination
hostname.

I am using a VirtualUserTable which can forward emails.  Emails come into
the system for [EMAIL PROTECTED] and get entered into the mail processor as
[EMAIL PROTECTED] - so as long as mydomain.com is in the hostnames block it
works.  They then go through the processor, and get changed to the forward
address.

Daniel.

> -Original Message-
> From: Ricardo Cortes [mailto:[EMAIL PROTECTED]
> Sent: 15 November 2004 21:05
> To: James Users List
> Subject: RE: Relaying Denied Error with JavaMail
>
>
> What I'm actually trying to do is the following:
>
> 1.  Have all user information registered in MySQL, including a
> forward email address.
>
> 2.  When an email is sent via JavaMail to James, I'd like James
> to look up the user in the MySQL database and then forward the
> message to the email address it finds in the MySQL database (the
> email is arbitrary - yahoo.com, gmail.com, hotmail.com, you name
> it).  Thus, the message is never stored in James, only forwarded.
>
> 3.  Eventually, I'd like to persist a few fields from the message
> to the MySQL database via a Mailet but I'd like to get 1. and 2.
> working first.
>
> Anyone know if this configuration is possible?
>
> -Original Message-
> From: Hes Siemelink [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 15, 2004 4:14 AM
> To: James Users List
> Subject: RE: Relaying Denied Error with JavaMail
>
>
> As I understand it, you are trying to relay a message to yahoo.com
> through James on your local machine. This is not permitted by default,
> because that would make James an "open relay" and  very vulnerable for
> spam.
>
> You can tell James that it should accept mail from certain hosts for
> relaying in the config file.
>
> Open the config.xml and search for the following (it's in the smtpserver
> section):
>
>  
>  127.0.0.1, localhost
>
> I think you want to add 10.70.14.101 here.
>
> Good luck
>
>   Hes.
>
> -Original Message-
> From: Ricardo Cortes [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 12, 2004 18:22
> To: James Users List
> Subject: Relaying Denied Error with JavaMail
>
> Hi there,
>
> I finally got James up and running and I'm trying to test it out using
> the JavaMail client from the IBM James article.  I currently have James
> setup to get the user information from a MySQL database.  I went ahead
> and inserted one record in this table.  Here are the values:
>
> username:  test
> pwdHash:  null
> pwdAlgorithm:  null
> useForwarding:  1
> forwardingDestination:  [EMAIL PROTECTED]
> usealias:  null
> alias:  null
>
> I know that my JavaMail client is connecting to the server ok because
> when James isn't running I get an error connecting to port 25.  That's
> cool.  However, when I try to connect with the James server started via
> JavaMail, I get the error below.  I modified the RemoteAddrNotInNetwork
> mailet match to include all IPs on my network and the domain and I'm
> still getting relaying denied errors.  I also tried starting James with
> the DEBUG logging turned on but nothing relevant got logged.  Any help
> would be fantastic..
>
> Thanks,
> Ricardo
>
> Creating MailClient for test...
> Sending message to test...
> SENDING message from [EMAIL PROTECTED] to [EMAIL PROTECTED]
>
> javax.mail.SendFailedException: Invalid Addresses;
>   nested exception is:
>   class com.sun.mail.smtp.SMTPAddressFailedException: 550 -
> Requested action not taken: relaying denied
>
>   at
> com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1130)
>   at
> com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:525)
>   at javax.mail.Transport.send0(Transport.java:151)
>   at javax.mail.Transport.send(Transport.java:80)
>   at MailClient.sendMessage(MailClient.java:51)
>   at JamesConfigTest.main(JamesConfigTest.java:18)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
> Exception in thread "main"
> Process finished with exit code 1
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -

RE: Local DNS

2004-11-16 Thread Daniel Perry
So,

1. a remote dns server can find the domain
2. your local dns server can't find the domain
3. your local dns server can find other domains

If your machine is using just this DNS server and 3 is true, then it must be
doing recursive lookups.  What sort of network setup is this?

How recently has the troubled domain been setup? i've experienced a lot of
wierd behaviour around times that domains are changed.  I've recently
experienced the following problem:
1. you lookup the domain, but it hasnt been set up at TLD yet, and the isp's
dns server we use caches this
2. the domain is set up at tld
3. you make a request and get the cached failure, but any other 'fresh' or
'properly configured' dns server can see the domain.

Daniel.



> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of John Patterson
> Sent: 15 November 2004 19:30
> To: [EMAIL PROTECTED]
> Subject: Re: Local DNS
>
>
> Danny Angus  slc.co.uk> writes:
>
> > 1/ because it doesn't delegate lookups
> > 2/ because it might also be stymied by your firewall
> > 3/ because your paranoid network admins won't let you.
> >
> > Look at the operating system NS settings on the server.
>
> The firewall is also the DNS and DHCP server and the DNS address
> supplied to my
> machine is 10.0.0.138.  When I do a dig for the dodgy domain the
> DNS server
> indeed has no answer for it.  When I dig with a different DNS
> server it does
> return the correct answer.  So it seems that case 1/ is correct.
>
> > Can you do an nslookup (or whatever) for the dodgy domain?
> > If so use that DNS server IP instead.
> > If not try to find one that does work.
> > If not you're kind-of stuck.
> >
> > I assume that A and MX records do actually exist for the domain?
> >
>
> Yes the records exist.  I don't know much about DNS so I was wondering why
> programs such as browsers have no problem using this "caching"
> DNS server which
> does not resolve recursive lookups but James does.
>
> John.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to install James

2004-11-11 Thread Daniel Perry
ERROR   2004-11-11 19:03:44.453 [Phoenix.] (): There was an error running
phase "startup" for Block named "smtpserver". (Reason: Component named
"smtpserver" failed to pass through the Initialization stage. (Reason:
java.net.BindException: Address already in use: JVM_Bind).).

This means that you already have a program listening on port 25 (ie another
mail server, or another instance of james)

Fix that and then see what happens...

Daniel.



> -Original Message-
> From: showery [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2004 10:23
> To: [EMAIL PROTECTED]
> Subject: How to install James
>
>
> I am a newbie to James. and I am trying install James to my computer.
> but I got error when I type "run".
> the envirment of my computer is,
> Windows  XP
> Java 1.4.2
> I had download the James v2.2.0 . and the attachment is the log file.
>
> could anybody help me?
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Changing the MySQL Driver

2004-11-10 Thread Daniel Perry
James comes with mm.mysql-2.0.14.jar.

It's contained in the james.sar file, so i would recomend changing it there
as it get's extracted to a folder like:
$JAMES_HOME/work/james-1090623430288/SAR-INF/lib/mm.mysql-2.0.14.jar

To change it you can either rebuild james from source with a different
version, or change it in the sar file (which is just a funny jar/zip file).
I would recomend building it from source.

Daniel.


> -Original Message-
> From: Ricardo Cortes [mailto:[EMAIL PROTECTED]
> Sent: 10 November 2004 16:53
> To: James Users List
> Subject: Changing the MySQL Driver
>
>
> Does anyone know how to change the mysql driver that comes
> shipped with James to a different version (i.e. a different Jar)?
>  I did various Unix finds and explored all the jars that came
> shipped with James and couldn't find the mysql jar anywhere.  The
> version of MySQL that we are using in production is 3.0.x and I
> need to downgrade the driver because of some authentication
> problems with the new 4.x password scheme.
>
> Thanks,
> Ricardo
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: DBMail IMAP

2004-11-10 Thread Daniel Perry
I am currently looking into adding proper IMAP support to our james mail
server... and this looks a bit easier than trying to figure out whats going
on with james' imap code...

If i'm understanding correctly, i could set james up as SMTP only, and use
it for relaying, and for accepting messages.  Incoming messages could be
passed over to DBMail using your mailet, and DBMail would provide POP3 and
IMAP servers.

I could adapt our online admin tools to update the DBMail database aswell as
James virtual user database.

Does this sound feasible?

Daniel.



> -Original Message-
> From: Geert Van Damme [mailto:[EMAIL PROTECTED]
> Sent: 09 November 2004 21:32
> To: James Users List
> Subject: DBMail IMAP
>
>
> Hi all,
>
> I just wanted to tell you all that I managed to use James as an MTA
> that receives mail and sends it to dbmail. (http://www.dbmail.org)
> I found dbmail an interesting IMAP implementation, and the mailet was
> rather obvious. I'll be testing this a while and when it looks OK,
> I'll make the mailet code available. (I already put a bit of info on
> the wiki as well.)
>
> Has anyyone else tried this yet?
>
>
> --
> Best regards,
>  Geertmailto:[EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: use james for outgoing only

2004-11-04 Thread Daniel Perry
You can run james with just smtp, locked down to your local ip address.
Bounces will go back to the address it's being sent from (not server), so
providing another server is set in the mx records for the domain, it will
bounce to them.

If you would prefer somthing a little more lightweight than james, i've
written a javamail transport which spools mail. It is used in palce of the
smtp transport from javamail and uses a disk based spool, and a relay to
send messages.  A jar (including source) can be found at:

http://www.netcase.co.uk/daniel/smtpspool/

Daniel.

> -Original Message-
> From: Tore Halset [mailto:[EMAIL PROTECTED]
> Sent: 04 November 2004 08:46
> To: [EMAIL PROTECTED]
> Subject: use james for outgoing only
>
>
> Hello. (I am a james-newbie, but have read some of the documentation
> and the faq.)
>
> We have an application running inside jboss that needs to send out
> email. We are currently using the corporate MS Exchange Server for
> outgoing message. The problem happens when the MS Exchange Server is
> out of service as we currently do not have a local mailque in our
> application. The application does not need to recive emails.
>
> Could James be a solution to this problem? I have read from the
> documentation that it is not recomended to run james inside jboss, but
> running it as a separate service is ok.
>
> Should we allow james to recive emails from the internet to handle
> bounces?
>
> Regards,
>   - Tore.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: James Usability Ques.

2004-10-25 Thread Daniel Perry
So what exactly is the problem you have?

Can you send mail from your server to an external server?
Can you send mail internally?
Can you send mail from an external account to your server?

As for using outlook inside/outside the network - this isnt easy when a
machine needs both.  It will work fine for machines always outside, fine for
machines always inside, but there is no straightforward method that i know
of as the server has 2 ips - one internal and one external.  I use this kind
of setup on my laptop, and i have two accounts - one for internal, one for
external.  Just make sure you send/check the right account!

Daniel.

-Original Message-
From: Anonymous Professional [mailto:[EMAIL PROTECTED]
Sent: 25 October 2004 16:16
To: [EMAIL PROTECTED]
Subject: RE: James Usability Ques.


Dan,

I appreciate the help.

Can you recommend a step by step process for configuring a DSL home office
LAN in order to operate microsoft OUTLOOK email independently both
internally and externally?

A step by step method that will enable as much email inter-communication as
possible.

It seems we need someone responsible for setting up mx records.
Also it seems that the SMTP and POP3 need o operate on seperate avenues.
And it seems there is a bit of dependency upon the dynamic dns provider too.

I believe there are alot of folks out there operating DSL out of home office
with Dynamic DNS and NAT off of external Dynamic DNS providers (ie.
www.no-ip.com) so they can avoid the large business class fees.

Conceptually, due to all of these dependencies, this is complicated. There
is no documentation on this.

I think a table to itemize/decompose all of these options is warranted.

It would also clear some confusion up as to why some things work and other
things do not.

Any help from anyone is appreciated.




Find the music you love on MSN Music. Start downloading
now! -
To unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: James Usability Ques.

2004-10-22 Thread Daniel Perry
Yes and no.

If the mailserver gets a message that is for a local user then the message
should never get 'sent out' as it will be put straight into the pop 3
account. So it should never need to connect to itself.

So lets say the mail server is on 192.168.0.2.  If it tries to connect to
192.168.0.2 it will work.  If it tries to connect to 63.215.241.205 which is
where your domain name points to, it probably wont work (i have no idea
about the router you have, but i would guess not).  Similarly outlook
running on a machine on the internal network wont be able to connect to the
name (mail.neticu.com).  Outlook on external computers will be able to
connect to mail.neticu.com provided you have port-forwarding (or whatever
your router calls it) setup on the router.

In order to get round this, set the pop3/smtp servers for the outlook
account to 192.168.0.2 for computers on your network.

Hope that helps explain the problem i think you're experiencing.

Two other things i noticed were that you dont seem to have any mx records
set up (unless they arnt listed in the portion of the no-ip settings you
sent).

You also have a lot of dns settings.  You probably dont need all of these.
As most routers act as dns servers, you can probably just use 192.168.0.1 as
a single dns server.

Daniel.
-Original Message-
From: Anonymous Professional [mailto:[EMAIL PROTECTED]
Sent: 21 October 2004 17:55
To: [EMAIL PROTECTED]
Subject: RE: James Usability Ques.


Can you elaborate on a workaround configuration for this routing IP dilemma?

Can mailserver's send mail to themselves inside a LAN?



Find the music you love on MSN Music. Start downloading
now! -
To unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: James Usability Ques.

2004-10-21 Thread Daniel Perry
Are you using NAT? (ie your internal IP address is different to your routers
public address?)  if so, the reason is that the address pop.mydomain.com is
pointing to your external IP, not your internal IP, and most routers wont
forward requests from inside your network to your external ip.  ie,
pop.mydomain.com points to the router, not your machine, but for external
requests the router forwards pop/smtp ports to the servers IP.

Obviously i dont know your network setup or the router you're using, but all
the routers i have used act in this manner.

Daniel.
-Original Message-
From: Anonymous Professional [mailto:[EMAIL PROTECTED]
Sent: 21 October 2004 15:20
To: [EMAIL PROTECTED]
Subject: James Usability Ques.


Hi Folks,
Is JAMES usable with dynamic dns?
I am using www.no-ip.com to serve up a new dynamic ip for my router. This
works fine for publishing web sites against the IP from the ipconfig command
and synchronizes the dynamic changes seamlessly of IP to DNS.
The JAMES autodiscover, according to the logs, seems to sniff out the IP for
dns rather seamlessly.
Is ther any reason why my IP conection would terminate with the following
when running outlook?
The TCP/IP connection was unxpectedly terminated by the server. (Account:
'pop.mydomain.com'; SMTP Server, 'mail.mydomain.com', error number
0x800ccc0f).



Find the music you love on MSN Music. Start downloading
now! -
To unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem reading posts from NNTP server

2004-10-18 Thread Daniel Perry
hah, havnt been exactly 'with it' for the last few weeks!

For some reason i gave you the wrong line number :)

That line also has the same code as the offending lines, but it is correct
as is (i think), so you should change it back :)

The lines that need changing are 1056 (for BODY command) and 1192(for
ARTICLE command).

Give them a go, and it should fix the problem...

Daniel.

> -Original Message-
> From: Chemi [mailto:[EMAIL PROTECTED]
> Sent: 18 October 2004 18:05
> To: James Users List
> Subject: Re: Problem reading posts from NNTP server
>
>
> Serge Knystautas wrote:
>
> > If you or Daniel can confirm this fixes it, we can quickly change it
> > in James source.  Unfortunately I don't have time nor the necessary
> > problem clients to recreate it.
>
> Daniel, Serge, I have tested that fix and it doesn't work. :-(
>
> Let's review if I did everything correctly...
>
> 1.- I have downloaded this file from the web:
> james-with-phoenix-2.2.0-src.zip
>
> 2.- I unzipped it in my file system.
>
> 3.- I set JAVA_HOME environment variable.
>
> 4.- I changed line 1504 from file
> \src\java\org\apache\james\nntpserver\NNTPHandler.java with:
> writeLoggedFlushedResponse("\r\n.");
>
> 5.- I executed: build.bat dist
>
> 6.- I moved to \dist\james-2.2.0\bin and executed run
>
> 7.- I subscribed to the default newsgroups from Mozilla 1.7.3 and sent a
> message whithout any kind of intros.
>
> 8.- I tried to read the post from Mozilla 1.7.3 and 4 minutes to get
> the message.
>
> But there is something interesting... now, when finally I am able to
> read the message I can see a "." at the end of it. And I didn't write
> it. This is becaus ethe change in the code, because it didn't
> happen before.
>
> Regards,
>
> Chemi.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem reading posts from NNTP server

2004-10-18 Thread Daniel Perry
After looking into it a week or so ago, i found that:

RFC's state that it must end in \r\n.\r\n (the message before that doesnt
have to end in anything specific (ie doesnt have to end in new line!!!)

The clients you speak of do send \r\n.\r\n (they just dont necessarily
include a newline after the message which james needs!)

James is broken, because it sends .\r\n at the end of a message.  It assumes
that the message ends with \r\n, which accoring to RFCs (and the browsers
you list) this aint the case!

To repeat my solution (which makes james rfc compliant and works) from an
email last week:

NNTPHandler.java line 1504 is:

writeLoggedFlushedResponse(".");

Should be:
writeLoggedFlushedResponse("\r\n.");

Daniel.

-Original Message-
From: Chemi [mailto:[EMAIL PROTECTED]
Sent: 18 October 2004 15:52
To: James Users List
Subject: Re: Problem reading posts from NNTP server


To add some info... I have develop a simple test case where I post a NNTP
message using Jakarta-Commons-net and I have to force a \n\n at the end of
the body to read it later without problems. If I don't send "\n\n" at the
end I have again the same problem.

I have tested "\n" and I have problems reading the post. And when finally
(timeout) I read it, there is a new "." at the end.
I have tested "\n.\n" and I have also problems reading the post. And when
finally (timeout) I read it, there is a new "\n.." at the end.

So the solution is to send "\n\n". And my question here is: are really
Mozilla, FireBird, Jakarta Common Net wrong? or is James wrong?

I will try to read the RFCs because there is something I don't understand.
If I send "\n.\n" it should work and it doesn't.

Thanks in advance,

Chemi.

Noel J. Bergman wrote:

Guys,

If some of you would like to help contribute to the NNTP handling, that
would be great.  Please note that we stick to the RFC specifications.  In
this case, RFCs 977 and 850 apply.

According to RFC 977, section 3.10.2 (and related), the article being posted
must end with ..


some clients arnt sending the first CRLF, so when the message gets sent
back, it doesnt include the CRLF on the end?


What are they sending?  The bug report,
http://nagoya.apache.org/jira/browse/JAMES-311, says that they are sending
., but not ..  The latter is not necessary.
If the code is not working properly for the former, then it is a bug in the
code.

--- Noel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Matchers for local addresses (Was: failover configuration)

2004-10-13 Thread Daniel Perry
I was looking at this stuff again, and was wondering if there isnt a better
way to pick mail out as being 'for this machine' and dont use authorisation
or 'for a remote host' and use authorisation.

My thoughts are that maybe something similar to the existing matchers should
be used in an 'openrelay' block instead of having the servernames /
authorisation blocks.

So, for a simple setup you have somthing like match="HostIs=mydomain.com or
HostIs=myotherdomain".

Or you can have match="HostIsInDBTable=db://maildb/VirtualUserTable?domain"
which uses the database approach, and provides neater configuration than the
hack i currently use.

Going with this, you could then write any matchers you want.  You could add
ip address matchers that allow relaying without authentication for certain
ips.

This appears to be a lot more flexible than the current static approach,
which relies on java code hacks to get round it's limitations!

Daniel.



> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: 12 October 2004 11:53
> To: James Users List
> Subject: failover configuration
>
>
> Hi,
> I've got two james servers, and have been asked to set them up as failover
> for eachother.
>
> I found the example of the failover in the wiki:
>   
> file://var/mail/relay/ 
> 2160 
> 5 
> 1 
> int.myfoo.com 
>25
>   
>
> However this example requires adding a mailet for each domain, which isnt
> going to be feasible.
>
> Adding a mailet for each server is an option, but i am not sure how to do
> this.  Here are my thoughts:
>
> I am using a customised version of james which uses the
> VirtualUserTable to
> recognise domains as local, rather than the manually entering every domain
> in the "servernames" block.  I could add to this code to use another table
> that contains columns: (mailservername, domain).  This way the
> messages will
> be accepted and wont request authorisation.
>
> Now for delivery: as the domains that will be relayed will be treated as
> local, they must be processed before they are delievered locally
> (or rather
> rejected with no such user error).
>
> So, first thing on the transport block add a mailet:
>
> 
> file://var/mail/failoverrelayblah/ 
>  5 minutes 
> 10 minutes 
> 45 minutes 
>  2 hours 
>  3 hours 
>  6 hours 
> 25 
> 1 
> blah.com 
>25
>   
>
> The FailOverForServer matcher will look in my new table and check if the
> domain that the email is for is listed, and if it's mailserver matched the
> parameter.
>
> Would this work?  Has anyone already done this?  Is there an easier way?
>
> An alternative hack i thought of would be to make the changes so that mail
> is accepted for the domains based on a table, and then use a matcher that
> checks for the highest priority mail server: ie: HighestMX=blah.com, and
> deliver that mail to blah.com.
>
> Daniel.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem reading posts from NNTP server

2004-10-13 Thread Daniel Perry
Nope,
rfc977 says must use \r\n

But it turns out that james has (and is using) an InternetPrintWriter, which
uses \r\n regarless of host os.  So if you write \r\n. you get \r\n.\r\n

Daniel.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 13 October 2004 15:36
> To: James Users List
> Subject: RE: Problem reading posts from NNTP server
>
>
> i am not perfect in rfc's and standards but \r\n is a "must" just in mail
> data so if it adds just \n it should be fine. correct?
>
>
>
>
> "Daniel Perry" <[EMAIL PROTECTED]>
> 13.10.2004 16:25
> Please respond to
> "James Users List" <[EMAIL PROTECTED]>
>
>
> To
> "James Users List" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> cc
>
> Subject
> RE: Problem reading posts from NNTP server
>
>
>
>
>
> \r\n is put in there for you (provided java knows to use \r\n as newline,
> and not just \n ?).
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem reading posts from NNTP server

2004-10-13 Thread Daniel Perry
Hehe... nope!

I nearly put that, but writeLoggedFlushedResponse uses println, so the final
\r\n is put in there for you (provided java knows to use \r\n as newline,
and not just \n ?).

Daniel.


> -Original Message-
> From: Danny Angus [mailto:[EMAIL PROTECTED]
> Sent: 13 October 2004 09:13
> To: James Users List
> Subject: Re: Problem reading posts from NNTP server
>
>
> > Should be:
> > writeLoggedFlushedResponse("\r\n.");
>
> Don't shoot me but should that not be..
>
> writeLoggedFlushedResponse("\r\n.\r\n");
>
> ?
> d.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem reading posts from NNTP server

2004-10-12 Thread Daniel Perry
That was me jumping the gun a bit!

Looking at the code, there is a bug.

It should send:
the message content.

It does send:
the message content.

So, if there's a  on the end of the message it works... but when the
message has no  at the end, james screws up.

NNTPHandler.java line 1504 is:

writeLoggedFlushedResponse(".");

Should be:
writeLoggedFlushedResponse("\r\n.");

I havnt had a chance to edit/compile/test as i have to scoot.

If anyone wants to give it a try, and if someone can commit the change that
would be nice :)

Daniel.


> -Original Message-
> From: Noel J. Bergman [mailto:[EMAIL PROTECTED]
> Sent: 12 October 2004 18:10
> To: James Users List; [EMAIL PROTECTED]
> Subject: RE: Problem reading posts from NNTP server
>
>
> Guys,
>
> If some of you would like to help contribute to the NNTP handling, that
> would be great.  Please note that we stick to the RFC specifications.  In
> this case, RFCs 977 and 850 apply.
>
> According to RFC 977, section 3.10.2 (and related), the article
> being posted
> must end with ..
>
> > some clients arnt sending the first CRLF, so when the message gets sent
> > back, it doesnt include the CRLF on the end?
>
> What are they sending?  The bug report,
> http://nagoya.apache.org/jira/browse/JAMES-311, says that they are sending
> ., but not ..  The latter is not necessary.
> If the code is not working properly for the former, then it is a
> bug in the
> code.
>
>   --- Noel
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem reading posts from NNTP server

2004-10-12 Thread Daniel Perry
Ok, so if i get the problem:

Messages need to end with "CRLF" followed by the terminator "CRLF.CRLF" ?

But some clients arnt sending the first CRLF, so when the message gets sent
back, it doesnt include the CRLF on the end?

Why dont you modify the code so that it puts a crlf on the end if there isnt
one already?

Looking at the code, it should be easy to do as it stores it.

In NNTPRepositoryImpl.java in the createArticle(InputStream in) method:

Just after the copy:

while ( ( bytesRead = in.read(readBuffer, 0, 1024) ) > 0 ) {
fout.write(readBuffer, 0, bytesRead);
}

ADD:

if (readBuffer[bytesRead==0?1023:bytesRead-1]!='\n'){
fout.write(new byte[]{'\r','\n'});
}

Note that i havn't tried the code, just made it up in my head :)

Daniel.


> -Original Message-
> From: Chemi [mailto:[EMAIL PROTECTED]
> Sent: 12 October 2004 15:59
> To: James Users List
> Subject: Re: Problem reading posts from NNTP server
>
>
> Ok, after some investigation I found there is a bug opened to this:
> http://nagoya.apache.org/jira/browse/JAMES-311
> It seems NNTP clients are not sending messages with CRLFs at the end.
> And this fact breaks the protocol.
>
> Let's see if there is a qucik fix because this is an stopper to deploy
> James as NNTP Server.
>
> Regards,
>
> Chemi.
>
> Chemi wrote:
>
> > Hi. I have downloaded James to do some NNTP tests.
> > I have created several news groups and post some messages to them
> > (using Mozilla 1.7.3).
> >
> > The problem is accessing to those posts. It is really slow showing the
> > body of the messages (the headers appear instantly). After some tests
> > I was able to confirm that it shows the body after exactly 4 minutes.
> > I did the access once again from Mozilla 1.7.3 and also from a Java
> > Test Client I developed with Jakarta-Commons-Net. In both cases I get
> > the body after 4 minutes.
> >
> > It seems to me that 4 minutes is some kind of time-out internally in
> > James. I did a search within Config.xml file but I didn't find that
> > number. Any idea? The POP3 access hasn't this problem.
> >
> > I also did the test via Telnet (port 119) sending directly NNTP
> > Commands and in that case I get the body instantly with no delay.
> >
> > Any idea? Any help?
> >
> > Thanks in advance,
> >
> >Chemi.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



failover configuration

2004-10-12 Thread Daniel Perry
Hi,
I've got two james servers, and have been asked to set them up as failover
for eachother.

I found the example of the failover in the wiki:
  
file://var/mail/relay/ 
2160 
5 
1 
int.myfoo.com 
   25
  

However this example requires adding a mailet for each domain, which isnt
going to be feasible.

Adding a mailet for each server is an option, but i am not sure how to do
this.  Here are my thoughts:

I am using a customised version of james which uses the VirtualUserTable to
recognise domains as local, rather than the manually entering every domain
in the "servernames" block.  I could add to this code to use another table
that contains columns: (mailservername, domain).  This way the messages will
be accepted and wont request authorisation.

Now for delivery: as the domains that will be relayed will be treated as
local, they must be processed before they are delievered locally (or rather
rejected with no such user error).

So, first thing on the transport block add a mailet:


file://var/mail/failoverrelayblah/ 
 5 minutes 
10 minutes 
45 minutes 
 2 hours 
 3 hours 
 6 hours 
25 
1 
blah.com 
   25
  

The FailOverForServer matcher will look in my new table and check if the
domain that the email is for is listed, and if it's mailserver matched the
parameter.

Would this work?  Has anyone already done this?  Is there an easier way?

An alternative hack i thought of would be to make the changes so that mail
is accepted for the domains based on a table, and then use a matcher that
checks for the highest priority mail server: ie: HighestMX=blah.com, and
deliver that mail to blah.com.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie: Configure for multiple hosts.

2004-10-08 Thread Daniel Perry
>
> 1) I need to configure James for three different Virtual Hosts on the
> same IP, in other words its a Name Based Virtual Hosting. For example,
> I have host_one.com, host_two.com, host_three.com; I want to use for
> each of them they own PO3 and SMTP servers. So it will look like this:
> a) pop3.host_one.com,   smtp.host_one.com;
> b) pop3.host_two.com,   smtp.host_two.com;
> c) pop3.host_three.com, smtp.host_three.com;
> How to achieve this?
> I've tryed configure for each of them their own , added
> servers, added , but as it was just an idea, it didnt work
> for me. I've tryed disable/enable host autodetection etc. BTW, I dont
> want to change the ports, in other words it would be standars 110 and
> 25 for each host.

You can't run separate pop3/smtp servers for all the domains on the same
port (or at least not without having one ip per domain on the machine).
Also, i'm not sure if james can run with more than one pop3/smtp server
anyway!

However, you only actually need one pop3/smtp server: Simply make the all
the 'A' records for those hosts you listed point to the james server ip.
That's all you need to do, apart from listing the domains that james should
treat as local.


>
> 2) Is it possible to configure multiple remote controls for each of
> these hosts? So if I want to connect "telnet host_one.com 4555" or
> "telnet host_two.com 4555" or "telnet host_three.com 4555", is it
> possible to allow to each user administer his own host in this way?

Not as far as i know.
If all you want them to administer is email accounts, then use a database
(eg mysql) for users & virtual users tables and write some simple admin
screens.

I wrote some a simple tool like this.  There are various files at:
http://www.netcase.co.uk/daniel/james/2.1.3_STABLE/
Check out the "web-admin.zip" file.

Note that if you want to use any of my code, then i would recomend compiling
2.2.0 with the code in the 2.2.0 folder.

> 3) How to configure news groups for each of these hosts?

No idead here i'm afraid :)

> Guys, I'm not a Java programmer, I know XML, I can write templates on
> XSLT, but not more. Excuse me, if I didnt understand some things:)
> Please give me some links or tips, maybe book names about James? But
> before you give some advice like "You should write a custom class
> import mail.* public bla-bla{...}" you must to know that I far
> from this, so keep it
> simple please:) I read all documentation on the site, I've downloaded
> two articles, but I didnt figure it out how to configure James in my
> way.

It shouldnt be too difficult for you.  James handles mail for multiple
domains out of the box.  It's only when you have quite specific requirements
that you end up writing your own code.

We're using a slightly customised version of james to handle mail for all of
our clients, and we're finding it a doddle to administer!

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: is james better than qmail, postfix ?

2004-09-22 Thread Daniel Perry
> is there any comparison available between James, qmail & Postfix etc ?

Not as far as i know.

I think it is difficult to do a straight comparison of MTAs, as they all
seem so different.

I was given the job of setting up a mail server, and i had certain
requirements.  I looked at qmail, sendmail, postfix, and couldnt find an
'easy' way to do everything, and they looked like a nightmare to configure
and administer.

I had a look at james, and my mind was made up!  It's a mail server with XML
configuration which out of the box did practically everything i needed.
Also, it's written in Java, so i can mess with the source (as i did) - there
was no way i was planning to look at the source for sendmail (it's C - yuk).
You can use a database for users which came in handy for web based
administration.

There are several things that were missing:

I needed to use virtual hosting, with [EMAIL PROTECTED] as the username, which
didnt work.  With a bit of code hacking, i came up with a workaround.  I
also found it painful specifying domains in the config file and restarting
to update them- again this was simple to modify to use a database table.

The big things still missing for me are:
- decent IMAP support (not sure whats happening here).
- decent mailing lists.  Again these have to be set up in the config file.
I started work on a database configurable matcher mailet pair for this, but
due to lack of time havnt got very far.

I hope this gives you some insight into how james differs from other mail
servers.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mail Relay Problems

2004-09-17 Thread Daniel Perry
The message you get is because james doesnt think that the domain the email
is destined for is local, so if it were to accept the email,it would be
relaying.  And open relaying is bad!

Have you set up servernames in your config.xml?

Ie, in the  block, do you have:

foo.com

Because that's how james determines if an address is local. Without it,
james will assume [EMAIL PROTECTED] is a remote address, and will refuse to relay
to the 'remote' address.

Daniel.


> -Original Message-
> From: Mag Gam [mailto:[EMAIL PROTECTED]
> Sent: 17 September 2004 12:28
> To: James Users List
> Subject: Re: Mail Relay Problems
>
>
> When I send an email to [EMAIL PROTECTED] I get this message.
>
> <[EMAIL PROTECTED]>: host mail01.domain.com[domain.ip.address] said:
> 550 - Requested action not taken: relaying denied (in reply to RCPT
> TO
> command)
>
> Now, if I do ping domain.com I get a good response, I can even do a
> "host domain.com". I do have the MX server specified in our DNS service
> (netsolutions.com). I don't know how to test that, but I specified it.
>
> As for the changes, in the config.xml file I DID edit the dnsserver
> section to DNS server of what the mail server is using. Should I use
> other DNS server? I don't think I have changed anything else. Any more
> questions please let me know
>
> Thanks!
>
>
> On Fri, 17 Sep 2004 08:10:11 +0200, "Simon Klaiber" <[EMAIL PROTECTED]>
> said:
> > Mag Gam wrote:
> >
> > >I am trying to relay email I been looking at the docs and mailing lists
> > >but no luck. I have a domain name called "foo.com", and we can set up a
> > >MX record for it "mail.foo.com". I am not sure where I add
> this to relay
> > >email. I can sent mail from James, but no one else can send mail to
> > >[EMAIL PROTECTED] or even [EMAIL PROTECTED]
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > What do you mean exactly by "can't send" is the connection
> refused or is
> > the mail recieved by the server but not delivered to the user?
> > If it is the second possibility check if the mail is in the
> error or the
> > spam repository.
> > Also interesting would be what you changed on the default configuration
> > file.
> >
> > Simon
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Socket closed excpetion

2004-09-14 Thread Daniel Perry
It means that during the POP3 session, the client got disconnected. So
nothing is wrong! (assuming your james server is still working?)

Daniel.

-Original Message-
From: Diogo Saad [mailto:[EMAIL PROTECTED]
Sent: 14 September 2004 15:49
To: James Users List
Subject: Socket closed excpetion


Hi All
I got this expection in my default.log !!   What's wrong?

java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:162)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.read(BufferedReader.java:157)
at
org.apache.james.util.CRLFTerminatedReader.readLine(CRLFTerminatedReader.jav
a:98)
at
org.apache.james.pop3server.POP3Handler.readCommandLine(POP3Handler.java:415
)
at
org.apache.james.pop3server.POP3Handler.handleConnection(POP3Handler.java:26
6)
at
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run
(ServerConnection.java:417)
at
org.apache.james.util.thread.ExecutableRunnable.execute(ExecutableRunnable.j
ava:55)
at
org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:90)

Thanks a lot


Diogo Saad
[EMAIL PROTECTED]
Inter Business Tecnologia e Servicos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Customized James

2004-09-08 Thread Daniel Perry
James is made up of very separate components. The pop3 and smtp services are
separate, so it's easy to run one without the other.  Not exactly sure how
you get the mail from smtp into pop folders... Again, remotemanager can be
turned off with no ill effect.

As for web admin of users - use mysql as the user store, and you can
manipulate the database directly.  Take a look at:
http://www.netcase.co.uk/daniel/james/2.1.3_STABLE/

There's a zip called web-admin, which does this using php. (note that it
relies on my customised version of james as-is, but the code could be
modified).

The most useful part of it (if you want to use php) is the code that hashes
the password so that it is compatible. Damm nightmare! it's a sha1 (in 8
bit, not hex), base64 encoded, minus the last 4 chars.

Daniel.

> -Original Message-
> From: Iqbal Abdullah [mailto:[EMAIL PROTECTED]
> Sent: 08 September 2004 02:12
> To: [EMAIL PROTECTED]
> Subject: Customized James
>
>
> Hello,
>
> I am new to James although I have done some work on
> the qmail MTA. I am considering to use James.
>
> Is it possible to seperate the smtp and pop services
> in the standard James, so that I can have the smtp
> server on a different machine than the pop server?
> Also, addition of new users are to be made from the
> web, so is it fatal if the remote manager is disabled?
>
> More importantly, is there any documentation for the
> above?
>
> Finally, I have done some googling but most of the
> subjects that comes out under James are mailets and
> catchers. What I was looking for is an overview of the
> James architecture, which in qmail you can see as:
>
> http://www.nrg4u.com/qmail/the-big-qmail-picture-103-bw-a4.pdf
>
> Thanks for your time.
>
> - Iqbal
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Gateway SMTP

2004-07-21 Thread Daniel Perry

Why not just use the same format as before, but with extra elements?


foo
bar
true|on|yes
true|on|yes
smtp1.server.com:7025


or attributes?

smtp1.server.com:7025


A bit of a bodge, but it would make the configurations compatible!

Daniel.

-Original Message-
From: Glen [mailto:[EMAIL PROTECTED]
Sent: 20 July 2004 17:00
To: James Users List; [EMAIL PROTECTED]
Subject: Re: Gateway SMTP


I would love to.  I have some questions about the preferred way of
implementing the features of RemoteDeliveryX in RemoteDelivery.

Currently in RemoteDelivery you can specify multiple gateway servers and
multiple gateways with a unique port for each.

smtp1.server.com:7025
smtp2.server.com:25
smtp1.server.com:25

This patch would add four parms to each gateway config.  So a gateway has
these attributes

ip address/name
port
auth user
auth password
ssl
validate certificate authority

is it possible to have


smtp1.server.com
smtp1.server.com:7025
foo

true|on|yes
true|on|yes



So the question is how to provide the option to config all these parms and
also not break the exisitng configs.  The RemoteDeilveryX only allows a
single gateway hence avoiding the issue of how to config multiple gateways.
I can submit the patch as a new RemoteDeliveryX but I assume that is less
desirable than adding it to the current RemoteDelivery.  I am more than
happy to take the input and implement that into RemoteDelivery/

regards,
Glen






Noel J. Bergman wrote:

I have made a RemoteDeliveryX that can handle smtp authentication
as well as ssl (optional).  I have not submitted it here because
someone else has mentioned that they are doing the same already.


You can always submit the patch, from which others can build as they
incorporate the functionality.  :-)

--- Noel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



550 Administrative Prohibition

2004-07-14 Thread Daniel Perry
I've got a bit of a wierd problem at the moment with a clients email
account.

A client needs to use their notebook from their home adsl connection (pipex)
and through a free dial up (wanadoo) while abroad (via a mobile).

Anyway, their dialup doesnt provide smtp relay, and also block connections
to ports other than 80 and 443.  So i've set up NAT in iptables to forward
443 to 25.  All is working from my end, and it works over the dialup.  But
through ADSL my client is getting "550 Administrative Prohibition" errors.

I'm cant get at their computer for the time being, so i cant check exactly
what is happening, just wondering if anyone has any ideas?

To be honest, i'm not convinced he's using our server atall as his
connections arnt showing up in the smtp logs.

Daniel.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to automate new user creation in JAMES

2004-06-28 Thread Daniel Perry
If you are using a database for users, then simply insert the user into the
database!

Otherwise, your program could act as a telnet client and use the admin
service.

Daniel.

> -Original Message-
> From: chanumolu bhargava [mailto:[EMAIL PROTECTED]
> Sent: 27 June 2004 12:21
> To: [EMAIL PROTECTED]
> Subject: how to automate new user creation in JAMES
>
>
> hi
>
> Iam a novice user of JAMES.I read in documentation how
> to create a new user in JAMES using telnet.But i want
> to automate the process of new user creation.that is
> if a new user comes and registers himself by clicking
> submit button then automatically new user must be
> created.Please help in doing it.
>
> ThanQ
>
>
> =
> When the going gets tough, the toughs get going.
>
>
> 
> Yahoo! India Matrimony: Find your partner online.
http://yahoo.shaadi.com/india-matrimony/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Basic JAMES questions

2004-06-07 Thread Daniel Perry
As it stands, your mail server is on whatever domain you pointed to:
63.198.128.215.

The issues you ask except no 4 are all domain name related, and nothing to
do with james.  James is on that IP address.  Any domain names you point to
that IP address can be used to access james.

As for number 4 you want to set james in the config to accept mail for the
kingdomrpg.com it's the domain list section.

You can access pop and smtp at : 63.198.128.215  (no name as you need to do
that with your domain name)

If you want to use pop/smtp/mail/etc .kingdomrpg.com for the server, you
need to set up an "A" name record with your nameserver, pointing
mail.kingdomrpg.com to 63.198.128.215.  Same for smtp/pop.  Of course there
is no need to do this... you just use 63.198.128.215 as the smtp server/pop
server address in your client. Or you can

One thing you MUST do to accept mail for your real domain is to set up an MX
record.  Set the MX record with your dns to e.g. mail.kingdomrpg.com then an
A record for mail.kingdomrpg.com to 63.198.128.215.

Hope that clears it up a bit for you.

Daniel.



> -Original Message-
> From: Blake Watson [mailto:[EMAIL PROTECTED]
> Sent: 06 June 2004 23:30
> To: James Users List
> Subject: Re: Basic JAMES questions
>
>
> Hello, James Users List!
>
>   I'm setting up James to handle my domain mail. (kingdomrpg.com) I'm
> moving from someone else's server (HostSave) to my own, and the last
> missing piece is mail-server. I want to set it up and make sure it
> works before transferring the domain, however.
>
>   So, I have a couple of very basic questions. I've set up
> James, and I
> think it works, but I realize I don't know how to address the server.
> I know I should be able to send e-mail to [EMAIL PROTECTED] but I
> don't know how to set up my e-mail client to address the POP and SMTP
> servers. This seems to be "everybody knows" type of info since all the
> help I've seen just says "Yeah, now that you've got it running you can
> send your mail out through it."
>
>   The simplest questions:
>
>   1. Setting aside the domain question, now that I've set up
> James, how
> do I address the incoming mail server. Would it be
> mail.kingdomrpg.com?
>
>   2. Would the outgoing be pop.kingdomrpg.com,
> pop3.kingdomrpg.com, or
> smtp.kingdomrpg.com?
>
>   3. Now considering the domain, would the incoming and outgoing be
> addressed mail.[63.198.128.215]?
>
>   4. James can "auto-detect" IPs and domains, I believe. Does
> that mean
> James will be aware when [63.198.128.215] = kingdomrpg.com, or should
> I manually enter this stuff?
>
>   Thanks for your patience!
>
>   ===Blake===
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Want to make james mailing list dynamic

2004-06-03 Thread Daniel Perry
I'm trying to clarify my idea before i start coding it.  I've been looking
at the source code of various parts of james, and i reckon i can reuse some
of the JDBCListServ and a lot of the CommandListServ.

I expect to create a mailing list mailet that uses a database table for
lists (with their settings, the list email address, and the command list
email address), and a database table for list subscribers and their
settings.

The maillet will have a companion matcher that recognise list mails by
looking for matching list addresses, or list command addresses in the first
table.

The mailet will then either send the message out to subscribers, or process
the command depending on which mail address it matches.

I expect to implement subscribe/unsunscribe/etc commands for users to use
themselves, but also to provide a web app that manipulates the database
directly.

The web app would provide management facilites for the lists, but also
management of subscribers.  Lists might be configured (indiviually) to not
have a list command server, so only the web app could be used.

I havnt had much time to work on this due to a heavy workload, but hopefully
this will ease off later in the summer, and i will have a chance to have a
go at implementing it.

Daniel.

> -Original Message-
> From: Sumit AGARWAL [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2004 11:19
> To: 'James Users List'
> Subject: RE: Want to make james mailing list dynamic
>
>
> Daniel,Can you provide more details about your approach for
> making a single
> mailet for the same.
> sumit
>
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 03, 2004 3:32 PM
> To: James Users List
> Subject: RE: Want to make james mailing list dynamic
>
>
> I too am starting work on dynamic mailing lists.
>
> However i am thinking about doing it with a different approach: instead of
> trying to dynamicly set up mailets, i am planning to use a single
> mailet, to
> handle all lists.  The matcher that it uses will also act
> dynamically, so it
> will recognise new lists as they are created.
>
> Daniel.
>
> > -Original Message-
> > From: Sumit AGARWAL [mailto:[EMAIL PROTECTED]
> > Sent: 03 June 2004 10:59
> > To: 'James Users List'
> > Subject: Want to make james mailing list dynamic
> >
> >
> > we are working on james mailing list.we customized it to meet our
> > requirement.one thing remains that is creating a mailing list while
> > james is running.we donot want to restart the james server.
> > After calling processor.closeProcessorLists(); from
> JAMESSpoolManager.java
> > we are not able to add new mailets/matchers that we have created after
> > starting james.
> >
> > Please tell me the exact path of execution from start of the server to
> > the routing the mails too.In other words the steps that the James
> > server follows to up the server.
> >
> > has any body worked on it?
> > Pls guide us.
> >
> > With regards
> > Sumit agg
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Want to make james mailing list dynamic

2004-06-03 Thread Daniel Perry
I too am starting work on dynamic mailing lists.

However i am thinking about doing it with a different approach: instead of
trying to dynamicly set up mailets, i am planning to use a single mailet, to
handle all lists.  The matcher that it uses will also act dynamically, so it
will recognise new lists as they are created.

Daniel.

> -Original Message-
> From: Sumit AGARWAL [mailto:[EMAIL PROTECTED]
> Sent: 03 June 2004 10:59
> To: 'James Users List'
> Subject: Want to make james mailing list dynamic
>
>
> we are working on james mailing list.we customized it to meet our
> requirement.one thing remains that is creating a mailing list
> while james is
> running.we donot want to restart the james server.
> After calling processor.closeProcessorLists(); from JAMESSpoolManager.java
> we are not able to add new mailets/matchers that we have created after
> starting james.
>
> Please tell me the exact path of execution from start of the server to the
> routing the mails too.In other words the steps that the James
> server follows
> to up the server.
>
> has any body worked on it?
> Pls guide us.
>
> With regards
> Sumit agg
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mailing lists

2004-05-27 Thread Daniel Perry
I need to set up some mailing lists on a james server.

I need to be able to manage mailing lists with the server running.

I need to be able to manage users myself, but also for users to be able to
subscribe/unsubscribe themselves.

>From what I can figure, there are 3 implementations in
org.apache.james.transport.mailets:

AvalonListServ*.java

CommandListServ*.java (plus the listservcommands folder)

JDBCListserv.java

The Avalon version appears to be disk based lists.  It requires each mailing
list to be set up in the config. (so out of the question)

The CommandListServ seems to be a replacement for the Avalon version.  It
seems to have a nice command interface.  Again it seems that the actual
mailing lists have to be configured in config.

JDBCListServ seems to match what I want - simple database management of
lists.  But I cant find a matching command maillet, so subscriptions have to
be managed only from the database?

Is this a correct summary of the situation? or am I missing something?

It would seem to me that the JDBC approach gives a simple config, and allows
lists to be set up /removed with the server running.  It appears that if I
wrote an equivalent set of commands to those in the listservcommands folder,
I could use the CommandListServManager to manage the lists, and JDBCListServ
to process the mails.

Is this correct? or am I missing an implementation that would meet my needs?

Daniel.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FetchMail

2004-05-27 Thread Daniel Perry

http://cvs.apache.org/builds/james-server/test-build/

Currentln on RC5, should be released in the next couple of weeks.

Daniel.

-Original Message-
From: Pieter Jacobs [mailto:[EMAIL PROTECTED]
Sent: 27 May 2004 10:29
To: [EMAIL PROTECTED]
Subject: FetchMail


Hi guys,

Where can I get hold of the binaries for 2.2.0

Thanks !

Pieter


This e-mail message has been scanned for Viruses and Content and cleared by
MailMarshal - For more information please visit www.marshalsoftware.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Integration into Tomcat

2004-05-26 Thread Daniel Perry
I had a go at this, and created what i'll describe as an 'alpha' version.

Basically, you stick the jar i made, a javamail jar, and activation jar into
classpath.

You need a properties file to tell it where the smtp host is, and settings
for the spool.

For examples of use have a look at SimpleTest.java.  It implements a
javamail Transport, so is used just as the normal smtp transport.  It spools
messages to disk when they are sent, and runs a background delivery thread
that picks these up and sends them.

A jar file containing classes and source, and the properties file is
available at:

http://www.netcase.co.uk/daniel/smtpspool/

Hope this is of some use to someone,

Daniel.

> -Original Message-
> From: Serge Knystautas [mailto:[EMAIL PROTECTED]
> Sent: 25 May 2004 15:43
> To: James Users List
> Subject: Re: Integration into Tomcat
>
>
> Daniel Perry wrote:
> > Well, this seems like a more complicated, but equally more
> useful approach.
>
> It's probably not more complicated as much as unfamiliar.
>
> > So, I figure, I implement a transport.
> >
> 
> > Sound about right?
>
> Yup.
>
> > Looking through the JavaMail docs, it seems the smtp settings
> are included
> > in the MimeMail via session in Message.  Now I'm guessing that
> session wont
> > be stored if I use the writeTo method.  So, the mail server
> config used for
> > sending the messages will be lost?
>
> True, you would need to store the envelope info somewhere (maybe just at
> top of text message).  As for other session information, perhaps just
> stick with the same approach and store all session properties to the
> text file as well.
>
> > Another question: When I send mail, I am assuming that I will
> have to tell
> > Session to use a different transport (going to mean messing with
> > commons-sandbox-email because this is fixed to smtp).  If I use the same
> > session for sending mails, then I guess I will have to revert to smtp.
>
> Hmm, I think I understand how you're thinking of doing this.  I would
> probably just call the Sun SMTP impl directly, although by relaying on
> the transport rules, you could create layers of transports.
>
> --
> Serge Knystautas
> President
> Lokitech >> software . strategy . design >> http://www.lokitech.com
> p. 301.656.5501
> e. [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >