You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Jamesmail <Ja...@jamesmail.dnsalias.net> on 2010/02/19 17:54:33 UTC

Mail to local users is delivered to user's inboxes and also stored in error folder (3.0-M1 Trunk)

Have a test set up on a FreeBSD 7.2-RELEASE-p6 server with Java version 1.6.0_07 and virtual hosting enabled.

Have created five test domains with one user each.

When a test message is sent to a user, for example, postmaster@localhost, one copy of the message is correctly stored in "var/mail/inboxes/localhost/postmaster/" and a second copy is stored in "var/mail/error".

The corresponding mailet.log entry is:
--------------------------------------------------------------------
INFO  11:03:58,837 | james.mailetcontext | Error while storing mail.
java.lang.ClassCastException:org.apache.james.server.jpa.JPAUsersRepository cannot be cast to org.apache.james.impl.jamesuser.JamesUsersRepository
        at org.apache.james.impl.jamesuser.LocalJamesUsersRepository.getMappings(LocalJamesUsersRepository.java:62)
        at org.apache.james.transport.mailets.UsersRepositoryAliasingForwarding.processMail(UsersRepositoryAliasingForwarding.java:103)
        at org.apache.james.transport.mailets.AbstractVirtualUserTableMailet.service(AbstractVirtualUserTableMailet.java:68)
        at org.apache.james.transport.mailets.LocalDelivery.service(LocalDelivery.java:93)
        at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:456)
        at org.apache.james.container.spring.StateAwareProcessorList.service(StateAwareProcessorList.java:127)
        at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:164)
        at java.lang.Thread.run(Thread.java:619)
INFO  11:03:58,847 | james.mailetcontext | Storing mail Mail1266595438838-14 in file://var/mail/error
--------------------------------------------------------------------

Any ideas?

Thank you

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Mail to local users is delivered to user's inboxes and also stored in error folder (3.0-M1 Trunk)

Posted by Jamesmail <Ja...@jamesmail.dnsalias.net>.
On Fri, 19 Feb 2010 18:03:53 +0100
Norman Maurer <no...@googlemail.com> wrote:

> Thx for reporting..
> 
> This is a bug, which was not spotted by me because I only use IMAP. I
> will fix it in a few minutes.
> 
>  ...

Good day and thank you Norman.

Recompiled and now it works as intended.

Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Mail to local users is delivered to user's inboxes and also stored in error folder (3.0-M1 Trunk)

Posted by Jamesmail <Ja...@jamesmail.dnsalias.net>.
On Fri, 19 Feb 2010 18:13:28 +0100
Norman Maurer <no...@googlemail.com> wrote:

> Ok should be fixed now.
> 
> Thx again.
> 
>  ... 

Please see my previous post.

Thanks again to you.

Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Mail to local users is delivered to user's inboxes and also stored in error folder (3.0-M1 Trunk)

Posted by Norman Maurer <no...@googlemail.com>.
Ok should be fixed now.

Thx again.

Bye,
Norman

2010/2/19 Norman Maurer <no...@googlemail.com>:
> Thx for reporting..
>
> This is a bug, which was not spotted by me because I only use IMAP. I
> will fix it in a few minutes.
>
> Bye,
> Norman
>
> 2010/2/19 Jamesmail <Ja...@jamesmail.dnsalias.net>:
>> Have a test set up on a FreeBSD 7.2-RELEASE-p6 server with Java version 1.6.0_07 and virtual hosting enabled.
>>
>> Have created five test domains with one user each.
>>
>> When a test message is sent to a user, for example, postmaster@localhost, one copy of the message is correctly stored in "var/mail/inboxes/localhost/postmaster/" and a second copy is stored in "var/mail/error".
>>
>> The corresponding mailet.log entry is:
>> --------------------------------------------------------------------
>> INFO  11:03:58,837 | james.mailetcontext | Error while storing mail.
>> java.lang.ClassCastException:org.apache.james.server.jpa.JPAUsersRepository cannot be cast to org.apache.james.impl.jamesuser.JamesUsersRepository
>>        at org.apache.james.impl.jamesuser.LocalJamesUsersRepository.getMappings(LocalJamesUsersRepository.java:62)
>>        at org.apache.james.transport.mailets.UsersRepositoryAliasingForwarding.processMail(UsersRepositoryAliasingForwarding.java:103)
>>        at org.apache.james.transport.mailets.AbstractVirtualUserTableMailet.service(AbstractVirtualUserTableMailet.java:68)
>>        at org.apache.james.transport.mailets.LocalDelivery.service(LocalDelivery.java:93)
>>        at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:456)
>>        at org.apache.james.container.spring.StateAwareProcessorList.service(StateAwareProcessorList.java:127)
>>        at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:164)
>>        at java.lang.Thread.run(Thread.java:619)
>> INFO  11:03:58,847 | james.mailetcontext | Storing mail Mail1266595438838-14 in file://var/mail/error
>> --------------------------------------------------------------------
>>
>> Any ideas?
>>
>> Thank you
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Mail to local users is delivered to user's inboxes and also stored in error folder (3.0-M1 Trunk)

Posted by Norman Maurer <no...@googlemail.com>.
Thx for reporting..

This is a bug, which was not spotted by me because I only use IMAP. I
will fix it in a few minutes.

Bye,
Norman

2010/2/19 Jamesmail <Ja...@jamesmail.dnsalias.net>:
> Have a test set up on a FreeBSD 7.2-RELEASE-p6 server with Java version 1.6.0_07 and virtual hosting enabled.
>
> Have created five test domains with one user each.
>
> When a test message is sent to a user, for example, postmaster@localhost, one copy of the message is correctly stored in "var/mail/inboxes/localhost/postmaster/" and a second copy is stored in "var/mail/error".
>
> The corresponding mailet.log entry is:
> --------------------------------------------------------------------
> INFO  11:03:58,837 | james.mailetcontext | Error while storing mail.
> java.lang.ClassCastException:org.apache.james.server.jpa.JPAUsersRepository cannot be cast to org.apache.james.impl.jamesuser.JamesUsersRepository
>        at org.apache.james.impl.jamesuser.LocalJamesUsersRepository.getMappings(LocalJamesUsersRepository.java:62)
>        at org.apache.james.transport.mailets.UsersRepositoryAliasingForwarding.processMail(UsersRepositoryAliasingForwarding.java:103)
>        at org.apache.james.transport.mailets.AbstractVirtualUserTableMailet.service(AbstractVirtualUserTableMailet.java:68)
>        at org.apache.james.transport.mailets.LocalDelivery.service(LocalDelivery.java:93)
>        at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:456)
>        at org.apache.james.container.spring.StateAwareProcessorList.service(StateAwareProcessorList.java:127)
>        at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:164)
>        at java.lang.Thread.run(Thread.java:619)
> INFO  11:03:58,847 | james.mailetcontext | Storing mail Mail1266595438838-14 in file://var/mail/error
> --------------------------------------------------------------------
>
> Any ideas?
>
> Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org