Hi Eric,

nop, i didn't change the domainlist.xml
looks like this :

<domainlist class="org.apache.james.domainlist.jpa.JPADomainList">
  <autodetect>false</autodetect>
  <autodetectIP>false</autodetectIP>
  <defaultDomain>localhost</defaultDomain>
</domainlist>

in my conf dir, i ve userrepository.xml
with <enableVirtualHosting>true</enableVirtualHosting>
and also userrepository23.xml
with <enableVirtualHosting>false</enableVirtualHosting>


To run the cli project, i ve just run the
org.apache.james.cli.ServerCmd.main method with program args like this :
--host localhost adddomain xxx
--host localhost adduser mat@xxx yyy

Sending and recieving mails now works perfectly!! happy to test this beta
version ;)

Thanks for your great help!

Mat


2011/6/20 Eric Charles <e...@apache.org>

> So you explicitly changed the virtualHosting in domainlist.xml from true to
> false ?
>
> To run cli with project loaded in eclipse, simply create a class that
> invokes the ServerCmd.main with the correct args array. I also made that
> this weekend but didn't committed the classe because it's not really a
> 'main' nor a 'test'.
>
> Maybe we should forsee a 'maven exec:java ....' so that we don't develop
> the same things. I will open a jira for that.
>
> Tks,
> - Eric
>
>
>
> On 20/06/11 12:51, math math wrote:
>
>> No i m not using virtualHosting.
>> actually developping with eclipse and will run those commands using the
>> james-cli project.
>>
>> Thanks for your help ;)
>> Bye,
>> Mat.
>>
>>
>> 2011/6/20 Norman 
>> Maurer<norman.maurer@**googlemail.com<norman.mau...@googlemail.com>
>> >
>>
>>  ./james-cli --host localhost --adddomain localhost
>>> ./james-cli --host localhost--adddomain 127.0.0.1
>>>
>>>
>>> Bye,
>>> Norman
>>>
>>> Ps: Do you use virtualhosting ?
>>>
>>>
>>> 2011/6/20 math math<mathieu.att...@gmail.com>**:
>>>
>>>> I guess no, how to do that??
>>>> Tks,
>>>> Mat.
>>>>
>>>> 2011/6/20 Norman 
>>>> Maurer<norman.maurer@**googlemail.com<norman.mau...@googlemail.com>
>>>> >
>>>>
>>>>  Do you have "localhost" added to your DomainList (via jmx or
>>>>> james-cli)?
>>>>>
>>>>> Bye,
>>>>> Norman
>>>>>
>>>>>
>>>>> 2011/6/20 math math<mathieu.att...@gmail.com>**:
>>>>>
>>>>>> sure :
>>>>>>
>>>>>> domainlist.xml:
>>>>>>
>>>>>> <domainlist class="org.apache.james.**domainlist.jpa.JPADomainList">
>>>>>>  <autodetect>true</autodetect>
>>>>>>  <autodetectIP>true</**autodetectIP>
>>>>>>  <defaultDomain>localhost</**defaultDomain>
>>>>>> </domainlist>
>>>>>>
>>>>>>
>>>>>>
>>>>>  ------------------------------**------------------------------**
>>> ------------------------------**---------------------
>>>
>>>> mailetcontainer.xml:
>>>>>>
>>>>>> <mailetcontainer enableJmx="true">
>>>>>>
>>>>>>  <context>
>>>>>>    <postmaster>Postmaster@**localhost</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=dnsb**l.njabl.org<http://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="RecipientRewriteTable">
>>>>>>
>>>>>>
>>>>>>
>>>>>  <recipientrewritetable>**DefaultRecipientRewriteTable</**
>>> recipientrewritetable>
>>>
>>>>      </mailet>
>>>>>>      <!-- Disable this if you want to have case-sensitive local-parts
>>>>>>
>>>>> of
>>>
>>>> the recipients -->
>>>>>>      <mailet match="RecipientIsLocal" class="RecipientToLowerCase"/>
>>>>>>
>>>>>>      <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="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>
>>>>>>
>>>>>> 2011/6/20 Norman 
>>>>>> Maurer<norman.maurer@**googlemail.com<norman.mau...@googlemail.com>
>>>>>> >
>>>>>>
>>>>>>  Hi there,
>>>>>>>
>>>>>>> can you show use your domainlist.xml  and your mailetcontainer.xml.
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Norman
>>>>>>>
>>>>>>>
>>>>>>> 2011/6/20 math math<mathieu.att...@gmail.com>**:
>>>>>>>
>>>>>>>> Hi there,
>>>>>>>>
>>>>>>>> after few month using successfully james 3M2 in dev mode, i m
>>>>>>>>
>>>>>>> trying
>>>
>>>> now
>>>>>
>>>>>> to
>>>>>>>
>>>>>>>> use James 3beta 1.
>>>>>>>> New James launching is quite fine in Eclipse ans mysql database...
>>>>>>>>
>>>>>>> But
>>>
>>>>  when
>>>>>>>
>>>>>>>> i m trying to send mail from localhost to localhost, it does nt
>>>>>>>>
>>>>>>> work,
>>>
>>>> i
>>>>>
>>>>>> don
>>>>>>>
>>>>>>>> 't see new message in mailbox....  here is what i got after trying
>>>>>>>>
>>>>>>> multiple
>>>>>>>
>>>>>>>> configurations : i m sending from mat@127.0.0.1 to mat@127.0.0.1
>>>>>>>>
>>>>>>>> INFO  11:44:05,311 | james.smtpserver | ID=404722680 Connection
>>>>>>>>
>>>>>>> established
>>>>>>>
>>>>>>>> from 127.0.0.1 (127.0.0.1)
>>>>>>>> INFO  11:44:05,404 | james.smtpserver | ID=404722680 Successfully
>>>>>>>>
>>>>>>> spooled
>>>>>
>>>>>> mail Mail1308563045397-7836577b-**dca2-4ce3-9ac3-60b4259b05bc from
>>>>>>>> mat@127.0.0.1 on 127.0.0.1 for [mat@127.0.0.1]
>>>>>>>> INFO  11:44:05,505 | james.smtpserver | ID=404722680 Connection
>>>>>>>>
>>>>>>> closed
>>>
>>>>  for
>>>>>>>
>>>>>>>> 127.0.0.1 (127.0.0.1)
>>>>>>>> INFO  11:44:05,638 | james.dnsservice | Couldn't resolve MX records
>>>>>>>>
>>>>>>> for
>>>>>
>>>>>> domain 127.0.0.1.
>>>>>>>> INFO  11:44:05,639 | james.mailetcontext | Temporary problem
>>>>>>>>
>>>>>>> looking
>>>
>>>> up
>>>>>
>>>>>> mail
>>>>>>>
>>>>>>>> server for host: 127.0.0.1
>>>>>>>> INFO  11:44:05,639 | james.mailetcontext | Temporary exception
>>>>>>>>
>>>>>>> delivering
>>>>>
>>>>>> mail
>>>>>>>>
>>>>>>> (Mail1308563045397-7836577b-**dca2-4ce3-9ac3-60b4259b05bc-**
>>>>>>> to-127.0.0.1:
>>>>>>>
>>>>>>>> INFO  11:44:05,639 | james.mailetcontext | Storing message
>>>>>>>> Mail1308563045397-7836577b-**dca2-4ce3-9ac3-60b4259b05bc-**
>>>>>>>> to-127.0.0.1
>>>>>>>>
>>>>>>> into
>>>>>
>>>>>> outgoing after 0 retries
>>>>>>>>
>>>>>>>> don't understand what s this "Couldn't resolve MX records for
>>>>>>>>
>>>>>>> domain
>>>
>>>>  127.0.0.1." . Never saw that before with james M2....
>>>>>>>>
>>>>>>>>
>>>>>>>> and here is what i got when sending from mat@localhost to
>>>>>>>>
>>>>>>> mat@localhost:
>>>>>
>>>>>>
>>>>>>>>
>>>>>>>> INFO  11:47:21,409 | james.smtpserver | ID=644415964 Connection
>>>>>>>>
>>>>>>> established
>>>>>>>
>>>>>>>> from 127.0.0.1 (127.0.0.1)
>>>>>>>> INFO  11:47:21,487 | james.smtpserver | ID=644415964 Successfully
>>>>>>>>
>>>>>>> spooled
>>>>>
>>>>>> mail Mail1308563241482-faf28f09-**e439-4b00-9491-26cf6de8e134 from
>>>>>>>> mat@localhost on 127.0.0.1 for [mat@localhost]
>>>>>>>> INFO  11:47:21,501 | james.smtpserver | ID=644415964 Connection
>>>>>>>>
>>>>>>> closed
>>>
>>>>  for
>>>>>>>
>>>>>>>> 127.0.0.1 (127.0.0.1)
>>>>>>>> INFO  11:47:21,641 | james.dnsservice | Couldn't resolve MX records
>>>>>>>>
>>>>>>> for
>>>>>
>>>>>> domain localhost.
>>>>>>>> ERROR 11:47:21,642 | james.dnsservice | Couldn't resolve IP address
>>>>>>>>
>>>>>>> for
>>>>>
>>>>>> host
>>>>>>>
>>>>>>>> localhost.
>>>>>>>> INFO  11:47:21,642 | james.mailetcontext | Temporary problem
>>>>>>>>
>>>>>>> looking
>>>
>>>> up
>>>>>
>>>>>> mail
>>>>>>>
>>>>>>>> server for host: localhost
>>>>>>>> INFO  11:47:21,642 | james.mailetcontext | Temporary exception
>>>>>>>>
>>>>>>> delivering
>>>>>
>>>>>> mail
>>>>>>>>
>>>>>>> (Mail1308563241482-faf28f09-**e439-4b00-9491-26cf6de8e134-**
>>>>>>> to-localhost:
>>>>>>>
>>>>>>>> INFO  11:47:21,642 | james.mailetcontext | Storing message
>>>>>>>> Mail1308563241482-faf28f09-**e439-4b00-9491-26cf6de8e134-**
>>>>>>>> to-localhost
>>>>>>>>
>>>>>>> into
>>>>>
>>>>>> outgoing after 0 retries
>>>>>>>>
>>>>>>>> ==>  sending @localhost i can see messages in "sent" folder !! but
>>>>>>>>
>>>>>>> not
>>>
>>>> in
>>>>>
>>>>>> "inbox" folder with thunderbird :(
>>>>>>>>
>>>>>>>> here is my dnsservice.xml
>>>>>>>>
>>>>>>>> <dnsservice>
>>>>>>>>    <autodiscover>false</**autodiscover>
>>>>>>>>    <authoritative>true</**authoritative>
>>>>>>>>    <maxcachesize>50000</**maxcachesize>
>>>>>>>> </dnsservice>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>  ------------------------------**------------------------------**
>>> ------------------------------**------------------------------**
>>> ------------------------------**-------
>>>
>>>>  domainlist.xml :
>>>>>>>>
>>>>>>>> <domainlist class="org.apache.james.**
>>>>>>>> domainlist.jpa.JPADomainList">
>>>>>>>>  <autodetect>true</autodetect>
>>>>>>>>  <autodetectIP>true</**autodetectIP>
>>>>>>>>  <defaultDomain>localhost</**defaultDomain>
>>>>>>>> </domainlist>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>  ------------------------------**------------------------------**
>>> ------------------------------**------------------------------**
>>> ------------------------------**-------
>>>
>>>>  imapserver.xml
>>>>>>>>
>>>>>>>> <imapserver enabled="true">
>>>>>>>>  <bind>localhost:143</bind>
>>>>>>>>  <connectionBacklog>200</**connectionBacklog>
>>>>>>>>  <tls socketTLS="false" startTLS="false">
>>>>>>>>  </tls>
>>>>>>>>
>>>>>>>>  <!-- Disallow plain authenticate / login. So any client will need
>>>>>>>>
>>>>>>> to
>>>
>>>>  STARTTLS before try to login -->
>>>>>>>>  <!-- or the socket must be using TLS in general -->
>>>>>>>>  <plainAuthDisallowed>false</**plainAuthDisallowed>
>>>>>>>>
>>>>>>>>  <!-- COMPRESS extension -->
>>>>>>>>  <compress>false</compress>
>>>>>>>>
>>>>>>>>  <!-- Maximal allowed line-length before a BAD response will get
>>>>>>>>
>>>>>>> returned
>>>>>
>>>>>> to the client -->
>>>>>>>>  <!-- This should be set with caution as a to high value can make
>>>>>>>>
>>>>>>> the
>>>
>>>>  server a target for DOS! -->
>>>>>>>>  <maxLineLength>65536</**maxLineLength>
>>>>>>>>
>>>>>>>>  <!-- 10MB size limit before we will start to stream to a temporary
>>>>>>>>
>>>>>>> file
>>>>>
>>>>>> -->
>>>>>>>>  <inMemorySizeLimit>10485760</**inMemorySizeLimit>
>>>>>>>>  <handler>
>>>>>>>>      <connectionLimit>  0</connectionLimit>
>>>>>>>>      <connectionLimitPerIP>  0</connectionLimitPerIP>
>>>>>>>>  </handler>
>>>>>>>> </imapserver>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>  ------------------------------**------------------------------**
>>> ------------------------------**------------------------------**
>>> ------------------------------**-------
>>>
>>>>  smtpserver.xml
>>>>>>>>
>>>>>>>> <smtpserver enabled="true">
>>>>>>>>  <bind>localhost:25</bind>
>>>>>>>>  <connectionBacklog>200</**connectionBacklog>
>>>>>>>>  <tls socketTLS="false" startTLS="false">
>>>>>>>>  </tls>
>>>>>>>>  <connectiontimeout>360</**connectiontimeout>
>>>>>>>>  <connectionLimit>  0</connectionLimit>
>>>>>>>>  <connectionLimitPerIP>  0</connectionLimitPerIP>
>>>>>>>>  <authorizedAddresses>127.0.0.**0/8 <http://127.0.0.0/8>
>>>>>>>> </authorizedAddresses>
>>>>>>>>  <authRequired>false</**authRequired>
>>>>>>>>  <verifyIdentity>false</**verifyIdentity>
>>>>>>>>  <maxmessagesize>0</**maxmessagesize>
>>>>>>>>  <addressBracketsEnforcement>**true</**addressBracketsEnforcement>
>>>>>>>>  <handlerchain enableJmx="true">
>>>>>>>>    <handler
>>>>>>>>
>>>>>>> class="org.apache.james.**smtpserver.fastfail.**ValidRcptHandler"/>
>>>>>>>
>>>>>>>>    <handler
>>>>>>>>
>>>>>>> class="org.apache.james.**smtpserver.**CoreCmdHandlerLoader"/>
>>>
>>>>
>>>>>>>>  </handlerchain>
>>>>>>>> </smtpserver>
>>>>>>>>
>>>>>>>>
>>>>>>>> Doest anyone have any clue to help me?
>>>>>>>>
>>>>>>>> Another question : how to make runnable standalone james with those
>>>>>>>> sources??
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Mat.
>>>>>>>>
>>>>>>>>
>>>>>>> ------------------------------**------------------------------**
>>>>>>> ---------
>>>>>>> To unsubscribe, e-mail: 
>>>>>>> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscr...@james.apache.org>
>>>>>>> For additional commands, e-mail: 
>>>>>>> server-dev-help@james.apache.**org<server-dev-h...@james.apache.org>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> ------------------------------**------------------------------**
>>>>> ---------
>>>>> To unsubscribe, e-mail: 
>>>>> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscr...@james.apache.org>
>>>>> For additional commands, e-mail: 
>>>>> server-dev-help@james.apache.**org<server-dev-h...@james.apache.org>
>>>>>
>>>>>
>>>>>
>>>>
>>> ------------------------------**------------------------------**
>>> ---------
>>> To unsubscribe, e-mail: 
>>> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscr...@james.apache.org>
>>> For additional commands, e-mail: 
>>> server-dev-help@james.apache.**org<server-dev-h...@james.apache.org>
>>>
>>>
>>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscr...@james.apache.org>
> For additional commands, e-mail: 
> server-dev-help@james.apache.**org<server-dev-h...@james.apache.org>
>
>

Reply via email to