Hello all,
I've been working with Sai on the below issue. I verified we do have 
VirtualHosting enabled and added mydomain.net (lowercase) using JMX-CLI. In 
case this helps, we have the following settings in domainlist.xml:

<autodetect>true</autodetect>
<autodetectIP>true</autodetectIP>
<defaultDomain>localhost</defaultDomain>


And we have the following settings in mailetcontainer.xml:

<?xml version="1.0"?>
<mailetcontainer enableJmx="true">
  <context>
    <postmaster>[email protected]</postmaster>
  </context>
  <spooler>
    <threads> 20 </threads>
  </spooler>
  <processors>
    <processor state="root" enableJmx="true">
      <mailet match="All" class="PostmasterAlias"/>
      <mailet match="RelayLimit=30" class="Null"/>
      <mailet match="SMTPAuthSuccessful" class="ToProcessor">
        <processor>transport</processor>
      </mailet>
      <mailet match="InSpammerBlacklist=dnsbl.njabl.org." class="ToProcessor">
        <processor>spam</processor>
        <notice>550 Requested action not taken: rejected - see 
http://njabl.org/ </notice>
       </mailet>
       <mailet match="All" class="ToProcessor">
        <processor>transport</processor>
       </mailet>
     </processor>
    <processor state="transport" enableJmx="true">
      <mailet match="SMTPAuthSuccessful" class="SetMimeHeader">
        <name>X-UserIsAuth</name>
        <value>true</value>
      </mailet>
      <mailet match="All" class="VirtualUserTable">
        <virtualusertable>DefaultVirtualUserTable</virtualusertable>
      </mailet>
      <mailet match="RecipientIsLocal" class="LocalDelivery"/>
      <mailet match="HostIsLocal" class="ToProcessor">
        <processor>local-address-error</processor>
        <notice>550 - Requested action not taken: no such user here</notice>
      </mailet>
      <mailet match="All" class="RemoteDelivery">
        <outgoingQueue>outgoing</outgoingQueue>
        <delayTime>5 minutes</delayTime>
        <delayTime>10 minutes</delayTime>
        <delayTime>45 minutes</delayTime>
        <delayTime>2 hours</delayTime>
        <delayTime>3 hours</delayTime>
        <delayTime>6 hours</delayTime>
        <maxRetries>25</maxRetries>
        <maxDnsProblemRetries>0</maxDnsProblemRetries>
        <deliveryThreads>10</deliveryThreads>
        <sendpartial>true</sendpartial>
        <bounceProcessor>bounces</bounceProcessor>
      </mailet>
    </processor>
    <processor state="error" enableJmx="true">
      <mailet match="All" class="ToRepository">
        <repositoryPath>file://var/mail/error/</repositoryPath>
      </mailet>
    </processor>
    <processor state="spam" enableJmx="true">
      <mailet match="All" class="ToRepository">
        <repositoryPath>file://var/mail/spam/</repositoryPath>
      </mailet>
    </processor>
    <processor state="local-address-error" enableJmx="true">
          <mailet match="All" class="Bounce">
        <attachment>none</attachment>
      </mailet>
      <mailet match="All" class="ToRepository">
        <repositoryPath>file://var/mail/address-error/</repositoryPath>
      </mailet>
    </processor>
    <processor state="relay-denied" enableJmx="true">
      <mailet match="All" class="ToRepository">
        <repositoryPath>file://var/mail/relay-denied/</repositoryPath>
      </mailet>
    </processor>
    <processor state="bounces" enableJmx="true">
      <mailet match="All" class="DSNBounce">
        <passThrough>false</passThrough>
      </mailet>
    </processor>
  </processors>
</mailetcontainer>


The behavior we are seeing is:
1. If I send an email to [email protected], and that user has not been added 
via JMX, we see the following message within SquirrelMail

ERROR:
Message not sent. Server replied:

    Requested action not taken: mailbox unavailable
    550 5.1.1 Unknown user: [email protected]

2. If I send an email to [email protected], where this is a valid email 
address, the email is sent. I want to prevent users from sending emails outside 
mydomain.net

3. If I send an email to [email protected], where this address does not exist 
within our James, the user gets an email from the postmaster saying 


Hi. This is the James mail server at HCFHIE04.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.  Below
I include the list of recipients and the reason why I was unable to deliver
your message.

Failed recipient(s):
[email protected]

Error message:
There are no DNS entries for the hostname localhost.com.  I cannot determine 
where
to send this message.


I like the postmaster email behavior from #3. Is there a way I can get that 
behavior to occur for #2 scenario?

Thank you in advance,
Vanessa Pao

-----Original Message-----
From: Saibabu Vallurupalli [mailto:[email protected]] 
Sent: Wednesday, July 27, 2011 8:40 AM
To: James Developers List
Subject: Re: Issue with address-error not bounced

Hi Eric,

Good morning.
I have setup Apache James 3.0-Beta 2, Is this also called V3? How to verify
VirtualHosting configuration?
I haven't used JMX-CLI to create domain, have just inserted domain name in
database. Also, we will verify the case sensitivity.

Thanks, Sai

On Wed, Jul 27, 2011 at 3:01 AM, Eric Charles <[email protected]> wrote:

> Hi Sai,
>
> Just to be sure, are you running James V3 with virutalHosting enabled (the
> default config)?
>
> Did you add MyDomain.net in the list of domains via the JMX/CLI client?
>
> Also, I wonder if uppercase don't give issue?
> Can you try with mydomain.net?
>
> Thx.
>
>
> On 27/07/11 04:49, Saibabu Vallurupalli wrote:
>
>> Hi Team,
>>
>> We are trying to configure James to return undelivered messages which are
>> unknown user etc., Yesterday Eric suggested a solution and it worked
>> great.
>> This works only for any email sent to [email protected], where xyz user
>> is
>> not available.
>> The problem we are trying to fix is, we have our own domain mydomain.netand
>> email users are configured to this domain NOT localhost. Now, If I send an
>> email from [email protected] to [email protected] where xyz doesn't exists.
>> Unknown user exception from postmaster are not sent. I am not getting any
>> error messages back. So, how to configure MyDomain.net instead of
>> localhost?
>>
>> Please advise.
>>
>> Thanks,
>> Sai
>>
>>
>
> --
> Eric Charles
> http://about.echarles.net
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> server-dev-unsubscribe@james.**apache.org<[email protected]>
> For additional commands, e-mail: 
> [email protected].**org<[email protected]>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to